b32963902c6f6c8f6c4628e7b4f3421b22beb961
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
2
3         * cli/cli-script.c (copy_command_lines): New function.
4         * defs.h (copy_command_lines): Export.
5         * testsuite/gdb.base/commands.exp: New tests for commands
6         attached to a temporary breakpoint, and for commands that
7         delete the breakpoint they are attached to.
8         
9 2002-08-26  Michael Snyder  <msnyder@redhat.com>
10
11         * breakpoint.c (bpstat_stop_status): Instead of copying the 
12         pointer to the breakpoint commands struct, make a new copy
13         of the struct and point to that.
14         (bpstat_clear): Free the commands struct.
15         (bpstat_clear_actions): Free the commands struct.
16         (bpstat_do_actions): Free the command actions.  Also execute
17         the local cleanups, instead of deleting them.
18         (delete_breakpoint): Leave the commands field of the bpstat
19         chain alone -- it will be freed later.
20
21 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
22
23         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
24         deleted in 2002-08-20 commit.  This function is still used by
25         ppc-linux-nat.c.
26
27 2002-08-26  Keith Seitz  <keiths@redhat.com>
28
29         * gdb-events.sh: Add selected-frame-level-changed event.
30         * gdb-events.c: Regenerated.
31         * gdb-events.h: Regenerated.
32         
33 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
34
35         Fix PR gdb/393:
36         * inflow.c (terminal_save_ours): New function to save terminal
37         settings.
38         * inferior.h (terminal_save_ours): Declare.
39         * target.c (debug_to_terminal_save_ours): New function.
40         (cleanup_target): Defaults to_terminal_save_ours.
41         (update_current_target): Inherit to_terminal_save_ours.
42         (setup_target_debug): Set to_terminal_save_ours.
43         * target.h (target_terminal_save_ours): New to save terminal settings.
44         (target_ops): New member to_terminal_save_ours.
45         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
46         * hpux-thread.c (init_hpux_thread_ops): Likewise.
47         * inftarg.c (init_child_ops): Likewise.
48         * m3-nat.c (init_m3_ops): Likewise.
49         * procfs.c (init_procfs_ops): Likewise.
50         * wince.c (init_child_ops): Likewise.
51         * win32-nat.c (init_child_ops): Likewise.
52         * sol-thread.c (init_sol_thread_ops): Likewise.
53
54 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
55
56         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
57         use regcache_* functions.
58         (i386_gdbarch_init): Set store_return_value instead of
59         deprecated_store_return_value.
60
61         * regcache.c (regcache_raw_write_signed,
62         regcache_raw_write_unsigned): New functions.
63         * regcache.h (regcache_raw_write_signed,
64         regcache_raw_write_unsigned): New prototypes.
65
66 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
67
68         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
69         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
70         source file dependencies.  Cleanup corresponding generator rules.
71
72 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
73
74         * regcache.h (register_offset_hack): Declare.
75         (regcache_cooked_read_using_offset_hack): Declare.
76         (regcache_cooked_write_using_offset_hack): Declare.
77
78         * regcache.c (register_offset_hack): New function.
79         (regcache_cooked_read_using_offset_hack): New function.
80         (regcache_cooked_write_using_offset_hack): New function.
81         (regcache_dump): Check that the registers, according to their
82         offset, are packed hard against each other.
83         (cooked_xfer_using_offset_hack): New function.
84
85 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
86
87         * regcache.c (struct regcache_descr): Add field register_type.
88         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
89         in as a parameter
90         (init_regcache_descr): Initialize register_type.  Pass the descr
91         to init_legacy_regcache_descr.  Use register_type instead of
92         REGISTER_VIRTUAL_TYPE.
93         (register_type): New function.
94         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
95         * regcache.h (register_type): Declare.
96
97 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
98
99         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
100         instead of deprecated_store_return_value.  Fix fallout from
101         2002-08-23 Andrew Cagney <cagney@redhat.com>.
102
103 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
104
105         * regcache.c (max_register_size): New function.
106         (init_legacy_regcache_descr): Ensure that max_register_size is
107         large enough for REGISTER_VIRTUAL_SIZE.
108         * regcache.h (max_register_size): Declare.
109
110 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
111
112         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
113         store_return_value.
114         (e500_extract_return_value): Change type of valbuf pointer to
115         void.
116
117 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
118
119         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
120         workaround.
121
122         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
123         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
124         long long) to prevent compiler warning on 64-bit systems.
125
126 2002-08-23  Andrew Cagney  <cagney@redhat.com>
127
128         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
129         (DEPRECATED_STORE_RETURN_VALUE): New method.
130         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
131         * gdbarch.h, gdbarch.c: Re-generate.
132
133         * values.c (set_return_value): Pass current_regcache to
134         STORE_RETURN_VALUE.
135         * arch-utils.h (legacy_store_return_value): Declare.
136         * arch-utils.c (legacy_store_return_value): New function.
137         (legacy_extract_return_value): Update parameters.
138
139         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
140         STORE_RETURN_VALUE.
141         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
142         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
143         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
144         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
145         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
146         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
147         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
148         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
149         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
150         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
151
152         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
153         * i386-tdep.c (i386_extract_return_value): Update.
154         * arch-utils.c (legacy_extract_return_value): Update.
155         * frv-tdep.c (frv_gdbarch_init): Update.
156         * cris-tdep.c (cris_gdbarch_init): Update.
157         * d10v-tdep.c (d10v_gdbarch_init): Update.
158         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
159         * m68k-tdep.c (m68k_gdbarch_init): Update.
160         * mcore-tdep.c (mcore_gdbarch_init): Update.
161         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
162         * s390-tdep.c (s390_gdbarch_init): Update.
163         * sparc-tdep.c (sparc_gdbarch_init): Update.
164         * sh-tdep.c (sh_gdbarch_init): Update.
165         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
166         * v850-tdep.c (v850_gdbarch_init): Update.
167         * avr-tdep.c (avr_gdbarch_init): Update.
168         * ia64-tdep.c (ia64_gdbarch_init): Update.
169         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
170         * vax-tdep.c (vax_gdbarch_init): Update.
171         * alpha-tdep.c (alpha_gdbarch_init): Update.
172         * arm-tdep.c (arm_gdbarch_init): Update.
173         * mips-tdep.c (mips_gdbarch_init): Update.
174         * i386-tdep.c (i386_gdbarch_init): Update.
175
176 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
177
178         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
179         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
180
181 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
182
183         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
184         problems.
185
186 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
187
188         * infrun.c (handle_inferior_event): Move a comment outside of a
189         function call, in order to avoid indent reformatting this part
190         of the code in an unreadable way.
191
192 2002-08-23  Grace Sainsbury  <graces@redhat.com>
193
194         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
195         when breakpoints fail. Move general breakpoint error messages to
196         insert_breakpoints.  
197         * breakpoint.c (insert_breakpoints): Change warnings when
198         breakpoints are nto inserted to specify the type. Remove call to
199         memory_error when hardware breakpoints can't be inserted. Remove
200         multiple calls to warning so all messages are sent to the user at
201         once.
202         (delete_breakpoints): Make insert error messsages more explicit.
203
204 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
205
206         * ChangeLog: Move gdbserver entries after GDB 5.2 to
207         gdbserver/ChangeLog.
208
209 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
210
211         * i386-tdep.c: Include "objfiles.h".
212         (i386_svr4_init_abi): Set in_solib_call_trampoline and
213         skip_trampoline_code.
214         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
215         (CPLUS_MARKER): Define to '.'.
216
217         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
218         member.
219         (linux_corefile_thread_callback): Increase args->num_notes.
220         (linux_make_note_section): Initialize thread_args.num_notes, and
221         use it to determine whether notes for any threads were created.
222
223 2002-08-23  Donn Terry  <dterry@microsoft.com>
224
225         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
226         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
227         and PCUNKILL.
228         (write_with_trace): Conditionalize out the switch branch handling
229         PCSHOLD if the corresponding macro is not defined. Likewise for
230         PRSABORT and PRSTOP.
231         This change will be needed by the Interix port.
232
233 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
234
235         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
236         ev_offset fields.
237         (skip_prologue): Add support for BookE/e500 instructions.
238         (e500_extract_return_value): New function.
239         (frame_get_saved_regs): Add support for saving ev registers and
240         pseudo gpr's.
241         (e500_store_return_value): New function.
242         (rs6000_gdbarch_init): Move up default intializations of
243         deprecated_extract_return_value and store_return_value.  Overwrite
244         init of store_return_value with e500 specific version.
245         Set extract_return_value for e500.
246         
247 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
248
249         * blockframe.c (generic_call_dummy_register_unwind): Use
250         regcache_cooked_read to catch cases in which the variable is
251         stored in a pseudo register.
252
253 2002-08-22  Andrew Cagney  <cagney@redhat.com>
254
255         * NEWS: Mention that the i960 has been made obsolete.
256         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
257         i960-tdep.c
258         (remote-nrom.o): Obsolete target.
259         (remote-nindy.o, i960-tdep.o): Ditto.
260         * remote-nrom.c: Make file obsolete.
261         * remote-nindy.c, remote-vx960.c: Ditto.
262         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
263         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
264         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
265         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
266         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
267         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
268         i960-*-vxworks* obsolete.
269         * MAINTAINERS: Note that the i960 is obsolete.
270
271 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
272
273         * aix-thread.c (aix_thread_detach): Disable thread debugging on
274         detach to allow reinitialization.
275
276 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
277
278         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
279         attempt).
280
281 2002-08-22  Jim Blandy  <jimb@redhat.com>
282
283         * coffread.c (coff_symfile_read): Don't try to read the line
284         number table from disk if the image file doesn't have a symbol
285         table; we'll never actually look at the info anyway, and Windows
286         ships DLL's with bogus file offsets for the line number data.
287
288 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
289
290         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
291         an e500 executable.
292
293 2002-08-21  Michael Snyder  <msnyder@redhat.com>
294
295         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
296         (MSYMBOL_SIZE): Replace macro with function.
297         (DEFAULT_MIPS_TYPE): Delete unused macro.
298         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
299         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
300
301 2002-08-21  Jim Blandy  <jimb@redhat.com>
302
303         * valops.c (value_cast): Simplify and correct logic for doing a
304         static cast from a pointer to a base class to a pointer to a
305         derived class.
306
307 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
308
309         * infcmd.c (default_print_registers_info): Replace
310         do_registers_info.
311         (registers_info): Use gdbarch_print_registers_info instead of
312         DO_REGISTERS_INFO.
313         * inferior.h (default_print_registers_info): Replace
314         do_registers_info.
315         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
316         (DO_REGISTERS_INFO): Change to a predicate function.
317         * gdbarch.h, gdbarch.c: Regenerate.
318         
319 2002-08-21  Keith Seitz  <keiths@redhat.com>
320
321         * gdb-events.sh: Add target-changed event.
322         * gdb-events.c: Regenerated.
323         * gdb-events.c: Regenerated.
324         * valops.c (value_assign): Add target-changed event notification
325         to inlval_register, lval_memory, and lval_reg_frame_relative.
326
327 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
328
329         * NEWS: Add an entry regarding the improvement of the next/step
330         operation on Alpha Tru64 multi-processor machines.
331
332 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
333
334         * Makefile.in: Update dependencies for mi/ cli/ and tui/
335         directores.
336         * Makefile.in: Update all _h macro definitions.
337         * Makefile.in (install-gdbtk): Move to install section.
338         (rdi-share/libangsd.a): Move to end of file.
339
340 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
341
342         * frame.c (frame_register_unwind): When a register, set addrp to
343         the register's byte.
344
345 2002-08-20  Michael Snyder  <msnyder@redhat.com>
346
347         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
348         used locally, so move them from the target machine header to here.
349         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
350         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
351         Make static.
352         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
353
354 2002-08-20  Andrew Cagney  <cagney@redhat.com>
355
356         * NEWS: Mention that the Apollo line was made obsolete.
357         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
358         m68*-hp-hpux* obsolete.
359         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
360         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
361         * buildsym.c (make_blockvector): Make static.
362         * buildsym.h (make_blockvector): Make extern declaration obsolete.
363         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
364         (ALLDEPFILES): Remove dstread.c.
365         (dstread.o): Obsolete make rule.
366         * dstread.c: Makefile obsolete.
367         * dst.h: Ditto.
368         * config/m68k/hp300hpux.mt: Ditto.
369         * config/m68k/hp300hpux.mh: Ditto.
370         * config/m68k/hp300bsd.mt: Ditto.
371         * config/m68k/hp300bsd.mh: Ditto.
372         * config/m68k/apollo68b.mt: Ditto.
373         * config/m68k/apollo68v.mh: Ditto.
374         * config/m68k/apollo68b.mh: Ditto.
375
376 2002-08-20  Michael Snyder  <msnyder@redhat.com>
377
378         * mips-tdep.c (mips_in_return_stub): Make static.
379         (mips_gdbarch_init): Set in_solib_return_trampoline.
380         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
381
382 2002-08-20  Michael Snyder  <msnyder@redhat.com>
383
384         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
385         * gdbarch.c, gdbarch.h: Regenerate.
386         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
387         Add.
388         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
389
390 2002-08-20  Michael Snyder  <msnyder@redhat.com>
391
392         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
393         (mips_gdbarch_init): Set skip_trampoline_code, 
394         in_solib_call_trampoline.
395         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
396         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
397
398 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
399
400         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
401
402         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
403         vector type for ev registers.
404         (e500_pseudo_register_read): New function.
405         (e500_pseudo_register_write): New function.
406         (e500_dwarf2_reg_to_regnum): New function.
407         (PPC_UISA_NOFP_SPRS): New macro.
408         (PPC_EV_REGS): New macro.
409         (PPC_GPRS_PSEUDO_REGS): New macro.
410         (registers_e500): New register set for e500.
411         (variants): Add e500 variant.
412         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
413         before setting architectural dependent variations.  Initialize ev
414         registers numbers.  Add case for e500 architecture.  Set the
415         number of pseudo registers.
416
417 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
418
419         * rs6000-tdep.c: Clean up comments.
420
421 2002-08-20  Andrew Cagney  <cagney@redhat.com>
422
423         * h8300-tdep.c: Re-indent file.
424
425 2002-08-20  Jim Blandy  <jimb@redhat.com>
426
427         * Makefile.in (LDFLAGS): Allow the configure script to establish a
428         default for this.
429
430 2002-08-20  Keith Seitz  <keiths@redhat.com>
431
432         * breakpoints.c (watch_command_1): Use internal breakpoint
433         when setting a watchpoint_scope breakpoint.
434
435 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
436
437         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
438         (build_builtin_type_vec64i): Ditto.
439         (build_builtin_type_vec128): Ditto.
440         (build_builtin_type_vec128i): Ditto.
441
442 2002-08-19  Michael Snyder  <msnyder@redhat.com>
443
444         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
445         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
446         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
447         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
448         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
449         CALL_DUMMY_ADDRESS): Delete.
450         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
451         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
452         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
453         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
454         push_return_address.
455         (mips_register_raw_size, mips_eabi_use_struct_convention, 
456         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
457         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
458         mips_init_extra_frame_info, mips_eabi_push_arguments, 
459         mips_n32n64_push_arguments, mips_push_return_address,
460         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
461         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
462
463 2002-08-19  Michael Snyder  <msnyder@redhat.com>
464
465         * mips-tdep.c (mips_frame_num_args): New function.
466         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
467         frame_saved_pc, frame_args_address, frame_locals_address, 
468         frame_num_args, and frame_args_skip.
469         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
470         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
471         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
472         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
473
474 2002-08-20  Michael Snyder  <msnyder@redhat.com>
475
476         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
477         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
478         * mips-tdep.c (mips_store_struct_return): New function.
479         (mips_extract_struct_value_address): New function.
480         (mips_gdbarch_init): Set store_struct_return and
481         extract_struct_value_address.
482
483 2002-08-20  David Carlton  <carlton@math.stanford.edu>
484
485         * dwarf2read.c (dwarf2_build_psymtabs): Check that
486         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
487         (read_file_scope): Check that line_header is nonzero before
488         decoding macro information.
489
490 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
491
492         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
493         flag the general-purpose registers as floating-point on targets
494         that don't support the floating-point registers.
495
496 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
497
498         * rs6000-tdep.c (altivec_register_p): Delete.
499         (rs6000_do_altivec_registers): Delete.
500         (rs6000_altivec_registers_info): Delete.
501         (rs6000_do_registers_info): Delete.
502         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
503         (rs6000_gdbarch_init): Remove setting of do_registers_info.
504
505 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
506
507         * infcmd.c (do_registers_info): Print vector registers in hex
508         format only.
509         (print_vector_info): Check that printing registers
510         makes sense.
511         (print_float_info): Ditto.
512
513 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
514
515         * mips-tdep.c (mips_gdbarch_init): Update.
516         (mips_o32_extract_return_value): Rewrite.
517         (mips_o32_store_return_value): Rewrite.
518         (mips_o32_xfer_return_value): New function.
519         (mips_xfer_register): Tweak debug print message.  Allow for
520         buf_offset when dumping the value transfered.
521
522 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
523
524         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
525         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
526         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
527         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
528         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
529
530 2002-08-14  Michael Snyder  <msnyder@redhat.com>
531
532         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
533
534 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
535
536         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
537         register.
538         (P): New macro to define a register as a pseudo register.
539         (R, R4, R8, R16, FR32, R64, R0): Updated.
540         (struct variant): Add new fields for number of pseudo registers
541         and number of total registers.
542         (tot_num_registers): New macro replacing....
543         (num_registers): ...deleted macro.
544         (num_registers): New function.
545         (num_pseudo_registers): New function.
546         (variants): Update all variants to intialize new fields correctly.
547         Postpone initialization of number of pseudo regs and real regs.
548         (init_variants): New function.
549         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
550         registers offsets.
551
552 2002-08-19  David Carlton  <carlton@math.stanford.edu>
553
554         * valops.c (search_struct_field): Change error message to treat
555         return value of 0 from value_static_field as meaning that field is
556         optimized out.
557         (value_struct_elt_for_reference): Ditto.
558         * values.c (value_static_field): Treat an unresolved location the
559         same as a nonexistent symbol.  Fix PR gdb/635.
560         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
561         enclosed.  Fix PR gdb/574.
562         * MAINTAINERS: Add self to Write After Approval list.
563
564 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
565
566         * mips-tdep.c (mips_xfer_register): New function.
567         (mips_n32n64_extract_return_value): Rewrite.
568         (mips_gdbarch_init): For N32 and N64, set extract_return_value
569         instead of deprecated_extract_return_value.
570
571 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
572
573         * rs6000-tdep.c (TDEP): Delete macro.
574         (branch_dest): Replace use of TDEP macro with its body.
575         (rs6000_pop_frame): Ditto.
576         (rs6000_push_arguments): Ditto.
577         (rs6000_skip_trampoline_code): Ditto.
578         (rs6000_frame_saved_pc): Ditto.
579         (rs6000_frame_chain): Ditto.
580         (rs6000_register_name): Ditto.
581         (rs6000_register_byte): Ditto.
582         (rs6000_register_raw_size): Ditto.
583         (rs6000_register_virtual_type): Ditto.
584         (rs6000_register_convertible): Ditto.
585         (rs6000_convert_from_func_ptr_addr): Ditto.
586
587 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
588
589         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
590         conditionally.
591         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
592         MIPS_LINUX_JB_ELEMENT_SIZE.
593         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
594         for MAX_REGISTER_RAW_SIZE arrays.
595         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
596         MIPS_LINUX_JB_ELEMENT_SIZE.
597
598 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
599
600         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
601
602 2002-08-19  Aidan Skinner <aidan@velvet.net>
603
604         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
605         ada-valprint.c ada-tasks.c.
606         (YYFILES): Add ada-exp.y.
607         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
608         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
609         (ada-exp.tab.o): New target.
610                 
611 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
612
613         * regcache.c (regcache_xfer_part): New function.
614         (regcache_raw_read_part): New function.
615         (regcache_raw_write_part): New function.
616         (regcache_cooked_read_part): New function.
617         (regcache_cooked_write_part): New function.
618         * regcache.h (regcache_raw_read_part): Declare.
619         (regcache_raw_write_part): Declare.
620         (regcache_cooked_read_part): Declare.
621         (regcache_cooked_write_part): Declare.
622
623 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
624
625         * remote.c (remote_open_1): Add async_p.
626         (remote_async_open_1): Delete.
627         (open_remote_target): Delete.
628         (remote_open, extended_remote_open): Update calls to remote_open_1.
629         (remote_async_open, extended_remote_async_open): Call
630         remote_open_1 instead of remote_async_open_1.
631
632 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
633
634         * blockframe.c: Fix a few coding standard violations.
635
636 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
637
638         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
639         here from ...
640         * config/i386/tm-i386sco5.h: ... here.  File removed.
641         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
642
643         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
644         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
645         (TM_FILE): Set to tm-i386.h.
646         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
647         * config/i386/tm-i386v.h: Remove file.
648         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
649         instead of "i386/tm-i386v.h".
650         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
651         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
652         "i386/tm-i386v.h".
653         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
654         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
655         "i386/tm-i386.h".
656
657 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
658
659         * config/i386/nm-i386v.h: Add protection against
660         multiple-inclusion.
661         (i386_register_u_addr): Remove prototype.
662         (register_u_addr): New prototype.
663         (REGISTER_U_ADDR): Redefine accordingly.
664         * i386v-nat.c: Improve several comments.
665         (i386_register_u_addr): Change signature and rename to
666         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
667         ubase variable.
668
669 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
670
671         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
672         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
673         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
674         deprecated_extract_return_value.
675         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
676         rename mips_o32o64_push_arguments.
677         (mips_gdbarch_init): Update.
678         (mips_extract_return_value): Delete.
679         (mips_o32_extract_return_value): Clone mips_extract_return_value.
680         (mips_o64_extract_return_value): Clone mips_extract_return_value.
681         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
682         (mips_n32n64_extract_return_value): Clone
683         mips_extract_return_value.
684         (mips_store_return_value): Delete.
685         (mips_o32_store_return_value): Clone mips_store_return_value.
686         (mips_o64_store_return_value): Clone mips_store_return_value.
687         (mips_eabi_store_return_value): Clone mips_store_return_value.
688         (mips_n32n64_store_return_value): Clone mips_store_return_value.
689
690 2002-08-18  Aidan Skinner <aidan@velvet.net>
691
692         * ada-lang.c: Use gdb_string.h instead of <string.h>.
693         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
694                 
695 2002-08-18  Aidan Skinner <aidan@velvet.net>
696
697         * ada-lang.c: Run through gdb_indent.sh.
698         * ada-lang.h: Run through gdb_indent.sh.
699         * ada-tasks.c: Run through gdb_indent.sh.
700         * ada-typeprint.c: Run through gdb_indent.sh.
701         * ada-valprint.c: Run through gdb_indent.sh.
702
703 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
704
705         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
706         ABI.
707
708 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
709
710         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
711
712         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
713         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
714
715         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
716         write_register_gen instead of write_register_bytes.
717
718         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
719         i[3456]-*-osf1mk* configurations have been made obsolete.
720         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
721         i[3456]86-*-osf1mk* hosts obsolete.
722         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
723         targets obsolete.
724         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
725         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
726         config/i386/i386m3.mt, config/i386/nm-m3.h,
727         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
728         config/i386/i386mk.mh, config/i386/i386mk.mt,
729         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
730         obsolete.
731         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
732         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
733         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
734
735 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
736
737         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
738         (hppa_value_returned_from_stack): Declare.
739         (hppa_extract_return_value): Declare.
740         * config/pa/hppa.mt: New file.
741         * configure.tgt: Recognize hppa*-*-*.
742         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
743
744 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
745
746         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
747         comment.
748
749 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
750
751         * top.c (gdb_rl_operate_and_get_next): Make sure
752         operate-and-get-next functions correctly even when the history
753         list is completely filled.
754
755 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
756
757         * MAINTAINERS (Target Instruction Set Architectures): Rename
758         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
759         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
760         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
761         already listed under Host/Native.
762
763         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
764         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
765         mips*-*-*.
766
767 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
768
769         * config/ia64/ia64.mt: New file.
770         * config/alpha/alpha.mt: New file.
771         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
772         ia64-linux-gnu.  Mention that ia64-elf is broken.
773         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
774
775 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
776
777         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
778         generic_func_frame_valid instead of func_frame_valid.
779
780 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
781
782         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
783         procfs appears to be broken when debugging on multi-processor
784         machines. So enable software single stepping in order to avoid
785         using the procfs interface to do next/step operations, using
786         internal breakpoints instead.
787
788         * infrun.c (handle_inferior_event): Readjust the stop_pc by
789         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
790         make this pc address equal to the value it would have if the
791         system stepping capability was used. Also set a new flag used
792         to ensure that we don't readjust the PC one more time later.
793
794         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
795         address by DECR_PC_AFTER_BREAK when software single step is
796         in use for this architecture, as this has already been taken
797         care of in handle_inferior_event().
798
799 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
800
801         * infrun.c (handle_inferior_event): Minor reformatting, to make
802         a rather long condition expression easier to read.
803
804 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
805
806         * Makefile.in (gdbtk.o): Move to end of file.
807         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
808         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
809         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
810         (gdbtk-wrapper.o, gdbres.o): Ditto.
811
812 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
813
814         * Makefile.in (copying.o): Separate out compile rule.
815         (hpux-thread.o, procfs.o, signals.o): Ditto.
816         (v850ice.o, z8k-tdep.o): Ditto.
817         (tui-file.o): Move to TUI section.
818         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
819         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
820
821 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
822
823         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
824         skip_trampoline_code, for better namespace-proofing.   
825
826         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
827
828 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
829
830         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
831
832 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
833
834         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
835         signal, check whether we hit a breakpoint before checking for a
836         single step breakpoint. Otherwise, GDB fails to notice that a
837         breakpoint has been hit when stepping onto a breakpoint.
838
839 2002-08-16  Keith Seitz  <keiths@redhat.com>
840
841         * gdb-events.sh (clear_gdb_event_hooks): New function.
842         * gdb-events.c: Regenerate.
843         * gdb-events.h: Regenerate.
844
845 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
846
847         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
848         not_a_sw_breakpoint.
849         * breakpoint.h (bpstat_stop_status): Add parameter names.
850
851 2002-08-16  Grace Sainsbury  <graces@redhat.com>
852
853         * remote.c (remote_insert_hw_breakpoint)
854         (remote_remove_hw_breakpoint): Fix calculation of length field
855         for Z-packet.
856
857 2002-08-15  Michael Snyder  <msnyder@redhat.com>
858
859         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
860         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
861         (supply_fpregset): Ditto.
862         
863         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
864         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
865         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
866         (TARGET_READ_SP): Delete.
867         (DO_REGISTERS_INFO): Delete.
868         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
869         Delete.
870         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
871         from macros to functions.
872
873         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
874         (mips_register_convertible, mips_register_convert_to_virtual,
875         mips_register_convert_to_raw): Make static.
876         (mips_read_sp): New function.
877         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
878         (mips_do_registers_info): Make static.
879         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
880         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
881         (mips_register_convert_from_type, mips_register_convert_to_type):
882         New functions.
883         (mips_gdbarch_init): Set up function_start_offset, 
884         register_virtual_size, pc_in_sigtramp.
885
886 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
887
888         * infcmd.c (vector_info): New function.
889         (_initialize_infcmd): Add command "info vector".
890         (print_vector_info): New function.
891
892         * gdbarch.sh (PRINT_VECTOR_INFO): New method
893         * gdbarch.h, gdbarch.c: Regenerate.
894
895 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
896
897         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
898         ``print_all''.  Only print vector registers when ``print_all''.
899
900 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
901
902         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
903         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
904
905         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
906         Add `args' parameter.
907         * gdbarch.h, gdbarch.c: Regenerate.
908         
909         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
910         
911         * infcmd.c (float_info): Call print_float_info.
912         (print_float_info): New function.  By default, print the
913         floating-point registers.
914
915         * arch-utils.h (default_print_float_info): Delete declaration.
916         * arch-utils.c (default_print_float_info): Delete function.
917         
918 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
919
920         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
921         out define.
922
923         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
924         FRAME.
925
926         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
927         * configure.host: Make i[3456]86-*-aix host obsolete.
928         * configure.tgt: Make i[3456]86-*-aix target obsolete.
929         * config/i386/i386aix.mh, config/i386/i386aix.mt,
930         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
931         config/i386/xm-i386aix.h: Make files obsolete.
932         * i386aix-nat.c: Make file obsolete.
933         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
934         (i386aix-nat.o): Make target obsolete.
935
936         * config/i386/nm-gnu.h: Removed.
937         * config/i386/nm-i386gnu.h: New file.
938         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
939         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
940         Moved here from ...
941         * config/i386/tm-i386gnu.h: ... here.  Removed.
942         * config/i386/xm-i386gnu.h: Removed.
943         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
944         (NAT_FILE): Set to nm-i386gnu.h.
945         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
946         * i386-tdep.c: New file.
947         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
948         (i386gnu-tdep.o): Specify dependencies.
949
950 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
951
952         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
953         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
954         Adjust a few comments to reflect reality a bit closer.
955         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
956         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
957         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
958         target_insert_watchpoint, target_remove_watchpoint):
959         Move defines to ...
960         * config/i386/nm-i386sco5.h: ... here.
961         (kernel_u_size): Add prototype.  Improve a few comments and add
962         protection against multiple inclusion.
963         
964         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
965         out define.
966
967         * uw-thread.c (SP_ARG0): Define if not already defined.
968         * config/i386/tm-i386.h (SO_ARG0): Remove define.
969
970         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
971
972         * config/i386/tm-i386.h: Don't include "regcache.h".
973
974         * i387-tdep.h (i387_print_float_info): New prototype.
975         * i387-tdep.c (print_i387_value, print_i387_ext,
976         print_i387_status_word, print_i387_control_word): Add `struct
977         ui_file *' argument and use it for output.
978         (i387_print_float_info): Renamed from i387_float_info.  Add
979         `struct gdbarch *' and `struct ui_file *' arguments and use the
980         latter for output.
981         * i386-tdep.c: Include "i387-tdep.h".
982         (i386_gdbarch_init): Set print_float_info.
983         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
984         (FLOAT_INFO): Remove define.
985
986 2002-08-13  Michael Snyder  <msnyder@redhat.com>
987
988         * mips-tdep.c (mips_push_arguments): Rename to
989         mips_eabi_push_arguments, and tune for EABI.
990         (MIPS_REGS_HAVE_HOME_P): Delete.
991         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
992         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
993         Delete references to mips_regs_have_home_p.
994
995 2002-08-14  Keith Seitz  <keiths@redhat.com>
996
997         * Makefile.in (install-gdbtk): Create insight plugin directory.
998         Install plugins.tcl file.
999
1000 2002-08-14  Keith Seitz  <keiths@redhat.com>
1001
1002         * configure.in: Move SUBDIRS to near top of the file so that
1003         --enable options may add things to it.
1004         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1005         * configure: Regenerate.
1006
1007 2002-08-13  Michael Snyder  <msnyder@redhat.com>
1008
1009         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
1010         cloned from mips_push_arguments, tuned for o32/o64 ABI.
1011         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1012
1013 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
1014
1015         * vax-tdep.c (vax_get_saved_register): Delete function.
1016         (vax_gdbarch_init): Update.
1017         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1018         (ns32k_gdbarch_init): Update.
1019         * alpha-tdep.c (alpha_get_saved_register): Delete function.
1020         (alpha_gdbarch_init): Update.
1021
1022 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1023
1024         * regcache.c (init_regcache_descr): Overallocate the
1025         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1026         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1027         nr_raw_registers.
1028         (set_register_cached): Add range checking assertions.  Use
1029         current_regcache.
1030
1031 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
1032
1033         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1034         numbers for MMX registers.
1035
1036 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1037
1038         * i386-tdep.c (i386_gdbarch_init): Use
1039         generic_unwind_get_saved_register.
1040
1041 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
1042
1043         * procfs.c (procfs_can_use_hw_breakpoint): New function.
1044         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1045         target vector.
1046         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1047         Delete.  Add comment regarding this now-deleted target method.
1048
1049 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1050
1051         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1052         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1053         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1054         real PC and the page number (if it's within the memory bank window).
1055         (m68hc11_pseudo_register_write): Likewise when saving.
1056         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1057         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1058         (m68hc11_register_raw_size): And use 32-bit for it.
1059         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1060         16K memory bank is used by the prog; also use the virtual pc.
1061
1062 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1063
1064         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1065         (m68hc11_gdbarch_init): Install it in gdbarch.
1066         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1067         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1068         (MSYMBOL_SIZE): New for documentation.
1069         (insn_return_kind): Enum to specify how a function returns.
1070         (frame_extra_info): Cleanup and record the return mode.
1071         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
1072         register in address computation.
1073         (m68hc11_get_return_insn): New to obtain the return instruction used
1074         by the function.
1075         (m68hc11_frame_init_saved_regs): Take into account the return
1076         instruction used by the function for far and interrupt functions.
1077         (m68hc11_init_extra_frame_info): Take into account page register.
1078         (m68hc11_frame_args_address): Adjust according to the return mode.
1079         (show_regs): Print page register only when it's used.
1080
1081 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1082
1083         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1084         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1085         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1086         registers.
1087         (m68hc11_register_raw_size): Likewise.
1088
1089 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1090
1091         * i386-tdep.c (i386_register_name): Handle mmx registers.
1092         (mmx_regnum_p): New function.
1093         (i386_mmx_names): New array.
1094         (mmx_num_regs): New variable.
1095         (i386_pseudo_register_read): New function.
1096         (i386_pseudo_register_write): New function.
1097         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1098
1099         * regcache.c (regcache_raw_read_unsigned): New function.
1100         (regcache_raw_read_signed): New function.
1101         * regcache.h (regcache_raw_read_unsigned): Declare.
1102         (regcache_raw_read_signed): Declare.
1103
1104 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1105
1106         * regcache.c (regcache_raw_read_as_address): Delete function.
1107         (regcache_cooked_read_signed): New function.
1108         (regcache_cooked_read_unsigned): New function.
1109         * regcache.h (regcache_cooked_read_signed): Declare.
1110         (regcache_cooked_read_unsigned): Declare.
1111         (regcache_raw_read_as_address): Delete declaration.
1112
1113         * blockframe.c (generic_read_register_dummy): Use
1114         regcache_cooked_read_unsigned.
1115         * i386-tdep.c (i386_extract_struct_value_address): Use
1116         regcache_cooked_read_unsigned.
1117
1118 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1119
1120         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1121         double sizes according to ELF ABI flags.
1122         (gdbarch_tdep): Record elf_flags.
1123
1124 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1125
1126         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1127         (m6812_prolog): They can appear in 68HC12 function prologue.
1128         (m68hc11_frame_chain): Cleanup.
1129
1130 2002-08-12  Andrew Cagney  <cagney@redhat.com>
1131
1132         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1133         declarations.
1134         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1135         (i386_linux_register_raw_size): Delete function.
1136         (i386_linux_init_abi): Update.
1137         * i386-tdep.c (i386_register_raw_size): Delete function.
1138         (i386_register_byte): Delete function.
1139         (i386_gdbarch_init): Update.
1140         (i386_register_size): Delete array.
1141         (i386_register_offset): Delete array.
1142
1143         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1144         (REGISTER_RAW_SIZE): Delete macro.
1145         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1146         (REGISTER_BYTE): Delete macro.
1147
1148 2002-08-11  Aidan Skinner <aidan@velvet.net>
1149
1150         * ada-lang.c (ada_lookup_partial_symbol)
1151         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1152         prototype names so that grep ^func works properly.
1153
1154         * ada-lang.c (ada_array_element_type)
1155         (ada_lookup_partial_symbol): Fix typos in parameter list.
1156
1157         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1158         Fix prototype names so that grep ^func works properly.
1159         
1160 2002-08-10  Andrew Cagney  <cagney@redhat.com>
1161             Elena Zannoni  <ezannoni@redhat.com>
1162             Martin M. Hunt  <hunt@redhat.com>
1163
1164         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1165         (build_builtin_type_vec128i): Set the vector bit.
1166         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1167         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1168         (build_builtin_type_vec64): New function.
1169         (build_builtin_type_vec64i): New function.
1170         (build_gdbtypes): Initialize builtin_type_vec64 and
1171         builtin_type_vec64i.
1172
1173 2002-08-09  Andrew Cagney  <cagney@redhat.com>
1174
1175         * regcache.c (regcache_dump): Compare the register offset
1176         with REGISTER_BYTE.
1177         * arch-utils.c (generic_register_byte): New function.
1178         * arch-utils.h (generic_register_byte): Declare.
1179         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1180         * gdbarch.h, gdbarch.c: Regenerate.
1181
1182 2002-08-09  Andrew Cagney  <cagney@redhat.com>
1183
1184         * regcache.c: Include "gdbcmd.h"
1185         (_initialize_regcache): Add commands "maintenance print
1186         registers", "maintenance print raw-registers" and "maintenance
1187         print cooked-registers".
1188         (enum regcache_dump_what): Define.
1189         (dump_endian_bytes): New function.
1190         (regcache_dump): New function.
1191         (regcache_print): New function.
1192         (maintenance_print_registers): New function.
1193         (maintenance_print_raw_registers): New function.
1194         (maintenance_print_cooked_registers): New function.
1195         * Makefile.in (regcache.o): Update dependencies.
1196
1197 2002-08-09  Michael Snyder  <msnyder@redhat.com>
1198
1199         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1200         (mips_push_arguments): Correct some comments.  Use paddr_nz
1201         for printing addresses in debug output.  Replace static
1202         allocation using MAX_REGISTER_RAW_SIZE with alloca.
1203         (mips_n32n64_push_arguments): New function, cloned from
1204         mips_push_arguments and tuned for the n32/n64 ABI.
1205         (mips_push_register): Buffer needs dynamic allocation.
1206         (mips_print_register): Ditto.
1207         (do_gp_register_row): Ditto.
1208         (mips_store_return_value): Ditto.
1209         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1210
1211 2002-08-09  Don Howard  <dhoward@redhat.com>
1212
1213         * memattr.c (mem_info_command): Print special case of upper bound
1214         as max CORE_ADDR + 1.
1215
1216 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1217
1218         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
1219         returns structs by ref if they're too big to fit in two registers.
1220
1221 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1222
1223         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1224         saved regs value.
1225         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1226         mips_find_saved_regs().
1227         (mips_pop_frame): Likewise.
1228
1229 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1230
1231         * blockframe.c (frame_saved_regs_register_unwind): Revise
1232         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1233         frames are in use.
1234
1235 2002-08-09  Grace Sainsbury  <graces@redhat.com>
1236         
1237         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1238         T-packets; the 'a' is not taken as a register number.
1239         (remote_check_watch_resources, remote_stopped_by_watchpoint)
1240         (remote_stopped_data_address): New functions; add to target
1241         vector.
1242         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1243         prototypes to match other implementations of this
1244         function. replace integer argument with pointer -- the length
1245         field in the Z-packet is the length of what is pointed to or 1 if
1246         pointer is null. Add to target vector.
1247         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1248         target vector.
1249
1250         From Mark Salter:
1251         * remote.c (remote_wait): Add support to extract optional
1252         watchpoint information from T-packet. Ignore unrecognized
1253         optional info in T-packet.
1254         (remote_async_wait): Ditto.
1255
1256 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
1257
1258         * cli/cli-dump.c: Change fopen modes to use binary open modes
1259         as defined in include/fopen-bin.h throughout.
1260
1261 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1262
1263         * mips-tdep.c: Minor whitespace and indentation clean-ups.
1264
1265 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1266
1267         * doublest.c (store_floating): Avoid floatformat_from_doublest()
1268         assertion failure by returning early after a warning.
1269
1270 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1271
1272         * mips-tdep.c (mips_find_saved_regs): Make static.
1273         (mips_frame_init_saved_regs): New function.
1274         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1275         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1276         (mips_find_saved_regs): Delete declaration.
1277
1278 2002-08-08  Grace Sainsbury  <graces@redhat.com>
1279
1280         * remote.c (remote_wait, remote_async_wait): Change
1281         thread_num from int to ULONGEST.
1282         (unpack_varlen_hex): Change result parameter from
1283         int * to ULONGEST *.
1284
1285 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
1286
1287         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1288         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1289         powerpc*-*-*.
1290         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1291
1292 2002-08-08  Andrew Cagney  <cagney@redhat.com>
1293
1294         * gcore.c (override_derive_stack_segment): Delete variable.
1295         (preempt_derive_stack_segment): Delete function.
1296         (derive_stack_segment): Delete function.
1297         (default_derive_stack_segment): Renamed to derive_stack_segment.
1298         (override_derive_heap_segment): Delete variable.
1299         (preempt_derive_heap_segment): Delete function.
1300         (derive_heap_segment): Delete function.
1301         (default_derive_heap_segment): Rename to derive_heap_segment.
1302
1303 2002-08-06  Michael Snyder  <msnyder@redhat.com>
1304
1305         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1306         * mips-tdep.c (mips_EABI_use_struct_convention, 
1307         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1308         New functions.  (mips_use_struct_convention): Delete.
1309         (mips_gdbarch_init): set use_gdbarch_convention.
1310
1311 2002-08-06  Michael Snyder  <msnyder@redhat.com>
1312
1313         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1314         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
1315         mips_o32_reg_struct_has_addr): New functions.
1316         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1317
1318 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
1319
1320         * regcache.c (pseudo_register): Delete function.
1321         (fetch_register): Delete function.
1322         (store_register): Delete function.
1323         (regcache_raw_read, legacy_read_register_gen): Use
1324         target_fetch_registers instead of fetch_register.
1325         (legacy_write_register_gen, regcache_raw_write): Use
1326         target_store_register instead of store_register.
1327         (write_register_bytes): Ditto.
1328
1329         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1330         (STORE_PSEUDO_REGISTER): Delete.
1331         * gdbarch.h, gdbarch.c: Regenerate.
1332
1333 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
1334
1335         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1336         write dump file binary.
1337
1338 2002-08-05  Michael Snyder  <msnyder@redhat.com>
1339
1340         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
1341         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
1342         (mips_gdbarch_init): Set N32 target to be mips64.
1343
1344 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
1345
1346         * frame.c (find_saved_register): Break out of loop once saved
1347         register address is found.  Don't mention sparc in loop comment
1348         anymore.
1349
1350 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
1351
1352         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1353         mips_default_saved_regsize to 8.
1354
1355 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
1356
1357         * gcore.c: Do not include <sys/procfs.h>.
1358         * Makefile.in (gcore.o): Update dependencies.
1359
1360 2002-08-06  Andrew Cagney  <cagney@redhat.com>
1361
1362         * configure.tgt: Make arc-*-* obsolete.
1363         * NEWS: Mention that arc-*-* has been identifed as obsolete.
1364         * MAINTAINERS: Make arc-elf obsolete.
1365         * arc-tdep.c: Make file obsolete.
1366         * config/arc/arc.mt: Ditto.
1367         * config/arc/tm-arc.h: Ditto.
1368
1369 2002-08-05  Theodore A. Roth  <troth@verinet.com>
1370
1371         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1372
1373 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
1374
1375         * mcore-tdep.c (mcore_gdbarch_init): Use
1376         generic_unwind_get_saved_register instead of
1377         generic_get_saved_register.
1378         * v850-tdep.c (v850_gdbarch_init): Ditto.
1379         * frv-tdep.c (frv_gdbarch_init): Ditto.
1380         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1381         * s390-tdep.c (s390_gdbarch_init): Ditto.
1382         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1383         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1384         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1385
1386 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
1387
1388         * objfiles.h: Add missing #include "symfile.h"
1389
1390         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1391
1392 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
1393
1394         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1395         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1396         of FIELD_BITSIZE.
1397
1398 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
1399
1400         * NEWS: Cleanup and nitpick.
1401
1402 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
1403
1404         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
1405
1406 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
1407
1408         * Makefile.in (gdbtk-bp.o): Update dependencies.
1409         (gdbtk-register.o): Ditto.
1410         (gdbtk-varobj.o): Ditto.
1411
1412 2002-08-03  Andrew Cagney  <cagney@redhat.com>
1413
1414         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1415         m68hc11_fetch_pseudo_register.
1416         (m68hc11_pseudo_register_write): Replace
1417         m68hc11_store_pseudo_register.
1418         (m68hc11_gdbarch_init): Update.
1419
1420 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
1421
1422         * gdbarch.sh: Include "gdb_string.h".
1423         * gdbarch.c: Regenerate.
1424
1425         * regcache.c: Include "gdb_string.h".
1426         * ax-general.c: Ditto.
1427         * varobj.c: Ditto.
1428         * std-regs.c: Ditto.
1429         * fbsd-proc.c: Ditto.
1430         * thread.c: Ditto.
1431
1432         * Makefile.in (regcache.o): Update dependencies.
1433         (thread.o, gdbarch.o): Ditto.
1434         (ax-general.o, gdbarch.o): Ditto.
1435         (varobj.o, std-regs.o): Ditto.
1436         (fbsd-proc.o): Specify dependencies.
1437
1438 2002-08-02  Andrew Cagney  <cagney@redhat.com>
1439
1440         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1441         regnum.
1442         (regcache_cooked_write): Ditto.
1443
1444 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
1445
1446         * regcache.c (regcache_cooked_read): New function.
1447         (regcache_cooked_write): New function.
1448         (read_register_gen): Rewrite using regcache_cooked_read.
1449         (write_register_gen): Rewrite using regcache_cooked_write.
1450
1451         * regcache.h (regcache_cooked_read, regcache_cooked_write):
1452         Declare.
1453
1454 2002-08-02  Andrew Cagney  <cagney@redhat.com>
1455
1456         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1457         Replace the architecture methods register_read and register_write.
1458         * gdbarch.h, gdbarch.c: Regenerate.
1459         * regcache.c (init_regcache_descr): Update.
1460         (read_register_gen): Update.
1461         (write_register_gen): Update.
1462         (supply_register): Update comment.
1463
1464         * sh-tdep.c (sh_gdbarch_init): Update.
1465         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1466         `regcache' and `gdbarch' parameters.  Make `buffer' a void
1467         pointer.  Update code.
1468         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1469         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
1470         void pointer.  Update code.
1471         (sh64_register_write): Delete.
1472         (sh4_register_read): Delete.
1473         (sh64_register_read): Delete.
1474         (sh4_register_write): Delete.
1475         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1476         void pointer, `to' parameter a void pointer.
1477         (sh_sh64_register_convert_to_raw): Ditto.
1478
1479 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1480
1481         * mips-tdep.c (mips_register_virtual_type): Use architecture
1482         invariant return values.
1483
1484 2002-08-01  Andrew Cagney  <cagney@redhat.com>
1485
1486         * linux-proc.c: Include "gdb_string.h".
1487         * Makefile.in (linux-proc.o): Update dependency list.
1488
1489 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1490
1491         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
1492         comment.
1493
1494 2002-08-01  Grace Sainsbury  <graces@redhat.com>
1495
1496         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1497         to_insert_watchpoint, to_remove_watchpoint,
1498         to_stopped_by_watchpoint, to_stopped_data_address,
1499         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1500         target vecctor. Define their corresponding macros so they call
1501         them.
1502         
1503         * target.c: Add default and debug versions of for
1504         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1505         to_insert_watchpoint, to_remove_watchpoint,
1506         to_stopped_by_watchpoint, to_stopped_data_address,
1507         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1508
1509 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1510
1511         * mips-tdep.c (mips_register_virtual_type): New function.
1512         (mips_gdbarch_init): Register mips_register_virtual_type()
1513         with gdbarch machinery.
1514         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1515         this file instead of tm-bigmips.h.
1516         (MIPS_REGSIZE): Delete this macro.
1517         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
1518         multiarch version in mips-tdep.c will be found.
1519
1520 2002-08-01  Andrew Cagney  <cagney@redhat.com>
1521
1522         * NEWS: Menion that CHILL has been made obsolete.
1523
1524         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1525         * stabsread.c (read_range_type): Ditto.
1526         * gdbtypes.h: Ditto.
1527         * language.c (binop_type_check): Ditto.
1528         (binop_result_type): Ditto.
1529         (integral_type): Ditto.
1530         (character_type): Ditto.
1531         (string_type): Ditto.
1532         (boolean_type): Ditto.
1533         (structured_type): Ditto.
1534         (lang_bool_type): Ditto.
1535         (binop_type_check): Ditto.
1536         * language.h (_LANG_chill): Ditto.
1537         * dwarfread.c (set_cu_language): Ditto.
1538         * dwarfread.c (CHILL_PRODUCER): Ditto.
1539         * dwarfread.c (handle_producer): Ditto.
1540         * expression.h (enum exp_opcode): Ditto.
1541         * eval.c: Ditto for comments.
1542         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1543         * expprint.c (print_subexp): Ditto.
1544         (print_subexp): Ditto.
1545         * valops.c (value_cast): Ditto.
1546         (search_struct_field): Ditto.
1547         * value.h (COERCE_VARYING_ARRAY): Ditto.
1548         * symfile.c (init_filename_language_table): Ditto.
1549         (add_psymbol_with_dem_name_to_list): Ditto.
1550         * valarith.c (value_binop): Ditto.
1551         (value_neg): Ditto.
1552         * valops.c (value_slice): Ditto.
1553         * symtab.h (union language_specific): Ditto.
1554         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1555         (SYMBOL_DEMANGLED_NAME): Ditto.
1556         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1557         * defs.h (enum language): Ditto.
1558         * symtab.c (got_symtab): Ditto.
1559         * utils.c (fprintf_symbol_filtered): Ditto.
1560
1561         * ch-typeprint.c: Make file obsolete.
1562         * ch-valprint.c: Make file obsolete.
1563         * ch-lang.h: Make file obsolete.
1564         * ch-exp.c: Make file obsolete.
1565         * ch-lang.c: Make file obsolete.
1566
1567         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1568         CHILL_LIB.
1569         (TARGET_FLAGS_TO_PASS): Ditto.
1570         (CHILLFLAGS): Obsolete.
1571         (CHILL): Obsolete.
1572         (CHILL_FOR_TARGET): Obsolete.
1573         (CHILL_LIB): Obsolete.
1574         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1575         ch-valprint.c.
1576         (HFILES_NO_SRCDIR): Remove ch-lang.h.
1577         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1578         ch-lang.o.
1579         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1580         targets.
1581
1582 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
1583
1584         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1585         This does not change anything at the moment, but will be helpful
1586         later when full Ada support is integrated.
1587
1588 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1589
1590         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1591         help message.
1592
1593 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1594
1595         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1596         and save it in a local variable.  Use variable in later test.
1597
1598 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1599
1600         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1601         test.  (Thanks to Daniel Jacobowitz.)
1602         
1603 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1604
1605         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1606         (mips_abi_strings): Add "n64".
1607         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
1608
1609 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1610
1611         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1612         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1613
1614 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1615
1616         * utils.c (host_pointer_to_address, address_to_host_pointer):
1617         Use gdb_assert() instead of explicit call to internal_error().
1618
1619 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
1620
1621         * Makefile.in (rs6000-nat.o): Update dependencies.
1622
1623         From Nicholas Duffek:
1624         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1625         (aix-thread.o): New rule.
1626         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1627         * config/powerpc/aix432.mh: New file.
1628
1629 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
1630
1631         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1632         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1633         (fetch_core_registers, ppc_linux_supply_gregset)
1634         (ppc_linux_supply_fpregset): New functions.
1635         (ppc_linux_regset_core_fns): New.
1636         (_initialize_ppc_linux_tdep): Call add_core_fns.
1637         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1638         and ppc_linux_supply_gregset.
1639         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1640         (supply_fpregset): Call ppc_linux_supply_fpregset.
1641         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1642         corelow.o.
1643         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1644
1645 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
1646
1647         * symtab.c (lookup_symbol): Demangle before lowercasing.
1648
1649 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
1650
1651         * symtab.h: Replace #include "gdb_obstack.h" with opaque
1652         declaration.
1653         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1654         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1655         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1656         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1657         "gdb_string.h".
1658         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1659         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1660         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1661         (avr-tdep.o, mon960-rom.o): Ditto.
1662         (aout_stabs_gnu_h): Define.
1663         (symtab_h): Remove $(gdb_obstack_h).
1664
1665 2002-07-30  Jim Blandy  <jimb@redhat.com>
1666
1667         Patch from David Carlton <carlton@math.stanford.edu>:
1668         * gdbinit.in: Move the `dir' commands that add GDB's own source
1669         directory to the search path to the end, so that the `gdb' source
1670         directory will be searched first.
1671
1672 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
1673
1674         * gdb_obstack.h: New file.
1675         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1676         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1677         * objfiles.h: Include "gdb_obstack.h".
1678         * Makefile.in (gdb_obstack_h): Define.
1679         (symtab_h): Add $(gdb_obstack_h).
1680         (objfiles_h): Add $(gdb_obstack_h).
1681         
1682         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1683         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1684         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1685         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1686         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1687         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1688         * symfile.c, coffread.c, c-typeprint.c: Ditto.
1689         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1690
1691         * Makefile.in (bcache.o): Update dependencies.
1692         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1693         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1694         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1695         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1696         (stabsread.o, symfile.o, symmisc.o): Ditto.
1697         (symtab.o, typeprint.o, macroexp.o): Ditto.
1698         (macrotab.o, mdebugread.o): Ditto.
1699         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1700         (coff_ecoff_h, aout_aout64_h): Define.
1701         (aout_stabs_gnu_h, libaout_h): Define.
1702
1703 2002-07-29  Andrew Cagney  <cagney@redhat.com>
1704
1705         * regcache.c (struct regcache_descr): Rename nr_registers to
1706         nr_cooked_registers.  Revise comments describing the structure
1707         member fields.
1708         (init_regcache_descr): Update.
1709         (init_legacy_regcache_descr): Update.
1710         (read_register_gen, write_register_gen): When a cooked register in
1711         the raw register range, directly access the value from the raw
1712         register cache.
1713
1714 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
1715
1716         * z8k-tdep.c: Do not include "obstack.h".
1717         * h8300-tdep.c, h8500-tdep.c: Ditto.
1718         * m68hc11-tdep.c, sh-tdep.c: Ditto.
1719         * valprint.c, v850-tdep.c: Ditto.
1720         * d10v-tdep.c, mn10300-tdep.c: Ditto.
1721         * mn10200-tdep.c: Ditto.
1722
1723         * Makefile.in (z8k-tdep.o): Update dependencies.
1724         (m68hc11-tdep.o, valprint.o): Ditto.
1725         (v850-tdep.o, d10v-tdep.o): Ditto.
1726         (mn10300-tdep.o, sparc-tdep.o): Ditto.
1727         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1728         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1729         (sh_opc_h, gdb_sim_sh_h): Define.
1730         (elf_sh_h, elf_bfd_h): Define.
1731         (opcode_m68hc11_h): Define.
1732         (OPCODES_SRC, OPCODES_DIR): define.
1733         (OPCODES): Use $(OPCODES_DIR).
1734         (gdb_sim_d10v_h): Rename sim_d10v_h.
1735         (gdb_sim_arm_h): Rename sim_arm_h.
1736
1737 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1738
1739         * utils.c (host_pointer_to_address, address_to_host_pointer):
1740         Change internal_error() message to indicate function responsible
1741         for the error.
1742
1743 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1744
1745         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1746         calls to local_hex_string_custom().
1747
1748 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1749
1750         * irix5-nat.c: Move IRIX shared library support from here...
1751         * solib-irix.c: ...to here.  Revised substantially to work with
1752         generic solib framework.
1753
1754         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1755         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1756         * mips-irix-tdep.c: New file.
1757
1758         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1759         (mips-irix-tdep.o, solib-irix.o): New rules.
1760         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1761         solib-irix.o.
1762         * config/mips/irix6.mt (TDEPFILES): Likewise.
1763         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1764
1765 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1766
1767         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1768         disabled (via ``#if 0'') includes.
1769
1770 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1771
1772         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1773         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1774         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1775         Add support for the fpscr register.
1776         * rs6000-nat.c (regmap, fetch_inferior_registers)
1777         (store_inferior_registers, fetch_core_registers): Likewise.
1778
1779 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1780
1781         * rs6000-nat.c (language.h): Include.
1782         (special_regs): Delete this array.
1783         (regmap): New function.
1784         (fetch_register, store_register):  Use regmap() to map gdb
1785         register numbers to ptrace register numbers.  Also, use
1786         outputs from regmap() to make decisions regarding type of
1787         ptrace() call to make.  In particular, don't compare against
1788         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1789         (fetch_inferior_registers, store_inferior_registers): Where
1790         possible, obtain register numbers from tdep struct.  Don't
1791         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1792         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1793         (LAST_UISA_SP_REGNUM): Delete.
1794         
1795 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
1796
1797         * rs6000-nat.c (ppc-tdep.h): Include.
1798         (fetch_registers, store_register, fetch_core_registers): Don't
1799         access registers[] directly.  Instead, use supply_register() or
1800         regcache_collect() as appropriate.
1801         (find_toc_address): Format hex address with local_hex_string().
1802
1803 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
1804
1805         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1806         bfd/elf32-frv.c.
1807
1808 2002-07-24  Tom Tromey  <tromey@redhat.com>
1809
1810         * jv-exp.y: Marked all strings with _().
1811         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1812         internal_error.
1813         (MethodInvocation, CastExpression, parse_number, yyerror,
1814         java_type_from_name, push_expression_name, yylex): Typo fixes.
1815
1816 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
1817
1818         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1819         (tee_file_flush, tee_file_write, tee_file_fputs)
1820         (tee_file_isatty): New.
1821         * ui-file.h (tee_file_new): Add prototype.
1822
1823 2002-07-24  Aidan Skinner <aidan@velvet.net>
1824
1825         * ada-lang.c: Change k&r style function definitions to prototyped
1826         form.
1827         * ada-typeprint.c: Change k&r style function definitions to prototyped
1828         form.
1829         * ada-valprint.c: Change k&r style function definitions to prototyped
1830         form.
1831         
1832 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1833
1834         * README: Remove reference to remote-bug.
1835         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1836         remote-bug.c.
1837         (m88k-nat.o): Delete rule.
1838         (m88k-tdep.o): Delete rule.
1839         (remote-bug.o): Delete rule.
1840         * MAINTAINERS: Mark as obsolete.
1841         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1842         * m88k-tdep.c: Make file obsolete.
1843         * config/m88k/m88k.mh: Ditto.
1844         * config/m88k/delta88v4.mh: Ditto.
1845         * config/m88k/delta88v4.mt: Ditto.
1846         * config/m88k/delta88.mt: Ditto.
1847         * config/m88k/delta88.mh: Ditto.
1848         * remote-bug.c: Ditto.
1849         * config/m88k/tm-delta88.h: Ditto.
1850         * config/m88k/nm-delta88v4.h: Ditto.
1851         * config/m88k/xm-delta88.h: Ditto.
1852         * config/m88k/xm-dgux.h: Ditto.
1853         * config/m88k/tm-m88k.h: Ditto.
1854         * config/m88k/nm-m88k.h: Ditto.
1855         * config/m88k/tm-delta88v4.h: Ditto.
1856         * m88k-nat.c: Ditto.
1857         * cxux-nat.c: Ditto.
1858         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1859         and m88*-*-* obsolete.
1860         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1861         m88*-*-* obsolete.
1862
1863 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1864
1865         * findvar.c (extract_unsigned_integer): Make `addr' parameter
1866         constant.  Same for local pointer variables.
1867         (extract_signed_integer): Ditto.
1868         * defs.h (extract_unsigned_integer): Update.
1869         (extract_signed_integer): Update.
1870
1871 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1872
1873         * regcache.c (regcache_raw_write): Change buf parameter to a
1874         constant void pointer.
1875         (regcache_raw_read): Change buf parameter to a void pointer.
1876         (legacy_write_register_gen): Change myaddr parameter a constant
1877         void pointer.
1878         (supply_register): Change val parameter to a const void pointer.
1879         * regcache.h (regcache_raw_write): Update declaration.
1880         (regcache_raw_read): Update declaration.
1881         (supply_register): Update declaration.
1882
1883 2002-07-24  Tom Tromey  <tromey@redhat.com>
1884
1885         * defs.h (gdb_readline_wrapper): Declare.
1886         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1887         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1888         * top.c (gdb_readline_wrapper): New function.
1889         (command_line_input): Use it.
1890
1891 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1892
1893         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1894         regcache_read and regcache_write.
1895         (regcache_raw_read_as_address): Replace regcache_read_as_address.
1896         * regcache.c: Update.
1897         * sh-tdep.c (sh64_push_arguments): Update comment.
1898         (sh_pseudo_register_read): Update.
1899         (sh_pseudo_register_write): Update.
1900         (sh4_register_read): Update.
1901         (sh4_register_write): Update.
1902         (sh64_pseudo_register_read): Update.
1903         (sh64_pseudo_register_write): Update.
1904         (sh64_register_read): Update.
1905         (sh64_register_write): Update.
1906         * i386-tdep.c (i386_extract_return_value): Update.
1907         (i386_extract_struct_value_address): Update.
1908         (i386_extract_return_value): Update.
1909         * blockframe.c (generic_read_register_dummy): Update.
1910         (generic_call_dummy_register_unwind): Update
1911         * infrun.c (write_inferior_status_register): Update.
1912
1913 2002-07-23  Jim Blandy  <jimb@redhat.com>
1914
1915         * parser-defs.h (expression_context_pc): Make this extern.
1916         (Thanks to Michael Snyder.)
1917
1918 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
1919
1920         GDB 5.2.1 released from 5.2 branch.
1921         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1922         * README: Update to mention 5.2.1.
1923
1924 2002-07-23  Mark Salter  <msalter@redhat.com>
1925
1926         * remote.c (remote_read_bytes): Fix check for error.
1927
1928 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1929
1930         * aix-thread.c (language.h): Include.
1931         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1932         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1933         Print newlines at end of debug messages.
1934         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1935         (pdc_write_data): Use local_hex_string() instead of %llx formats.
1936
1937 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1938
1939         * aix-thread.c (ppc-tdep.h): Include.
1940         (special_register_p): New function.
1941         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1942         (store_regs_user_thread): Use register number information from
1943         gdbarch_tdep struct instead of hardcoded offsets relative to
1944         FIRST_UISA_SP_REGNUM.
1945         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
1946         special_register_p() instead of using FPLAST_REGNUM and
1947         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1948         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
1949         will be MQ's register number.
1950
1951 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1952
1953         * aix-thread.c (ops): Rename to aix_thread_ops.
1954         (base_ops): Rename to base_target.
1955         (ops_attach): Rename to aix_thread_attach.
1956         (ops_detach): Rename to aix_thread_detach.
1957         (ops_resume): Rename to aix_thread_detach.
1958         (ops_wait):   Rename to aix_thread_wait.
1959         (ops_kill):   Rename to aix_thread_kill.
1960         (init_ops):   Rename to init_aix_thread_ops.
1961         (ops_fetch_register): Rename to aix_thread_fetch_register.
1962         (ops_store_register): Rename to aix_thread_store_register.
1963         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1964         (ops_thread_alive):   Rename to aix_thread_thread_alive.
1965         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1966         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
1967         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1968         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
1969         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1970         (store_regs_lib):  Rename to store_regs_user_thread.
1971         (store_regs_kern): Rename to store_regs_kernel_thread.
1972
1973 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1974
1975         * aix-thread.c (ops_prepare_to_store): Eliminate.
1976         (init_ops): Don't initialize ops.prepare_to_store.
1977         (store_regs_kern): Pre-fetch register buffers from child, 
1978         because some registers may not be in the cache.  Copy
1979         regs from register cache only if they are cached.
1980         (store_regs_lib): Copy regs from register cache only
1981         if they are cached.
1982         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1983         fill_gprs64): Ditto.
1984
1985 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1986
1987         * aix-thread.c (gdb_assert.h): Include.
1988         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1989         register sizes (from register cache) match size of buffer holding
1990         register data.
1991         (fill_sprs32): Change parameter types to match those in the ptrace()
1992         buffer.
1993         (store_regs_lib): Likewise, but for 32-bit temporary variables.
1994         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1995
1996 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1997
1998         * aix-thread.c (supply_sprs64): Cosmetic change.
1999         (supply_sprs32): Cosmetic change.
2000         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2001         (fill_sprs64): Use regcache_collect instead of read_register.
2002         (store_regs_lib): Use regcache_collect instead of 
2003         read_register.  Use fill_sprs32 instead of fill_sprs64,
2004         if debugging a 32-bit architecture.
2005         (store_regs_kern): Use fill_gprs64 etc. to pull the values
2006         out of the register cache, instead of passing a pointer into
2007         the register cache directly to ptrace.  Use regcache_collect
2008         insteaad of read_register.
2009         (ops_prepare_to_store): Use target_read_registers instead
2010         of read_register_bytes.
2011
2012 2002-07-20  Aidan Skinner <aidan@velvet.net>
2013
2014         * MAINTAINERS: Add self under write after approval. 
2015                 
2016 2002-07-20  Aidan Skinner <aidan@velvet.net>
2017
2018         * ada-tasks.c: Change k&r style function definitions to prototyped
2019         form.
2020                 
2021 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
2022
2023         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2024         * x86-64-tdep.c: Include "objfiles.h".
2025         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2026         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2027
2028 2002-07-17  Michal Ludvig  <michal@suse.cz>
2029
2030         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2031         (update_context): Initialise cfa variable.
2032
2033 2002-07-17  Michael Snyder  <msnyder@redhat.com>
2034
2035         * aix-thread.c: Shorten some long lines.  
2036         Bring comments into line with code spec.
2037
2038 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
2039
2040         * infrun.c: Re-indent using gdb_indent.sh.
2041
2042 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
2043
2044         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2045         Leave the indentation temporarily untouched, to minimize the diffs.
2046
2047 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
2048
2049         * stabsread.c: Make os9k sections of the code obsolete,
2050         for real this time.
2051         * stabsread.h: Make os9k sections of the code obsolete.
2052
2053 2002-07-18  Michal Ludvig <mludvig@suse.cz>
2054
2055         * linux-low.c (regsets_store_inferior_registers): Add free()
2056         at the end of a loop to prevent memory leak.
2057         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2058         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2059         * config/sparc/tm-sp64linux.h: Make the rest of #endif
2060         line a comment.
2061         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2062
2063 2002-07-17  Jim Blandy  <jimb@redhat.com>
2064
2065         * macrocmd.c (info_macro_command): Remove newline from error
2066         message.
2067
2068 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
2069
2070         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2071         (sh_gdbarch_init): Use it for sh-dsp.
2072
2073 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
2074
2075         * dwarf2read.c (read_initial_length): Handle older, non-standard,
2076         64-bit DWARF2 format.
2077
2078 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
2079
2080         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2081         <sys/proc.h> when not available.
2082
2083 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
2084
2085         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2086         * stabsread.c: Make os9k sections of the code obsolete.
2087         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2088         * config/i386/i386os9k.mt: Make file obsolete.
2089         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2090         (COMMON_OBS): Remove os9kread.o
2091         (SFILES): Remove os9kread.c.
2092         (os9kread.o, remote-os9k.o): Make target obsolete.
2093         * remote-os9k.c: Make file obsolete.
2094         * os9kread.c: Make file obsolete.
2095         * Makefile.in
2096
2097 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
2098
2099         * NEWS: Mention that the FR30 has been made obsolete.
2100         * fr30-tdep.c: Make file obsolete.
2101         * config/fr30/tm-fr30.h: Ditto.
2102         * config/fr30/fr30.mt: Ditto.
2103         * configure.tgt: Make fr30-*-elf obsolete.
2104         * MAINTAINERS: Make fr30-elf obsolete.
2105
2106 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2107
2108         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2109         found is not inside a section.
2110
2111 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2112
2113         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2114         strerror().
2115         (pdc_realloc): Use xrealloc() instead of realloc().
2116
2117 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2118
2119         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2120         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2121         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2122         macros.
2123
2124 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2125
2126         * aix-thread.c (ptrace_check): Eliminate goto.
2127         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
2128         problem.
2129
2130 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2131
2132         * aix-thread.c (gdbcmd.h): Include.
2133         (DEBUG, DBG, DBG2, dbg): Eliminate.
2134         (debug_aix_thread): New static global.
2135         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2136         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2137         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2138         invocations to DBG and DBG2 macros to test against
2139         ``debug_aix_thread'' and call fprintf_unfiltered().
2140         (_initialize_aix_thread): Add new command "set debug aix-thread".
2141
2142 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
2143
2144         From Gerhard Tonn <TON@de.ibm.com>:
2145         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2146         instead of supply_register.
2147
2148 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
2149
2150         * dwarf2cfi.c: Include "gdb_assert.h".
2151         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2152         non-NULL.
2153         (update_context): Do not use __func__.  Add missing ``break''.
2154         (update_context): Do not use __func__.
2155
2156 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
2157
2158         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2159         and its setting.  Set gdbarch instruction printing functions
2160         directly.  For non-rs6000 case use new function
2161         gdb_print_insn_powerpc.
2162         (gdb_print_insn_powerpc): New function.
2163
2164 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
2165
2166         * NEWS: Mention that the d30v has been marked obsolete.
2167         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2168         * configure.tgt: Mark d30v-*-* as obsolete.
2169         * d30v-tdep.c: Mark file as obsolete.
2170         * config/d30v/d30v.mt: Ditto.
2171         * config/d30v/tm-d30v.h: Ditto.
2172
2173 2002-07-13  Aidan Skinner <aidan@velvet.net>
2174
2175         * ada-tasks.c (add_task_entry): replace calls to
2176         malloc() with xmalloc
2177         * ada-tasks.c (init_task_list): replace calls to free with xfree()
2178         
2179         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2180         ada_finish_decode_line_1, all_sals_for_line
2181         ada_breakpoint_rewrite): replace calls to free() with xfree()
2182                 
2183 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2184
2185         From Nicholas Duffek (with minor changes by Martin Hunt, 
2186         Louis Hamilton, and Kevin Buettner):
2187         * aix-thread.c: New file.
2188
2189 2002-07-12  Petr Sorfa <petrs@caldera.com>
2190
2191         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
2192         complaint for invalid attribute class or form.
2193         (read_func_scope): DW_AT_frame_base
2194         better handling of DW_AT_block*.
2195         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2196         better handling of DW_AT_block*.
2197         (read_common_block): DW_AT_location
2198         better handling of DW_AT_block*.
2199         (read_partial_die): DW_AT_location better handling
2200         of DW_AT_block*.
2201         (new_symbol): DW_AT_external better handling of
2202         DW_AT_block*. Proper initialization of variable
2203         "addr".
2204         (attr_form_is_block): New function that returns true
2205         if the attribute's form is of DW_FORM_block*.
2206
2207 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2208
2209         * valops.c (find_method_list): Remove comment about
2210         removed STATIC_MEMFUNCP argument.
2211         (value_find_oload_method_list): Likewise.
2212
2213 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2214
2215         From Nicholas Duffek:
2216         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2217         target_new_objfile_hook.
2218
2219 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2220
2221         From Nicholas Duffek:
2222         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2223         csect.
2224
2225 2002-07-12  Andrew Cagney  <cagney@redhat.com>
2226
2227         * MAINTAINERS: Mention --enable-sim-build-warnings.
2228         (m68hc11-elf): Disable sim build warnings.
2229         (m32r-elf): Mark as broken obsolete candidate.
2230         (x86_64-linux-gnu): Mark as buildable with -Werror.
2231         (arm-elf): Change -w to ``,'' which enables warnings but not
2232         -Werror.
2233
2234 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
2235
2236         * bcache.h: Update copyright.
2237         (struct bstring, struct bcache): Move definition to "bcache.c".
2238         Replaced by opaque declaration.
2239         (bcache_xfree): Replace free_bcache.
2240         (bcache_xmalloc, bcache_memory_used): Declare.
2241         
2242         * bcache.c: Update copyright.
2243         (struct bstring, struct bcache): Moved to here from "bcache.h".
2244         Update comments.
2245         (bcache_xmalloc, bcache_memory_used): New functions.
2246         (bcache_xfree): Replace function free_bcache.
2247         
2248         * Makefile.in (objfiles.o): Add $(bcache_h).
2249         (objfiles_h): Remove $(bcache_h).
2250         (symfile.o): Add $(bcache_h).
2251
2252         * symmisc.c: Update copyright.
2253         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2254         (print_objfile_statistics): Use bcache_memory_used.
2255
2256         * symfile.c: Include "bcache.h".
2257         (reread_symbols): Use bcache_xfree.
2258         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2259         (add_psymbol_to_list): Pass psymbol_cache by value.
2260         (add_psymbol_with_dem_name_to_list): Ditto.
2261
2262         * objfiles.h: Update copyright.
2263         (struct bcache): Declare opaque.  Do not include "bcache.h".
2264         (struct objfile): Change psymbol_cache and macro_cache to ``struct
2265         bcache'' pointers.
2266         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2267
2268         * objfiles.c: Include "bcache.h".  Update copyright.
2269         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2270         macro_cache.
2271         (free_objfile): Use bcache_xfree.
2272
2273 2002-07-11  Grace Sainsbury  <graces@redhat.com>
2274
2275         * monitor.c (monitor_fetch_register): Make name a constant.
2276         (monitor_store_register): Same.
2277
2278 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
2279
2280         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2281         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2282         (finish_block) For non-function blocks, hash the symbol table.  For
2283         function blocks, mark the symbol table as unhashed.
2284         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2285         (msymbol_hash_iw): Likewise.
2286         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2287         value.
2288         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2289         (lookup_minimal_symbol): Likewise for both.
2290         * symtab.h (struct block): Add `hashtable' flag.  Comment the
2291         hashtable.
2292         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2293         (ALL_BLOCK_SYMBOLS): Update.
2294         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2295         (struct symbol): Add `hash_next' pointer.
2296         * symtab.c (lookup_block_symbol): Search using the hash table when
2297         possible.
2298         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2299         (search_symbols, find_addr_symbol): Likewise.
2300
2301         * dstread.c (process_dst_block): Clear hashtable bit for new block.
2302         (read_dst_symtab): Likewise.
2303         * jv-lang.c (get_java_class_symtab): Likewise.
2304         * mdebugread.c: Include "gdb_assert.h".
2305         (shrink_block): Assert that the block being modified is not hashed.
2306         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2307         * symmisc.c (free_symtab_block): Walk the hash table when freeing
2308         symbols.
2309         (dump_symtab): Recognize hashed blocks.
2310         * printcmd.c (print_frame_args):  Assert that function blocks do not
2311         have hashed symbol tables.
2312         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2313         (fill_in_ada_prototype, debug_print_block): Likewise.
2314         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
2315
2316 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
2317
2318         * stack.c (print_frame): Use result of frame_address_in_block()
2319         instead of fi->pc when evaluating symbols.
2320         (backtrace_command_1): Ditto.
2321
2322 2002-07-11  Andrew Cagney  <cagney@redhat.com>
2323
2324         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2325         Make static.
2326
2327         * arm-tdep.c (arm_register_name): Make return type constant.
2328
2329 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
2330
2331         * win32-nat.c (has_detach_ability): Convert to strict ISO C
2332         prototype.
2333         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2334         * s390-tdep.c (s390_fp_regnum): Ditto.
2335         (s390_read_fp): Ditto.
2336         (s390_pop_frame): Ditto.
2337         (_initialize_s390_tdep): Ditto.
2338         * remote.c (get_remote_state): Ditto.
2339         * procfs.c (mappingflags): Ditto.
2340         * memattr.c (_initialize_mem): Ditto.
2341         * mcore-tdep.c (mcore_pop_frame): Ditto.
2342         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2343         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2344         * language.c (set_case_str): Ditto.
2345         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2346         * frv-tdep.c (new_variant): Ditto.
2347         (frv_stopped_data_address): Ditto.
2348         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2349         (context_alloc): Ditto.
2350         (frame_state_alloc): Ditto.
2351         (unwind_tmp_obstack_init): Ditto.
2352         (unwind_tmp_obstack_free): Ditto.
2353         (cfi_read_fp): Ditto.
2354         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2355         (cris_pop_frame): Ditto.
2356         * c-lang.c (scanning_macro_expansion): Ditto.
2357         (finished_macro_expansion): Ditto.
2358         (c_preprocess_and_parse): Ditto.
2359         * gdbarch.sh: Ditto.
2360         * gdbarch.h, gdbarch.c: Regenerate.
2361         * config/mn10200/tm-mn10200.h: Adjust indentation.
2362         * target.c: Adjust indentation.
2363         * symtab.h: Adjust indentation.
2364         * stabsread.h: Adjust indentation.
2365         * remote-es.c: Adjust indentation.
2366         * os9kread.c: Adjust indentation.
2367
2368 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
2369         
2370         * wince.c (_initialize_wince): Rename _initialize_inftarg.
2371         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2372
2373 2002-07-10  Grace Sainsbury  <graces@redhat.com>
2374         
2375         * NEWS: Mention m68k, mcore multi-arching.  
2376         * MAINTAINERS: Change status of m68k, mcore to reflect
2377         multi-arching.
2378
2379 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
2380
2381         * valops.c (find_overload_match): Free oload_syms.
2382
2383 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
2384
2385         Define HAVE_SYS_PROC_H if sys/proc.h exists
2386         * configure.in: Add check for sys/proc.h
2387         * config.in: Regenerate.
2388         * configure: Regenerate.
2389
2390 2002-07-09  Grace Sainsbury  <graces@redhat.com>
2391
2392         * config/m68k/tm-m68k.h: Remove macros wrapped in 
2393         #if !GDB_MULTI_ARCH. 
2394
2395 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
2396
2397         * config.in, configure: Regenerate.
2398
2399 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
2400
2401         * dwarf2cfi.c: Include "gcore.h".
2402         (execute_stack_op): Fix implementation of the
2403         DW_OP_deref and DW_OP_deref_size operators by letting do their
2404         lookup in the target.
2405
2406 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
2407
2408         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2409         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2410         tdep->sc_sp_offset.
2411
2412 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
2413
2414         Fix PR gdb/595, gdb/602
2415         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2416         Don't call value_cast, just read the vtable pointer; update comments
2417         to match.
2418
2419 2002-07-05  Grace Sainsbury  <graces@redhat.com>
2420
2421         * config/mcore/tm-mcore.h: Remove file.
2422         * config/mcore/mcore.mt: Remove definition of TM_FILE
2423         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2424
2425 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
2426
2427         * i386bsd-tdep.c: Include "gdb_string.h".
2428
2429 2002-07-04  Grace Sainsbury  <graces@redhat.com>
2430
2431         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2432         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2433         mcore-tdep.
2434         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2435         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2436         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2437         (RETVAL_REGNUM): Move macros from tm-mcore.h
2438         (mcore_reg_struct_has_addr): New function.
2439         (mcore_gdbarch_init): Added initializations for the macros removed
2440         from tm-mcore.h.
2441
2442 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2443
2444         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2445         traditonal string branding within the ELF header.
2446
2447 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
2448
2449         * symtab.c (remove_params): New function.
2450         (make_symbol_overload_list): Use it instead of cplus_demangle.
2451         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
2452
2453 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2454
2455         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2456
2457         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2458         New variables.
2459         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2460         and tdep->sigtramp_end.
2461         * i386obsd-nat.c: New file.
2462         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2463
2464         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2465         Don't call get_current_frame().
2466
2467 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
2468
2469         * i386-nat.c (child_post_startup_inferior): New function
2470         calling i386_cleanup_dregs if
2471         I386_USE_GENERIC_WATCHPOINTS is defined.
2472         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2473         conditional to acknowledge that i386-nat.c has its
2474         own child_post_startup_inferior function.
2475
2476 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2477
2478         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2479         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2480         instead of MAX_REGISTER_RAW_SIZE.
2481         (i386_extract_return_value, i386_extract_struct_value_address):
2482         Convert to use regcache.
2483         (i386_gdbarch_init): Set max_register_raw_size and
2484         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2485         Set extract_return_value and extract_struct_value_address instead
2486         of their deprecated variants.
2487
2488         Convert i386 target to generic dummy frames.
2489         * i386-tdep.c: Include "symfile.h".
2490         (i386_frameless_signal_p): Consider a function to be frameless if
2491         the pc points at the first instruction of the function.
2492         (i386_frame_chain): Handle (generic) call dummies.
2493         (i386_frame_saved_pc): Likewise.
2494         (i386_frame_init_saved_regs): Remove code dealing with call
2495         dummies on the stack.
2496         (i386_push_dummy_frame): Removed.
2497         (i386_call_dummy_words): Removed.
2498         (i386_fix_call_dummy): Removed.
2499         (i386_push_return_address): New function.
2500         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
2501         parameter, and don't call get_current_frame.
2502         (i386_pop_frame): New function.
2503         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2504         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2505         entry_point_address, set call_dummy_breakpoint_offset to 0, set
2506         call_dummy_length to 0, set call_dummy_words to NULL, set
2507         sizeof_call_dummy_words to 0, set fix_call_dummy to
2508         generic_fix_call_dummy, set pc_in_call_dummy to
2509         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2510         generic_push_dummy_frame, set push_return_address to
2511         i386_push_return_address and set frame_chain_valid to
2512         generic_file_frame_chain_valid.
2513
2514 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2515
2516         * gdbarch.sh (struct regcache): Add opaque declaration.
2517         (EXTRACT_RETURN_VALUE): New architecture method.
2518         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2519         * gdbarch.h, gdbarch.c: Regenerate.
2520         * arch-utils.c (legacy_extract_return_value): New function.
2521         * arch-utils.h (legacy_extract_return_value): Declare.
2522         * values.c (value_being_returned): Re-enable code handling
2523         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
2524         deprecated_grub_regcache_for_registers call to block handling
2525         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2526         (EXTRACT_RETURN_VALUE): Do not define.
2527
2528 2002-07-03  Grace Sainsbury  <graces@redhat.com>
2529
2530         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2531         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2532         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2533         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2534         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2535         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2536         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2537         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2538         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2539         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2540         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2541         argument so the function fits the prototype in the architecture
2542         vector.
2543         (mcore_pop_frame): Remove argument so the function fits the
2544         prototype. Use get_current_frame instead of the argument.
2545         (mcore_push_arguments): Change type of struct_return so the
2546         function can be used in the architecture vector.
2547         (mcore_store_struct_return): Add.
2548         (mcore_frame_init_saved_regs): Add.
2549         (mcore_gdbarch_init): Add function calls to replace the macros
2550         removed from tm-mcore.h
2551
2552 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2553
2554         * infcmd.c (print_return_value): Remove compatibility code calling
2555         deprecated_grub_regcache_for_registers.
2556         
2557         * values.c: Include "regcache.h".
2558         (value_being_returned): Update.  Use
2559         deprecated_grub_regcache_for_registers to extract the register
2560         buffer address.  
2561         * value.h (value_being_returned): Change ``retbuf'' parameter to a
2562         ``struct regcache''.
2563         * Makefile.in (values.o): Add dependency on $(regcache_h).
2564
2565         * inferior.h (run_stack_dummy): Change type of second parameter to
2566         a ``struct regcache''.
2567         * valops.c (hand_function_call): Change type of retbuf to ``struct
2568         regcache''.  Allocate using regcache_xmalloc, clean using
2569         make_cleanup_regcache_xfree.
2570         * infcmd.c (run_stack_dummy): Update.  Use
2571         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2572
2573         * regcache.c (do_regcache_xfree): New function.
2574         (make_cleanup_regcache_xfree): New function.
2575         * regcache.h (make_cleanup_regcache_xfree): Declare.
2576
2577 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2578
2579         * event-top.c (command_line_handler): Don't read past
2580         beginning of buffer.
2581
2582 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2583         
2584         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
2585         struct frame_id. 
2586         (varobj_create): Store frame_id for root.
2587         (varobj_gen_name): Use xasprintf.
2588         (varobj_update): Save and restore frame using get_frame_id() and
2589         frame_find_by_id().
2590         (create_child): Use xasprintf.
2591         (new_root_variable): Initialize frame_id.
2592         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2593         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2594         to prevent memory leak.
2595
2596 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2597
2598         * valops.c (hand_function_call): Move declaration of retbuf to
2599         start of function, allocate using malloc, add a cleanup but before
2600         the inf_status cleanup, cleanup the buffer.  Rename local variable
2601         old_chain to inf_status_cleanup.
2602
2603 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2604
2605         * top.c (execute_command): Use cmd_func() and cmd_func_p().
2606
2607         * cli/cli-decode.c (cmd_func_p): New function.
2608         (cmd_func): New function.
2609
2610         * command.h: Add cmd_func() and cmd_func_p().   
2611         
2612 2002-07-03  Grace Sainsbury  <graces@redhat.com>
2613
2614         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2615         (REGISTER_SIZE): Remove.
2616         (MAX_REGISTER_RAW_SIZE): Remove.
2617         (REGISTER_VIRTUAL_TYPE): Remove.
2618         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2619         (REGISTER_NAME): Remove.
2620         (USE_GENERIC_DUMMY_FRAMES): Remove.
2621         (CALL_DUMMY): Remove.
2622         (CALL_DUMMY_START_OFFSET): Remove.
2623         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2624         (CALL_DUMMY_LOCATION): Remove.
2625         (FIX_CALL_DUMMY): Remove.
2626         (CALL_DUMMY_ADDRESS): Remove.
2627         (SIZEOF_CALL_DUMMY_WORDS): Remove.
2628         (SAVE_DUMMY_FRAME_TOS): Remove.
2629         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2630         (mcore_register_virtual_type): New function.
2631         (mcore_register_byte): New function.
2632         (mcore_register_size): New function.
2633         (mcore_register_name): New function.
2634         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2635         macros removed from tm-mcore.h.
2636         (mcore_dump_tdep): Add.
2637         (_initialize_mcore_tdep): Add gdbarch_register call.
2638
2639 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
2640
2641         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2642         frameless_look_for_prologue, such that we actually call this
2643         function.
2644
2645 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2646
2647         * frame.h (frame_address_in_block): New function.
2648
2649         * blockframe.c (frame_address_in_block): New function extracted
2650         from get_frame_block().
2651         (get_frame_block): Use frame_address_in_block().
2652         (block_innermost_frame): Use frame_address_in_block() to match
2653         the frame pc address against the block boundaries rather than
2654         the frame pc directly. This prevents a failure when a frame pc
2655         is actually a return-address pointing immediately after the end
2656         of the given block. 
2657
2658 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2659
2660         * MAINTAINERS: Add self under write after approval. 
2661
2662 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2663
2664         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2665         used in architecture vector. The default is
2666         m68k_local_breakpoint_from_pc.
2667         (m68k_local_breakpoint_from_pc): Add.
2668         (enum): Add register numbers from tm-m68k.h.
2669         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2670         vector.  
2671         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2672         GDB_MULTI_ARCH_PARTIAL.
2673         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2674         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2675         m68k-tdep.c.
2676         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2677         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2678         to enum in m68k-tdep.c
2679
2680 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2681
2682         * solib-osf.c (open_map): Compute the list of shared libraries
2683         loaded by the inferior, rather than the list of libraries loaded
2684         by GDB itself.  Otherwise, GDB ends up reading the symbols from
2685         the wrong shared libraries...
2686
2687 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
2688
2689         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2690         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2691         macros.
2692         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2693         Remove functions.
2694         (FRAMELESS_SIGNAL): Remove function.
2695         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2696         i386_linux_saved_pc_after_call): Removed.
2697         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2698         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
2699         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2700
2701         * i386-tdep.c (i386_frameless_signal_p): New function.
2702         (i386_frame_chain): Deal with frameless signals.
2703         (i386_sigtramp_saved_sp): New function.
2704         (i386_frame_saved_pc): Deal with frameless signals.
2705         (i386_saved_pc_after_call): Make sure the correct value is
2706         returned just after entry into a sigtramp.
2707         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2708         i386fbsd4_sc_sp_offset): New variables.
2709         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2710         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
2711         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2712         similiar to what we already did for sc_pc_offset.
2713         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2714         tdep->sc_sp_offset.
2715
2716         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2717
2718 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
2719
2720         * config/i386/tm-x86-64linux.h: New.
2721         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2722         definitions.
2723         * config/i386/nm-x86-64.h: Rename to ...
2724         * config/i386/nm-x86-64linux.h: ... this one.
2725         * config/i386/x86-64linux.mh: Reflect the above change.
2726         
2727 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
2728
2729         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2730         with sigcontext_addr.  Add sc_sp_offset.
2731         (i386bsd_sigtramp_saved_pc): Remove prototype.
2732         (i386bsd_sicontext_addr): Add prototype.
2733         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2734         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2735         (i386_svr4_sigtramp_saved_pc): Removed.
2736         (i386_svr4_sigcontext_addr): New function.
2737         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2738         Initialize tdep->sigcontext_addr instead.  Initialize
2739         tdep->sc_pc_offset and tdep->sc_sp_offset.
2740         (i386_gdbarch_init): Likewise.
2741         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2742         any more.
2743         (i386bsd_sigtramp_saved_pc): Remove function.
2744         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2745         Initialize tdep->sigcontext_addr instead.  Initialize
2746         tdep->sc_pc_offset.
2747         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2748         of tdep->sigtramp_saved_pc.
2749         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2750         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
2751         instead.
2752
2753         * i386-tdep.c (i386_frameless_function_invocation,
2754         i386_frame_num_args, i386_frame_init_saved_regs,
2755         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2756         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2757         i386_extract_return_value, i386_store_return_value,
2758         i386_extract_struct_value_address, i386_register_virtual_type,
2759         i386_register_convertible, i386_register_convert_to_virtual,
2760         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2761         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2762         static.
2763
2764 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
2765
2766         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2767
2768         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2769         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2770         this macro.  Include "value.h".
2771
2772 2002-06-30  Aidan Skinner  <aidan@velvet.net>
2773
2774         * ada-exp.tab.c: remove as it's a generated file
2775         * ada-lex.c: remove as it's a generated file
2776                 
2777 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
2778
2779         * config/i386/tm-i386.h (struct frame_info, struct
2780         frame_saved_regs, struct value, struct type): Remove forward
2781         declarations.
2782
2783         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2784         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2785         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2786         (FILL_FPXREGSET): Define.
2787
2788         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2789
2790         * configure.tgt (i[3456]86-*-openbsd*): Fold into
2791         i[3456]86-*-netbsd* case.
2792         * config/i386/tm-obsd.h: Removed.
2793         * config/i386/obsd.mt: Removed.
2794         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2795         core-aout.o.
2796         (MH_CFLAGS): Add -DYYDEBUG=0.
2797
2798         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2799         i386nbsd_sc_pc_offset on OpenBSD too.
2800
2801         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2802         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2803         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2804         define.
2805         * i386bsd-tdep.c: Include "arch-utils.h".
2806         (i386bsd_aout_in_solib_call_trampoline): New function.
2807         (i386bsd_init_abi): Set in_solib_call_trampoline to
2808         i386bsd_aout_in_solib_call_trampoline.
2809         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2810         in_solib_call_trampoline to generic_in_solib_call_trampoline.
2811
2812 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2813
2814         * macrotab.h: Do not include "obstack.h" or "bcache.h".
2815         (struct obstack, struct bcache): Add opaque declarations.
2816         * Makefile.in (macrotab_h): Update
2817
2818 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2819
2820         * blockframe.c (generic_find_dummy_frame): Change return type to
2821         ``struct regcache''.
2822         (struct dummy_frame): Replace field ``registers'' with regcache, a
2823         struct regcache object.
2824         (generic_find_dummy_frame): Update.
2825         (generic_push_dummy_frame): Update.  Use regcache_xfree,
2826         regcache_xmalloc and regcache_cpy.
2827         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
2828         regcache_xfree.
2829         (deprecated_generic_find_dummy_frame): Update.
2830         (generic_read_register_dummy): Update.  Use
2831         regcache_read_as_address.
2832         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
2833         (generic_get_saved_register): Update.  Use regcache_read.
2834
2835 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2836
2837         * Makefile.in (objfiles_h): Add $(bcache_h).
2838         * objfiles.h: Include "bcache.h".
2839
2840         * Makefile.in (symtab_h): Remove $(bcache_h).
2841         * symtab.h: Do not include "bcache.h".
2842
2843 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2844
2845         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2846         generic_func_frame_chain_valid.
2847
2848 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
2849
2850         * config/i386/nm-fbsd.h: Include <sys/param.h>.
2851         * config/i386/tm-fbsd.h: Likewise.
2852
2853 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2854
2855         * rs6000-tdep.c (rs6000_gdbarch_init): Use
2856         generic_unwind_get_saved_register.
2857
2858 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
2859
2860         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2861         * regcache.c (supply_register): Add missing argument to
2862         register_buffer call.
2863
2864 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
2865
2866         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
2867         Solaris /bin/grep does not not like it.  From Peter Schauer.
2868
2869 2002-06-26  Tom Tromey  <tromey@redhat.com>
2870
2871         * command.h (add_setshow_cmd): Declare.
2872         (add_setshow_cmd_full): Declare.
2873         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
2874         returns void.  Use add_setshow_cmd_full.
2875         (add_setshow_cmd_full): New function.
2876         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2877         (add_setshow_boolean_cmd): Likewise.
2878
2879 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2880
2881         * config/vax/tm-vax.h: Protect from multiple inclusion.
2882         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2883         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2884         * config/vax/tm-vaxbsd.h: ...here.  New file.
2885         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2886
2887 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2888
2889         * config/vax/tm-vax.h (BREAKPOINT): Remove.
2890         (BELIEVE_PCC_PROMOTION): Remove.
2891         (AP_REGNUM): Move to...
2892         * config/vax/nm-vax.h: ...here.
2893         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2894         (vax_breakpoint_from_pc): New function.
2895         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2896         and gdbarch_believe_pcc_promotion.
2897
2898 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2899
2900         * Makefile.in (vax_tdep_h): Define.  
2901         (vax-tdep.o): Use $(vax_tdep_h).
2902         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2903         (vax_dump_tdep): New function. 
2904         (_initialize_vax_tdep): Register vax_dump_tdep.
2905         * vax-tdep.h: Include osabi.h.     
2906         (struct gdbarch_tdep): New. 
2907
2908 2002-06-26  Andrew Cagney  <cagney@redhat.com>
2909
2910         * frame.h (deprecated_generic_find_dummy_frame): Rename
2911         generic_find_dummy_frame.
2912         * blockframe.c (generic_find_dummy_frame): Make static.
2913         (deprecated_generic_find_dummy_frame): New function.
2914         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2915         generic_find_dummy_frame with deprecated_find_dummy_frame.
2916         (sh64_nofp_frame_init_saved_regs): Ditto.
2917         (sh_fp_frame_init_saved_regs): Ditto.
2918         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2919         (s390_frame_chain): Ditto.
2920         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2921
2922 2002-06-26  Grace Sainsbury  <graces@redhat.com>
2923
2924         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2925         gdbarch vector are at the top.
2926         (NUM_REGS): Remove.
2927         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2928         (FRAME_ARGS_ADDRESS): Remove.
2929         (FRAME_LOCALS_ADDRESS): Remove.
2930         (FRAME_NUM_ARGS): Remove.
2931         (FRAME_ARGS_SKIP): Remove.  
2932         * m68k-tdep.c (enum): Add eumeration of special register numbers.
2933         (m68k_gdbarch_init): Add gdbarch initializations for macros
2934         undefined in tm-m68k.h
2935
2936 2002-06-26  Grace Sainsbury  <graces@redhat.com>
2937
2938         * monitor.h: Add the function regname to monitor_ops
2939         structure. This way NUM_REGS does not have to be a constant.
2940         * monitor.c (monitor_fetch_register): Added support for regname
2941         function. The function is called if the array regnames is NULL.
2942         (monitor_store_register): Same.
2943         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2944         regnames array.
2945         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2946         cpu32bug_cmds.regname to point to new function.
2947         * abug-rom.c (abug_regname): Same as above.
2948         (init_abug_cmds): Same.
2949         * dbug-rom.c (dbug_regname): Same as above.
2950         (init_dbug_cmds): Same.
2951         * remote-est.c (est_regname): Same. 
2952         (init_est_cmds): Same.
2953         * rom68k-rom.c (rom68k_regname): Same. 
2954         (init_rom68k_cmds): Same.
2955
2956 2002-06-25  Tom Tromey  <tromey@redhat.com>
2957
2958         * breakpoint.c (delete_command): Don't repeat `delete' commands.
2959
2960 2002-06-25  Andrew Cagney  <cagney@redhat.com>
2961
2962         * infrun.c (stop_registers): Change variable's type to ``struct
2963         regcache'''.
2964         (xmalloc_inferior_status): Delete function.
2965         (free_inferior_status): Delete function.
2966         (normal_stop): Use regcache_cpy.
2967         (struct inferior_status): Change type of fields ``stop_registers''
2968         and ``registers'' to ``struct regcache''.
2969         (write_inferior_status_register): Use regcache_write.
2970         (save_inferior_status): Instead of calling
2971         xmalloc_inferior_status, allocate the inf_status buffer directly.
2972         Use regcache_dup_no_passthrough and regcache_dup to save the
2973         buffers.
2974         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2975         Replace the stop_registers regcache instead of overriding it.  Use
2976         regcache_xfree.  Instead of calling free_inferior_status, xfree
2977         the buffer directly.
2978         (discard_inferior_status): Use regcache_xfree.  Instead of calling
2979         free_inferior_status, xfree the buffer directly.
2980         (build_infrun): Use regcache_xmalloc.
2981         (_initialize_infrun): Delete redundant call to build_infrun.
2982
2983         * Makefile.in (infcmd.o): Add $(regcache_h).
2984
2985         * infcmd.c: Include "regcache.h".
2986         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2987         obtain the address of `stop_registers' register buffer.
2988         (print_return_value): Ditto.
2989
2990         * inferior.h (struct regcache): Add opaque declaration.
2991         (stop_registers): Change variable's declared type to ``struct
2992         regcache''.
2993
2994 2002-06-24  Tom Tromey  <tromey@redhat.com>
2995
2996         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2997         * target.c (initialize_targets): Fixed typo in
2998         trust-readonly-sections `show' documentation.
2999
3000         * main.c: Marked all strings with _().
3001
3002 2002-06-24  Don Howard  <dhoward@redhat.com>
3003
3004         * memattr.c (create_mem_region): Treat hi == 0 as a special case
3005         that means max CORE_ADDR+1.
3006         (lookup_mem_region): Ditto.
3007         (mem_info_command): Ditto.
3008
3009 2002-06-24  Grace Sainsbury  <graces@redhat.com>
3010
3011         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3012         (REGISTER_BYTES_OK): Remove.
3013         (REGISTER_BYTES): Remove.
3014         (STORE_STRUCT_RETURN): Remove.
3015         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3016         (STORE_RETURN_VALUE): Remove.
3017         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3018         (FRAME_CHAIN): Remove.
3019         (FRAMELESS_FUNCTION_INVOCATION): Remove.
3020         (FRAME_SAVED_PC): Remove.  
3021         * m68k-tdep.c (m68k_register_bytes_ok):Add.
3022         (m68k_store_struct_return): Add.
3023         (m68k_deprecated_extract_return_value): Add.
3024         (m68k_deprecated_extract_struct_value_address): Add.
3025         (m68k_store_return_value): Add.
3026         (m68k_frame_chain): Add.
3027         (m68k_frameless_function_invocation): Add.
3028         (m68k_frame_saved_pc): Add.
3029         (m68k_gdbarch_init): added set_gdbarch calls for new 
3030         functions and deleted macros.
3031
3032 2002-06-23  Tom Tromey  <tromey@redhat.com>
3033
3034         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3035         (ALLDEPFILES): Likewise.
3036         (udiheaders): Removed.
3037         (udip2soc.o): Likewise.
3038         (udi2go32.o): Likewise.
3039         (udr.o): Likewise.
3040         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3041
3042 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
3043
3044         * infrun.c (_initialize_infrun): Delete unnecessary call to
3045         build_infrun.
3046
3047         * regcache.h: Update comments describing the regcache_cpy family
3048         of functions.
3049         (regcache_save, regcache_restore): Delete declaration.
3050         (regcache_save_no_passthrough): Delete declaration.
3051         (regcache_restore_no_passthrough): Delete declaration.
3052         * regcache.c (regcache_save): Delete function.
3053         (regcache_save_no_passthrough): Delete function.
3054         (regcache_restore): Delete function.
3055         (regcache_restore_no_passthrough): Delete function.
3056
3057 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
3058
3059         * config/m68k/tm-m68k.h: Fix typo.
3060         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3061         (m68k_frame_init_saved_regs): Declare.
3062
3063 2002-06-21  Jim Blandy  <jimb@redhat.com>
3064
3065         Remove some vestiges of Harris 88k support.
3066         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3067         register numbering quirk.
3068         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3069         odd symbols occurring in Harris 88k ELF targets.
3070
3071 2002-06-21  Tom Tromey  <tromey@redhat.com>
3072
3073         * gdb_locale.h: New file.
3074         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3075         (defs_h): Added gdb_locale.h.
3076         * configure, config.in: Rebuilt.
3077         * configure.in (PACKAGE): Define.
3078         * defs.h: Include gdb_locale.h.
3079         * main.c (captured_main): Call setlocale, bindtextdomain,
3080         textdomain.
3081
3082 2002-06-21  Dave Brolley  <brolley@redhat.com>
3083
3084         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3085         * config/frv/frv.mt: New file.
3086         * config/frv/tm-frv.h: New file.
3087         * configure.tgt: Support frv-*-*.
3088         * Makefile.in (frv-tdep.o): New target.
3089         * frv-tdep.c: New file.
3090         * NEWS: Mention frv.
3091
3092 2002-06-21  Dave Brolley  <brolley@redhat.com>
3093
3094         * MAINTAINERS: Add self to "Write After Approval" list.
3095
3096 2002-06-21  Grace Sainsbury  <graces@redhat.com>
3097
3098         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3099         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3100         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3101         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3102         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3103
3104         * m68k-tdep.c: Include arch-utils.h
3105         (m68k_register_raw_size): Add.
3106         (m68k_register_virtual_size): Add.
3107         (m68k_register_virtual_type): Add.
3108         (m68k_register_name): Add.
3109         (m68k_stack_align): Add.
3110         (m68k_register_byte): Add.
3111         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3112         tm-m68k.h.
3113
3114 2002-06-21  Grace Sainsbury  <graces@redhat.com>
3115
3116         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3117         m68k_find_saved_regs.
3118         (m68k_pop_frame): Removed saved_regs structure, and replaced
3119         references to it with frame->saved_regs.
3120         (m68k_gdbarch_init): Added function calls to initialize the
3121         gdbarch structure.
3122         (m68k_fix_call_dummy): Add. 
3123         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3124         (CALL_DUMMY): Remove.
3125         (CALL_DUMMY_LENGTH): Remove.
3126         (CALL_DUMMY_START_OFFSET): Remove.
3127         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3128         (FIX_CALL_DUMMY): Remove.
3129         (PUSH_DUMMY_FRAME): Remove.
3130         (POP_FRAME): Remove.
3131
3132 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
3133
3134         * parse.c (parse_fprintf): New function used to avoid calls to
3135         fprintf in bison parser generated debug code.
3136         * parser-defs.h: Declaration of new parse_fprintf function.
3137         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3138         Set YYDEBUG to 1 by default.
3139         Set YYFPRINTF as parse_fprintf.
3140
3141 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
3142
3143         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
3144         encoding anymore.
3145         (pointer_encoding, enum ptr_encoding): New.
3146         (execute_cfa_program): Take care about pointer encoding.        
3147         (dwarf2_build_frame_info): Only call parse_frame_info for 
3148         .debug_frame and .eh_frame.
3149         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3150         fixed augmentation handling, added relative addressing, 
3151         ignore duplicate FDEs. Added comments.
3152         * dwarf2cfi.c: Reindented.
3153         
3154 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
3155
3156         * event-top.c (command_handler): Don't use space_at_cmd_start
3157         unless there is sbrk() on the host. Assign time and space data
3158         to union fields of the appropriate length.
3159
3160 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
3161
3162         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
3163         x86_64_register_name. Return type changed to 'const char *'.
3164         (x86_64_register_name2nr): Rename to x86_64_register_number.
3165         (x86_64_gdbarch_init): Update to reflect the change.
3166         * x86-64-tdep.h: Ditto.
3167         * x86-64-linux-nat.c (x86_64_fxsave_offset)
3168         (supply_fpregset): Ditto.
3169
3170 2002-06-19  Andrew Cagney  <cagney@redhat.com>
3171
3172         * regcache.h: Update copyright.
3173         (struct regcache, struct gdbarch): Add opaque declarations.
3174         (current_regcache): Declare global variable.
3175         (regcache_read, regcache_write): Add gdbarch parameter.
3176         (regcache_save, regcache_save_no_passthrough)
3177         (regcache_restore, regcache_restore_no_passthrough)
3178         (regcache_dup, regcache_dup_no_passthrough)
3179         (regcache_cpy, regcache_cpy_no_passthrough)
3180         (deprecated_grub_regcache_for_registers)
3181         (deprecated_grub_regcache_for_register_valid)
3182         (regcache_valid_p): Add function declarations.
3183         
3184         * regcache.c: Update copyright.
3185         (regcache_descr_handle): New global variable.
3186         (struct regcache_descr): Define.
3187         (init_legacy_regcache_descr, init_regcache_descr): New functions.
3188         (regcache_descr, xfree_regcache_descr): New functions.
3189         (struct regcache): Define.
3190         (regcache_xmalloc, regcache_xfree): New functions.
3191         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3192         (regcache_dup, regcache_dup_no_passthrough): New functions.
3193         (regcache_valid_p, regcache_read_as_address): New functions.
3194         (deprecated_grub_regcache_for_registers): New function.
3195         (deprecated_grub_regcache_for_register_valid): New function.
3196         (current_regcache): New global variable.
3197         (register_buffer): Add regcache parameter.  Update calls.
3198         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
3199         (read_register_gen, write_register_gen): Update register_buffer
3200         call.  Test for legacy_p instead of gdbarch_register_read_p or
3201         gdbarch_register_write_p.
3202         (regcache_collect): Update register_buffer call.
3203         (build_regcache): Rewrite.  Use deprecated grub functions.
3204         (regcache_save, regcache_save_no_passthrough): New functions.
3205         (regcache_restore, regcache_restore_no_passthrough): New
3206         functions.
3207         (_initialize_regcache): Create the regcache_data_handle. Swap
3208         current_regcache global variable.
3209         
3210         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3211         parameter to regcache_read and regcache_write calls.
3212         (sh4_register_read): Ditto.
3213         (sh64_pseudo_register_read): Ditto.
3214         (sh64_register_read): Ditto.
3215         (sh_pseudo_register_write): Ditto.
3216         (sh4_register_write): Ditto.
3217         (sh64_pseudo_register_write): Ditto.
3218         (sh64_register_write): Ditto.
3219
3220         * defs.h (XCALLOC): Define.
3221
3222 2002-06-19  Grace Sainsbury  <graces@redhat.com>
3223
3224         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3225         * m68k-tdep.c (m68k_gdbarch_init): Added.
3226         (m68k_dump_tdep): Added.
3227
3228 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3229
3230         * ada-lang.c (fill_in_ada_prototype): Update comment.
3231
3232 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3233
3234         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
3235         MIPS_ABI_LAST.
3236         (mips_abi_string, mips_abi_strings): New.
3237         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3238         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
3239         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
3240         O32 if no ABI is found.
3241         (mips_dump_tdep): Use mips_abi_strings.
3242         (mips_abi_update): New function.
3243         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
3244         ``set mips abi'' and ``show mips abi''.  Check the size of
3245         mips_abi_strings.
3246
3247 2002-06-19  Andrew Cagney  <cagney@redhat.com>
3248
3249         * i386-linux-tdep.c (i386_linux_register_name): Make return type
3250         constant.
3251
3252 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
3253
3254         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
3255         current frame using only the first stack size adjustment. All
3256         subsequent size adjustments are not considered to be part of
3257         the "static" part of the current frame.
3258         Compute the address of the saved registers relative to the
3259         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3260         in use in this frame.
3261
3262 2002-06-18  Don Howard  <dhoward@redhat.com>
3263  
3264         * valops.c (value_ind): Use value_at_lazy() when dereferencing
3265         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
3266         suggesting this solution.
3267
3268 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
3269
3270         * config/romp/xm-rtbsd.h: Delete file.
3271         * config/romp/rtbsd.mh: Delete file.
3272
3273 2002-06-18  Keith Seitz  <keiths@redhat.com>
3274
3275         * breakpoint.c (condition_command): Post breakpoint_modify
3276         when a condition is added to an existing breakpoint.
3277         (commands_command): Likewise for commands.
3278         (set_ignore_count): Likewise for ignore counts.
3279         If no tty, do not simply return, still need to send event
3280         notification.
3281         (ignore_command): Only print a newline if the command came
3282         from a tty.
3283         Don't call breakpoints_changed, since this is now properly
3284         handled by set_ignore_count.
3285
3286 2002-06-18  Andrew Cagney  <cagney@redhat.com>
3287
3288         * MAINTAINERS: Note that cris-elf target can be compiled with
3289         -Werror.
3290         * cris-tdep.c (cris_register_name): Make return type constant.
3291         (cris_breakpoint_from_pc): Ditto.
3292
3293 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
3294
3295         * frame.h (struct frame_info): Change type of context to 
3296         'struct context'.
3297
3298 2002-06-17  Andrew Cagney  <cagney@redhat.com>
3299
3300         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3301         pointer.
3302         * gdbarch.h, gdbarch.c: Regenerate.
3303         * config/mips/tm-mips.h (mips_register_name): Update.
3304         * i386-tdep.h (i386_register_name): Update.
3305         * mips-tdep.c (mips_register_name): Update
3306         * alpha-tdep.c (alpha_register_name): Update.
3307         * arch-utils.c (legacy_register_name): Update.
3308         * arch-utils.h (legacy_register_name): Update.
3309         * avr-tdep.c (avr_register_name): Update.
3310         * ia64-tdep.c (ia64_register_name): Update.
3311         * i386-tdep.c (i386_register_name): Update.
3312         * sparc-tdep.c (sparc32_register_name): Update.
3313         (sparc64_register_name): Update.
3314         (sparclite_register_name): Update.
3315         (sparclet_register_name): Update.
3316         * sh-tdep.c (sh_generic_register_name): Update.
3317         (sh_sh_register_name): Update.
3318         (sh_sh3_register_name): Update.
3319         (sh_sh3e_register_name): Update.
3320         (sh_sh_dsp_register_name): Update.
3321         (sh_sh3_dsp_register_name): Update.
3322         (sh_sh4_register_name): Update.
3323         (sh_sh64_register_name): Update.
3324         * s390-tdep.c (s390_register_name): Update.
3325         * rs6000-tdep.c (rs6000_register_name): Update.
3326         * ns32k-tdep.c (ns32k_register_name_32082): Update.
3327         (ns32k_register_name_32382): Update.
3328         * d10v-tdep.c (d10v_ts2_register_name): Update.
3329         (d10v_ts3_register_name): Update.
3330         * xstormy16-tdep.c (xstormy16_register_name): Update.
3331         * vax-tdep.c (vax_register_name): Update.
3332         * v850-tdep.c (v850_register_name): Update.
3333         * m68hc11-tdep.c (m68hc11_register_name): Update.
3334         * mn10300-tdep.c (mn10300_generic_register_name): Update.
3335         (am33_register_name): Update.
3336
3337 2002-06-17  Grace Sainsbury  <graces@redhat.com>
3338
3339         * m68k-tdep.c: Reindented.
3340
3341 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
3342
3343         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3344         list of predefined types.
3345
3346 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
3347
3348         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3349         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3350         REGISTER_CONVERT_TO_RAW): Remove defines.
3351         (i386_register_virtual_type, i386_register_convertible,
3352         i386_register_convert_to_virtual, i386_register_convert_to_raw):
3353         Remove prototypes.
3354         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3355         macros mentioned above.
3356
3357         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3358         (i386lynx_saved_pc_after_call): Remove prototype.
3359         * i386ly-tdep.c: Include "i386-tdep.h".
3360         (i386lynx_saved_pc_after_call): Make static.  Use
3361         read_memory_nobpt instead of read_memory.  Use
3362         read_memory_unsigned_integer instead of read_memory_integer.
3363         (i386lynx_init_abi): New function.
3364         (i386lynx_coff_osabi_sniffer): New function.
3365         (_initialize_i386bsd_tdep): New function.
3366
3367         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3368         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3369         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3370         (i386_fix_call_dummy): Remove prototype.
3371         * i386-tdep.c (i386_call_dummy_words): New variable.
3372         (i386_gdbarch_init): Adjust for removal of the
3373         macros mentioned above.
3374
3375 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3376
3377         * command.h (add_setshow_auto_boolean_cmd): Replace
3378         add_set_auto_boolean_cmd.
3379         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3380         add_set_auto_boolean_cmd.
3381         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3382         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3383         mask-address'' command.
3384         (show_mask_address): Add cmd parameter.
3385         * remote.c (add_packet_config_cmd): Update.  Change type of
3386         set_func and show_func to cmd_sfunc_ftype.
3387         (_initialize_remote): Update `set remote Z-packet'
3388         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3389         (show_remote_protocol_e_packet_cmd): Ditto.
3390         (show_remote_protocol_E_packet_cmd): Ditto.
3391         (show_remote_protocol_P_packet_cmd): Ditto.
3392         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3393         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3394         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3395         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3396         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3397         (show_remote_protocol_Z_packet_cmd): Ditto.
3398         (show_remote_protocol_binary_download_cmd): Ditto.
3399         (show_remote_cmd): Pass NULL to all of above.
3400
3401 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3402
3403         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3404         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3405         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3406         POP_FRAME): Remove defines.
3407         (i386_push_arguments, i386_store_struct_return,
3408         i386_extract_return_value, i386_store_return_value,
3409         i386_extract_struct_value_address, i386_push_dummy_frame,
3410         i386_pop_frame): Renove prototypes.
3411         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3412         macros mentioned above.
3413
3414 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3415
3416         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3417         add_set_boolean_cmd.
3418         (add_setshow_cmd): New function.
3419         * command.h (add_setshow_boolean_cmd): Replace
3420         add_set_boolean_cmd.
3421         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3422         and ``set rdiromatzero''.
3423         * maint.c (_initialize_maint_cmds): Update commented out code.
3424         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3425         * target.c (initialize_targets): Update `set
3426         trust-readonly-sections'.
3427         * remote.c (_initialize_remote): Update `set remotebreak'.
3428
3429 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3430
3431         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3432         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3433         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3434         fit into multi-arch framework.
3435         (i386_breakpoint_from_pc): New function.
3436         (i386_gdbarch_init): Adjust for removal of the macros mentioned
3437         above.
3438
3439         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3440         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3441         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3442         (i386_frameless_function_invocation, i386_frame_num_args,
3443         i386_frame_init_saved_regs): Remove prototypes.
3444         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3445         macros mentioned above.
3446
3447 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3448
3449         * cli/cli-decode.c (set_cmd_cfunc): Update.
3450         (set_cmd_sfunc): Update.
3451         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3452         (set_cmd_sfunc, set_cmd_cfunc): Update.
3453         * cli/cli-decode.h: Update.
3454
3455 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3456
3457         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3458         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3459
3460 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3461
3462         * defs.h (auto_boolean): Declare enum.
3463         * command.h (cmd_auto_boolean): Delete enum.
3464         * mips-tdep.c (mask_address_var): Update.
3465         (mips_mask_address_p): Update.
3466         (show_mask_address): Update.
3467         * remote.c (struct packet_config): Update.
3468         (update_packet_config): Update.
3469         (show_packet_config_cmd): Update.
3470         (packet_ok): Update.
3471         (add_packet_config_cmd): Update.
3472         (_initialize_remote): 
3473         * command.h: Update.
3474         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3475         (do_setshow_command): Update.
3476         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3477         * cli/cli-decode.h: Update.
3478
3479 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3480
3481         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3482         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3483         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3484         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3485         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3486         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3487
3488         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3489         list of DJGPP COFF targets.
3490
3491         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3492         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3493         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3494         (FP0_REGNUM): Remove define.
3495         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3496         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3497         (i386_register_virtual_size): Remove protoype.
3498         * i386-tdep.c (i386_register_virtual_size): Removed.
3499         (i386_extract_return_value, i386_store_return_value): Use
3500         FP0_REGNUM instead of NUM_FREGS to determine whether the
3501         floating-point registers are available.
3502         (i386_gdbarch_init): Tweak FIXME about FPU registers.
3503         Adjust for removal of macros mentioned above.
3504
3505 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3506
3507         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
3508         comments.
3509         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3510         Remove prototypes.
3511         (supply_gregset, fill_gregset): Remove use of register keyword and
3512         remove declaration for regmap.  Use I386_NUM_GREGS instead of
3513         NUM_REGS and NUM_FREGS.
3514         (FPREGSET_FSAVE_OFFSET): Remove.
3515         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3516         NUM_FREGS to determine whether the floating-point registers are
3517         available.
3518
3519         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3520         gnu_store_registers): Replace usage of NUM_GREGS with
3521         I386_NUM_GREGS.
3522
3523         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3524         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3525         usage of NUM_GREGS with I386_NUM_GREGS.
3526
3527         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3528
3529         * i386bsd-nat.c: Include "i386-tdep.h".
3530         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3531         I386_NUM_GREGS.
3532
3533         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3534         and associated comment.  They no longer make any sense, since we
3535         don't use this file anymore on Linux.
3536
3537         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3538         * i386-tdep.c (i386_register_offset, i386_register_size): Use
3539         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3540         elements in these arrays.
3541         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3542         MAX_NUM_REGS.
3543
3544 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3545
3546         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3547         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3548
3549 2002-06-14  Andrew Cagney  <cagney@redhat.com>
3550
3551         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3552         EXTRACT_RETURN_VALUE.
3553         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3554         EXTRACT_STRUCT_VALUE_ADDRESS.
3555         * gdbarch.h, gdbarch.c: Regenerate.
3556         
3557         * values.c (value_being_returned): Handle
3558         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3559         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3560
3561         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
3562         * arm-tdep.c (arm_gdbarch_init): Update.
3563         * avr-tdep.c (avr_gdbarch_init): Update.
3564         * cris-tdep.c (cris_gdbarch_init): Update.
3565         * d10v-tdep.c (d10v_gdbarch_init): Update.
3566         * ia64-tdep.c (ia64_gdbarch_init): Update.
3567         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3568         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3569         * s390-tdep.c (s390_gdbarch_init): Update.
3570         * sh-tdep.c (sh_gdbarch_init): Update.
3571         * s390-tdep.c (s390_gdbarch_init): Update.
3572         * sparc-tdep.c (sparc_gdbarch_init): Update.
3573         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3574         * v850-tdep.c (v850_gdbarch_init): Update.
3575         * vax-tdep.c (vax_gdbarch_init): Update.
3576         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3577         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3578
3579         * config/arc/tm-arc.h: Update.
3580         * config/d30v/tm-d30v.h: Update.
3581         * config/fr30/tm-fr30.h: Update.
3582         * config/h8300/tm-h8300.h: Update.
3583         * config/h8500/tm-h8500.h: Update.
3584         * config/i386/tm-i386.h: Update.
3585         * config/i386/tm-ptx.h: Update.
3586         * config/i386/tm-symmetry.h: Update.
3587         * config/i960/tm-i960.h: Update.
3588         * config/m32r/tm-m32r.h: Update.
3589         * config/m68k/tm-delta68.h: Update.
3590         * config/m68k/tm-linux.h: Update.
3591         * config/m68k/tm-m68k.h: Update.
3592         * config/m88k/tm-m88k.h: Update.
3593         * config/mcore/tm-mcore.h: Update.
3594         * config/mips/tm-mips.h: Update.
3595         * config/mn10200/tm-mn10200.h: Update.
3596         * config/pa/tm-hppa.h: Update.
3597         * config/pa/tm-hppa64.h: Update.
3598         * config/sparc/tm-sp64.h: Update.
3599         * config/sparc/tm-sparc.h: Update.
3600         * config/sparc/tm-sparclet.h: Update.
3601         * config/z8k/tm-z8k.h: Update.
3602
3603 2002-06-14  Andrew Cagney  <cagney@redhat.com>
3604
3605         * Makefile.in (i386_linux_tdep_h): Define.
3606         (i386_tdep_h, i387_tdep_h): Define.
3607         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3608         $(i386_tdep_h) and $(i387_tdep_h).
3609         * i386-linux-nat.c: Include "i386-linux-tdep.h".
3610
3611 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
3612
3613         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3614         Already covered by the default.
3615
3616         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3617         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
3618         (i386_gdbarch_init): Initialize long_double_format and long_double
3619         bit.
3620
3621         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3622         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
3623         Move these to ...
3624         * config/i386/i386sol2.mh: ... here.
3625         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3626         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3627         (SIGCONTEXT_PC_OFFSET): Remove define.
3628         (IN_SIGTRAMP): Remove define.
3629         * i386-sol2-tdep.c: New file.
3630         
3631         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3632         * config/i386/tm-i386nw.h: Removed.
3633
3634         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3635         USE_STRUCT_CONVENTION): Remove defines.
3636         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3637         (get_longjmp_target): Remove prototype.
3638         (IN_SIGTRAMP): Remove define.
3639         (i386bsd_in_sigtramp): Remove prototype.
3640         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3641         function.  Update comment accordingly
3642         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3643         (FRAME_SAVED_PC): Remove define.
3644         (i386bsd_frame_saved_pc): Remove prototype.
3645         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3646         GET_LONGJMP_TARGET): Remove defines.
3647         (get_longjmp_target): Remove prototype.
3648         (IN_SIGTRAMP): Remove define.
3649         (i386bsd_in_sigtramp): Remove prototype.
3650         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3651         function.  Update comment accordingly
3652         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3653         (FRAME_SAVED_PC): Remove define.
3654         (i386bsd_frame_saved_pc): Remove prototype.
3655         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3656         Remove prototype.
3657         (USE_STRUCT_CONVENTION): Remove prototype.
3658         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3659         declaration.
3660         (_initialize_i386bsd_nat): Revise logic to determine some
3661         constants at compile time when compiling a native GDB.  Warn if
3662         things don't match up with what we expect.
3663         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3664         Remove variables.
3665         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
3666         to use date stored in `struct gdbarch_tdep'.
3667         (i386bsd_sigcontext_offset): Remove varaible.
3668         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
3669         stored in `struct gdbarch_tdep'.
3670         (i386bsd_frame_saved_pc): Make static.
3671         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3672         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3673         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3674         i386fbsd4_sc_pc_offset): New variables.
3675         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3676         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3677         functions.
3678         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3679         functions.
3680         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3681         Modify the value of i386fbsd_sigtramp_start and
3682         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3683         i386fbsd_sigtramp_end.
3684         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3685         function.
3686
3687         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3688         define to i386-linux-tdep.h.
3689         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3690         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3691         defines.
3692         (i386_linux_register_name, i386_linux_register_byte,
3693         i386_linux_register_raw_size): Remove prototypes.
3694         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3695         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3696         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3697         TARGET_WRITE_PC): Remove defines.
3698         (i386_linux_in_sigtramp, i386_linux_frame_chain,
3699         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3700         i386_linux_write_pc): Remove prototypes.
3701         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3702         (get_longjmp_target): Remove prototype.
3703         * i386-linux-tdep.h: New file.
3704         * i386-linux-nat.c: Include "i386-linux-tdep.h".
3705         * i386-linux-tdep.c: Include "i386-tdep.h" and
3706         "i386-linux-tdep.h".
3707         (i386_linux_register_name, i386_linux_register_byte,
3708         i386_linux_register_raw_size, i386_linux_in_sigtramp,
3709         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3710         Make static.
3711         (i386_linux_init_abi): New function.
3712         (_initialize_i386_linux_tdep): New function.
3713
3714         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3715         (i386_saved_pc_after_call): Remove prototype.
3716         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3717         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3718         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3719         (i386_register_name, i386_stab_reg_to_regnum,
3720         i386_dwarf_reg_to_regnum): Remove prototypes.
3721         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3722         SIZEOF_SSE_REGS): Remove defines.
3723         (REGISTER_BYTES): Remove define.
3724         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3725         (i386_register_byte, i386_register_raw_size): Remove prototypes.
3726         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3727         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3728         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3729         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3730         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3731         (get_longjmp_target): Remove prototype.
3732         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3733         (sigtramp_saved_pc): Remove define.
3734         (i386v4_sigtramp_saved_pc): Remove prototype.
3735         * config/i386/tm-go32.h (FRAME_CHAIN,
3736         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3737         (i386go32_frame_saved_pc): Remove prototype.
3738         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3739         (get_longjmp_target): Remove prototype.
3740         * i386-tdep.h: Include "osabi.h".
3741         (enum i386_abi): Removed.
3742         (enum struct_return): New enum.
3743         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3744         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3745         sc_pc_offset members.
3746         (i386_gdbarch_register_os_abi): Remove prototype.
3747         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3748         I386_SSE_NUM_REGS): New defines.
3749         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3750         I386_SSE_SIZEOF_REGS): New defines.
3751         (i386_register_name, i386_register_byte, i386_register_raw_size):
3752         New prototypes.
3753         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3754         (i386bsd_sigtramp_saved_pc): New prototype.
3755         * i386-tdep.c: Don't include "elf-bfd.h".
3756         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3757         i386_frame_chain, i386_saved_pc_after_call): Make static.
3758         (i386_frame_saved_pc): Rewrite to call architecture dependent
3759         function to deal with signal handlers.  Make static.
3760         (i386go32_frame_saved_pc): Removed.
3761         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3762         Removed.
3763         (i386_get_longjmp_target): New function.
3764         (default_struct_convention, pcc_struct_convention,
3765         reg_struct_convention, valid_conventions, struct_convention): New
3766         variables.
3767         (i386_use_struct_convention): New function.
3768         (i386v4_sigtramp_saved_pc): Renamed to
3769         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
3770         (i386_pc_in_sigtramp): New function.
3771         (i386_abi_names): Removed.
3772         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3773         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3774         Removed.
3775         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3776         i386_gdbarch_register_os_abi): Removed.
3777         (struct i386_abi_handler): Removed.
3778         (i386_abi_handler_list): Removed.
3779         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3780         functions.
3781         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3782         i386_nw_init_abi): New functions.
3783         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3784         Use set_gdbarch_xxx() calls instead of relying on macros for a
3785         number of calls.
3786         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3787         (_initialize_i386_tdep): Add new 'struct-convcention' command.
3788         Register the various architecture variants defined in this file.
3789
3790 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
3791
3792         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3793         (struct main_type): Remove arg_types member.  Update comments for
3794         struct field.
3795         (TYPE_ARG_TYPES): Remove.
3796         (TYPE_FN_FIELD_ARGS): Update.
3797         (smash_to_method_type): Update prototype.
3798
3799         * c-typeprint.c (cp_type_print_method_args): Take method type
3800         instead of argument list.  Use new argument layout.  Simplify.
3801         (c_type_print_args): Use new argument layout.  Simplify.
3802         (c_type_print_base): Update call to cp_type_print_method_args.
3803         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3804         argument; use die->type instead.  Update call to
3805         smash_to_method_type.
3806         (read_structure_scope): Update call to dwarf2_add_member_fn.
3807         * gdbtypes.c (allocate_stub_method): Update comment.
3808         (smash_to_method_type): Take new NARGS and VARARGS arguments.
3809         Use new argument layout.
3810         (check_stub_method): Use new argument layout.  Don't count
3811         void as an argument.
3812         (print_arg_types): Update comments.  Use new argument layout.
3813         (recursive_dump_type): Don't print arg_types member.
3814         * hpread.c (hpread_read_struct_type): Use new argument layout.
3815         (fixup_class_method_type): Likewise.
3816         (hpread_type_lookup): Likewise.
3817         * stabsread.c (read_type): Update calls to read_args and
3818         smash_to_method_type.
3819         (read_args): Use new argument layout.  Simplify.
3820         * valops.c (typecmp): Use new argument layout.  Update parameters
3821         and comments.  Simplify.
3822         (hand_function_call): Use new argument layout.
3823         (search_struct_method): Update call to typecmp.
3824         (find_overload_match): Use new argument layout.
3825
3826 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3827
3828         * NEWS: Mention multithreaded debug support for gdbserver.
3829
3830 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3831
3832         * MAINTAINERS: Mention NEWS.
3833
3834 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3835
3836         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3837         (struct mips_objfile_private, compare_pdr_entries): New.
3838         (non_heuristic_proc_desc): Read the ".pdr" section if it
3839         is present.
3840
3841 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
3842
3843         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3844         (arm_debug): New static variable.
3845         (_initialize_arm_tdep): Add ``set debug arm'' command.
3846
3847 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
3848
3849         * Makefile.in (sim_arm_h): Define.
3850         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3851         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3852         (arm_register_sim_regno): New function, map an internal REGNUM
3853         onto a simulator register number.
3854         (arm_gdbarch_init): Set register_sim_regno.
3855
3856 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
3857
3858         * MAINTAINERS: Add self.
3859
3860 2002-06-11  Jim Blandy  <jimb@redhat.com>
3861
3862         * source.c (source_info): Mention whether the symtab has
3863         information about preprocessor macros.
3864
3865         Call the command `info macro', not `show macro'.
3866         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3867         Fix error message.
3868         (_initialize_macrocmd): Register `info_macro_command' in
3869         `infolist', not `showlist'.
3870
3871 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
3872
3873         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3874         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3875         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3876         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3877         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
3878         unconditionally.
3879         (set_mipsfpu_single_command, set_mipsfpu_double_command)
3880         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3881         (_initialize_mips_tdep): Remove dead code.
3882         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3883         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3884         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3885         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3886         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3887         MIPS_LAST_FP_ARG_REGNUM): Remove.
3888
3889 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
3890
3891         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3892         (unwind_tmp_obstack_free, parse_frame_info)
3893         (update_context, cfi_read_fp, cfi_write_fp)
3894         (cfi_frame_chain, cfi_init_extra_frame_info)
3895         (cfi_virtual_frame_pointer): Use the above function.
3896         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3897
3898 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
3899
3900         * v850-tdep.c (v850_type_is_scalar): New function.
3901         (v850_use_struct_convention): Match current gcc implementation
3902         as close as possible.
3903         (v850_push_arguments): Fix stack_offset handling.  Don't write
3904         struct_addr into register.  This is done by v850_store_struct_return.
3905         (v850_extract_return_value): Care for structs.
3906         (v850_store_return_value): Ditto.
3907         (v850_store_struct_return): Actually write address.
3908
3909 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
3910
3911         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3912         without debug information too.
3913
3914 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3915
3916         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3917         Make multi-arch pure.
3918         * gdbarch.h, gdbarch.c: Re-generate.
3919         * arm-tdep.c (arm_print_float_info): Update.
3920         * arch-utils.h (default_print_float_info): Update.
3921         * arch-utils.c (default_print_float_info): Update.
3922         * infcmd.c (float_info): Update call.
3923
3924 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3925
3926         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3927         the front of the initialize list.
3928
3929 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3930
3931         * infrun.c (struct inferior_status): Replace fields
3932         selected_frame_address and selected_level with field
3933         selected_frame_id.
3934         (save_inferior_status): Update.  Use get_frame_id.
3935         (struct restore_selected_frame_args): Delete.
3936         (restore_selected_frame): Update.  Use frame_find_by_id.
3937         (restore_inferior_status): Update.
3938
3939         * breakpoint.h (struct breakpoint): Change type of
3940         watchpoint_frame to frame_id.
3941         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
3942         call to get_current_frame.
3943         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
3944         get_current_frame.
3945         (watchpoint_check): Use frame_find_by_id.
3946
3947         * frame.h (record_selected_frame): Delete declaration.
3948         * stack.c (record_selected_frame): Delete function.
3949         
3950         * frame.h (struct frame_id): Define.
3951         (get_frame_id): Declare.
3952         (frame_find_by_id): Declare.
3953         * frame.c (frame_find_by_id): New function.
3954         (get_frame_id): New function.
3955
3956 2002-06-10  Andrey Volkov <avolkov@transas.com>
3957
3958         * ser-e7kpc.c: Fix duplicated define and call of 
3959         _initialize_ser_e7000pc
3960             
3961 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
3962
3963         * signals/signals.c (target_signal_from_host): Fix #ifdef
3964         SIGRTMIN case.
3965         (do_target_signal_to_host): Likewise.
3966
3967 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
3968
3969         * mips-tdep.c (mips_find_abi_section): New function.
3970         (mips_gdbarch_init): Call it.
3971
3972 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3973
3974         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3975         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
3976         after Andrew's 2002-06-08 gdbarch change.
3977
3978 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3979
3980         * i386-linux-nat.c (suppy_gregset): Don't supply
3981         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3982         register cache.
3983         (fill_gregset): Don't fetch it under the same circumstances.
3984
3985 2002-06-09  Andrew Cagney  <cagney@redhat.com>
3986
3987         * Makefile.in (callback_h): Define.
3988         (remote_sim_h): Update path to remote-sim.h.
3989         (remote-rdp.o): Add $(callback_h).
3990         (remote-sim.o): Use $(callback_h).
3991         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3992         * remote-rdp.c: Include "gdb/callback.h".
3993
3994 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3995
3996         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3997         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3998
3999 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4000
4001         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4002         * rdi-share/serpardr.c: Ditto.
4003         * rdi-share/unixcomm.c: Ditto.
4004         * rdi-share/serdrv.c: Ditto.
4005         * rdi-share/hostchan.h: Ditto.
4006         * rdi-share/hostchan.c: Ditto.
4007         * rdi-share/host.h: Ditto.
4008         * rdi-share/devsw.c: Ditto.
4009
4010         * objfiles.h: Change type of obj_private to void pointer.
4011         * pa64solib.c: Update copyright.  Don't include "assert.h", use
4012         strcmp instead of STREQ, use LONGEST, do not use PTR
4013         * somsolib.c: Ditto.
4014
4015         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4016         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4017         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4018
4019 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4020
4021         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4022         (default_get_saved_register): Delete function.
4023         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4024         generic_unwind_get_saved_register.
4025         * gdbarch.h, gdbarch.c: Re-generate.
4026         
4027 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4028
4029         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4030         generic_func_frame_chain_valid.
4031         * gdbarch.h, gdbarch.c: Re-generate.
4032         * blockframe.c (generic_func_frame_chain_valid): Only check
4033         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
4034         passing FP to PC_IN_CALL_DUMMY.
4035         Fix PR gdb/360.
4036
4037 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4038
4039         * gdbarch.sh (struct gdbarch_data): Add field init_p.
4040         (register_gdbarch_data): Initialize init_p.
4041         (gdbarch_data): Initialize data pointer using the init function.
4042         (init_gdbarch_data): Delete function.
4043         (gdbarch_update_p): Update.
4044         (initialize_non_multiarch): Update.
4045         (struct gdbarch): Add field initialized_p.
4046         * gdbarch.h, gdbarch.c: Re-generate.
4047
4048 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
4049
4050         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4051         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4052         better do the things actually here.
4053         * x86-64-tdep.c (x86_64_register_name2nr): New.
4054         (x86_64_register_name): Renamed to x86_64_register_nr2name.
4055         (x86_64_gdbarch_init): Respect the above change.
4056         * x86-64-tdep.h (x86_64_register_name2nr)
4057         (x86_64_register_nr2name): Add prototypes.
4058         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4059
4060 2002-06-06  Michael Snyder  <msnyder@redhat.com>
4061
4062         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4063         Delete extra braces and re-indent.
4064         (d10v_store_return_value): Char return values
4065         must be shifted over by one byte in R0.
4066         (d10v_extract_return_value): Delete extra braces, re-indent.
4067
4068 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
4069
4070         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4071         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4072         (d10v_integer_to_address): Rewrite.
4073         (d10v_frame_init_saved_regs): When reading fp and sp registers use
4074         the d10v specific functions which take care of converting to the
4075         correct space.
4076
4077 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
4078
4079         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4080         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4081
4082 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
4083
4084         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4085         includes.
4086         * config/tm-linux.h: Ditto.
4087         * config/alpha/tm-alphalinux.h: Ditto.
4088         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4089         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4090         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4091         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4092         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4093         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4094         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4095         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4096         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4097         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4098         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4099         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4100         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4101         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4102         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4103         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4104         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4105         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4106         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4107         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4108         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4109         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4110         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4111         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4112         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4113         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4114         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4115         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4116         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4117         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4118         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4119         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4120         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4121         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4122         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4123         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4124         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4125
4126 2002-05-04  Aidan Skinner <aidan@velvet.net>
4127
4128         * ada-exp.tab.c: New file
4129         * ada-exp.y: New file
4130         * ada-lang.c: New file
4131         * ada-lang.h: New file
4132         * ada-lex.c: New file
4133         * ada-lex.l: New file
4134         * ada-tasks.c: New file
4135         * ada-typeprint.c: New file
4136         * ada-valprint.c: New file
4137         
4138 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
4139
4140         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4141         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4142
4143 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
4144
4145         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4146         insetead of ppc-linux-tdep.o.
4147         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4148         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4149
4150 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
4151
4152         2002-05-07 Christian Groessler <chris@groessler.org>
4153         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4154         bit register contents for little endian hosts.
4155
4156 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4157
4158         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4159         any maintainer.
4160
4161 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4162
4163         * gdbarch.h: Regenerate.
4164
4165 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4166
4167         * MAINTAINERS: Add everyone to write-after-approval list.
4168
4169 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4170
4171         * stack.c (frame_info): Use frame_register_unwind instead of
4172         saved_regs.  Mention when the SP is on the stack or in a register.
4173
4174         * frame.h (frame_register_unwind_ftype): Define.  Document.
4175         (struct frame_info): Add field register_unwind and
4176         register_unwind_cache.
4177         (frame_register_unwind): Declare.
4178         (generic_unwind_get_saved_register): Declare.
4179
4180         * frame.c (frame_register_unwind): New function.
4181         (generic_unwind_get_saved_register): New function.
4182
4183         * blockframe.c (generic_call_dummy_register_unwind): New function.
4184         (frame_saved_regs_register_unwind): New function.
4185         (set_unwind_by_pc): New function.
4186         (create_new_frame): New function.
4187         (get_prev_frame): New function.
4188
4189 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
4190
4191         * a29k-share/: Delete directory.
4192         * remote-vx29k.c: Delete file.
4193
4194 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4195
4196         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4197         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4198
4199 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4200
4201         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4202         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4203         (sparc64nbsd-nat.o)
4204         (sparcnbsd-nat.o)
4205         (sparcnbsd-tdep.o): New dependency lists.
4206         * NEWS: Note new UltraSPARC NetBSD native configuration.
4207         * configure.host (sparc64-*-netbsd*): New host.
4208         * configure.tgt (sparc-*-netbsdelf*)
4209         (sparc-*-netbsd*): Set gdb_target to nbsd.
4210         (sparc64-*-netbsd*): New target.
4211         * sparc64nbsd-nat.c: New file.
4212         * sparcnbsd-nat.c: New file.
4213         * sparcnbsd-tdep.c: New file.
4214         * sparcnbsd-tdep.h: New file.
4215         * config/sparc/nbsd.mt: New file.
4216         * config/sparc/nbsd64.mh: New file.
4217         * config/sparc/nbsd64.mt: New file.
4218         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4219         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4220         (HOST_IPC): Remove.
4221         * config/sparc/nbsdaout.mt: Remove.
4222         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4223         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4224         (HOST_IPC): Remove.
4225         * config/sparc/nbsdelf.mt: Remove.
4226         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
4227         sparc-nat.c compatiblity defines.
4228         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
4229         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4230         * config/sparc/tm-nbsd64.h: New file.
4231         * config/sparc/tm-nbsdaout.h: Remove.
4232         * config/sparc/xm-nbsd.h: Remove.
4233
4234 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4235
4236         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4237         * sparc-tdep.c: Include osabi.h.
4238         (gdbarch_tdep): Add osabi member.
4239         (_initialize_sparc_tdep): Use gdbarch_register.
4240         (sparc_gdbarch_init): Use generic OS ABI framework.
4241         (sparc_dump_tdep): New function.
4242
4243 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
4244
4245         * corefile.c (do_captured_read_memory_integer): Return non-zero
4246         result.
4247         (safe_read_memory_integer): Copy result of memory read when
4248         status is non-zero.  Also, add comments.
4249
4250 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
4251
4252         * Makefile.in (ppc_tdep_h): Define.
4253         (ppc-linux-nat.o)
4254         (ppc-linux-tdep.o)
4255         (rs6000-tdep.o): Use $(ppc_tdep_h).
4256         (ppc-sysv-tdep.o)
4257         (ppcnbsd-nat.o)
4258         (ppcnbsd-tdep.o): New dependency lists.
4259         * ppc-tdep.h: Use generic OS ABI framework.
4260         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4261         (ppc_linux_init_abi): New functions.
4262         (ppc_sysv_abi_broken_use_struct_convention)
4263         (ppc_sysv_abi_use_struct_convention)
4264         (ppc_sysv_abi_push_arguments): Move to...
4265         * ppc-sysv-tdep.c: ...here.
4266         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4267         * rs6000-tdep.c (process_note_abi_tag_sections)
4268         (get_elfosabi): Remove.
4269         (rs6000_gdbarch_init): Use generic OS ABI framework.
4270         (rs6000_dump_tdep): New function.
4271         (_initialize_rs6000_tdep): Use gdbarch_register.
4272         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4273         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4274         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4275         of ppc-linux-tdep.o.
4276         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4277         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4278         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4279         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4280         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4281         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4282
4283 2002-05-29  Jim Blandy  <jimb@redhat.com>
4284
4285         * macroscope.c (default_macro_scope): Put `void' in empty argument
4286         list.
4287
4288 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
4289
4290         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4291         * arch-utils.c: Include "sim-regno.h".
4292         * gdbarch.sh: Don't include "sim-regno.h".
4293         * gdbarch.h, gdbarch.c: Regenerate.
4294         * sim-regno.h (legacy_register_sim_regno): Move declaration from
4295         here.
4296         * arch-utils.h (legacy_register_sim_regno): To here.
4297         * remote-sim.c (legacy_register_sim_regno): Move function from
4298         here.
4299         * arch-utils.c (legacy_register_sim_regno): To here.
4300
4301 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
4302
4303         * sim-regno.h: New file.
4304         * Makefile.in (sim_regno_h): Define.
4305         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4306         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4307         (legacy_register_sim_regno): New function.
4308         (one2one_register_sim_regno): New function.
4309         (gdbsim_fetch_register): Rewrite.
4310         (gdbsim_store_register): Only store a register when
4311         REGISTER_SIM_REGNO is valid.
4312         * d10v-tdep.c: Include "sim-regno.h".
4313         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4314         (d10v_ts3_register_sim_regno): Ditto.
4315         * gdbarch.sh: Include "sim-regno.h".
4316         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4317         * gdbarch.h, gdbarch.c: Regenerate.
4318         * arch-utils.h (default_register_sim_regno): Delete declaration.
4319         * arch-utils.c (default_register_sim_regno): Delete function.
4320
4321 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
4322
4323         * ppcnbsd-nat.c: Rewrite.
4324         * ppcnbsd-tdep.c: New file.
4325         * ppcnbsd-tdep.h: New file.
4326         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4327         solib.o, and solib-svr4.o.
4328         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4329         nbsd-tdep.o, and corelow.o.
4330
4331 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
4332
4333         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4334         `tr' and `sed'.  Mention that `broken' targets are not expected to
4335         build.
4336
4337 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
4338
4339         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4340         Let PC point right after the prologue before looking up symbols.
4341         
4342 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
4343
4344         * i386-tdep.c (i386_register_virtual_type): Return 
4345         builtin_type_vec128i for SSE registers.
4346
4347         * gdbtypes.h (builtin_type_vec128i): Declare.
4348
4349         * gdbtypes.c (build_builtin_type_vec128i): New function.
4350         (builtin_type_v2_double, builtin_type_v4_int64): New types.
4351         (builtin_type_vec128i): New type for SSE2 128-bit registers.
4352         (build_gdbtypes): Initialize new builtin vector types.
4353         (_initialize_gdbtypes): Register new vector types with gdbarch.
4354
4355 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4356
4357         * MAINTAINERS: ns32k is not longer an obsolete candidate,
4358         since it has been multi-arch'd.
4359         * NEWS: Note that ns32k-*-* is now partial multi-arch.
4360         Move Alpha and VAX multi-arch news entries to same section
4361         as other multi-arch news.
4362
4363 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4364
4365         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4366         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
4367         static.  Rename some register numbers to put them in ns32k-tdep
4368         private namespace.
4369         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4370         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4371         functions.
4372         (_initialize_ns32k_tdep): Use gdbarch_register.
4373         * ns32k-tdep.h: New file.
4374         * ns32knbsd-tdep.c: New file.
4375         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4376         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4377         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4378         REGISTER_BYTES, REGISTER_BYTE): Remove.
4379         * config/ns32k/tm-ns32k.h: New file.
4380         * config/ns32k/tm-umax.h: Remove.
4381
4382 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4383
4384         * ns32k-tdep.c (ns32k_saved_pc_after_call,
4385         ns32k_store_struct_return, ns32k_extract_return_value,
4386         ns32k_store_return_value, ns32k_extract_struct_value_address): New
4387         functions.
4388         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4389         ns32k_saved_pc_after_call.
4390         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4391         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4392         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4393         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4394         ns32k_extract_struct_value_address.
4395
4396 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4397
4398         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4399         ns32k_fix_call_dummy): New.
4400         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4401         ns32k_call_dummy_words.
4402         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4403         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4404         CALL_DUMMY_NARGS): Remove.
4405         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4406
4407 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4408
4409         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4410         ns32k_frame_saved_pc, ns32k_frame_args_address,
4411         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4412         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4413         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4414         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4415         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4416         (BREAKPOINT): Remove..
4417         (FRAME_CHAIN): Define as ns32k_frame_chain.
4418         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4419         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4420         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4421         (FRAME_FIND_SAVED_REGS): Remove.
4422         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4423         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4424         (POP_FRAME): Define as ns32k_pop_frame.
4425
4426 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4427
4428         * ns32k-tdep.c (ns32k_register_byte_32082,
4429         ns32k_register_byte_32382, ns32k_register_raw_size,
4430         ns32k_register_virtual_size, ns32k_register_virtual_type): New
4431         functions.
4432         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4433         ns32k_register_byte_32382.
4434         * config/ns32k/tm-umax.h: Update copyright years.
4435         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4436         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4437         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4438         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4439         (ns32k_get_enter_addr): Fix prototype.
4440
4441 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4442
4443         * ns32k-tdep.c: Update copyright years.
4444         (ns32k_register_name_32082): New function.
4445         (ns32k_register_name_32382): Ditto.
4446         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4447         (REGISTER_NAME): Define as ns32k_register_name_32382.
4448         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4449         (REGISTER_NAME): Define as ns32k_register_name_32082.
4450
4451 2002-05-24  Jim Blandy  <jimb@redhat.com>
4452
4453         * dwarf2read.c (free_line_header): Use xfree, not free.
4454
4455 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
4456
4457         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4458         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4459
4460 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4461
4462         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4463
4464 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4465
4466         From Ross Alexander at NEC Europe:
4467         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4468
4469 2002-05-23  Michael Snyder  <msnyder@redhat.com>
4470
4471         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4472         for input, rather than parse_and_eval_address.  
4473
4474 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4475
4476         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4477         * Makefile.in (sim_d10v_h): Update definition.
4478
4479 2002-05-24  Andrew Cagney  <cagney@redhat.com>
4480
4481         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4482         change `2002-05-22 Michael Snyder' below.
4483         (d10v_push_arguments): Ditto.
4484         (d10v_extract_return_value): Ditto.
4485
4486 2002-05-23  Jim Blandy  <jimb@redhat.com>
4487
4488         * macrotab.c (check_for_redefinition): Don't complain if the new
4489         definition is the same as the previous one.  Take more arguments
4490         to allow the comparison.
4491         (macro_define_object, macro_define_function): Pass more arguments
4492         to check_for_redefinition.
4493
4494 2002-05-22  Michael Snyder  <msnyder@redhat.com>
4495
4496         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4497         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4498         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4499         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4500         Don't bail if return_pc is PC_IN_CALL_DUMMY.
4501         Add a temp variable to save a call (and a memory read).
4502         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4503         if possible (so that PC_IN_CALL_DUMMY will work).
4504
4505 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
4506
4507         * MAINTAINERS: Remove status `OBSOLETE' from v850.
4508
4509 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
4510
4511         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4512         fde->cie_ptr.
4513         (dwarf2_build_frame_info): Corrected handling of eh_frame.
4514         (dwarf2_build_frame_info): Add offset to fde->initial_location 
4515         so that frames of shared libraries are mapped correctly.
4516         (execute_stack_op): Change type of 'result' from ULONGEST to
4517         CORE_ADDR.
4518         
4519 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4520
4521         * config/alpha/tm-nbsd.h: Include solib.h.
4522
4523 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4524
4525         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4526         assumptions about the host's byte order.
4527
4528 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4529
4530         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4531         to dependency list.
4532         * alphanbsd-tdep.c: Include solib-svr4.h.
4533         * shnbsd-tdep.c: Ditto.
4534
4535 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4536
4537         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4538         nbsd-tdep.h to dependency list.
4539         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4540         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4541         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4542         nbsdaout.mh and nbsdelf.mh consistently.
4543         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4544         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4545         nbsdaout.mt and nbsdelf.mh consistently.
4546         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
4547         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4548         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4549         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
4550         a.out shared library stuff from here...
4551         * config/nm-nbsdaout.h: ...to here.
4552         * config/tm-nbsd.h: Remove.
4553         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4554         * config/arm/nbsd.mh: Remove.
4555         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4556         nbsd-tdep.o.
4557         * config/arm/nbsdaout.mh: New file. 
4558         * config/arm/nbsdelf.mh: New file.
4559         * config/arm/nm-nbsdaout.h: New file.
4560         * config/i386/nbsd.mh: Remove.
4561         * config/i386/nbsd.mt: Remove.
4562         * config/i386/nbsdaout.mh: New file.
4563         * config/i386/nbsdaout.mt: New file.
4564         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4565         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4566         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
4567         i386_register_u_addr): Remove.
4568         * config/i386/nm-nbsdaout.h: New file.
4569         * config/i386/nm-nbsdelf.h: Remove.
4570         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4571         (USE_STRUCT_CONVENTION): Remove.
4572         * config/i386/tm-nbsdaout.h: New file.
4573         * config/i386/tm-nbsdelf.h: Remove.
4574         * config/m68k/nbsd.mh: Remove.
4575         * config/m68k/nbsd.mt: Remove.
4576         * config/m68k/nbsdaout.mh: New file.
4577         * config/m68k/nbsdaout.mt: New file. 
4578         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4579         * config/m68k/nm-nbsdaout.h: New file.
4580         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4581         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4582         * config/ns32k/nbsd.mh: Remove.
4583         * config/ns32k/nbsd.mt: Remove. 
4584         * config/ns32k/nbsdaout.mh: New file.
4585         * config/ns32k/nbsdaout.mt: New file.
4586         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
4587         * config/ns32k/nm-nbsdaout.h: New file.
4588         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
4589         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4590         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4591         (SVR4_SHARED_LIBS): Remove.
4592         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4593         * config/sparc/nbsd.mh: Remove.
4594         * config/sparc/nbsd.mt: Remove.
4595         * config/sparc/nbsdaout.mh: New file.
4596         * config/sparc/nbsdaout.mt: New file.
4597         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4598         * config/sparc/nbsdelf.mt: New file.
4599         * config/sparc/nm-nbsdaout.h: New file.   
4600         * config/sparc/nm-nbsdelf.h: Remove.
4601         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4602         * config/sparc/tm-nbsdaout.h: New file.
4603
4604 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4605
4606         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4607         mipsnbsd-tdep.c
4608         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4609
4610 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4611
4612         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4613         shnbsd-nat.c.
4614         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4615
4616 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4617
4618         * NEWS: Note new MIPS NetBSD native configuration. 
4619         * configure.host (mips*-*-netbsd*): New host. 
4620         * configure.tgt (mips*-*-netbsd*): New target. 
4621         * mipsnbsd-nat.c: New file.
4622         * mipsnbsd-tdep.c: New file.
4623         * mipsnbsd-tdep.h: New file.
4624         * config/mips/nbsd.mh: New file.
4625         * config/mips/nbsd.mt: New file.
4626         * config/mips/nm-nbsd.h: New file.
4627         * config/mips/tm-nbsd.h: New file.
4628
4629 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4630
4631         * Makefile.in (SFILES): Add osabi.c.
4632         (COMMON_OBS): Add osabi.o.
4633         (osabi.o): New dependency list.
4634         * osabi.c: New file.
4635         * osabi.h: New file.
4636         * doc/gdbint.texinfo: Document new generic OS ABI framework.
4637
4638         * Makefile.in (alpha_tdep_h): Define and use instead of
4639         alpha-tdep.h.
4640         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4641         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4642         Remove.
4643         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4644         * alpha-tdep.h: Include osabi.h.
4645         (alpha_abi): Remove.
4646         (gdbarch_tdep): Use generic OS ABI framework.
4647         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4648         gdbarch_register_osabi.
4649         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4650         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4651         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4652
4653         * Makefile.in (sh_tdep_h): Add osabi.h.
4654         * sh-tdep.h (sh_osabi): Remove.
4655         (gdbarch_tdep): Use generic OS ABI framework.
4656         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4657         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4658         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4659         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4660
4661         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4662         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4663         gdbarch_register_osabi.
4664         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4665         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4666         (get_elfosabi): Rename to...
4667         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
4668         ABI framework support routines.
4669         (arm_gdbarch_init): Use generic OS ABI framework.
4670         (arm_dump_tdep): Likewise.
4671         (_initialize_arm_tdep): Likewise.
4672         * arm-tdep.h: Include osabi.h.
4673         (arm_abi): Remove.
4674         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
4675         osabi member.
4676         (arm_gdbarch_register_os_abi): Remove prototype.
4677         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4678         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4679
4680         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4681         * mips-tdep.c: Include osabi.h.
4682         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4683         OS ABI framework.
4684
4685 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
4686
4687         * h8300-tdep.c: Fix formatting.
4688
4689 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
4690
4691         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4692         printing vector registers.
4693
4694 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4695
4696         From Fernando Nasser:
4697         * remote.c (remote_async_open_1): Re-throw the exception when the
4698         connection fails.
4699         (remote_cisco_open): Ditto.
4700         (remote_open_1): Ditto.
4701
4702 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4703
4704         * remote.c (remote_start_remote_dummy): Add uiout parameter.
4705         (remote_start_remote): Add uiout parameter.  Pass through to
4706         remote_start_remote_dummy.
4707         (remote_open_1): Use catch_exception instead of catch_errors.
4708         (remote_async_open_1): Ditto.
4709         (remote_cisco_open): Ditto.
4710
4711 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4712
4713         * remote.c (remote_start_remote): Replace PTR with void pointer.
4714         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
4715         static.
4716
4717 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
4718
4719         * gdb_indent.sh: Allow the script to be run in the sim directory.
4720
4721 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
4722
4723         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4724         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4725
4726         * corelow.c (core_open): Only call set_gdbarch_from_file if
4727         exec_bfd is NULL.
4728
4729 2002-05-17  Andrey Volkov <avolkov@transas.com>
4730
4731         * h8300-tdep.c: Add support of EXR register
4732         * config/h8300/tm-h8300.h: Ditto. 
4733         
4734 2002-05-17  Andrey Volkov <avolkov@transas.com>
4735
4736         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
4737         
4738 2002-05-17  Andrey Volkov <avolkov@transas.com>
4739
4740         * h8300-tdep.c: Change literal regnums to REGNO.
4741         
4742 2002-05-17  Jim Blandy  <jimb@redhat.com>
4743
4744         * NEWS: Note addition of macro support.
4745
4746         Expand preprocessor macros in C expressions.
4747         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4748         (scan_macro_expansion, scanning_macro_expansion,
4749         finished_macro_expansion): New function declarations.
4750         (expression_macro_lookup_func, expression_macro_lookup_baton): New
4751         variable declarations.
4752         * parser-defs.h (expression_context_pc): New declaration.
4753         * parse.c (expression_context_pc): New variable.
4754         (parse_exp_1): Set expression_context_pc, as well as
4755         expression_context_block.
4756         * c-exp.y (yylex): If we're not already reading the result of a
4757         macro expansion, try to macro-expand the next token.  When we're
4758         done scanning a macro expansion, switch back to the mainline text.
4759         Commas and `if's in a macro's expansion don't terminate the input.
4760         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4761         (macro_original_text, macro_expanded_text,
4762         expression_macro_lookup_func, expression_macro_lookup_baton): New
4763         variables.
4764         (scan_macro_expansion, scanning_macro_expansion,
4765         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4766         c_preprocess_and_parse): New functions.
4767         (c_language_defn, cplus_language_defn, asm_language_defn): Call
4768         c_preprocess_and_parse, instead of c_parse.
4769         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4770         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4771
4772 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
4773
4774         * sh-tdep.c (gdb_print_insn_sh64): Delete.
4775         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4776         (sh_gdbarch_init): Always use gdb_print_insn_sh.
4777
4778 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
4779
4780         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
4781
4782 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
4783
4784         * Makefile.in (sh_tdep_h): Define and use.
4785         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4786         register enum): Move to...
4787         * * sh-tdep.h: ...here.
4788         * sh-tdep.c: Include sh-tdep.h.
4789         * sh3-rom.c: Likewise.
4790         * shnbsd-tdep.c: Likewise.
4791
4792 2002-05-16  Michael Snyder  <msnyder@redhat.com>
4793
4794         * arm-tdep.c: Spelling fix in comment.
4795
4796 2002-05-16  Jim Blandy  <jimb@redhat.com>
4797
4798         Add commands for manually expanding macros and showing their
4799         definitions.
4800         * macrocmd.c, macroscope.c, macroscope.h: New files.
4801         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4802         (macroscope_h): New variable.
4803         (HFILES_NO_SRCDIR): Add macroscope.h.
4804         (COMMON_OBS): Add macrocmd.o, macroscope.o.
4805         (macroscope.o, macrocmd.o): New rules.
4806
4807         Teach the Dwarf 2 reader to read macro information.
4808         * dwarf2read.c: #include "macrotab.h".
4809         (dwarf_macinfo_buffer): New variable.
4810         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4811         dwarf_macinfo_size.
4812         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4813         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4814         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4815         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4816         dwarf2_macro_spaces_in_definition): New complaints.
4817         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4818         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4819         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4820         the partial symbol table.
4821         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4822         from what's recorded in the partial symbol table.
4823         (read_file_scope): If the compilation unit has a
4824         `DW_AT_macro_info' attribute, read its macro information.
4825         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4826
4827 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
4828
4829         Fix PR gdb/546
4830         * ser-tcp.c: Don't include <netinet/udp.h>.
4831
4832 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
4833
4834         * MAINTAINERS: Update my email address.
4835
4836 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
4837
4838         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4839         include file of the same name.
4840
4841 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4842
4843         * configure.tgt: Mark v850 as multi-arched.
4844         * config/v850/tm-v850.h: Remove file.
4845         * config/v850/v850.mt: Eliminate TM_FILE.
4846
4847 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4848
4849         * v850-tdep.c: Full multi-arch.
4850         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4851         Define GDB_MULTI_ARCH to 2.
4852
4853 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4854
4855         * p-exp.y (current_type): New static variable.
4856         Carries the type of the expression at the position that is parsed.
4857         (push_current_type, pop_current_type): Two new functions. Used
4858         to store/restore current_type in expression on specific tokens.
4859         (search_field): New static variable. Set to one after parsing a point
4860         as at that point only a FIELDNAME token should be searched.
4861         (FIELDNAME): New token. After a point only a token belonging to 
4862         current_type type definition is allowed.
4863         (all over token rules): reset and change current_type according
4864         to rules.
4865         (exp '[' rule): insert implicit array index field if
4866         exp is a pascal string type.
4867
4868 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4869
4870         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
4871         frame info.  Use frame_info's saved_regs instead of matching member
4872         in extra_frame_info throughout.
4873         (v850_frame_init_saved_regs): New function.
4874         (v850_init_extra_frame_info): Move most functionality into
4875         v850_frame_init_saved_regs().
4876         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4877         (v850_frame_find_saved_regs): Remove declaration.
4878         (FRAME_FIND_SAVED_REGS): Remove definition.
4879         (v850_frame_init_saved_regs): Add declaration.
4880         (FRAME_INIT_SAVED_REGS): Add definition.
4881
4882 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4883
4884         * v850-tdep.c: Begin multi-arch'ing v850.
4885         (v850_target_architecture_hook): Remove function.
4886         (v850_gdbarch_init): New function.  Add code previously in
4887         v850_target_architecture_hook().
4888         (_initialize_v850_tdep): Don't  set target_architecture_hook.
4889         Call register_gdbarch_init() instead.
4890
4891 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
4892
4893         * gdbtypes.h (struct cplus_struct_type): Remove args field.
4894         * hpread.c (hpread_read_struct_type): Remove assignments to args.
4895         (fixup_class_method_type): Likewise.
4896
4897 2002-05-15  Jim Blandy  <jimb@redhat.com>
4898
4899         Add macro structures to GDB's symbol tables.  Nobody puts anything
4900         in them yet.
4901         * symtab.h (struct symtab): New member: `macro_table'.
4902         * buildsym.h (pending_macros): New global variable.
4903         * buildsym.c: #include "macrotab.h".
4904         (buildsym_init): Initialize `pending_macros'.
4905         (end_symtab): If we found macro information while reading a CU's
4906         debugging info, do build a symtab structure for it.  Make the
4907         symtab point to the macro information, and clear the
4908         `pending_macros' pointer which held it while we were reading the
4909         debug info.
4910         (really_free_pendings): Free any pending macro table.
4911         * objfiles.h (struct objfile): New member: `macro_cache'.
4912         * objfiles.c (allocate_objfile): Set allocate and free functions
4913         for the macro cache's objstack.
4914         (free_objfile): Empty the macro cache's obstack.
4915         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4916         set new allocate and free functions for it.
4917         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4918         free functions for the macro cache's objstack.  (Why is this
4919         function building its own objfile?)
4920         * symmisc.c (print_objfile_statistics): Print statistics on the
4921         macro bcache.
4922         * Makefile.in: Note that buildsym.o depends on macrotab.h.
4923
4924 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
4925
4926         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4927         (REGISTER_U_ADDR): Delete definition.
4928         (arm_register_u_addr): Delete declaration.
4929
4930 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
4931
4932         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4933         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4934
4935 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
4936
4937         * regcache.c (register_valid): Revise comments refering to "Not
4938         available" and "unavailable".
4939         * frame.c (frame_register_read): Ditto.
4940         * findvar.c (value_of_register): Ditto.
4941
4942 2002-05-15  Andrew Cagney  <cagney@redhat.com>
4943
4944         * Makefile.in (remote_sim_h): Replace remote-sim_h.
4945         (remote-sim.o): Update dependencies.
4946         (d10v-tdep.o): Specify dependencies.
4947         (sim_d10v_h): Define.
4948
4949 2002-05-14  Jim Blandy  <jimb@redhat.com>
4950
4951         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4952         * macrotab.c (macro_lookup_inclusion, find_definition,
4953         new_macro_table): Same.
4954         
4955         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4956         not `! strcmp ()'.  This is a dubious improvement.
4957         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4958
4959         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4960         although it's not necessary, to avoid a warning.
4961
4962 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
4963
4964         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4965         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4966         TYPE_INSTANCE_FLAGS.
4967         (struct main_type): New.
4968         (struct type): Move most members to struct main_type.  Change
4969         cv_type and as_type to new type_chain member.  Add instance_flags.
4970         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4971         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4972         (finish_cv_type): Remove prototype.
4973         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
4974         Set TYPE_CHAIN.
4975         (alloc_type_instance): New function.
4976         (smash_type): New function.
4977         (make_pointer_type, make_reference_type, make_function_type)
4978         (smash_to_member_type, smash_to_method_type): Call smash_type.
4979         (make_qualified_type): New function.
4980         (make_type_with_address_space): Call make_qualified_type.
4981         (make_cv_type): Likewise.
4982         (finish_cv_type): Remove unnecessary function.
4983         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
4984         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4985         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4986         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4987         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4988         * hpread.c (hpread_read_struct_type): Likewise.
4989         * stabsread.c (read_struct_type): Likewise.
4990
4991 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
4992
4993         * configure.tgt: Add a catch all sh* target, for cases like
4994         sh[2,3,4]-elf and sh-hms.
4995
4996 2002-05-14  Keith Seitz  <keiths@redhat.com>
4997
4998         * event-loop.c (create_file_handler): Don't do anything but
4999         update data when we are given a fd which we are already
5000         monitoring.
5001
5002 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
5003
5004         * dwarf2cfi.c (context_cpy): Copy registers correctly.
5005         (update_context): Use __func__ in warnings.
5006         
5007 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
5008
5009         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
5010         and tcp_close to net_open and net_close.
5011         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
5012         using UDP if requested.  Don't try to disable Nagle on UDP
5013         sockets.
5014         * remote.c (remote_serial_open): New function.  Warn about UDP.
5015         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5016
5017 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
5018
5019         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5020
5021 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
5022
5023         * configure.tgt: Remove sh-hms target.
5024         * MAINTAINERS: Don't list sh-hms as a separate target.
5025
5026 2002-05-13  Jim Blandy  <jimb@redhat.com>
5027
5028         Add first preprocessor macro-expansion files.
5029         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5030         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5031         (splay_tree_h, macroexp_h, macrotab_h): New variable.
5032         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5033         (COMMON_OBS): Add macrotab.o, macroexp.o.
5034         (macroexp.o, macrotab.o): New rules.
5035
5036 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
5037
5038         * config/m88k/tm-m88k.h: Update copyright.
5039         (m88k_target_write_pc): Declare
5040         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5041         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5042         (SHIFT_INST_REGS): Update definition.
5043         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
5044         using old definition of TARGET_WRITE_PC.
5045         * regcache.c (generic_target_write_pc): Delete code handling
5046         NNPC_REGNUM.
5047         * gdbarch.sh (NNPC_REGNUM): Delete.
5048         * gdbarch.h, gdbarch.c: Regenerate.
5049
5050 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
5051
5052         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5053         builtin reg number.
5054
5055 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
5056
5057         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5058         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5059         (gen_address_of, gen_struct_ref, gen_repeat): Use type
5060         access macros.
5061         * c-typeprint.c (cp_type_print_method_args): Likewise.
5062         (c_type_print_args): Likewise.
5063         * d10v-tdep.c (d10v_push_arguments): Likewise.
5064         (d10v_extract_return_value): Likewise.
5065         * expprint.c (print_subexp): Likewise.
5066         * gdbtypes.c (lookup_primitive_typename): Likewise.
5067         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5068         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5069         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5070         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5071         (TYPE_VECTOR): Likewise.
5072         * hpread.c (hpread_read_struct_type)
5073         (fix_static_member_physnames, fixup_class_method_type)
5074         (hpread_type_lookup): Likewise.
5075         * mdebugread.c (parse_symbol, parse_type): Likewise.
5076         * p-lang.c (is_pascal_string_type): Likewise.
5077         * valops.c (hand_function_call): Likewise.
5078         * x86-64-tdep.c (classify_argument): Likewise.
5079
5080         * hpread.c (hpread_read_function_type)
5081         (hpread_read_doc_function_type): Call replace_type.
5082         * dstread.c (create_new_type): Delete.
5083         (decode_dst_structure, process_dst_function): Call alloc_type.
5084         Use type access macros.
5085
5086 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5087
5088         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5089         the're not supported by the current architecture.
5090         (i387_fill_fxsave): Likewise.
5091
5092 2002-05-12  Fred Fish  <fnf@redhat.com>
5093
5094         * symfile.c (default_symfile_offsets): Arrange for uninitialized
5095         sect_index_xxx members to index the first slot in section_offsets
5096         if all of the section_offsets are zero.
5097
5098 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5099
5100         * configure.tgt (sparc-*openbsd): Remove entry accidentially
5101         checked in with last change.
5102
5103 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5104
5105         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5106         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
5107         config.sub.
5108
5109 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
5110
5111         * Makefile.in: Update dependencies.
5112
5113 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5114
5115         * language.c (local_hex_string_custom): Simplify.  Do not depend
5116         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5117
5118         * memattr.c (mem_info_command): Replace calls to
5119         longest_local_hex_string and longest_local_hex_string_custom.
5120         * buildsym.c (make_blockvector): Ditto.
5121         * solib.c (info_sharedlibrary_command): Ditto.
5122         * tracepoint.c (tracepoints_info): Ditto.
5123         * symtab.c (print_msymbol_info): Ditto.
5124
5125         * language.c (local_hex_string): Delete.
5126         (local_hex_string_custom): Delete.
5127         (longest_local_hex_string): Rename to local_hex_string.
5128         (longest_local_hex_string_custom): Rename to
5129         local_hex_string_custom.
5130         * language.h (local_hex_string): Change parameter type to LONGEST.
5131         (local_hex_string_custom): Ditto.
5132         (longest_local_hex_string): Delete declaration.
5133         (longest_local_hex_string_custom): Ditto.
5134
5135         * solib.c: Update copyright.
5136         * memattr.c: Update copyright.
5137         
5138 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5139
5140         * arch-utils.h (legacy_register_to_value): Declare.
5141         (legacy_value_to_register): Declare.
5142         (legacy_convert_register_p): Declare.
5143         * arch-utils.c (legacy_register_to_value): New function.
5144         (legacy_value_to_register): New function.
5145         (legacy_convert_register_p): New function.
5146
5147         * gdbarch.sh (REGISTER_TO_VALUE): Define.
5148         (VALUE_TO_REGISTER): Define.
5149         (CONVERT_REGISTER_P): Define.
5150         * gdbarch.h, gdbarch.c: Regenerate.
5151
5152         * valops.c (value_assign): Use CONVERT_REGISTER_P and
5153         VALUE_TO_REGISTER.
5154         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5155         CONVERT_REGISTER_P.
5156
5157 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
5158             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5159
5160         * Makefile.in: Update dependencies for valops.c.
5161         * valops.c: Include "gdb_assert.h".
5162         (typecmp): Skip THIS parameter to methods.
5163         (find_method_list): Remove static_memfuncp argument,
5164         update callers.  Check for stub methods.
5165         (find_value_oload_method_list): Don't set *static_memfuncp.
5166         (find_overload_match): Don't check for stub methods.  Assert
5167         that methods are not stubbed.  Handle static methods.
5168         (value_find_oload_method_list): Remove static_memfuncp argument.
5169         * gdbtypes.c (check_stub_method): Do not add THIS pointer
5170         to the argument list for static stub methods.
5171         * value.h (value_find_oload_method_list): Update prototype.
5172
5173 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5174
5175         * arch-utils.h (generic_register_size): Declare.
5176         (generic_register_raw_size, generic_register_virtual_size): Delete
5177         declarations.
5178         * arch-utils.c (generic_register_raw_size): Delete.
5179         (generic_register_size): New function.
5180         (generic_register_virtual_size): Delete.
5181
5182         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5183         default generic_register_size.
5184         * gdbarch.h, gdbarch.c: Re-generate.
5185         
5186         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5187         register_virtual_size.
5188         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5189         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5190
5191 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5192
5193         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5194         * gdbarch.h, gdbarch.c: Regenerate.
5195         * gnu-v3-abi.c: Update copyright.
5196         (vtable_address_point_offset): Update.
5197         (gnuv3_rtti_type): Update.
5198         (gnuv3_baseclass_offset): Update.
5199         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5200         (init_fetch_link_map_offsets): Update.
5201         * remote.c (get_remote_state): Update.
5202         
5203 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
5204
5205         * TODO: Remove value_headof/value_from_vtable_info comment.
5206         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5207         * values.c (value_headof, value_from_vtable_info): Delete.
5208         * value.h (value_from_vtable_info): Delete prototype.
5209
5210 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5211
5212         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5213         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5214         $(gdb_regex_h).
5215         (gdb_assert_h): Define.
5216         (gdb_wait_h): Define.
5217         (gdb_regex_h): Define.
5218
5219 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
5220
5221         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5222         * linespec.c (find_methods): Handle GCC 3.x template constructors.
5223
5224 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5225
5226         * nbsd-tdep.c: Fix comment.
5227
5228 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5229
5230         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5231         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5232         (nbsd-tdep.o): New dependency list.
5233         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
5234         nbsd-tdep.h.
5235         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5236         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5237         * nbsd-tdep.c: New file.
5238         * nbsd-tdep.h: New file.
5239         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
5240         nbsd-tdep.h.
5241         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5242         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5243         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5244         * config/sh/nbsd.mt (TDEPFILES): Ditto.
5245
5246 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5247
5248         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5249         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5250         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5251         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5252         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5253         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5254
5255 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5256
5257         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5258         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5259         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5260         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5261         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5262         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5263         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5264
5265 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5266
5267         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
5268         fetch_elfcore_registers to...
5269         * i386nbsd-tdep.c: ...here.
5270         (i386nbsd_use_struct_convention): Rename to...
5271         (i386nbsd_aout_use_struct_convention): ...this.
5272         (i386nbsd_supply_reg): New function.
5273         (i386nbsd_fill_reg): New function.
5274         (fetch_core_registers): Use i386nbsd_supply_reg.
5275         (fetch_elfcore_registers): Likewise.
5276         (_initialize_i386nbsd_tdep): New function.
5277         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5278         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5279         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5280         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5281         (i386nbsd_aout_use_struct_convention): ...this.
5282
5283 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5284
5285         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5286         (store_inferior_registers): Use shnbsd_fill_reg.
5287         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
5288         sh_nbsd_supply_register): Collapse into...
5289         (shnbsd_supply_reg): ...this.
5290         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5291         (shnbsd_fill_reg): ...this.
5292         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5293         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5294         (fetch_core_registers): Use shnbsd_supply_reg.
5295         (fetch_elfcore_registers): Use shnbsd_supply_reg.
5296         (sh_nbsd_core_fns): Rename to...
5297         (shnbsd_core_fns): ...this.
5298         (sh_nbsd_elfcore_fns): Rename to...
5299         (shnbsd_elfcore_fns): ...this.
5300         (sh_nbsd_init_abi): Rename to...
5301         (shnbsd_init_abi): ...this.
5302         (_initialize_sh_nbsd_tdep): Rename to...
5303         (_initialize_shnbsd_tdep): ...this.
5304         * shnbsd-tdep.h (sh_nbsd_supply_registers,
5305         sh_nbsd_supply_register, sh_nbsd_fill_registers,
5306         sh_nbsd_fill_register): Remove prototypes.
5307         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5308
5309 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5310
5311         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5312         (i387-nat.o): Delete dependency list.
5313         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5314         (x86-64-linux-nat.o): Likewise.
5315         * i387-nat.c: Delete file, moving contents to...
5316         * i387-tdep.c: ...here.
5317         * i387-nat.h: Rename...
5318         * i387-tdep.h: ...to this.
5319         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5320         * i386-linux-nat.c: Likewise.
5321         * i386bsd-nat.c: Likewise.
5322         * i386gnu-nat.c: Likewise.
5323         * i386nbsd-nat.c: Likewise.
5324         * i386v4-nat.c: Likewise.
5325         * x86-64-linux-nat.c: Likewise.
5326         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5327         * config/i386/go32.mh (NATDEPFILES): Likewise.
5328         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5329         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5330         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5331         * config/i386/linux.mh (NATDEPFILES): Likewise.
5332         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5333         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5334         * config/i386/obsd.mh (NATDEPFILES): Likewise.
5335         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5336
5337 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5338
5339         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5340         (alphanbsd-nat.o): Remove dependency list.
5341         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5342         * alphanbsd-nat.c: Delete.  Contents moved to...
5343         * alphanbsd-tdep.c: ...here.
5344         (_initialize_alphanbsd_tdep): Register core functions.
5345         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5346
5347 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5348
5349         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5350         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5351         (alphanbsd-nat.o): Likewise.
5352         (alphabsd-tdep.o): New dependency list.
5353         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5354         (fill_gregset): Use alphabsd_fill_reg.
5355         (supply_fpregset): Use alphabsd_supply_fpreg.
5356         (fill_fpregset): Use alphabsd_fill_fpreg.
5357         (fetch_inferior_registers): Use struct reg and struct fpreg
5358         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
5359         and alphabsd_supply_fpreg.
5360         (store_inferior_registers): Use struct reg and struct fpreg
5361         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
5362         and alphabsd_fill_fpreg.
5363         * alphabsd-tdep.c: New file.
5364         * alphabsd-tdep.h: New file.
5365         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5366         (fetch_elfcore_registers): Use alphabsd_supply_reg and
5367         alphabsd_supply_fpreg.
5368         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5369         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5370
5371 2002-05-11  Eric Christopher  <echristo@redhat.com>
5372
5373         * mips-tdep.c (mips_double_register_type): Fix thinko.
5374         (mips_single_register_type): Ditto.
5375         * MAINTAINERS: Add self.
5376
5377 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
5378
5379         * i387-nat.c (i387_supply_register, i387_fill_fsave,
5380         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5381         right thing on architectures with different endianness and/or
5382         integer sizes.
5383
5384 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
5385
5386         From Christian Limpach <chris@Pin.LU>
5387         * configure.in: Change sed expression which comments out
5388         NATDEPFILES to also comment out continuation lines.
5389         * configure: Regenerate.
5390
5391 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5392
5393         * sh-tdep.c: Clean up code erroneously reintroduced by previous
5394         big patch.
5395
5396 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5397
5398         * sh-tdep.c: Include correct file.
5399
5400 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5401
5402         New support for sh64-elf (sh5) target.
5403
5404         * configure.tgt: For sh64-elf target, default to sh-elf.
5405
5406         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5407         (struct gdbarch_tdep): Add new fields for new registers and ABI
5408         info.
5409
5410         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5411         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5412         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5413         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5414         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5415         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5416         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5417         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5418         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5419         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5420         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5421         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5422         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5423         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5424         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5425         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5426         sh64_get_gdb_regnum, sh64_media_reg_base_num,
5427         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5428         sign_extend, sh64_nofp_frame_init_saved_regs,
5429         sh64_init_extra_frame_info, sh64_get_saved_register,
5430         sh64_extract_struct_value_address, sh64_pop_frame,
5431         sh64_push_arguments, sh64_extract_return_value,
5432         sh64_store_return_value, sh64_show_media_regs,
5433         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5434         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5435         sh_sh64_register_virtual_type,
5436         sh_sh64_register_convert_to_virtual,
5437         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5438         sh64_register_read, sh64_pseudo_register_write,
5439         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5440         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5441         sh64_do_pseudo_register, sh_compact_do_registers_info,
5442         sh64_do_registers_info, sh_gdbarch_init): New functions.
5443
5444 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5445
5446         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5447
5448 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
5449
5450         * linespec.c (decode_line_1): Check for a double quote after
5451         a filename correctly.
5452
5453 2002-05-10  Jim Blandy  <jimb@redhat.com>
5454
5455         Properly track the size of the current objfile's .debug_line section.
5456         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5457         (DWARF_LINE_SIZE): New macro.
5458         (dwarf2_build_psymtabs_hard): Record the line section's size in
5459         the partial symbol table.
5460         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5461         symbol table.
5462
5463 2002-05-10  Petr Sorfa  <petrs@caldera.com>
5464
5465         * ia64-tdep.c: Handle breakpoints on L instruction type
5466         in MLX instruction bundle by moving the breakpoint to
5467         the third slot (X instruction type) as L holds only data.
5468
5469 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
5470
5471         * dbxread.c (discarding_local_symbols_complaint): New complaint.
5472         (process_one_symbol): Complain about discarding local symbols
5473         due to a misplaced N_LBRAC entry.
5474
5475 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
5476
5477         From Daniel Berlin <dan@cgsoftware.com>
5478         * linespec.c (find_toplevel_char): '<' and '>' also increase and
5479         decrease the depth we are at, in the case of templates.
5480
5481 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5482
5483         * mips-tdep.c (mips_float_register_type): New function.
5484         (mips_double_register_type): New function.
5485         (mips_print_register): Use them.
5486         (do_fp_register_row): Likewise.
5487
5488 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5489
5490         * signals/signals.c (signals): Remove conditional compilation around
5491         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
5492         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5493
5494 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5495
5496         * remote-rdp.c (remote_rdp_can_run): Remove.
5497
5498 2002-05-09  Tom Tromey  <tromey@redhat.com>
5499
5500         * jv-valprint.c (java_val_print): Handle `char' as a special case
5501         of TYPE_CODE_INT.
5502
5503 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5504
5505         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5506         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5507         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5508         str r(0123),[sp,#nn].
5509         (arm_skip_prologue): Ditto.  Also make disassembly
5510         order-independent by placing it in a loop.
5511
5512 2002-05-06  Michael Snyder  <msnyder@redhat.com>
5513
5514         * stabsread.c (read_type): Add recognition for new attribute:
5515         "@V;" means that an array type is actually a vector.
5516         This is analogous to the vector flag that's been added to dwarf2.
5517
5518 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
5519
5520         * i386-tdep.h (i386_abi): New enum.
5521         (struct gdbarch_tdep): Replace os_ident member with abi.
5522         (i386_gdbarch_register_os_abi): New prototype.
5523         * i386-tdep.c (i386_abi_names): New array.
5524         (process_note_abi_tag_sections): Removed.
5525         (process_note_sections): New function.
5526         (i386_elf_abi_from_note, i386_elf_abi): New functions.
5527         (struct i386_abi_handler): New struct.
5528         (i386_abi_handler_list): New variable.
5529         (i386_gdbarch_register_os_abi): New function.
5530         (i386_gdbarch_init): Adapt for the changes given above.
5531
5532 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
5533
5534         * gregset.h: Say "GNU/Linux".
5535
5536 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
5537
5538         * gdbtypes.c : Add new builtin type for 64 bit vectors.
5539         (build_gdbtypes): Build builtin_type_v2_float.
5540         (_initialize_gdbtypes): Register new builtin type.
5541
5542 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
5543
5544         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5545         (clear_gdbarch_swap): New function.
5546         (initialize_non_multiarch): Call.
5547         (gdbarch_update_p): Before calling init(), swap out and clear the
5548         existing architecture.
5549         * gdbarch.c: Regenerate.
5550
5551 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5552
5553         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5554         alphanbsd-tdep.c.
5555
5556 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5557
5558         * sh-nbsd-nat.c: Rename to...
5559         * shnbsd-nat.c: ...this.
5560         * sh-nbsd-tdep.c: Rename to...
5561         * shnbsd-tdep.c: ...this.
5562         * sh-nbsd-tdep.h: Rename to...
5563         * shnbsd-tdep.h: ...this.
5564         * config/sh/nbsd.mh: Use shnbsd-nat.o.
5565         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5566
5567 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
5568
5569         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5570         concatenation for command help messages.
5571
5572 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5573
5574         * NEWS: Note new sh*-*-netbsdelf* configuration.
5575         * configure.host: Set gdb_host_cpu to sh for all sh*.
5576         (sh*-*-netbsdelf*): New host.
5577         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5578         (sh*-*-netbsdelf*): New target.
5579         * sh-nbsd-nat.c: New file.
5580         * sh-nbsd-tdep.c: New file.
5581         * sh-nbsd-tdep.h: New file.
5582         * config/sh/nbsd.mh: New file.
5583         * config/sh/nbsd.mt: New file.
5584         * config/sh/nm-nbsd.h: New file.
5585         * config/sh/tm-nbsd.h: New file.
5586
5587 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5588
5589         * sh-tdep.c (sh_osabi_names): Declare.
5590         (process_note_abi_tag_sections): New function.
5591         (get_elfosabi): Ditto.
5592         (sh_gdbarch_register_os_abi): Ditto.
5593         (sh_dump_tdep): Ditto.
5594         _initialize_sh_tdep): Use gdbarch_register to register
5595         sh_gdbarch_init and sh_dump_tdep.
5596         * config/sh/tm-sh.h (sh_osabi): Declare.
5597         (gdbarch_tdep): Add sh_osabi and osabi_name members.
5598
5599 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
5600
5601         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5602         (thumb_scan_prologue): Ditto.
5603         (arm_find_callers_reg): Ditto.
5604         (arm_frame_chain): Ditto.
5605         (arm_init_extra_frame_info): Ditto.
5606         (arm_frame_saved_pc): Ditto.
5607         (arm_pop_frame): Ditto.
5608         (arm_push_return_address): New function.
5609         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5610         call_dummy_location, call_dummy_breakpoint_offset_p,
5611         call_dummy_breakpoint_offset, call_dummy_p,
5612         call_dummy_stack_adjust_p, call_dummy_words,
5613         sizeof_call_dummy_words, call_dummy_start_offset,
5614         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5615         call_dummy_address, push_return_address and push_dummy_frame for
5616         generic dummy frames.
5617
5618 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5619
5620         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5621         size computation for alloca.
5622         (sh_fp_frame_init_saved_regs): Likewise.
5623
5624 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
5625
5626         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5627         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5628         * arm-tdep.c (arm_store_return_value): Use them.
5629         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5630         * remote-rdp.c (remote_rdp_fetch_register): Use
5631         ARM_MAX_REGISTER_RAW_SIZE.
5632         (remote_rdp_store_register): Likewise.
5633
5634 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
5635
5636         * dwarf2cfi.c: Code cleanup, removed unused variables,
5637         added default labels to switch {} statements.
5638         * x86-64-tdep.c: Ditto.
5639         * x86-64-linux-nat.c: Ditto.
5640
5641 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5642
5643         * solib.h: Protect against multiple inclusion.
5644
5645 2002-05-06  Jim Blandy  <jimb@redhat.com>
5646
5647         Add first preprocessor macro-expansion files.
5648         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5649         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5650         (splay_tree_h, macroexp_h, macrotab_h): New variable.
5651         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5652         (COMMON_OBS): Add macrotab.o, macroexp.o.
5653         (macroexp.o, macrotab.o): New rules.
5654
5655         Separate the job of reading the line number info statement program
5656         header (...expialidocious) out into its own function.
5657         * dwarf2read.c (struct line_head, struct filenames, struct
5658         directories): Replace with...
5659         (struct line_header): New structure, containing the full
5660         contents of the statement program header, including the
5661         include directory and file name tables.
5662         (read_file_scope): If we have line number info, instead of just
5663         calling dwarf_decode_lines to do all the work, call
5664         dwarf_decode_line_header first to get a `struct line_header'
5665         containing the data in the statement program header, and then
5666         pass that to dwarf_decode_lines, which will pick up where that
5667         left off.  Be sure to clean up the `struct line_header' object.
5668         (dwarf_decode_line_header, free_line_header, add_include_dir,
5669         add_file_name): New functions.
5670         (dwarf_decode_lines): Move all the code to read the statement
5671         program header into dwarf_decode_line_header.  Take the line
5672         header it built as the first argument, instead of the offset to
5673         the compilation unit's line number info.  Use the new `struct
5674         line_header' type instead of the old structures.  No need to do
5675         cleanups here now, since we don't allocate anything.
5676         (dwarf2_statement_list_fits_in_line_number_section,
5677         dwarf2_line_header_too_long): New complaints.
5678
5679 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
5680
5681         * gdbtypes.c (init_vector_type): New function.
5682         (build_builtin_type_vec128): Simplify the representation of SIMD
5683         registers.
5684         (build_gdbtypes): Initialize new builtin vector types.
5685         (_initialize_gdbtypes): Register new vector types with gdbarch.
5686         (builtin_type_v4_float, builtin_type_v4_int32,
5687         builtin_type_v8_int16, builtin_type_v16_int8,
5688         builtin_type_v2_int32, builtin_type_v4_int16,
5689         builtin_type_v8_int8): New (renamed) SIMD types.
5690
5691 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
5692
5693         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5694         (i387_fill_fxsave): Likewise.
5695
5696 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
5697
5698         * alpha-tdep.c (alpha_extract_return_value): Don't use
5699         non-constant array size in prototype.
5700
5701 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5702
5703         From Brian Taylor <briant at model dot com>:
5704         * ui-out.c (ui_out_field_core_addr): Use the function
5705         longest_local_hex_string_custom'to format addresses > 32 bits
5706         wide.
5707
5708         * ui-out.c (ui_out_field_core_addr): Update comment.
5709
5710 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5711
5712         * stack.c (select_and_print_frame): Make static.  Delete the
5713         parameter `level'.
5714         (func_command): Update call.
5715         (select_frame_command): Delete code computing the frame level.
5716         * frame.h (select_and_print_frame): Delete declaration.
5717
5718 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5719
5720         * sparc-tdep.c (sparc_get_saved_register): Comment why
5721         get_prev_frame call is safe.
5722
5723 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5724
5725         * frame.h (select_frame): Delete level parameter.
5726         * stack.c (select_frame): Update.  Use frame_relative_level to
5727         obtain the frame's level.
5728         (select_and_print_frame): Update call.
5729         (select_frame_command): Ditto.
5730         (up_silently_base): Ditto.
5731         (down_silently_base): Ditto.
5732         * ocd.c (ocd_start_remote): Ditto.
5733         * remote-rdp.c (remote_rdp_open): Ditto.
5734         * remote-mips.c (mips_initialize): Ditto.
5735         (common_open): Ditto.
5736         * remote-e7000.c (e7000_start_remote): Ditto.
5737         * m3-nat.c (select_thread): Ditto.
5738         * hppa-tdep.c (child_get_current_exception_event): Ditto.
5739         (child_get_current_exception_event): Ditto.
5740         * varobj.c (varobj_create): Ditto.
5741         (varobj_update): Ditto.
5742         (c_value_of_root): Ditto.
5743         * tracepoint.c (finish_tfind_command): Ditto.
5744         * corelow.c (core_open): Ditto.
5745         * arch-utils.c (generic_prepare_to_proceed): Ditto.
5746         * thread.c (info_threads_command): Ditto.
5747         (switch_to_thread): Ditto.
5748         * infrun.c (normal_stop): Ditto.
5749         (restore_selected_frame): Ditto.
5750         (restore_inferior_status): Ditto.
5751         * breakpoint.c (insert_breakpoints): Ditto.
5752         (watchpoint_check): Ditto.
5753         (bpstat_stop_status): Ditto.
5754         (do_enable_breakpoint): Ditto.
5755         * blockframe.c (flush_cached_frames): Ditto.
5756         (reinit_frame_cache): Ditto.
5757
5758 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5759
5760         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5761         maintainer.
5762
5763 2002-05-04  Jim Blandy  <jimb@redhat.com>
5764
5765         * gdbtypes.c (replace_type): Doc fix.
5766
5767 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5768
5769         * valprint.c (strcat_longest): Delete commented out function.
5770         Update copyright.
5771
5772 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5773
5774         * MAINTAINERS: Mark a29k as deleted.
5775         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
5776         Move new configurations to the top.
5777         * configure.tgt: Remove a29k.
5778         * config/a29k/tm-vx29k.h: Delete.
5779         * config/a29k/vx29k.mt: Delete.
5780         * config/a29k/tm-a29k.h: Delete.
5781         * config/a29k/a29k-udi.mt: Delete.
5782         * config/a29k/a29k.mt: Delete.
5783         * a29k-tdep.c: Delete.
5784         * remote-udi.c: Delete.
5785         * remote-mm.c: Delete.
5786         * remote-eb.c: Delete.
5787         * remote-adapt.c: Delete.
5788         * Makefile.in: Remove obsolete code.
5789         * config/s390/s390x.mt: Ditto.
5790         * config/s390/s390.mt: Ditto.
5791         * config/sparc/sparclynx.mh: Ditto.
5792         * config/sparc/linux.mh: Ditto.
5793         * config/pa/hppaosf.mh: Ditto.
5794         * config/pa/hppabsd.mh: Ditto.
5795         * config/ns32k/nbsd.mt: Ditto.
5796         * config/mips/vr5000.mt: Ditto.
5797         * config/m68k/sun3os4.mh: Ditto.
5798         * config/m68k/nbsd.mt: Ditto.
5799         * config/m68k/m68klynx.mh: Ditto.
5800         * config/m32r/m32r.mt: Ditto.
5801         * config/i386/x86-64linux.mt: Ditto.
5802         * config/i386/nbsdelf.mt: Ditto.
5803         * config/i386/nbsd.mt: Ditto.
5804         * config/i386/i386lynx.mh: Ditto.
5805
5806 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5807
5808         * target.c (debug_print_register): New function.  Handle oversize
5809         registers.
5810         (debug_to_fetch_registers): Call.
5811         (debug_to_store_registers): Call.
5812
5813 2002-05-03  Jim Blandy  <jimb@redhat.com>
5814
5815         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5816         (read_type): Doc fix.
5817         * gdbtypes.c (replace_type): Doc fix.
5818
5819         * stabsread.c (multiply_defined_struct): New complaint.
5820         (read_struct_type): If the type we were passed isn't empty, or
5821         incomplete, don't read the new struct type into it; complain,
5822         and return the original type unchanged.  Take a new `type_code'
5823         argument, which is the type code for the new type.
5824         (read_type): Rather than storing the type's type code here, pass
5825         it as an argument to read_struct_type, and let that take care of
5826         storing it.  That way, we don't overwrite the original type code,
5827         so read_struct_type can use it to decide whether we're overwriting
5828         something we shouldn't.
5829         (complain_about_struct_wipeout): New function.
5830
5831 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
5832
5833         * gdbarch.sh: Assert that gdbarch is non-NULL.
5834         * gdbarch.c: Regenerate.
5835
5836 2002-05-03  Jason Merrill  <jason@redhat.com>
5837
5838         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5839         and return NULL.
5840
5841 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
5842
5843         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5844         (x86_64_dwarf2gdb_regno_map_length),
5845         (x86_64_dwarf2_reg_to_regnum): Added.
5846         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5847         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5848         (_initialize_x86_64_tdep): Synced with the change above.
5849         (x86_64_skip_prologue): Reformulated message.
5850
5851 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
5852
5853         * f-exp.y: Also use new prev_lexptr variable
5854         to improve error reporting. Based on Michael Snyder
5855         2002-04-24 dated patch to c-exp.y.
5856         * jv-exp.y: Likewise.
5857         * m2-exp.y: Likewise.
5858
5859 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
5860
5861         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5862         we are dealing with vectors.
5863
5864 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5865
5866         * config/m68k/tm-nbsd.h: Obvious fix,
5867         correct machine name.
5868
5869 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5870
5871         * p-typeprint.c (pascal_type_print_base): Add support
5872         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5873
5874 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5875
5876         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5877         for fondamental pascal 'char' type.
5878
5879 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5880
5881         * p-lang.h (is_pascal_string_type): Declaration changed,
5882         new sixth argument of type char ** added.
5883         * p-lang.c (is_pascal_string_type): Implementation
5884         changed. Args length_pos, length_size, string_pos, char_size
5885         can now be NULL. New argument arrayname set to the field
5886         name of the char array. Return value set to char array
5887         field index plus one.
5888         * p-valprint.c (pascal_val_print): Adapt to new declaration of
5889         is_pascal_string_type function.
5890
5891 2002-05-02  Andrew Cagney  <cagney@redhat.com>
5892
5893         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5894         <cagney@redhat.com> change.
5895         * gdbarch.c: Regenerate.
5896
5897 2002-05-02  Andrew Cagney  <cagney@redhat.com>
5898
5899         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5900         before probing for a new one.  Detect errorenous gdbarch_init
5901         functions.
5902         * gdbarch.c: Regenerate.
5903
5904 2002-05-01  Andrew Cagney  <cagney@redhat.com>
5905
5906         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5907         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
5908         * config/v850/tm-v850.h: Ditto.  Update copyright.
5909
5910 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
5911
5912         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5913         current_gdbarch.
5914
5915 2002-04-30  Michael Snyder  <msnyder@redhat.com>
5916
5917         * arm-tdep.c: Whitespace clean-ups.
5918         (arm_skip_prologue): Fix thinko; two lines
5919         should have been removed as part of 4/24 change.
5920
5921 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
5922
5923         * rs6000-tdep.c: Added comment describing how fpscr register
5924         numbers were chosen.
5925
5926 2002-04-30  Michael Snyder  <msnyder@redhat.com>
5927
5928         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5929
5930 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
5931
5932         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5933         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5934         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5935
5936 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
5937
5938         From Louis Hamilton <hamilton@redhat.com>:
5939         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5940         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5941         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5942         not bfd-private xcoff data, to determine wordsize.
5943         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5944
5945 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
5946
5947         GDB 5.2 released from 5.2 branch.
5948
5949 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
5950
5951         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5952         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5953         (x86_64_register_info_table): Added comments with register numbers.
5954
5955 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
5956
5957         * rs6000-tdep.c (rs6000_extract_return_value,
5958         rs6000_store_return_value): Handle returning vectors.
5959         (rs6000_gdbarch_init): Use
5960         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5961         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5962         New function.
5963         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5964         vectors.
5965         (ppc_sysv_abi_push_arguments): Handle vector parameters.
5966         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5967
5968 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
5969
5970         * hpread.c (hpread_psymtab_to_symtab_1,
5971         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5972         with fprintf_unfiltered (gdb_stderr,...).
5973
5974 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
5975
5976         * remote-array.c (printf_monitor, write_monitor,
5977         array_insert_breakpoint, array_remove_breakpoint ):
5978         Replace fprintf (stderr,...
5979         with fprintf_unfiltered (gdb_stderr,....
5980         * remote-es.c: Likewise.
5981         * remote-os9k.c: Likewise.
5982         * remote-st.c: Likewise.
5983
5984 2002-04-28  Andreas Schwab  <schwab@suse.de>
5985
5986         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5987         linux-proc.o and gcore.o.
5988
5989 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
5990
5991         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5992         code without frame pointers.
5993
5994 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
5995
5996         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5997         ON_STACK is needed.
5998
5999 2002-04-26  Ben Elliston  <bje@redhat.com>
6000
6001         * target.c (do_xfer_memory): Correct reference to the new option
6002         "trust-readonly-sections".
6003
6004 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
6005
6006         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6007         * gdbtypes.c (recursive_dump_type): Output the vector flag.
6008         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6009         vectors.
6010         (read_array_type): Record the fact that this array type is really a
6011         vector (i.e. are passed in by value).
6012
6013 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
6014
6015         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6016         * alpha-tdep.c (alpha_sigcontext_addr): New function.
6017         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6018         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6019         * alpha-linux-tdep.c: Include frame.h.
6020         (alpha_linux_sigcontext_addr): New function.
6021         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6022         alpha_linux_sigcontext_addr.
6023         * alpha-osf1-tdep.c: Include gdbcore.h.
6024         (alpha_osf1_sigcontext_addr): New function.
6025         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6026         alpha_osf1_sigcontext_addr.
6027         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6028         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6029
6030 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
6031
6032         * stack.c (selected_frame_level):
6033         (select_frame): Do not set selected_frame_level.
6034         * frame.h (selected_frame_level): Delete declaration.
6035
6036 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
6037
6038         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6039         convert_from_func_ptr-addr when AIX / PowerOpen.
6040
6041 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6042
6043         * valops.c (hand_function_call): Call
6044         generic_save_call_dummy_addr.
6045         * frame.h (generic_save_call_dummy_addr): Declare.
6046         * blockframe.c (struct dummy_frame): Add fields call_lo and
6047         call_hi.
6048         (generic_find_dummy_frame): Check for PC in range call_lo to
6049         call_hi instead of entry_point_address.
6050         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6051         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
6052         (generic_save_call_dummy_addr): New function.
6053
6054 2002-04-24  David S. Miller  <davem@redhat.com>
6055
6056         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6057         sparc_skip_prologue.
6058         (sparc_skip_prologue): Kill frameless_p arg, and use line number
6059         information to find prologue when possible.
6060         (sparc_prologue_frameless_p): Call examine_prologue directly.
6061         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6062         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6063         second argument.
6064         (SKIP_PROLOGUE): Likewise.
6065
6066 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6067
6068         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6069         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6070         indicate that the condition it was testing is always true.
6071         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6072         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6073         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6074
6075 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6076
6077         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6078         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6079         tdep->jb_pc and tdep->jb_elt_size.
6080         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6081         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6082         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6083         * alpha-nat.c (get_longjmp_target): Remove.
6084         (JB_ELEMENT_SIZE): Ditto.
6085         (JB_PC): Ditto.
6086         * alpha-tdep.c (alpha_get_longjmp_target): New function.
6087         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
6088         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6089         to alpha_get_longjmp_target.
6090         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6091         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6092         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6093
6094 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6095
6096         * README: Update to GDB 5.2.
6097
6098 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6099
6100         * gdbarch.sh (LC_ALL): Set to `c'.
6101
6102 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6103
6104         * avr-tdep.c: Ran through gdb_indent.sh.
6105
6106 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6107
6108         * MAINTAINERS: Add myself as AVR maintainer.
6109         * NEWS: Note new target avr.
6110
6111 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6112
6113         * Makefile.in: Add support for AVR target.
6114         * configure.tgt: Add support for AVR target.
6115         * avr-tdep.c: New file
6116         * config/avr/avr.mt: New file.
6117
6118 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6119
6120         * MAINTAINERS: Add myself to write-after-approval.
6121
6122 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
6123
6124         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6125         with fprintf_unfiltered (gdb_stderr,....
6126
6127 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
6128
6129         Fix PR gdb/508.
6130         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6131
6132 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
6133
6134         * p-exp.y: Also use new prev_lexptr variable
6135         to improve error reporting. Based on Michael Snyder
6136         2002-04-24 dated patch to c-exp.y.
6137
6138 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6139
6140         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6141         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6142         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
6143         to 0.
6144         * config/alpha/tm-alpha.h: Remove forward decls of struct type
6145         and struct value.
6146         (FUNCTION_START_OFFSET): Remove.
6147         (BREAKPOINT): Ditto.
6148
6149 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6150
6151         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6152         * NEWS: Ditto.
6153
6154 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6155
6156         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6157         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6158         alpha_linux_pc_in_sigtramp.
6159         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6160         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6161         alpha_osf1_pc_in_sigtramp.
6162         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6163         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6164         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6165         alphafbsd_pc_in_sigtramp.
6166         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6167         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6168         alphanbsd_pc_in_sigtramp.
6169         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6170         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6171
6172 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6173
6174         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6175
6176 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6177
6178         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6179         alphanbsd-tdep.c.
6180         (alphanbsd-nat.o): New dependency list.
6181         (alphanbsd-tdep.o): Ditto.
6182         * NEWS: Note new native NetBSD/alpha configuration.
6183         * alphanbsd-nat.c: New file.
6184         * alphanbsd-tdep.c: Ditto.
6185         * configure.host (alpha*-*-netbsd*): New host.
6186         * configure.tgt (alpha*-*-netbsd*): New target.
6187         * config/alpha/nbsd.mh: New file.
6188         * config/alpha/nbsd.mt: Ditto.
6189         * config/alpha/nm-nbsd.h: Ditto.
6190         * config/alpha/tm-nbsd.h: Ditto.
6191
6192 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6193
6194         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6195         (alpha-osf1-tdep.o): New dependency list.
6196         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6197         and skip_sigtramp_frame members.
6198         * alpha-linux-tdep.c: Include gdbcore.h.
6199         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6200         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6201         * alpha-osf1-tdep.c: New file.
6202         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6203         alpha-osf1-dep.c.
6204         (alpha_frame_past_sigtramp_frame): New function.
6205         (alpha_dynamic_sigtramp_offset): Ditto.
6206         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6207         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6208         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6209         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6210         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6211         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6212         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6213         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6214         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6215         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6216         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
6217         to find_solib_trampoline_target.
6218         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6219         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6220         (SKIP_TRAMPOLINE_CODE): Remove.
6221         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6222         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6223         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6224         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6225         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6226         (PROC_SIGTRAMP_MAGIC): Ditto.
6227         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6228         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6229         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6230         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6231         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6232
6233 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6234
6235         * NEWS: Note that Alpha targets are now multi-arch.
6236
6237 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6238
6239         * parser-defs.h (prev_lexptr): New external variable.
6240         * parse.c (parse_exp_1): Set prev_lexptr to null before
6241         calling the language-specific parser.
6242         * c-exp.y (yylex): Set prev_lexptr to start of current token.
6243         (yyerror): Use prev_lexptr in error reporting.
6244
6245 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
6246
6247         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6248         * gregset.h: If FILL_FPXREGSET is defined, provide
6249         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6250         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6251         is defined, call fill_fpxregset.
6252
6253 2002-04-24  Roland McGrath  <roland@frob.com>
6254
6255         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6256         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6257         (supply_gregset, supply_fpregset): New functions.
6258
6259         * gnu-nat.c (gnu_find_memory_regions): New function.
6260         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6261         (gnu_xfer_memory): Add a cast.
6262
6263 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6264
6265         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6266         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
6267         of argument regs ("str r(0123), [r11, #-nn"]).
6268         (arm_skip_prologue): Better handling for frameless functions.
6269         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
6270         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6271
6272 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
6273
6274         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6275         NUM_PSEUDO_REGS can be used.
6276
6277 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
6278
6279         * arch-utils.h: Update copyright.
6280
6281         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6282         * gdbarch.h, gdbarch.c: Re-generate.
6283
6284         * inferior.h (IN_SIGTRAMP): Delete definition.
6285         * arch-utils.c (legacy_pc_in_sigtramp): New function.
6286         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6287
6288         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6289         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6290         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
6291         (find_proc_framesize): Ditto.
6292         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6293         (alpha_init_extra_frame_info): Ditto.
6294         * infrun.c (handle_inferior_event): Ditto.
6295         (handle_inferior_event): Ditto.
6296         (check_sigtramp2): Ditto.
6297         * blockframe.c (create_new_frame): Ditto.
6298         (get_prev_frame): Ditto.
6299         * ppc-linux-tdep.c: Update comments.
6300         * i386-linux-tdep.c: Update comments.
6301         * breakpoint.c (bpstat_what): Update comment.
6302
6303 2002-04-24  David S. Miller  <davem@redhat.com>
6304
6305         * i960-tdep.c (register_in_window_p): New function.
6306         (i960_find_saved_register): Use it instead of
6307         REGISTER_IN_WINDOW_P.
6308         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6309
6310         * symtab.h (find_stab_function_addr): Kill extern.
6311         * minsyms.c (find_stab_function_addr): Remove from here...
6312         * dbxread.c: ... to here, and mark it static.
6313
6314 2002-04-20  David S. Miller  <davem@redhat.com>
6315
6316         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6317         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6318
6319 2002-04-21  David S. Miller  <davem@redhat.com>
6320
6321         * remote-vxsparc.c (vx_read_register): Fix typo, we want
6322         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6323         (vx_write_register): Likewise.
6324
6325 2002-04-23  J. Brobecker  <brobecker@gnat.com>
6326
6327         * source.c (is_regular_file): New function.
6328         (openp): Check wether file to open is a regular file
6329         to avoid opening directories.
6330
6331 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6332
6333         * findvar.c (extract_signed_integer): Cast printf argument
6334         to suppress format warning.
6335         (extract_unsigned_integer): Likewise.
6336         * infcmd.c (registers_info): Likewise.
6337         * top.c (get_prompt_1): Likewise.
6338         * valops.c (value_assign): Likewise.
6339         * valprint.c (print_decimal): Likewise.
6340
6341 2002-04-22  H.J. Lu  (hjl@gnu.org)
6342
6343         * c-exp.y (typebase): Support
6344
6345         [long|long long|short] [signed|unsigned] [int|]
6346
6347         and
6348
6349         signed [long|long long|short] int
6350
6351 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6352
6353         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6354         and vax-tdep.h.
6355         * vax-tdep.h: New file.
6356         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6357         Make several routines static.
6358         (vax_get_saved_register): New function.
6359         (vax_gdbarch_init): New function.
6360         (_initialize_vax_tdep): Register vax_gdbarch_init.
6361         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6362         Remove macros now under the control of gdbarch.
6363
6364 2002-04-22  Michael Snyder  <msnyder@redhat.com>
6365
6366         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6367         Some whitespace and coding standards tweaks.
6368
6369 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6370
6371         * vax-tdep.c: Include regcache.h.
6372         (vax_call_dummy_words): New.
6373         (sizeof_vax_call_dummy_words): New.
6374         (vax_fix_call_dummy): New function.
6375         (vax_saved_pc_after_call): Ditto.
6376         * config/vax/tm-vax.h: Don't include regcache.h.
6377         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6378         (CALL_DUMMY): Remove.
6379         (CALL_DUMMY_WORDS): Define.
6380         (SIZEOF_CALL_DUMMY_WORDS): Define.
6381         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6382
6383 2002-04-18  Michael Snyder  <msnyder@redhat.com>
6384
6385         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6386
6387 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6388
6389         * vax-tdep.c (vax_frame_chain): New function.
6390         (vax_push_dummy_frame): Ditto.
6391         (vax_pop_frame): Ditto.
6392         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6393         (FRAMELESS_FUNCTION_INVOCATION): Use
6394         generic_frameless_function_invocation_not.
6395         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6396         (POP_FRAME): Use vax_pop_frame.
6397
6398 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6399
6400         * vax-tdep.c (vax_store_struct_return): New function.
6401         (vax_extract_return_value): Ditto.
6402         (vax_store_return_value): Ditto.
6403         (vax_extract_struct_value_address): Ditto.
6404         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6405         vax_store_struct_return.
6406         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6407         (STORE_RETURN_VALUE): Use vax_store_return_value.
6408         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6409
6410 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6411
6412         * vax-tdep.c (vax_frame_saved_pc): New function.
6413         (vax_frame_args_address_correct): Ditto.
6414         (vax_frame_args_address): Ditto.
6415         (vax_frame_locals_address): Ditto.
6416         (vax_frame_num_args): Move code to be in proximity to
6417         other frame-related functions.
6418         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6419         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6420         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6421         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6422         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6423
6424 2002-04-22  H.J. Lu  (hjl@gnu.org)
6425
6426         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6427         includedir.
6428
6429 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6430
6431         * vax-tdep.c (vax_frame_init_saved_regs): New function.
6432         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6433         (FRAME_INIT_SAVED_REGS): New macro.
6434
6435 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6436
6437         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6438
6439 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6440
6441         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6442         where needed.
6443         (fetch_osf_core_registers): Likewise.
6444         (supply_gregset): Likewise.
6445
6446 2002-04-22  J. Brobecker  <brobecker@gnat.com>
6447
6448         * symfile.h (get_section_index): Define.
6449         * symfile.c (get_section_index): New function.
6450         * mdebugread.c (SC_IS_SBSS): New macro.
6451         (SC_IS_BSS): Return true for the scBss storage class only, as
6452         the scSBss storage class refers to the .sbss section.
6453         (parse_partial_symbols): Discard the symbols which associated
6454         section does not exist.
6455         Make sure to use the .sbss section index for symbols which
6456         storage class is scBss, rather than using the .bss section index.
6457
6458 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6459
6460         * vax-tdep.c: Update copyright years.
6461         (vax_register_name): New function.
6462         (vax_register_byte): Ditto.
6463         (vax_register_raw_size): Ditto.
6464         (vax_register_virtual_size): Ditto.
6465         (vax_register_virtual_type): Ditto.
6466         * config/vax/tm-vax.h: Update copyright years.
6467         (REGISTER_NAMES): Remove.
6468         (REGISTER_NAME): Define.
6469         (REGISTER_BYTE): Use vax_register_byte.
6470         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6471         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6472         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6473
6474 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6475
6476         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6477         declaration
6478         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6479
6480 2002-04-21  David S. Miller  <davem@redhat.com>
6481
6482         * arch-utils.c (generic_prologue_frameless_p): Kill
6483         SKIP_PROLOGUE_FRAMELESS_P code.
6484         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6485         references.
6486         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6487         * arc-tdep.c (arc_prologue_frameless_p): Implement.
6488         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6489         references.
6490         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6491         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6492         (sparc_gdbarch_init): Pass it to
6493         set_gdbarch_prologue_frameless_p.
6494
6495 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6496
6497         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6498         (alphabsd-nat.o): New dependency list.
6499
6500 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6501
6502         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6503         alphafbsd-tdep.c.
6504         (alpha-linux-tdep.o): New dependency list.
6505         (alphafbsd-tdep.o): Likewise.
6506
6507 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6508
6509         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
6510         to here...
6511         * alpha-tdep.c: ...from here.
6512         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6513
6514 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6515
6516         * config/alpha/tm-alpha.h: Move alpha_software_single_step
6517         prototype from here...
6518         * alpha-tdep.h: ...to here.
6519
6520 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6521
6522         * frame.h (selected_frame_level): Document as deprecated.
6523         (frame_relative_level): Declare.
6524         * stack.c (frame_relative_level): New function.
6525         (selected_frame_level): Document as deprecated.
6526         (select_frame): Do not set the selected_frame_level.
6527
6528         * stack.c (frame_info, record_selected_frame): Update.
6529         (frame_command, current_frame_command): Update.
6530         (up_silently_base, up_command, down_silently_base): Update.
6531         (down_command): Update.
6532         * inflow.c (kill_command): Update.
6533         * tracepoint.c (finish_tfind_command): Update.
6534         * corelow.c (core_open): Update.
6535         * thread.c (info_threads_command): Update.
6536         (do_captured_thread_select): Update.
6537         * infcmd.c (finish_command): Update.
6538         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6539
6540 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6541
6542         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6543
6544 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6545
6546         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
6547         type const.
6548
6549 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6550
6551         * alphafbsd-tdep.c: Update copyright years.  Include
6552         alpha-tdep.h.
6553         (alphafbsd_use_struct_convention): Make static.
6554         (alphafbsd_init_abi): New function.
6555         (_initialize_alphafbsd_tdep): New function.
6556         * config/alpha/tm-fbsd.h: Update copyright years.
6557         (USE_STRUCT_CONVENTION): Remove.
6558
6559 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6560
6561         * alpha-tdep.c (alpha_abi_handler): New structure to describe
6562         an Alpha ABI variant.
6563         (alpha_abi_handler_list): Declare.
6564         (alpha_gdbarch_register_os_abi): New function.
6565         (alpha_gdbarch_init): Give registered ABI variant handlers a
6566         chance to tweak the gdbarch once we have set up defaults.
6567         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6568
6569 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6570
6571         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6572         to standard_coerce_float_to_double.
6573         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6574
6575 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6576
6577         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6578         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6579         from gdbarch_tdep rather than a constant.
6580         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6581         the default text address for all Alpha Unix ABIs.
6582         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6583         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6584
6585 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6586
6587         * alpha-tdep.h: New file.  Includes several Alpha target constants
6588         taken from...
6589         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
6590         let gdbarch deal with.
6591         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6592         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6593         to dependency list.
6594         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
6595         Alpha target register names.
6596         * alphabsd-nat.c: Likewise.
6597         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
6598         Alpha target register names.  Make serveral routines static.
6599         (alpha_get_saved_register): New function.
6600         (alpha_abi_names): New.
6601         (process_note_abi_tag_sections): New function.
6602         (get_elfosabi): New function.
6603         (alpha_gdbarch_init): New function.
6604         (alpha_dump_tdep): New function.
6605         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6606
6607 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6608
6609         * frame.c (find_saved_register): Delete #ifdef
6610         HAVE_REGISTER_WINDOWS code.
6611         * config/sparc/tm-sparc.h: Update comments.
6612         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6613
6614 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6615
6616         * i960-tdep.c (i960_find_saved_register): New function.
6617         (i960_get_saved_register): New function.
6618         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6619         (i960_get_saved_register): Declare.
6620         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6621
6622 2002-04-20  David S. Miller  <davem@redhat.com>
6623
6624         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6625
6626 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6627
6628         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6629         instead of NUM_PSEUDO_REGS.
6630
6631 2002-04-20  David S. Miller  <davem@redhat.com>
6632
6633         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6634         GDB_MULTI_ARCH_PARTIAL
6635         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6636         define, let tm-sp64.h do it.
6637
6638 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
6639
6640         * frame.c (find_saved_register): Avoid a NULL pointer
6641         dereference and actually walk the frame list.
6642
6643 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6644
6645         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6646         sorted in most most-recent-used order.  Document.
6647         * gdbarch.h, gdbarch.c: Regenerate.
6648
6649 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
6650
6651         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6652         instead of ->prev.
6653         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6654         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6655         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6656         instead of ->prev.
6657
6658 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
6659
6660         Fix PR gdb/471.
6661         * gdbtypes.c (init_simd_type): Rewrite using new functions.
6662         (build_builtin_type_vec128): Ditto.
6663         (append_composite_type_field): Fix calculation of type length in
6664         union case.
6665
6666 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
6667
6668         * config/djgpp/README: Update.
6669
6670         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6671         compiler warnings.
6672
6673 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
6674
6675         * alpha-tdep.c (setup_arbitrary_frame): Rename...
6676         (alpha_setup_arbitrary_frame): ...to this.
6677         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6678         for alpha_setup_arbitrary_frame.
6679
6680 2002-04-18  Andrew Cagney  <cagney@redhat.com>
6681
6682         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6683         * gdbarch.h, gdbarch.c: Regenerate.
6684
6685         * defs.h (breakpoint_from_pc_fn): Delete type definition.
6686         * target.h (memory_breakpoint_from_pc): Update declaration.
6687         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6688
6689         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6690         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6691         * mem-break.c (memory_breakpoint_from_pc): Ditto.
6692         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6693         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6694         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6695         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6696         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6697         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6698         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6699         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6700         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6701
6702         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6703         const pointer.
6704         * monitor.c (monitor_insert_breakpoint): Ditto.
6705         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6706
6707         * config/mcore/tm-mcore.h: Update copyright.
6708         * mem-break.c: Ditto.
6709         * xstormy16-tdep.c: Ditto.
6710
6711 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6712
6713         * p-exp.y: Add precedence rule for '^' token.
6714         This removes the shift/reduce conflicts.
6715         Remove the comment concerning these shift/reduce conflicts.
6716
6717 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
6718
6719         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6720         (registers_powerpc_nofp): New register set for processors
6721         without floating point unit.
6722
6723 2002-04-18  David S. Miller  <davem@redhat.com>
6724
6725         * MAINTAINERS: Add myself to write-after-approval.
6726
6727 2002-04-17  Michael Snyder  <msnyder@redhat.com>
6728
6729         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6730
6731 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6732
6733         * rs6000-tdep.c (frame_initial_stack_address): Use
6734         frame_register_read to read the alloca_reg.
6735
6736 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6737
6738         * frame.c (find_saved_register): Find saved registers in the next
6739         not prev frame.
6740         Fix PR gdb/365.
6741
6742 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6743
6744         * gdbarch.sh (LANG): Set to ``c''.
6745
6746 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
6747
6748         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6749
6750 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
6751
6752         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6753         Update copyright.
6754
6755         * hpread.c (hpread_get_lntt): Add declaration.
6756         Also fix PR gdb/391.
6757
6758 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
6759
6760         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6761         * aclocal.m4, configure: Re-generate.
6762         Fix PR gdb/391.
6763
6764 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
6765
6766         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6767         instead of tm_print_insn.
6768
6769 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
6770
6771         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6772
6773 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
6774
6775         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6776         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6777         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6778
6779 2002-04-12  Don Howard  <dhoward@redhat.com>
6780
6781         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6782         max_user_call_depth.
6783         (init_cmd_lists): Initialize the new value;
6784         * cli/cli-script.c (execute_user_command): Limit the call depth of
6785         user defined commands.  This avoids a core-dump when user commands
6786         are infinitly recursive.
6787
6788 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6789
6790         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6791         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6792         from tdep struct instead of DEFAULT_LR_SAVE.
6793         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6794         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6795         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6796
6797 2002-04-12  Michael Snyder  <msnyder@redhat.com>
6798
6799         * Remote.c: Spelling fix.
6800         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6801         If no symbol found for "sbrk", try "_sbrk".
6802         (make_output_phdrs): Use bfd_section_name.
6803         (gcore_copy_callback): Use bfd_section_name.
6804         * eval.c: Indentation fix-ups.
6805         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6806         in case it gets applied to an address that is already
6807         in the instruction space.
6808         * cli/cli-decode.c (help_list): Allow long lines to wrap.
6809         * symfile.c: Fix indentation, long lines.
6810         * source.c: White space fix-up.
6811
6812 2002-04-12  Andrew Cagney  <cagney@redhat.com>
6813
6814         * defs.h (read_relative_register_raw_bytes): Delete declaration.
6815         * frame.c (frame_register_read): New function.  Return non-zero on
6816         success.
6817         (read_relative_register_raw_bytes_for_frame): Delete.
6818         (read_relative_register_raw_bytes): Delete.
6819         * frame.h (frame_register_read): Declare.
6820         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
6821         * sh-tdep.c: Ditto.
6822         * infcmd.c (do_registers_info): Ditto.
6823         * hppa-tdep.c: Ditto.
6824         * rs6000-tdep.c: Ditto.
6825         * h8500-tdep.c: Ditto.
6826         * mips-tdep.c: Ditto.
6827         * h8300-tdep.c: Ditto.
6828         * z8k-tdep.c: Ditto.
6829
6830 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6831
6832         From Jimi X <jimix@watson.ibm.com>:
6833         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6834         64-bit SysV ABI.
6835
6836 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6837
6838         From Jimi X <jimix@watson.ibm.com>:
6839         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6840         bfd info.
6841
6842 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6843
6844         From Jimi X <jimix@watson.ibm.com>:
6845         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6846         register sets for these processor variants.
6847
6848 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
6849
6850         * regformats/reg-ppc.dat: Support FPSCR.
6851
6852 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
6853
6854         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6855         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6856         Add fpscr as an invalid/unfetchable register.
6857         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6858         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6859         (fill_fpregset): Add support for register fpscr.
6860         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6861         (fill_gregset): Account for the fact that register ``mq'' might
6862         not exist.
6863         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6864         (registers_power): Add fpscr to register set at slot 71.
6865         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6866         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
6867
6868 2002-04-11  Michael Snyder  <msnyder@redhat.com>
6869
6870         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6871         * configure: Regenerate.
6872         * config.in: Regenerate.
6873         * acconfig.h: Add define for _SYSCALL32.
6874         * core-sol2.c: Remove #define _SYSCALL32.
6875         * solib-legacy.c: Remove #define _SYSCALL32.
6876
6877 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6878
6879         * stack.c (select_frame): Cleanup internal error message, do not
6880         use %p.
6881
6882 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6883
6884         * stack.c (select_frame): Check that selected_frame and the
6885         specified level are as expected.
6886         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6887         Update copyright.
6888         * frame.h (struct frame_info): Add field `level'.  Update
6889         copyright.
6890         Work-in-progress PR gdb/464.
6891
6892 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6893
6894         * maint.c (maint_print_section_info): Rename print_section_info.
6895         (print_bfd_section_info, print_objfile_section_info): Update.
6896         * inferior.h (struct gdbarch): Add opaque declaration.
6897         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6898         * gdbarch.h: Regenerate.
6899
6900 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
6901
6902         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6903         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6904         (kernel_u_size): Added.
6905         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6906         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6907
6908 2002-04-04  Jim Ingham  <jingham@apple.com>
6909
6910        * valarith.c (find_size_for_pointer_math): New function, either returns
6911        the size for a pointer's target, returns 1 for void *, or errors for
6912        incomplete types.
6913        (value_add, value_sub): use find_size_for_pointer_math.
6914
6915 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6916
6917         * linux-low.c (linux_look_up_symbols): New hook.
6918         (linux_target_ops): Add linux_look_up_symbols.
6919         * remote-utils.c (decode_address): New function.
6920         (look_up_one_symbol): New function.
6921         * server.c (handle_query): Call target look_up_symbols hook.
6922         * server.h (look_up_one_symbol): Add prototype.
6923         * target.h (struct target_ops): Add look_up_symbols hook.
6924
6925 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
6926
6927         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6928         override FP_REGNUM with frame->fp.  Update copyright.
6929         * parse.c (num_std_regs, std_regs): Delete.
6930         (target_map_name_to_register): Do not search std_regs.  Update
6931         function description.
6932         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6933         declarations.  Update copyright.
6934         Fix PR gdb/251.
6935
6936 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6937
6938         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6939         after the last symbol in a block.
6940
6941 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
6942
6943         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6944         is non zero as a found symbol.
6945
6946 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
6947
6948         * findvar.c: Include "builtin-regs.h".
6949         (value_of_register): Call value_of_builtin_reg when applicable.
6950         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6951         (target_map_name_to_register): Call
6952         builtin_reg_map_name_to_regnum.
6953         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6954         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6955         (builtin_regs_h): Define.
6956         (builtin-regs.o): New target.
6957         (findvar.o): Add $(builtin_regs_h).
6958         * builtin-regs.c, builtin-regs.h: New files.
6959         * std-regs.c: New file.
6960         Partial fix for PR gdb/251.
6961
6962 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6963
6964         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6965         it's no longer required.
6966
6967 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
6968
6969         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6970
6971 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6972
6973         From Jimi X <jimix@watson.ibm.com>:
6974         * rs6000-tdep.c (rs6000_software_single_step): Use
6975         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6976         and size.  Use target_insert_breakpoint() and
6977         target_remove_breakpoint() to insert and remove breakpoints
6978         instead of explicit memory reads and writes.
6979
6980 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6981
6982         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6983         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6984         ELF_OBJECT_FORMAT ifdef.
6985
6986 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6987
6988         From Jimi X <jimix@watson.ibm.com>:
6989         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6990
6991 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6992
6993         From Jimi X <jimix@watson.ibm.com>:
6994         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6995         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6996
6997 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
6998
6999         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7000         s/asprintf/xasprintf/.
7001         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7002
7003 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7004
7005         I believe Jeff Law denies responsability for this one:
7006         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7007         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7008         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7009         Work-around for PR gdb/366.
7010
7011 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
7012
7013         * remote-e7000.c (write_small, e7000_read_inferior_memory,
7014         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7015         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7016
7017 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
7018
7019         * sh-tdep.c (sh_fp_frame_init_saved_regs,
7020         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7021         information.
7022
7023 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7024
7025         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7026         maintainer.
7027
7028 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7029
7030         * README (Reporting Bugs in GDB): Document the bug web page as the
7031         prefered way of submitting bugs.
7032         Fix PR gdb/402.
7033
7034 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7035
7036         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7037         -1.  Update comment.
7038         * gdbarch.h, gdbarch.c: Re-generate.
7039
7040 2002-04-07  Andreas Schwab  <schwab@suse.de>
7041
7042         * m68klinux-nat.c (fill_fpregset): Properly pass address of
7043         buffer to regcache_collect.
7044
7045 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7046
7047         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
7048         * gdbarch.c, gdbarch.h: Re-generate.
7049
7050 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7051
7052         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7053         declaration.  Fix -Werror.
7054
7055 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
7056
7057         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7058         * gdbarch.c: Regenerate.
7059
7060 2002-04-05  Michael Snyder  <msnyder@redhat.com>
7061
7062         * breakpoint.c (clear_command): Rewrite middle section to
7063         combine two loops with identical control conditions.
7064         Add a cleanup to eliminate a memory leak.
7065         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7066
7067 2002-04-05  H.J. Lu  (hjl@gnu.org)
7068
7069         * solib-svr4.c (bkpt_names): Add "__start".
7070
7071 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
7072
7073         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7074         as test for 64 bit target.
7075
7076 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
7077
7078         * h8500-tdep.c (h8500_write_fp): Delete function.
7079         * dwarf2cfi.c (cfi_write_fp): Document as not used.
7080         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7081         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7082         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7083         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7084         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7085         (s390_write_fp):
7086         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7087         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7088         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7089         (d10v_write_fp): Delete function.
7090         * inferior.h (write_fp, generic_target_write_fp): Delete
7091         declarations.
7092         * regcache.c (generic_target_write_fp): Delete function.
7093         (write_fp): Delete function.
7094         * gdbarch.sh (TARGET_WRITE_FP): Delete.
7095         * gdbarch.h, gdbarch.c: Regenerate.
7096         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7097         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7098         (sparc64_write_fp): Delete declaration.
7099         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7100         (h8500_write_fp): Delete declaration.
7101
7102 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
7103
7104         * sparc-tdep.c (sparc64_write_fp): Delete.
7105         (sparc_push_dummy_frame): Replace write_fp call with code to store
7106         the FP directly.
7107         (sparc_gdbarch_init): Do not initialize write_fp.
7108
7109 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
7110
7111         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7112         clause.
7113
7114 2002-03-29  Jim Blandy  <jimb@redhat.com>
7115
7116         * stack.c (get_selected_block): Add new argument `addr_in_block',
7117         used to return the exact code address we used to select the block,
7118         not just the block.
7119         * blockframe.c (get_frame_block, get_current_block): Same.
7120         * frame.h (get_frame_block, get_current_block,
7121         get_selected_block): Update declarations.
7122         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7123         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7124
7125 2002-04-05  Michael Snyder  <msnyder@redhat.com>
7126
7127         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7128         warning message.
7129
7130 2002-04-05  J. Brobecker  <brobecker@gnat.com>
7131
7132         * utils.c (xfullpath): New function.
7133         * defs.h (xfullpath): Add declaration.
7134         * source.c (openp): Use xfullpath in place of gdb_realpath to
7135         avoid resolving the basename part of filenames when the
7136         associated file is a symbolic link. This fixes a potential
7137         inconsistency between the filenames known to GDB and the
7138         filenames it prints in the annotations.
7139         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7140         to be able to match a filename with either the real filename, or
7141         the name of any symbolic link to this file.
7142         (lookup_partial_symtab): Ditto.
7143
7144 2002-04-04  Michael Snyder  <msnyder@redhat.com>
7145
7146         * breakpoint.c: Add support for hardware breakpoints in overlays.
7147         (overlay_events_enabled): New state variable.
7148         (insert_breakpoints): Use overlay_events_enabled to decide
7149         whether to attempt to set a breakpoint at the overlay load addr.
7150         Handle bp_hardware_breakpoint as well as bp_breakpoint.
7151         (remove_breakpoint): Use overlay_events_enabled to decide
7152         whether breakpoints need to be removed from overlay load addr.
7153         Handle bp_hardware_breakpoint as well as bp_breakpoint.
7154         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7155         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7156         disable_overlay_breakpoints): Update overlay_events_enabled.
7157
7158 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
7159
7160         * dwarf2read.c (struct function_range): New.
7161         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7162         (check_cu_functions): New.
7163         (read_file_scope): Initialize global function lists.
7164         Call dwarf_decode_line after processing children.
7165         (read_func_scope): Add to global function list.
7166         (dwarf_decode_lines): Call check_cu_functions everywhere
7167         record_line is called.  Call record_line with a linenumber
7168         of 0 to mark sequence ends.
7169
7170 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
7171
7172         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7173         change sync with glibc.
7174
7175 2002-04-03  Jim Blandy  <jimb@redhat.com>
7176
7177         * configure.in: Call AC_C_INLINE.
7178         * configure: Regenerated.
7179
7180 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
7181
7182         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7183         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7184
7185 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
7186
7187         * NEWS: Mention gcore support on FreeBSD/i386.
7188
7189         * fbsd-proc.c: New file.
7190         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7191         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7192
7193         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7194         while statement.
7195
7196 2002-03-29  Jim Blandy  <jimb@redhat.com>
7197
7198         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7199         unescaped newlines in string literals, but newer ones don't.  So
7200         escape them.
7201
7202 2002-03-26  Michael Snyder  <msnyder@redhat.com>
7203             Andrew Cagney <cagney@redhat.com>
7204
7205         * cli/cli-dump.c: New file.  Dump memory to file,
7206         restore file to memory.
7207         * cli/cli-dump.h: New file.
7208         * Makefile.in: Add rules, dependencies for cli-dump.o.
7209         * NEWS: Mention new commands.
7210
7211 2002-03-28  Michael Snyder  <msnyder@redhat.com>
7212
7213         * symfile.c (symbol_file_add): Move test for null symbols to later.
7214
7215 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7216
7217         From veksler at il.ibm.com:
7218         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7219         the xstrduped original path.
7220         Fix PR gdb/417.
7221
7222 2002-03-27  Michael Snyder  <msnyder@redhat.com>
7223
7224         * breakpoint.c (_initialize_breakpoint): Clean up help string.
7225         * infcmd.c (_initialize_infcmd): Ditto.
7226         * language.c (_initialize_language): Ditto.
7227         * symfile.c (_initialize_symfile): Ditto.
7228         * top.c (_init_main): Ditto.
7229         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7230
7231 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
7232
7233         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7234         vector registers handling.
7235         (skip_prologue): Handle new AltiVec instructions.  Fill in new
7236         fields of frame data.
7237         (frame_get_saved_regs): Fill in information for AltiVec registers.
7238
7239 2002-03-27  Jim Blandy  <jimb@redhat.com>
7240
7241         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7242         a function; leave this macro here to invoke that function.
7243         (symbol_init_mangled_name): Declaration for that function.
7244         * symtab.c (symbol_init_mangled_name): New function.
7245
7246 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7247
7248         * valarith.c: Replace strerror with safe_strerror.
7249         * tracepoint.c: Ditto.
7250         * lin-lwp.c: Ditto.
7251         * go32-nat.c: Ditto.
7252         * inflow.c: Ditto.
7253         * gnu-nat.c: Ditto.
7254
7255 2002-03-27  Andreas Schwab  <schwab@suse.de>
7256
7257         * event-top.c (command_line_handler): Remove useless if.
7258
7259 2002-03-27  Andreas Jaeger  <aj@suse.de>
7260
7261         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7262         comment.
7263
7264 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
7265
7266         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7267         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7268         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7269         (x86_64_linux_dr_get_status, supply_gregset),
7270         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7271         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7272         (x86_64_register_info_table): Add.
7273         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7274         (x86_64_register_raw_size, x86_64_register_virtual_type),
7275         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7276         general x86_64_register_info_table.
7277         (i386_gdbarch_init): gdbarch_register_bytes is now set
7278         dynamicaly during initialization.
7279         * regformats/reg-x86-64.dat: Synced with changes to registers above.
7280         * gdbserver/linux-x86-64-low.c: Ditto.
7281
7282 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7283
7284         * gdbserver/server.c (main): Call target_signal_to_host_p
7285         and target_signal_to_host on signals received from the remote.
7286         * gdbserver/remote-utils.c (prepare_resume_reply): Call
7287         target_signal_from_host on signals sent to the remote.
7288         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
7289         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
7290
7291 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7292
7293         * signals/signals.c: Include "server.h" in gdbserver build.
7294         (target_signal_from_name): Don't use STREQ.
7295         (_initialize_signals): Likewise.  Don't include function in
7296         gdbserver build.
7297
7298 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7299
7300         * signals.c: Moved to...
7301         * signals/signals.c: Here.
7302         * Makefile (signals.o): Update.
7303
7304 2002-03-26  Jeff Law (law@redhat.com)
7305
7306         * somread.c (som_symtab_read): Remove some commented out code and
7307         updated related comments.  Do not set the minimal symbol table to
7308         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7309         in a dynamic executable.
7310         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7311         where we are unable to find the minimal symbol for the given
7312         PC value.
7313
7314 2002-03-25  Jeff Law (law@redhat.com)
7315
7316         * linux-proc.c (read_mapping): Scan up to end of line for filename.
7317
7318 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
7319
7320         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7321
7322 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7323
7324         * command.h: Update copyright.
7325         (struct cmd_list_element): Replace definition with opaque
7326         declaration.
7327         (enum cmd_types): Document that it will eventually be moved to
7328         cli/cli-decode.h
7329         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7330         (MALLOCED_REPLACEMENT): Delete macro.
7331         * Makefile.in (cli_decode_h): Add $(command_h).
7332         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7333         * top.c: Include "cli/cli-decode.h".
7334         * completer.c: Include "cli/cli-decode.h".
7335         * maint.c: Include "cli/cli-decode.h".
7336         * cli/cli-decode.h: Include "command.h".
7337         (enum command_class): Delete.
7338         (enum cmd_types): Comment out.
7339         (enum cmd_auto_boolean): Delete.
7340         (enum var_types): Delete.
7341
7342 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7343
7344         * cli/cli-decode.c: Include "gdb_assert.h".
7345         (add_set_or_show_cmd): New static function.
7346         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
7347         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
7348         all fields, such as func, from the set command.
7349
7350 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7351
7352         * MAINTAINERS (sh-elf): Change warning flag to -w.
7353
7354 2002-03-23  Andrew Cagney  <cagney@redhat.com>
7355
7356         * defs.h (error): Add printf format attribute.
7357         * thread-db.c (thread_from_lwp): Fix error format string.
7358         * stack.c (parse_frame_specification): Ditto.
7359         * cli/cli-decode.c (undef_cmd_error): Ditto.
7360         * scm-lang.c (scm_lookup_name): Ditto.
7361         * tracepoint.c (trace_error): Ditto.
7362         * remote-utils.c (usage): Ditto.
7363         * remote.c (compare_sections_command): Ditto.
7364         Fix PR gdb/328.
7365
7366 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
7367
7368         * gdbtypes.c (append_composite_type_field): New function.
7369         (init_composite_type): New function.
7370         * gdbtypes.h (append_composite_type_field): Declare.
7371         (init_composite_type): Ditto.
7372
7373 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
7374
7375         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7376         function.
7377         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7378         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7379         structure returning convention for SYSV ABI case, but not
7380         for GNU/Linux, FreeBSD, or NetBSD.
7381
7382 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
7383
7384         * symtab.h (lookup_block_symbol): Add mangled_name argument
7385         to prototype.
7386
7387         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7388         with new mangled_name argument.
7389         * linespec.c (decode_line_1): Likewise.
7390         * valops (value_of_this): Likewise.
7391         * symtab.c (lookup_transparent_type): Likewise.
7392         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
7393         (lookup_symbol): If we are given a mangled name, pass it down
7394         to lookup_symbol_aux.
7395         (lookup_block_symbol): If we are given a mangled name to check
7396         against, only return symbols which match it.
7397
7398 2002-03-22  Christopher Faylor  <cgf@redhat.com>
7399
7400         * win32-nat.c (child_create_inferior): Check for proper shell to use
7401         here, in case the user changes it on the fly.
7402         (_initialize_inftarg): Remove shell path considerations.
7403
7404 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
7405
7406         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7407         for gdbarch_max_register_raw_size and max_register_virtual_size.
7408         Adjust copyright year.
7409
7410 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
7411
7412          * dbxread.c (process_one_symbol): Extend the first N_SLINE
7413          in a function to cover the entire beginning of the function
7414          as well if it does not already.
7415
7416 2002-03-21  Tom Rix  <trix@redhat.com>
7417
7418         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7419         (rs6000_ptrace64): Renamed from ptrace64.
7420
7421 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7422
7423         * gdbserver/remote-utils.c (remote_open): Don't call
7424         getprotobyname, we're all using TCP here so just use
7425         IPPROTO_TCP.
7426         * gdbserver/gdbreplay.c (remote_open): Ditto.
7427
7428 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7429
7430         * regcache.c (_initialize_regcache): No need to call
7431         build_regcache() at this time; it gets called whenever
7432         the gdbarch changes.
7433
7434 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
7435
7436         * sparc-nat.c:  Include sys/param.h where possible.
7437
7438 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
7439
7440         Fix PR gdb/422.
7441         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7442         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7443         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7444         complex types.
7445         * stabsread.c (rs6000_builtin_type): Likewise.
7446         (read_sun_floating_type): Likewise.
7447
7448 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7449
7450         * stabsread.c (read_member_functions): Remove skip code for duplicate
7451         constructor/destructor methods.  Use standard parsing for these
7452         methods and just do not chain them to the list of methods after
7453         parsing.
7454
7455 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
7456
7457         * coffread.c: Remove redundant static declarations.  Replace
7458         occurrences of `PTR' with `void *'.
7459         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7460         * top.h (quit_cover): Likewise.
7461         * defs.h (catch_errors): Likewise.
7462
7463 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7464
7465         * defs.h (XMALLOC): Define.
7466         * gdb-events.sh (XMALLOC): Delete macro.
7467         * gdb-events.c, gdb-events.h: Regenerate.
7468         * gdbarch.sh (XMALLOC): Delete macro.
7469         * gdbarch.c: Regenerate.
7470         * serial.c (XMALLOC): Delete macro.
7471         * ui-file.c (XMALLOC): Ditto.
7472         * ser-unix.h (XMALLOC): Ditto.
7473         * sh-tdep.c (XMALLOC): Ditto.
7474         * ui-out.c (XMALLOC): Ditto.
7475         * utils.c (XMALLOC): Ditto.
7476         * i386-tdep.c (XMALLOC): Ditto.
7477         * gdb-events.c (XMALLOC): Ditto.
7478         * d10v-tdep.c (XMALLOC): Ditto.
7479         * cli-out.c (XMALLOC): Ditto.
7480
7481         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7482         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7483         * ui-file.c, ui-out.c: Ditto.
7484
7485 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7486
7487         * command.h (struct cmd_list_element): Add field context.
7488         (set_cmd_context, get_cmd_context): Declare.
7489         * cli/cli-decode.h: Ditto.
7490         * cli/cli-decode.c (get_cmd_context): New function.
7491         (set_cmd_context): New function.
7492         (add_cmd): Initialize context.
7493         Part of fixing PR gdb/145 and PR gdb/146.
7494
7495 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7496
7497         * cli/cli-decode.c (cmd_type): New function.
7498         * command.h (cmd_type): Declare.
7499         * infrun.c (set_schedlock_func): Call function cmd_type.
7500         * kod.c (kod_set_os): Call cmd_type.
7501         * cris-tdep.c (cris_version_update): Use function cmd_type.
7502         (cris_mode_update, cris_abi_update): Ditto.
7503
7504         * command.h: (execute_cmd_post_hook): Declare.
7505         (execute_cmd_pre_hook): Declare.
7506         * cli/cli-script.c (clear_hook_in_cleanup): New function.
7507         (execute_cmd_post_hook, execute_cmd_pre_hook): New
7508         functions. Execute pre/post hook while ensuring that afterwords
7509         hook_in is cleared.
7510         * top.c (execute_command): Use execute_cmd_post_hook, and
7511         execute_cmd_pre_hook to execute pre/post commands.
7512         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7513         hook_stop_stub.
7514         (hook_stop_stub): Call execute_cmd_pre_hook.
7515
7516 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7517
7518         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
7519         set'' and this leads to a core dump.  Move xstrdup of
7520         operating_system to after check that it is not NULL.
7521
7522 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7523
7524         * kod.c (kod_set_os): Remove unnecessary check that
7525         ``command->type'' is set_cmd.
7526
7527         * valprint.c (set_input_radix): Use input_radix.
7528         (set_output_radix): Use output_radix.
7529         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7530         isn't reverted.
7531
7532 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
7533
7534         * value.h (struct value): Delete field ``substring_addr''.  Change
7535         aligner fields to force_doublest_align, force_longest_align,
7536         force_core_addr_align and force_pointer_aligh.
7537
7538         * value.h (struct value): Fix typo in above change.
7539
7540 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7541
7542         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7543         to fix internal_error from ``maintenance print architecture''.
7544
7545 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7546
7547         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7548         for gcc versions after gcc-2.8.1.
7549
7550 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7551
7552         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7553         for method resolution.  Restore adjustment of ``this'' pointer after
7554         calling value_struct_elt, which was accidentally removed during the
7555         HP merge.
7556
7557 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
7558
7559         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7560         value_of_register.
7561         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
7562         get_saved_register.
7563         * value.h (value_of_register): Update.
7564
7565 2002-03-14  Richard Henderson  <rth@redhat.com>
7566
7567         * configure.in: Detect declaration for canonicalize_file_name.
7568         * utils.c (canonicalize_file_name): Declare, if needed.
7569         (gdb_realpath): Prefer realpath if available and usable.
7570         * config.in, configure: Rebuild.
7571
7572 2002-03-14  Richard Henderson  <rth@redhat.com>
7573
7574         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7575         a constant array bound.
7576
7577         * MAINTAINERS: Add myself to write-after-approval.
7578
7579 2002-03-14  Michael Snyder  <msnyder@redhat.com>
7580
7581         * symfile.c (syms_from_objfile): Return immediately if no syms.
7582         (symbol_file_add): Return immediately if no syms.
7583         (find_sym_fns): Return immediately if no syms.
7584
7585 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
7586
7587         * gdbserver/remote-util.c (remote_open): Print remote-side's
7588         IP address when remote debugging over the network.
7589
7590 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
7591
7592         * config/sparc/fbsd.mh: Fix copyright.
7593         * config/sparc/fbsd.mt: Likewise.
7594
7595 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
7596
7597         * MAINTAINERS: Fix typo in name of gdb warnings option.
7598         (x86-64): Fix formating so that this can be parsed by awk.
7599
7600 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7601
7602         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7603         * defs.h: Include "gdb/signals.h".
7604         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7605
7606 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
7607
7608         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7609         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7610         from x86-64-tdep.h
7611
7612 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7613             Don Howard <dhoward@redhat.com>
7614
7615         * mips-tdep.c (ST0_FR): Define.
7616         (mips2_fp_compat): New function, temporarily disabled.
7617         (mips_read_fp_register_single): New function.
7618         (mips_read_fp_register_double): New function.
7619         (mips_print_register): Use them.
7620         (do_fp_register_row): Likewise.
7621
7622 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
7623
7624         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7625         approval''.
7626
7627 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7628
7629         * stabsread.c (read_member_functions): Fix is_stub test for
7630         static member functions, improve comment.
7631
7632 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
7633
7634         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7635         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7636         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7637         commands that set boolean values.
7638         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7639         (arm_rdi_resume): Always initialize PC.
7640         (arm_rdi_open): Don't use rslt as a boolean.
7641         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7642         (arm_rdi_fetch_registers, arm_rdi_store_registers)
7643         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7644         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7645
7646 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
7647
7648         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7649         * configure: Rebuilt.
7650
7651 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7652
7653         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7654         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7655
7656 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
7657
7658         * cli/cli-decode.c (set_cmd_completer): New function.
7659         * command.h (set_cmd_completer): Declare.
7660         * cli/cli-decode.h (set_cmd_completer): Ditto.
7661
7662         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7663         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7664         * win32-nat.c (_initialize_inftarg): Ditto.
7665         * remote-rdi.c (_initialize_remote_rdi): Ditto.
7666         * proc-api.c (_initialize_proc_api): Ditto.
7667         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7668         * source.c (_initialize_source): Ditto.
7669         * exec.c (_initialize_exec): Ditto.
7670         * solib.c (_initialize_solib): Ditto.
7671         * top.c (init_main): Ditto.
7672         * tracepoint.c (_initialize_tracepoint): Ditto.
7673         * symfile.c (_initialize_symfile): Ditto.
7674         * printcmd.c (_initialize_printcmd): Ditto.
7675         * infcmd.c (_initialize_infcmd): Ditto.
7676         * corefile.c (_initialize_core): Ditto.
7677
7678 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7679
7680         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7681
7682 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7683
7684         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7685
7686 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7687
7688         * NEWS: Update headings, 5.2 has branched.
7689
7690 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
7691
7692         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7693         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7694         (register_addr, REGISTER_RAW_SIZE): Likewise.
7695         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7696         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7697
7698 2002-03-03  Michal Ludvig <mludvig@suse.cz>
7699
7700         * MAINTAINERS (x86-64): Add myself.
7701         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7702         changed value_ptr -> struct value *
7703
7704 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
7705
7706         * configure.host (sparc64-*-freebsd): Add.
7707         * configure.tgt: Likewise.
7708         * config/sparc/fbsd.mh: New file.
7709         * config/sparc/fbsd.mt: Likewise.
7710         * config/sparc/nm-fbsd.h: Likewise.
7711         * config/sparc/tm-fbsd.h: Likewise.
7712
7713 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
7714
7715         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7716         regformats/reg-s390x.dat.
7717
7718 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
7719
7720         * utils.c: Add FIXME explaining true/false problem.
7721
7722 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
7723
7724         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7725
7726 2002-02-28  Michael Chastain  <mec@shout.net>
7727
7728         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7729
7730 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
7731
7732         * gdbserver/linux-s390-low.c: New file.
7733         * regformats/reg-s390.dat: New file.
7734         * regformats/reg-s390x.dat: New file.
7735         * gdbserver/configure.srv: Add S/390.
7736         * gdbserver/Makefile.in: Add S/390.
7737         * configure.tgt: Enable gdbserver for S/390.
7738
7739 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
7740
7741         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7742         first line of the doc string for "info dos", except at the end of
7743         the sentence, since the short help stops at the first period.
7744
7745 2002-02-28  Jason Merrill  <jason@redhat.com>
7746
7747         * dwarf2read.c (dwarf_cfi_name): Add new codes.
7748
7749 2002-02-27  Fred Fish  <fnf@redhat.com>
7750
7751         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7752         comment (dumy -> dummy).
7753
7754 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7755
7756         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7757
7758 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
7759
7760       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7761
7762 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7763
7764         * gdbserver/acconfig.h: New file.
7765         * gdbserver/i387-fp.c: New file.
7766         * gdbserver/i387-fp.h: New file.
7767         * gdbserver/linux-x86-64.c: New file.
7768         * regformats/reg-x86-64.dat: New file.
7769         * configure.tgt: Add x86_64-*-linux* gdbserver support.
7770         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7771         * gdbserver/configure.in: Add support for regsets.
7772         * gdbserver/config.in: Regenerate.
7773         * gdbserver/configure: Regenerate.
7774         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
7775         * gdbserver/linux-low.h: New file.
7776         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
7777         for regsets.
7778         * gdbserver/linux-arm-low.c: Include "linux-low.h".
7779         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7780         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7781         * gdbserver/linux-mips-low.c: Include "linux-low.h".
7782         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7783         * gdbserver/linux-sh-low.c: Include "linux-low.h".
7784         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
7785         "i387-fp.h".  Add PTRACE_GETREGS and friends.
7786         * gdbserver/regcache.c (supply_register): New function.
7787         (supply_register_by_name): New function.
7788         (collect_register): New function.
7789         (collect_register_by_name): New function.
7790
7791 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7792
7793         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7794         (config.status): Add configure.srv dependency.
7795         (server_h): Add config.h dependency.
7796
7797 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7798
7799         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7800         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7801         * gdbserver/configure.srv: Change i386-*-linux* to use
7802         reg-i386-linux.o.
7803
7804 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7805
7806         * x86-64-tdep.c: Re-indent.  Update copyright date.
7807
7808 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7809
7810         From Michal Ludvig <mludvig@suse.cz>:
7811         * x86-64-tdep.c (value.h): Delete.
7812         (gdb_assert.h): Include.
7813         (x86_64_register_convert_to_virtual,
7814         x86_64_register_convert_to_raw ): Add check which lets only
7815         floating-point values to be converted.
7816         (value_push): Delete.
7817         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7818         (i386_gdbarch_init): Number of register_bytes fixed.
7819
7820 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7821
7822         * MAINTAINERS: Add x86-64 target.
7823
7824 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7825
7826         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7827         * osfsolib.c (solib_map_sections): Ditto.
7828         * irix5-nat.c (solib_map_sections): Ditto.
7829         * corelow.c (gdb_check_format): Ditto.
7830         * symfile.c (symfile_bfd_open): Ditto.
7831         * solib.c (solib_map_sections): Ditto.
7832         Fix PR gdb/354.
7833
7834 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7835
7836         * remote.c (_initialize_remote): By default, disable ``e'' and
7837         ``E'' step out-of-range packets.
7838
7839 2002-02-26  Andreas Schwab  <schwab@suse.de>
7840
7841         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7842         m68k_linux_frame_saved_pc.
7843         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7844         in_sigtramp.
7845         (SIGCONTEXT_PC_OFFSET): Remove.
7846         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7847         m68k_linux_sigtramp_saved_pc): New functions.
7848         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7849         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7850         (UCONTEXT_PC_OFFSET): Define.
7851         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7852         non-RT and RT signal trampolines.
7853
7854 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
7855
7856         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7857         (TARGET_NBPG, STACK_END_ADDR): Delete
7858         (VARIABLES_INSIDE_BLOCK): Delete.
7859
7860 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
7861
7862         * utils.c (perror_with_name): Make string parameter constant.
7863         (print_sys_errmsg): Ditto.
7864         (query): Ditto.
7865         * defs.h (perror_with_name): Update.
7866         (print_sys_errmsg): Update.
7867         (query): Update.
7868
7869 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
7870
7871         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7872         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7873
7874 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7875
7876         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7877         if it already matches the current architecture from the exec file.
7878         Include arch-utils.h for gdbarch_info_init prototype.
7879         * Makefile.in (rs6000-nat.o): Update dependencies.
7880
7881 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
7882
7883         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7884          list of exported variables.
7885
7886 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
7887
7888         * gdbserver/configure.srv: New file.
7889         * gdbserver/configure.in: Use configure.srv instead
7890         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
7891         from it.
7892         * gdbserver/configure: Regenerated.
7893         * gdbserver/terminal.h: New file.
7894         * gdbserver/Makefile.in: Update for configure changes.  Remove
7895         more unneeded include paths.
7896
7897 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
7898
7899         From wiz at danbala:
7900         * config/sparc/tm-sp64.h: Fix grammar and typos.
7901         Fix PR gdb/287.
7902
7903 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
7904
7905         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7906         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
7907         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7908         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7909         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7910         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7911         * s390-tdep.c: Ditto.
7912         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7913         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7914         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7915         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7916         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7917         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7918         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7919         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7920         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7921         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7922         Fix PR gdb/378.
7923
7924 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7925
7926         * lin-thread.c: Delete file.
7927         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7928         to gdb_proc_service.h.
7929         * configure: Re-generate.
7930
7931         * ocd.c (ocd_open): Do not try to open the "ocd" device.
7932         * serial.c (serial_open): Delete check for "ocd".
7933         Fix PR gdb/349.
7934
7935         * Makefile.in (linux-thread.o): Delete target.
7936         * linux-thread.c: Delete file.
7937
7938         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
7939         renamed SH files to be consistent.
7940
7941         * symtab.c (sort_search_symbols): Use xfree.
7942
7943 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
7944
7945         * arm-linux-tdep.c (arm_linux_init_abi): Register
7946         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7947         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7948         definition with undef, since we don't want the sysvr4 definition.
7949         (SKIP_TRAMPOLINE_CODE): Likewise.
7950
7951 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7952
7953         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7954
7955         * configure.in: (AC_CHECK_FUNCS) Added test for
7956         canonicalize_file_name Regenerated.
7957         * config.in, configure: Regenerated.
7958         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7959         defined use canonicalize_file_name.
7960
7961 2002-02-23  Michael Chastain  <mec@shout.net>
7962
7963         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7964
7965 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7966
7967         * README: Remove references to cygnus.com.
7968         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7969         dot com'' form.  Remove references to cygnus.com and sourceware.
7970
7971 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7972
7973         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7974         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7975         1003.1-2001 no longer allows "head -1".
7976         * gdb/Makefile.in (version.c): Likewise.
7977         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7978         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7979         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
7980
7981 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7982
7983         * cli/cli-decode.c (cmd_cfunc_eq): New function.
7984         * command.h (cmd_cfunc_eq): Declare.
7985         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7986
7987         * cli/cli-cmds.h (is_complete_command): Change parameter to a
7988         ``struct cmd_list_element *''.
7989         * cli/cli-cmds.c (is_complete_command): Update.  Use
7990         cmd_cfunc_eq.
7991         * top.c (execute_command): Pass the command to
7992         is_complete_command.
7993         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7994
7995 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7996
7997         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7998         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7999         architecture defines.
8000         * s390-tdep.c (s390_gdbarch_init): Likewise.
8001
8002 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
8003
8004         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8005         (arm_linux_push_arguments): Likewise.
8006         (arm_linux_init_abi): Register them.  Also register linux-specific
8007         call_dummy_words.
8008         (find_minsym_and_objfile): Use strcmp, not STREQ.
8009         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8010         (arm_linux_call_dummy_words): Delete declaration.
8011         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8012         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8013         declarations.
8014         (LOWEST_PC): Delete.
8015
8016 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8017
8018         * maint.c (print_section_info): Do not prepend `0x' to filepos
8019         output, it will be handled by local_hex_string_custom.
8020
8021 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
8022
8023         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8024         (store_newfpe_double, store_newfpe_extended, store_fpregister)
8025         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8026
8027 2002-02-22  Jim Blandy  <jimb@redhat.com>
8028
8029         Indicate that the bcache functions don't change the strings
8030         they're passed.
8031         * bcache.h (bcache, hash): Add `const' keywords to declarations.
8032         * bcache.c (bcache, hash): Add `const' keywords to definitions.
8033
8034 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
8035
8036         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8037
8038 2002-02-21  Christopher Faylor  <cgf@redhat.com>
8039
8040         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8041         find the complete path to a loaded DLL.
8042
8043 2002-02-21  Fred Fish  <fnf@redhat.com>
8044
8045         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8046         that marks the end of the range of a function, enter a line number
8047         entry that has a line number of zero and a PC offset that matches
8048         the end of the function.  This starts a range of PC's for which no
8049         line number information is known.
8050         * symtab.c (find_pc_sect_line): If our best fit is in a range of
8051         PC's for which no line number info is found (line number is zero)
8052         then we didn't find any valid line information.
8053         * symtab.h: Document use of zero line number entry.
8054
8055 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
8056
8057         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8058         (have_ptrace_getvrregs): Define for run time checks.
8059         (gdb_vrregset_t): New type for Altivec register handling.
8060         (fetch_register, store_register): Fetch/store altivec register
8061         when needed.
8062         (fetch_altivec_register, store_altivec_register): New functions.
8063         (supply_vrregset, fill_vrregset): New functions.
8064         (fetch_altivec_registers, store_altivec_registers): New functions.
8065         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8066         registers as well.
8067
8068 2002-02-21  Jiri Smid  <smid@suse.cz>
8069
8070         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8071
8072 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
8073
8074         * Makefile.in (armnbsd-nat.o): Update dependencies.
8075         * armnbsd-nat.c (supply_gregset): New function.  Common code to
8076         supply the integer register set.
8077         (supply_fparegset): New function.  Similar for FPA registers.
8078         (fetch_regs, fetch_fp_regs): Use them.
8079         (fetch_core_registers): Likewise.
8080         (fetch_elfcore_registers): New function.
8081         (arm_netbsd_elfcore_fns): New core-file type specification.
8082         (_initialize_arm_netbsd_nat): Register it.
8083
8084 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
8085
8086         * armnbsd-nat.c: Include gdbcore.h.
8087         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8088         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8089         'void' to declaration, to shut up ARI.
8090         (fetch_core_registers): Make static.  Rewrite using supply_register.
8091         (arm_netbsd_core_fns): New core-file type specification.
8092         (_initialize_arm_netbsd_nat): New function.
8093
8094 2002-02-21  Christopher Faylor  <cgf@redhat.com>
8095
8096         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8097         value.
8098
8099 2002-02-20  Christopher Faylor  <cgf@redhat.com>
8100
8101         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8102         fails.
8103
8104 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8105
8106         * jv-exp.y (parse_number): Change type of implicit longs
8107         to builtin_type_uint64.
8108
8109 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8110
8111         * gdbserver/linux-low.c (mywait): Change argument to waitpid
8112         to be an integer instead of a `union wait'.
8113
8114 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8115
8116         * mips-linux-nat.c: Call the operating system GNU/Linux.
8117         * mips-linux-tdep.c: Likewise.
8118         * mips-tdep.c: Likewise.
8119
8120 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8121
8122         Fix PR gdb/265.
8123         * jv-exp.y (parse_number): Handle 64-bit integers.
8124
8125 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8126
8127         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
8128         AC_STDC_HEADERS to AC_HEADER_STDC.
8129         * gdbserver/configure: Regenerated.
8130
8131 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
8132
8133         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8134         is defined.
8135         * sparc-tdep.c (get_longjmp_target): Likewise.
8136
8137 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
8138
8139         * News: Add news about ARM and Multi-arch.  Mention the new target
8140         arm*-*-netbsd*.
8141
8142 2002-02-19  Jim Blandy  <jimb@redhat.com>
8143
8144         * stabsread.c (error_type_complaint): Improve error message.
8145
8146 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
8147
8148         * gdbserver/README: Update documentation.
8149         * gdbserver/configure.in: Update configury to match documentation.
8150         * gdbserver/Makefile.in: Likewise.
8151         * gdbserver/configure: Regenerated.
8152         * gdbserver/aclocal.m4: New file, generated by aclocal.
8153         * gdbserver/config.in: New file, generated by autoheader.
8154
8155 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8156
8157         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8158         armnbsd-nat.c.
8159
8160 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8161
8162         * arm-tdep.h (enum arm_float_model): New enum.
8163         (struct gdbarch_tdep): Add fp_model.
8164         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
8165         up floating-point conversions until we know the floating-point model
8166         in use by the inferior.  Don't complain about being unable to
8167         determine the ABI of the inferior when we don't have one.
8168         (arm_extract_return_value): Support different floating-point models.
8169         (arm_store_return_value): Likewise.
8170         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8171         ARM_FLOAT_SOFT.
8172         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8173
8174 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8175
8176         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8177         of ``current_gdbarch''.
8178
8179 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8180
8181         * armnbsd-nat.c : ANSIfy all function declarations.
8182         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8183         (fetch_inferior_registers): Re-implement in terms of above.
8184         (store_register, store_regs, store_fp_register, store_fp_regs): New.
8185         (store_inferior_registers): Re-implement in terms of above.
8186
8187 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8188
8189         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8190         kernel.
8191         * arm-linux-tdep.c: Likewise.
8192         * config/arm/tm-linux.h: Likewise.
8193
8194 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8195
8196         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8197         * config/arm/nbsd.mt (TM_FILE): Delete.
8198         * config/arm/tm-nbsd.h: Delete.
8199
8200 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8201
8202         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8203         Initialize CALL_DUMMY_LENGTH.
8204
8205 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8206
8207         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8208         function.
8209         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8210         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8211         defines one thing and that is incorrect for this port.
8212         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8213
8214 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8215
8216         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8217
8218 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8219
8220         * win32-nat.c (display_selector): New function. Displays information
8221         about the information returned by GetThreadSelectorEntry API function.
8222         (display_selectors): New function. Displays the infomation of
8223         the selector given as argument, or of CS, DS ans FS selectors
8224         if no argument is given.
8225         ( _initialize_inftarg): Add "w32" as info prefix command.
8226         Add "info w32 selector" as command calling display_selectors.
8227
8228 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8229
8230         * i386-tdep.c (get_longjmp_target): Fix compilation failure
8231         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8232         if not defined.
8233
8234 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8235
8236         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8237
8238 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8239
8240         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8241         (arm_fix_call_dummy): Call it.
8242         (arm_call_dummy_breakpoint_offset): Delete.
8243         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8244         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8245
8246 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
8247
8248         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8249         Default to func_frame_chain_valid.
8250         * gdbarch.h, gdbarch.c: Re-generate.
8251         * frame.h (FRAME_CHAIN_VALID): Delete definition.
8252
8253 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
8254
8255         * ppc-linux-nat.c: Update copyright.
8256         (fetch_register, store_register): Add tid parameter, don't compute
8257         tid here.
8258         (fetch_ppc_registers, store_ppc_registers): Add tid
8259         parameter. Pass it along to callees.
8260         (fetch_inferior_registers, store_inferior_registers): Compute tid
8261         here, and pass it to calleed functions.
8262         (fill_gregset, supply_fpregset): Clean up formatting.
8263
8264 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8265
8266         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8267         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8268
8269 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8270
8271         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8272         * gdbarch.c gdbarch.h: Regenerate.
8273         * breakpoint.c (create_longjmp_breakpoint): Always compile this
8274         function.
8275         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8276         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8277         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8278
8279         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8280         * arm-tdep.c (arm_get_longjmp_target): New function.
8281         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
8282         this to a positive value register arm_get_longjmp_target as the
8283         longjmp handler.
8284         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8285         (arm_linux_init_abi): Set up longjmp description in tdep.
8286         * armnbsd-nat.c (get_longjmp_target): Delete.
8287         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8288         description in tdep.
8289         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8290         (get_longjmp_target): Delete declaration.
8291         (GET_LONGJMP_TARGET): Delete.
8292         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8293         (GET_LONGJMP_TARGET): Delete.
8294
8295 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
8296
8297         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
8298         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8299         of ``current_gdbarch''.
8300
8301 2002-02-17  Tom Tromey  <tromey@redhat.com>
8302
8303         * cli/cli-cmds.c (compare_strings): New function.
8304         (complete_command): Only print each unique item once.
8305         * completer.h (complete_line): Declare.
8306         * completer.c (complete_line): New function.
8307         (line_completion_function): Use it.
8308
8309 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
8310
8311         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8312         * gdbarch.h, gdbarch.c: Re-generate.
8313
8314 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8315
8316         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8317
8318 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8319
8320         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8321         * valops.c (value_arg_coerce): Don't take the address of a reference
8322         to convert an argument to a reference.
8323
8324 2002-02-15  Christopher Faylor  <cgf@redhat.com>
8325
8326         * win32-nat.c (get_image_name): New function.
8327         (handle_load_dll): Use get_image_name function.
8328         (get_child_debug_event): Avoid registering debug events until possibly
8329         execed process is started.
8330         (child_create_inferior): Allow invocation via shell so that command
8331         line redirection, etc.  works ok.
8332         (_initialize_inftarg): Add new command: "set shell" to control whether
8333         a shell is used to start a process.
8334
8335 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8336
8337         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8338         instead of find_register_by_number.
8339         (cannot_store_register): Likewise.
8340
8341 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8342
8343         * dwarf2read.c: Replace fprintf (stderr, ...) by
8344         fprintf_unfiltered (gdb_stderr, ...).
8345
8346 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8347
8348         * gdbserver/gdbserver.1: Document --attach.
8349
8350 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8351
8352         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8353         descriptions.
8354         * arm-tdep.c (arm_default_arm_le_breakpoint)
8355         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8356         (arm_default_thumb_be_breakpoint): New.  Initialize them from
8357         traditional breakpoint defines.
8358         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8359         (arm_gdbarch_init): Initialize new breakpoint variables.
8360         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8361         (arm_linux_init_abi): Initialize linux-specific breakpoint.
8362         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8363         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8364         code out to ...
8365         (arm_netbsd_init_abi_common): ... here; new function.
8366         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8367         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8368         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8369         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8370
8371 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8372
8373         * arm-tdep.h (enum arm_abi): New enum.
8374         (struct gdbarch_tdep): New structure.
8375         (LOWEST_PC): Provide a default.
8376         (arm_gdbarch_register_os_abi): Declare new function.
8377         * arm-tdep.c (arm_abi_names): New array.
8378         (process_note_abi_tag_sections): New function.
8379         (get_elfosabi): New function.
8380         (arm_gdbarch_register_os_abi): New function.
8381         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
8382         support for that ABI has been built in, then call the appropriate
8383         configuration routine.  Use gdbarch_num_regs() to get the number
8384         of registers.
8385         (arm_dump_tdep): New function.
8386         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8387         place-holder functions.
8388         (_initialize_arm_tdep): Register them.
8389         * config/arm/tm-arm.h (LOWEST_PC): Delete.
8390
8391         * armnbsd-tdep.c: New file.
8392         * Makefile.in (armnbsd-tdep.o): Add dependencies.
8393         * config/arm/nbsd.mt (TDEPFILES): Add it.
8394         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8395
8396         * armnbsd-nat.c: Include regcache.h.
8397         * Makefile.in (armnbsd-nat.o): Update dependency list.
8398
8399         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8400
8401 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8402
8403         * gdbserver/Makefile.in: Fix typos in target rules.
8404
8405 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8406
8407         Fix part of PR gdb/267.
8408         * linespec.c (find_methods): Handle constructors specially for now.
8409
8410 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
8411
8412         * arm-tdep.c (arm_push_arguments): Eliminate special float type
8413         handling.
8414         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8415         standard_coerce_float_to_double().
8416
8417 2002-02-14  Christopher Faylor  <cgf@redhat.com>
8418
8419         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8420         GDBINIT_FILENAME.
8421
8422 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
8423
8424         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8425         find_variant_by_name, because it confuses the multiarch
8426         framework. Return NULL if there isn't an architecture with the
8427         user supplied name, instead of forcing a different one without
8428         recording the change with the multiarch machinery.
8429         (find_variant_by_name): Delete.
8430
8431 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8432
8433         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8434         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8435
8436 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
8437
8438         * stack.c (print_frame_info_base): When calling
8439         print_frame_info_listing_hook, set current_source_symtab.
8440
8441 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8442
8443         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8444         and remove unused $(INCLUDE_DIR).
8445         Add regcache.c to OBS.
8446         Add generated register protocol files to clean target.
8447         Update dependencies for new objects, obsolete old target code.
8448
8449         * gdbserver/linux-low.c: Remove all platform-specific code to
8450         new files.  Remove various dead code.  Update to use regcache
8451         functionality.
8452         * gdbserver/remote-utils.c (fromhex): Add return statement
8453         to quiet warning.
8454         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8455         constant.
8456         (input_interrupt): Add integer parameter to match prototype
8457         of a signal handler.
8458         (outreg): Use register_data ().
8459         (prepare_resume_reply): Use gdbserver_expedite_regs.
8460         * gdbserver/server.c (main): Dynamically allocate own_buf because
8461         PBUFSIZ is no longer constant.  Use registers_to_string () and
8462         registers_from_string ().
8463         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
8464         for error (), fatal (), and warning ().  Update definition of
8465         PBUFSIZ to use regcache functionality.  Add include guard.
8466         * gdbserver/utils.c (fatal): Add missing ``const''.
8467         (warning): New function.
8468
8469         * regformats/regdat.sh: Include "regcache.h" in generated files.
8470         Provide init_registers () function.
8471         * regformats/regdef.h: Add prototype for set_register_cache ().
8472         Add include guard.
8473
8474         * gdbserver/linux-arm-low.c: New file.
8475         * gdbserver/linux-i386-low.c: New file.
8476         * gdbserver/linux-ia64-low.c: New file.
8477         * gdbserver/linux-m68k-low.c: New file.
8478         * gdbserver/linux-mips-low.c: New file.
8479         * gdbserver/linux-ppc-low.c: New file.
8480         * gdbserver/linux-sh-low.c: New file.
8481
8482         * gdbserver/regcache.c: New file.
8483         * gdbserver/regcache.h: New file.
8484
8485         * gdbserver/low-linux.c: Removed obsolete file.
8486
8487 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8488
8489         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8490         * config/i386/linux.mt: Likewise.
8491         * config/ia64/linux.mt: Likewise.
8492         * config/m68k/linux.mh: Likewise.
8493         * config/powerpc/linux.mh: Likewise.
8494         * config/mips/linux.mt: Likewise.
8495
8496         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8497
8498         * config/i386/i386lynx.mh: Mark gdbserver variables
8499         as (currently) obsolete for this target.
8500         * config/i386/nbsd.mt: Likewise.
8501         * config/i386/nbsdelf.mt: Likewise.
8502         * config/m32r/m32r.mt: Likewise.
8503         * config/m68k/m68klynx.mh: Likewise.
8504         * config/m68k/nbsd.mt: Likewise.
8505         * config/m68k/sun3os4.mh: Likewise.
8506         * config/mips/vr5000.mt: Likewise.
8507         * config/ns32k/nbsd.mt: Likewise.
8508         * config/pa/hppabsd.mh: Likewise.
8509         * config/pa/hppaosf.mh: Likewise.
8510         * config/powerpc/nbsd.mt: Likewise.
8511         * config/rs6000/rs6000lynx.mh: Likewise.
8512         * config/s390/s390.mt: Likewise.
8513         * config/s390/s390x.mt: Likewise.
8514         * config/sparc/sparclynx.mh: Likewise.
8515         * config/sparc/sun4os4.mh: Likewise.
8516         * config/i386/x86-64linux.mt: Likewise.
8517         * config/sparc/linux.mh: Likewise.
8518
8519 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8520
8521         * configure.tgt: Configure gdbserver only for known working
8522         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
8523         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
8524         SUBDIRS if it is configured.  Update comment for ${nativefile}.
8525         * configure: Regenerated.
8526
8527 2002-02-13  Michael Snyder  <msnyder@redhat.com>
8528
8529         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8530
8531         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8532         (default_gcore_mach): Just return 0, work around a problem in bfd.
8533         (default_gcore_target): OK to return NULL if exec_bfd is null.
8534         (make_mem_sec): Use a cast, avoid a warning.
8535
8536         * procfs.c (find_memory_regions_callback): Use a cast instead of
8537         calling host_pointer_to_address (which complains if
8538         sizeof (host pointer) != sizeof (target pointer)).
8539         (procfs_make_note_section): Avoid overflow in psargs string.
8540
8541         * procfs.c (procfs_make_note_section): Make the default
8542         implementation return an error.
8543
8544 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
8545
8546         * procfs.c (procfs_make_note_section): Provide a default definition
8547         (for alpha-dec-osf4.0f). Fix typos.
8548
8549 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
8550
8551         * linux-proc.c: Add include of regcache.h.
8552         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8553
8554 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
8555
8556         From 2002-01-18 Greg McGary <greg@mcgary.org>:
8557         * memattr.c (create_mem_region): Disallow useless empty region.
8558         Regions are half-open intervals, so allow [A..B) [B..C) as
8559         non-overlapping.
8560
8561 2002-02-13  Michael Chastain <mec@shout.net>
8562
8563         * defs.h: Kill CONST_PTR.
8564         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8565         * c-lang.c (c_builtin_types): Likewise.
8566         * ch-lang.c (ch_builtin_types): Likewise.
8567         * f-lang.c (f_builtin_types): Likewise.
8568         * language.c (unknown_builtin_types): Likewise.
8569         * m2-lang.c (m2_builtin_types): Likewise.
8570         * p-lang.c (pascal_builtin_types): Likewise.
8571         * scm-lang.c (c_builtin_types): Likewise.
8572
8573 2002-02-13  Keith Seitz  <keiths@redhat.com>
8574
8575         * arm-tdep.h (arm_get_next_pc): Add declaration.
8576
8577 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
8578
8579         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
8580         with other related struct-returning functions.
8581         (arm_extract_struct_value_address): New function.
8582         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
8583         initialize float_format, double_format and long_double_format as
8584         appropriate to the endianness of the target.
8585         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8586         (arm_use_struct_convention): Delete declaration.
8587         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8588
8589 2002-02-13  Keith Seitz  <keiths@redhat.com>
8590
8591         * defs.h (core_addr_to_string_nz): New function.
8592
8593 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
8594
8595         Apply missing bits of 2002-01-15 patch.
8596         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8597         (fill_fpregset): Use i387_fill_fsave.
8598
8599 2002-02-12  Keith Seitz  <keiths@redhat.com>
8600
8601         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8602         (core_addr_to_string_nz): New function.
8603
8604 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8605
8606         * arm-linux-nat.c: Really include arm-tdep.h.
8607         * config/arm/tm-linux.h (struct type, struct value): Declare.
8608
8609 2002-02-11  Michael Snyder  <msnyder@redhat.com>
8610
8611         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8612         (gcore section): Ifdef for Solaris and Unixware only.
8613         (procfs_do_thread_registers): Unixware needs one lwpstatus
8614         per thread (not one prstatus or pstatus).
8615         (procfs_make_note_section): Iterate only over kernel threads (lwps),
8616         not over all gdb threads.  For unixware, call elfcore_write_pstatus
8617         once before iterating over threads.
8618
8619 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8620
8621         * arm-tdep.h: New file.
8622         * arm-tdep.c: Include arm-tdep.h.
8623         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8624         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8625         (arm_print_float_info, arm_register_type, convert_to_extended)
8626         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8627         (arm_extract_return_value, arm_register_name): Make static.
8628         (arm_software_single_step): Similarly.  Fix types in declaration.
8629         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8630         (arm_store_return_value, arm_store_struct_return): New functions.
8631         (arm_gdbarch_init): Register the above functions.  Also register
8632         call_dummy_start_offset, sizeof_call_dummy_words,
8633         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8634         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8635         max_register_virtual_size, register_size.  Set up
8636         prologue_cache.saved_regs here, rather than ...
8637         (_initialize_arm_tdep): ... here.
8638         * config/arm/tm-arm.h (struct type, struct value): Delete forward
8639         declarations.
8640         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8641         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8642         (arm_print_float_info, arm_register_type, convert_to_extended)
8643         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8644         (arm_extract_return_value, arm_register_name): Delete declarations.
8645         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8646         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8647         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8648         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8649         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8650         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8651         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8652         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8653         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8654         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8655         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8656         (arm_get_next_pc): No-longer static -- these are needed by the RDI
8657         interface.
8658         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8659         * remote-rdi.c remote-rdp.c: Likewise.
8660         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8661         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8662         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8663         definition.
8664
8665         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8666         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8667         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8668         from non-ARM_ prefixed definitions.
8669         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8670         all uses of above.
8671         * remote-rdi.c remote-rdp.c: Likewise.
8672         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8673
8674 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8675
8676         * arm-tdep.c (arm_frameless_function_invocation)
8677         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8678         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8679         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8680         (arm_pop_frame, arm_get_next_pc): Make static.
8681         (arm_gdbarch_init): Register above in gdbarch structure.
8682         (arm_read_fp): Renamed from arm_target_read_fp.
8683         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8684         * config/arm/tm-arm.h (arm_frameless_function_invocation)
8685         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8686         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8687         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8688         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8689         (arm_pc_is_thumb_dummy): Delete declarations.
8690         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8691         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8692         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8693         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8694
8695 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
8696
8697         * symtab.c (compare_search_syms): New function.
8698         (sort_search_symbols): New function.
8699         (search_symbols): Sort symbols after searching rather than
8700         before.
8701
8702 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8703
8704         * NEWS: Linux -> GNU/Linux.
8705
8706 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8707
8708         * gdbarch.sh: For for level one methods, disallow a definition
8709         when partially multi-arched.  Add comments explaining rationale.
8710         * gdbarch.h: Re-generate.
8711
8712 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8713
8714         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8715         multi-arch partial.
8716
8717 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8718
8719         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
8720         field.  Use diff -u.
8721         * gdbarch.c: Re-generate.
8722
8723 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8724
8725         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8726         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8727         partial.
8728
8729 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8730
8731         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8732         multi-arch partial.
8733         (PUSH_ARGUMENTS): Switch to using predefault.
8734         * gdbarch.c: Regenerate.
8735
8736 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8737
8738         * valops.c (PUSH_ARGUMENTS): Delete definition.
8739         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8740         partial.  Default to default_push_arguments.
8741         * gdbarch.h, gdbarch.c: Regenerate.
8742
8743 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8744
8745         * defs.h (throw_exception): Rename return_to_top_level.  Update
8746         comments.
8747         * utils.c (error_stream, internal_verror, quit): Ditto.
8748         * top.c (throw_exception, catcher): Ditto.
8749         * sparclet-rom.c (sparclet_load): Ditto.
8750         * remote.c (interrupt_query, minitelnet): Ditto.
8751         * remote-sds.c (interrupt_query): Ditto.
8752         * remote-mips.c (mips_error, mips_kill): Ditto.
8753         * ocd.c (interrupt_query): Ditto.
8754         * monitor.c (monitor_interrupt_query): Ditto.
8755         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8756         * target.h: Update comment.
8757
8758         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8759
8760 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8761
8762         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8763         default_double_format.
8764         * gdbarch.h, gdbarch.c: Re-generate.
8765         * findvar.c (floatformat_unknown): Delete variable definition.
8766         * doublest.h (floatformat_unknown): Delete variable declaration.
8767
8768 2002-02-09  Jim Blandy  <jimb@redhat.com>
8769
8770         * stabsread.c (read_type): Add code to parse Sun's syntax for
8771         prototyped function types.
8772
8773 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8774
8775         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8776         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8777
8778 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8779
8780         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8781         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
8782         now _initialize_xcoffsolib gets called again and overrides the
8783         commands from solib.c in a native configuration.
8784
8785 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
8786
8787         * doublest.c (store_typed_floating): Don't try to return a value.
8788         Fixes PR gdb/290.
8789
8790 2002-02-08  Jim Blandy  <jimb@redhat.com>
8791
8792         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8793         is prototyped and has no arguments, print its argument list as
8794         `(void)'.
8795
8796 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8797
8798         * MAINTAINERS (write-after-approval): Add myself.
8799         (paper-trail): I've escaped!
8800
8801 2002-02-08  Christopher Faylor  <cgf@redhat.com>
8802
8803         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8804         changes.
8805         (_initialize_check_for_gdb_ini): Ditto.
8806
8807 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
8808
8809         * win32-nat.c (cygwin_pid_to_str): Fix typo.
8810         xaprintf -> xasprintf.
8811
8812 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
8813
8814         * win32-nat.c: Remove use of printf and sprintf functions.
8815
8816 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
8817
8818         * arm-tdep.c (arm_frame_chain_valid): Make static.
8819         (arm_push_arguments): Likewise.
8820         (arm_gdbarch_init): New function.
8821         (_initialize_arm_tdep): Call it.
8822         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8823         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8824         (FRAME_CHAIN_VALID): Delete.
8825         (arm_frame_chain_valid): Delete declaration.
8826         (PUSH_ARGUMENTS): Delete.
8827         (arm_push_arguments): Delete declaration.
8828         (CALL_DUMMY_P): Delete.
8829
8830 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
8831             Corinna Vinschen  <vinschen@redhat.com>
8832
8833         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8834         on builtin float types.
8835
8836 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
8837
8838         * utils.c: Include <curses.h> before "bfd.h".
8839         * tui/tui-hooks.c: Likewise.
8840         * tui/tui.c: Likewise.
8841         * tui/tuiCommand.c: Likewise.
8842         * tui/tuiData.c: Likewise.
8843         * tui/tuiDataWin.c: Likewise.
8844         * tui/tuiDisassem.c: Likewise.
8845         * tui/tuiGeneralWin.c: Likewise.
8846         * tui/tuiIO.c: Likewise.
8847         * tui/tuiLayout.c: Likewise.
8848         * tui/tuiRegs.c: Likewise.
8849         * tui/tuiSource.c: Likewise.
8850         * tui/tuiSourceWin.c: Likewise.
8851         * tui/tuiStack.c: Likewise.
8852         * tui/tuiWin.c: Likewise.
8853
8854 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
8855
8856         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8857         to include space for pseudoregs as well. Update loops accordingly.
8858         (sh_fp_frame_init_saved_regs): Ditto.
8859         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8860
8861 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
8862
8863         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8864         Add Richard Earnshaw to Arm maintainers.
8865
8866 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
8867
8868         * defs.h (warning_begin): Delete declaration.
8869
8870         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8871         Delete macro.
8872
8873 2002-02-07  Michael Snyder  <msnyder@redhat.com>
8874
8875         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8876         Logic bug, remove misplaced else.
8877
8878 2002-02-07  Klee Dienes  <klee@apple.com>
8879
8880         * fork-inferior.c (fork_inferior): Add '!' to the list of
8881         characters that need to be quoted when building a string for the
8882         shell.  Quote '!' specifically with a backslash, since CSH chokes
8883         when trying to evaluate "str!str".
8884
8885 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
8886
8887         * rdi-share/host.h: Only provide a typedef for bool if it is not
8888         defined.
8889
8890 2002-02-04  Michael Snyder  <msnyder@redhat.com>
8891
8892         * breakpoint.h (enum bptype): Add new overlay event bp type.
8893         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8894
8895         * breakpoint.c (create_internal_breakpoint): New function.
8896         (internal_breakpoint_number): Moved into create_internal_breakpoint.
8897         (create_longjmp_breakpoint): Use create_internal_breakpoint.
8898         (create_thread_event_breakpoint): Ditto.
8899         (create_solib_event_breakpoint): Ditto.
8900         (create_overlay_event_breakpoint): New function.
8901         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8902         (update_breakpoints_after_exec): Delete and re-initialize
8903         overlay event breakpoints after an exec.  Add FIXME comment
8904         about longjmp breakpoint.
8905         (print_it_typical): Ignore overlay event breakpoints.
8906         (print_one_breakpoint): Ditto.
8907         (mention): Ditto.
8908         (bpstat_what): Do not stop for overlay event breakpoints.
8909         (delete_breakpoint): Don't delete overlay event breakpoints.
8910         (breakpoint_re_set_one): Delete the overlay event breakpoint.
8911         (breakpoint_re_set): Re-create overlay event breakpoint.
8912
8913         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8914         (overlay_manual_command): Disable overlay breakpoints.
8915         (overlay_off_command): Disable overlay breakpoints.
8916
8917 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8918
8919         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8920         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8921         to here from config/tm-arm.h.
8922         (coff_sym_is_thumb): Make static.
8923         (arm_elf_make_msymbol_special): New function.
8924         (arm_coff_make_msymbol_special): New function.
8925         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8926         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8927         (coff_sym_is_thumb): Delete declaration.
8928         (arm_elf_make_msymbol_special): Declare.
8929         (arm_coff_make_msymbol_special): Declare.
8930         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8931         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8932
8933 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8934
8935         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8936
8937 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8938
8939         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8940         * gdbarch.c gdbarch.h: Regenerate.
8941         * arch-utils.c (default_print_float_info): New function.
8942         * arch-utils.h (default_print_float_info): Prototype it.
8943         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8944         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8945         (PRINT_FLOAT_INFO): Document it.
8946
8947         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8948         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8949         (PRINT_FLOAT_INFO): Define.
8950
8951 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
8952
8953         * win32-nat.c (_initialize_check_for_gdb_ini):
8954         Add typecast to sprintf argument to suppress a warning.
8955
8956 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
8957
8958         * win32-nat.c (last_sig): Changed type of variable to target_signal,
8959         to allow easier handling of pass state.
8960         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8961         that gives exception name and address.
8962         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8963         and set last_sig value to ourstatus->value.sig. Some missing
8964         exceptions added.
8965         (child_continue): Correctly report continue_status.
8966         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8967         TARGET_SIGNAL_0 (new default value).
8968         (child_resume): consider sig argument passed to decide if
8969         the exception should be passed to debuggee or not.
8970
8971 2002-02-05  Michael Snyder  <msnyder@redhat.com>
8972
8973         * regcache.c (fetch_register): Call target_fetch_register
8974         only if we don't call FETCH_PSEUDO_REGISTER.
8975         (store_register): Call target_store_register only if we
8976         don't call STORE_PSEUDO_REGISTER.
8977
8978 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
8979
8980         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8981         ELF_MAKE_MSYMBOL_SPECIAL.
8982         * gdbarch.c, gdbarch.h: Regenerate.
8983         * arch-utils.c (default_make_msymbol_special): New function.
8984         * arch-utils.h (default_make_msymbol_special): Export.
8985         * elfread.c (elf_symtab_read): Compile use of
8986         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8987         multiarched.
8988         * coffread.c (coff_symtab_read): Ditto, for
8989         COFF_MAKE_MSYMBOL_SPECIAL.
8990
8991 2002-02-05  Jim Blandy  <jimb@redhat.com>
8992
8993         * solib-svr4.c (svr4_truncate_ptr): New function.
8994         (svr4_relocate_section_addresses): Do the address arithmetic with
8995         the appropriate truncation for target addresses, even when
8996         CORE_ADDR is larger than a target address.
8997
8998 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8999
9000         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9001         to (int *).
9002
9003 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9004
9005         * gdbserver/linux-low.c (kill_inferior): Remove commented out
9006         code.
9007
9008 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9009
9010         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9011
9012 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9013
9014         * gdbserver/linux-low.c: Remove unused include files.
9015
9016 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9017
9018         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9019         (read_inferior_memory): Use it.
9020         (write_inferior_memory): Likewise.
9021
9022 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9023
9024         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9025         grubbing through sys_errlist.
9026
9027 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9028
9029         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9030
9031 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
9032         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9033
9034 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
9035
9036         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9037         (do_sfunc, set_cmd_sfunc): New functions.
9038
9039         * command.h (struct cmd_list_element): Add field func.
9040         * cli/cli-decode.h (struct cmd_list_element): Ditto.
9041         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9042         * cli/cli-decode.h: Ditto.
9043
9044         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9045         (help_all, help_cmd_list): Ditto.
9046         (find_cmd, complete_on_cmdlist): Ditto.
9047         * top.c (execute_command): Ditto.
9048
9049         * cli/cli-setshow.c (do_setshow_command): Call func instead of
9050         function.sfunc.
9051
9052         * infcmd.c (notice_args_read): Fix function signature.
9053
9054         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9055         * cli/cli-decode.c (add_set_cmd): Ditto.
9056         * utils.c (initialize_utils): Ditto.
9057         * maint.c (_initialize_maint_cmds): Ditto.
9058         * infrun.c (_initialize_infrun): Ditto.
9059         * demangle.c (_initialize_demangler): Ditto.
9060         * remote.c (add_packet_config_cmd): Ditto.
9061         * mips-tdep.c (_initialize_mips_tdep): Ditto.
9062         * cris-tdep.c (_initialize_cris_tdep): Ditto.
9063         * proc-api.c (_initialize_proc_api): Ditto.
9064         * kod.c (_initialize_kod): Ditto.
9065         * valprint.c (_initialize_valprint): Ditto.
9066         * top.c (init_main): Ditto.
9067         * infcmd.c (_initialize_infcmd): Ditto.
9068         * corefile.c (_initialize_core): Ditto.
9069         * arm-tdep.c (_initialize_arm_tdep): Ditto.
9070         * arch-utils.c (initialize_current_architecture): Ditto.
9071         (_initialize_gdbarch_utils): Ditto.
9072         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9073
9074         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9075         * wince.c (_initialize_inftarg): Ditto.
9076         * symfile.c (_initialize_symfile): Ditto.
9077         * mips-tdep.c (_initialize_mips_tdep): Ditto.
9078         * language.c (_initialize_language): Ditto.
9079         * arc-tdep.c (_initialize_arc_tdep): Ditto.
9080
9081 2002-02-04  Michael Snyder  <msnyder@redhat.com>
9082
9083         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9084
9085 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9086
9087         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9088         Add rules for building the register data files.
9089
9090 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9091
9092         * regformats/regdat.sh: Add braces to the definition of
9093         expedite_regs_${arch}.
9094
9095 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9096
9097         * regformats/regdef.h (struct reg): Add comment describing the
9098         requirements for offset and size fields.
9099
9100 2002-02-04  Andreas Schwab  <schwab@suse.de>
9101
9102         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9103         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9104
9105 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
9106
9107         * gdbarch.sh (copyright): Update years in generated header.
9108         (SMASH_TEXT_ADDRESS): Add rule.
9109         * gdbarch.h, gdbarch.c: Re-generate.
9110         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9111         * dbxread.c: Likewise.
9112         * dwarfread.c: Likewise.
9113         * elfread.c: Likewise.
9114         * somread.c: Likewise.
9115
9116         * arm-tdep.c (arm_smash_text_address): New function.
9117         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9118
9119 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
9120
9121         Add support for hardware watchpoints on win32 native.
9122         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9123         CONTEXT_DEBUG_REGISTERS.
9124         (dr variable): New variable. Static array containing a local copy
9125         of debug registers.
9126         (debug_registers_changed): New variable.  Reflects when debug registers
9127         are changed and need to be written to inferior.
9128         (debug_registers_used): New variable. Reflects when any debug register
9129         was set, used when new threads are created.
9130         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9131         i386-nat code.
9132         (thread_rec): Set dr array if id is the thread of current_event .
9133         (child_continue, child_resume): Change the debug registers for all
9134         threads if debug_registers_changed.
9135         (child_add_thread): Change the debug registers if debug_registers_used.
9136         * config/i386/cygwin.mh: Add use of i386-nat.o file.
9137         Link nm.h to new nm-cygwin.h file.
9138         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9139         of hardware registers.
9140
9141 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
9142
9143         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9144         Restore behavour broken by 2002-01-20 Andrew Cagney
9145         <ac131313@redhat.com> IEEE_FLOAT removal.
9146
9147 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9148
9149         * c-valprint.c (c_val_print): Pass a proper valaddr to
9150         cp_print_class_method.
9151         * valops.c (search_struct_method): If there is only one method
9152         and args is NULL, return that method.
9153
9154 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9155
9156         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9157         accessing tag_name directly.
9158
9159 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9160
9161         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9162         of accessing tag_name directly.
9163
9164 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9165
9166         PR gdb/280
9167         * gdbtypes.c (replace_type): New function.
9168         * gdbtypes.h (replace_type): Add prototype.
9169         * stabsread.c (read_type): Use replace_type.
9170
9171 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
9172
9173         * Makefile.in (memattr.o): Add missing dependencies rule.
9174
9175 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9176
9177         * breakpoint.c (break_at_finish_command): Really export.
9178         (break_at_finish_at_depth_command): Ditto.
9179         (tbreak_at_finish_command): Ditto.
9180         * hppa-tdep.c: Include completer.h.
9181         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9182         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9183
9184 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9185
9186         * utils.c (do_write): New function.
9187         (error_stream): Rewrite combining the code from error_begin and
9188         verror.
9189         (verror): Rewrite using error_stream.
9190         (error_begin): Delete function.
9191
9192 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9193
9194         * utils.c (error_begin): Make static.
9195         * defs.h (error_begin): Delete declaration.
9196
9197         * linespec.c (cplusplus_error): Replace cplusplus_hint.
9198         (decode_line_1): Use cplusplus_error instead of error_begin,
9199         cplusplus_hint and return_to_top_level.
9200         * coffread.c (coff_symfile_read): Use error instead of error_begin
9201         and return_to_top_level.
9202         * infrun.c (default_skip_permanent_breakpoint): Ditto.
9203
9204 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9205
9206         * language.h (type_error, range_error): Make string parameter
9207         constant.
9208         * language.c (warning_pre_print): Delete extern declaration.
9209         * dwarfread.c (warning_pre_print): Ditto.
9210         * language.c (type_error, range_error): Rewrite to use verror and
9211         vwarning instead of warning_begin.
9212
9213 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9214
9215         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9216         (set_ignore_count): Move misplaced comment back where it belongs.
9217
9218 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9219
9220         * command.h (NO_FUNCTION): Delete macro.
9221         * cli/cli-decode.h (NO_FUNCTION): Ditto.
9222         * top.c (execute_command): Replace NO_FUNCTION with NULL.
9223         * tracepoint.c (_initialize_tracepoint): Ditto.
9224         * cli/cli-decode.c (add_set_cmd): Ditto.
9225         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9226
9227 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9228
9229         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9230         Update ``this'' pointer when calling virtual functions.
9231
9232 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9233
9234         * breakpoint.c (create_temp_exception_breakpoint): Delete.
9235         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9236
9237 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9238
9239         * regformats/reg-arm.dat: New file.
9240         * regformats/reg-i386.dat: New file.
9241         * regformats/reg-ia64.dat: New file.
9242         * regformats/reg-m68k.dat: New file.
9243         * regformats/reg-mips.dat: New file.
9244         * regformats/reg-ppc.dat: New file.
9245         * regformats/reg-sh.dat: New file.
9246         * regformats/regdef.h: New file.
9247         * regformats/regdat.sh: New file.
9248
9249 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
9250
9251         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9252         (arm_frame_args_address, arm_frame_locals_address): New functions.
9253         (arm_frame_num_args): New function.
9254         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9255         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9256         (FRMA_NUM_ARGS): Call arm_frame_num_args.
9257
9258 2002-01-31  Michael Snyder  <msnyder@redhat.com>
9259
9260         * breakpoint.c (break_at_finish_command): Export.
9261         (break_at_finish_at_depth_command): Export.
9262         (tbreak_at_finish_command): Export.
9263         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9264         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9265         "tbreak" commands, which are HPPA specific.
9266
9267         * printcmd.c (disassemble_command): Remove an ancient
9268         artifact of an old merge.
9269
9270         * symfile.h (enum overlay_debugging_state):
9271         Define enum constant values for overlay mode.
9272         * symfile.c (overlay_debugging): Use enums instead of literals.
9273         (overlay_is_mapped, overlay_auto_command,
9274         overlay_manual_command): Ditto.
9275
9276         * breakpoint.c (insert_breakpoints, remove_breakpoint,
9277         breakpoint_here_p, breakpoint_inserted_here_p,
9278         breakpoint_thread_match, bpstat_stop_status,
9279         describe_other_breakpoints, check_duplicates, clear_command):
9280         Coding standard fixes.
9281
9282         * target.c (target_xfer_memory): Add spaces, coding standard.
9283         (do_xfer_memory): Add missing line to trust-readonly
9284         code: check bfd SEC_READONLY flag for section.
9285
9286 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
9287
9288         * PROBLEMS: Fix typo, 5.1->5.1.1.
9289
9290 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
9291
9292         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9293         data symbols, since we search based on textlow and texthigh.
9294         (find_pc_sect_symtab): Likewise.
9295
9296 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9297
9298         * defs.h (vwarning): Declare.
9299         * utils.c (vwarning): New function.
9300         (warning): Call vwarning.
9301         (warning_begin): Delete function.
9302
9303         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9304         the warning message.
9305         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9306         warning_begin.
9307
9308 2002-01-30  Michael Snyder  <msnyder@redhat.com>
9309
9310         * NEWS: Mention "set trust-readonly-sections" command.
9311         Mention generate-core-file command.
9312
9313 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9314
9315         * target.c: New command, "set trust-readonly-sections on".
9316         (do_xfer_memory): Honor the suggestion to trust readonly sections
9317         by reading them from the object file instead of from the target.
9318         (initialize_targets): Register command "set trust-readonly-sections".
9319
9320 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9321
9322         * parse.c (target_map_name_to_register): Simplify, search regs and
9323         pseudo-regs using a single loop.
9324
9325 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9326
9327         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9328
9329 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
9330
9331         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9332         * config/i386/i386v42mp.mh: Add i387-nat.o .
9333         * i386v4-nat.c: Include i387-nat.h.
9334         (supply_fpregset): Use i387_supply_fsave.
9335         (fill_fpregset): Use i387_fill_fsave.
9336
9337 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
9338
9339         * arm-tdep.c (arm_call_dummy_words): Define.
9340         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9341         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9342         (CALL_DUMMY_WORDS): Define.
9343         (arm_call_dummy_words): Declare.
9344         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9345         (arm_linux_call_dummy_words): Declare.
9346
9347 2002-01-30  Andreas Schwab  <schwab@suse.de>
9348
9349         * m68klinux-nat.c: Fix last change to use regcache_collect
9350         instead of referencing registers[] directly.
9351
9352 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9353
9354         * parse.c (target_map_name_to_register): Delete code wrapped in
9355         #ifdef REGISTER_NAME_ALIAS_HOOK.
9356
9357 2002-01-28  Michael Snyder  <msnyder@redhat.com>
9358
9359         * regcache.c (legacy_read_register_gen): Need to be able to
9360         read pseudo-register as well as real register.
9361         (legacy_write_register_gen): Ditto.
9362
9363 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9364
9365         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9366         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9367         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9368         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9369         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9370         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9371         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9372         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9373         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9374         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9375         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9376         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9377         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9378         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9379         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9380         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9381         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9382         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9383         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9384         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9385
9386 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9387
9388         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9389         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9390         (initialize_current_architecture): Update target_byte_order using
9391         information from BFD.
9392         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9393         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9394
9395 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9396
9397         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9398         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
9399
9400         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9401         #ifdef INVALID_FLOAT.
9402         * infcmd.c (do_registers_info): Ditto.
9403         * values.c (unpack_double): Ditto.  Add comment.
9404
9405         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9406         already commented out.
9407
9408 2002-01-26  Andreas Schwab  <schwab@suse.de>
9409
9410         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9411         * m68klinux-nat.c: Update ptrace interface for fetching/storing
9412         registers and add support for PTRACE_GETREGS.
9413
9414 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
9415
9416         GDB 5.1.1 released from 5.1 branch.
9417         * NEWS: Add 5.1.1 news.
9418         * README: Sync with 5.1 branch.
9419
9420 2002-01-23  Fred Fish  <fnf@redhat.com>
9421
9422         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9423         stabstring on initial malloc.  Reallocing will copy it for us,
9424         if necessary.
9425
9426 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9427
9428         * Makefile.in (hpread_h): Delete.
9429         (HFILES_NO_SRCDIR): Remove hpread.h.
9430         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9431         (hpread.o): Update dependencies.
9432         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9433
9434         * hp-psymtab-read.c: Remove file.
9435         * hp-symtab-read.c: Remove file.
9436         * hpread.h: Remove file.
9437
9438         * hpread.c: Merge all contents of hp-psymtab-read.c,
9439         hp-symtab-read.c and hpread.h into this file, as it was prior to
9440         January 1999.
9441
9442         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9443         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9444         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9445         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9446
9447 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9448
9449         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9450         fill_gregset): Call gdbarch_tdep() just once, assign result to
9451         variable and use that, instead of calling the function several
9452         times.
9453
9454 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9455
9456         * configure.host: Accept sparcv9 as alias for sparc64.
9457         * configure.tgt: Likewise.
9458
9459 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
9460
9461         * solib-aix5.c (build_so_list_from_mapfile)
9462         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9463         arguments is not reversed.
9464         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9465         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9466
9467 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
9468
9469         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9470         modified version of obsolete sh_fetch_pseudo_register.
9471         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9472         (sh4_register_read): New function.
9473         (sh_pseudo_register_write): New function. Renamed and modified
9474         version of obsolete sh_store_pseudo_register.
9475         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9476         (sh4_register_write): New function.
9477         (sh_gdbarch_init): Remove setting of gdbarch function
9478         fetch_pseudo_register and store_pseudo_register. Remove setting of
9479         register_convert_to_raw, register_convert_to_virtual,
9480         register_convertible.
9481         (sh_sh4_register_convertible): Delete. No longer needed. All is
9482         taken care by architecture specific functions
9483         register_read/register_write.
9484         (sh_sh4_register_convert_to_virtual): Make static.
9485         (sh_sh4_register_convert_to_raw): Ditto.
9486
9487 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
9488
9489         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9490         (floatformat_is_nan, floatformat_mantissa): Ditto.
9491
9492         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9493         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9494         builtin_type_ieee_double_little,
9495         builtin_type_ieee_double_littlebyte_bigword,
9496         builtin_type_m68881_ext, builtin_type_i960_ext,
9497         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9498         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9499         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9500         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9501
9502 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
9503
9504         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9505         parameter.  Set frameless flag if it exists and depended of
9506         whether the scanned function is frameless or not.
9507         (xstormy16_skip_prologue): If function is frameless, return
9508         result of xstormy16_scan_prologue().
9509         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9510         call.
9511
9512 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
9513
9514         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9515         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9516         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9517         sh_sh4_register_byte, sh_sh4_register_raw_size,
9518         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9519         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9520         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9521         sh_store_pseudo_register, sh_do_pseudo_register): Call
9522         gdbarch_tdep() just once, assign result to variable and use that,
9523         instead of calling the function several times.
9524
9525 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
9526
9527         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9528         macros instead of LAST_FPU_CTRL_REGNUM.
9529         (store_register): Likewise.
9530
9531 2002-01-21  Jim Blandy  <jimb@redhat.com>
9532
9533         * infcmd.c (run_command): Check that the `exec' target layer's BFD
9534         is up-to-date before running the program, not just when a program
9535         exits.
9536
9537 2002-01-21  Fred Fish  <fnf@redhat.com>
9538
9539         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9540         when we have found all instructions we are looking for.
9541
9542 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9543
9544         * arm-tdep.c (arm_register_name): New function.
9545         (arm_registers_names): Make static.
9546         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9547         (arm_register_name): Declare.
9548         (REGISTER_NAME): Use it.
9549
9550 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9551             Kevin Buettner  <kevinb@redhat.com>
9552
9553         Convert arm targets to new FRAME interface.
9554         * arm-tdep.c (struct frame_extra_info): Remove fsr.
9555         (arm_frame_find_save_regs): Delete.
9556         (arm_frame_init_saved_regs): New.
9557         (arm_init_extra_frame_info): Alloacte saved_regs as required.
9558         Allocate extra_info as required.  Convert all uses of fsr.regs
9559         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9560         to use extra_info.
9561         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9562         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9563         (check_prologue_cache, save_prologue_cache): Likewise.
9564         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9565         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9566         (FRAME_FIND_SAVED_REGS): Delete.
9567         (arm_frame_find_saved_regs): Delete prototype.
9568         (arm_frame_init_saved_regs): New prototype.
9569         (FRAME_INIT_SAVED_REGS): Define.
9570
9571 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9572
9573         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9574
9575 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9576
9577         From Jeff Law <law@redhat.com>:
9578         * infttrace.c: Include <sys/pstat.h>.
9579         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
9580         exec file if the ttrace equivalent fails.
9581
9582 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9583
9584         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9585         (closeLogFile): Ditto.
9586
9587 2002-01-20  Michael Chastain  <mec@shout.net>
9588
9589         * top.c (print_gdb_version): Bump copyright year to 2002.
9590
9591 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9592
9593         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9594         Zannoni and Eli Zaretskii.
9595
9596 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9597
9598         * buildsym.c: Update copyright years.
9599         * c-typeprint.c: Likewise.
9600         * dwarf2read.c: Likewise.
9601         * f-typeprint.c: Likewise.
9602         * gdbtypes.c: Likewise.
9603         * gdbtypes.h: Likewise.
9604         * hp-symtab-read.c: Likewise.
9605         * hpread.c: Likewise.
9606         * mdebugread.c: Likewise.
9607         * p-typeprint.c: Likewise.
9608
9609 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9610
9611         * remote-sim.c (gdbsim_open): Simplify code testing the macro
9612         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
9613         byte-order selectable.
9614         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9615         * arch-utils.c: Ditto.
9616         (set_endian): Ditto.
9617         (set_endian_from_file): Ditto.
9618         * gdbserver/low-sim.c (create_inferior): Ditto.
9619         * gdbarch.sh: Ditto.
9620         * gdbarch.h: Re-generate.
9621         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9622         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9623         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9624         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9625         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9626         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9627         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9628         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9629         macro definition.
9630         * config/mips/tm-wince.h: Remove #undef of macro
9631         TARGET_BYTE_ORDER_SELECTABLE.
9632         * config/sh/tm-wince.h: Ditto.
9633
9634 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9635
9636         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9637         member function fields.  Add accessor macro
9638         TYPE_FN_FIELD_ARTIFICIAL.
9639         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9640         * c-typeprint.c (c_type_print_base): Skip artificial member
9641         functions.
9642
9643 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9644
9645         * f-typeprint.c: Delete unused function f_type_print_args.
9646         * p-typeprint.c: Delete unused function pascal_type_print_args.
9647
9648 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9649
9650         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
9651         comment.  Add ``artificial'' to ``union field_location''.
9652
9653         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9654
9655         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9656         * mdebugread.c (parse_symbol): Likewise.
9657         * stabsread.c (define_symbol): Likewise.
9658         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9659         initializing TYPE_FIELD_BITPOS to n (obsolete).
9660         (hpread_doc_function_type): Likewise.
9661         * hpread.c (hpread_function_type): Likewise.
9662
9663 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9664
9665         * configure.in (host_makefile_frag): Only require a host makefile
9666         fragment when a native build.
9667         * configure: Re-generate.
9668
9669 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9670
9671         * doublest.h (floatformat_from_type): Declare.
9672         * doublest.c (floatformat_from_type): New function.
9673         (convert_typed_floating): Use.
9674
9675         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9676         call to function floatformat_from_type.
9677
9678         * gdbarch.sh (IEEE_FLOAT): Delete.
9679         * gdbarch.h, gdbarch.c: Re-generate.
9680         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9681         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9682         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9683         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9684         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9685         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9686         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9687         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9688         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9689         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9690         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9691         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9692
9693         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9694         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9695         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9696         * sh-tdep.c (sh_gdbarch_init): Ditto.
9697         * mips-tdep.c (mips_gdbarch_init): Ditto.
9698         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9699         * cris-tdep.c (cris_gdbarch_init): Ditto.
9700
9701 2002-01-20  Jiri Smid  <smid@suse.cz>
9702
9703         * configure.host, configure.tgt: Support x86-64.
9704         * NEWS: Note new target x86-64.
9705
9706         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9707         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9708         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9709         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9710         x86-64-linux-nat.o): Fix dependencies.
9711
9712 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9713
9714         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9715         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9716         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9717         * config/sparc/xm-sun4os4.h: Delete file.
9718         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9719
9720 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9721
9722         * config/sparc/sparclynx.mh (XM_FILE): Delete.
9723         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9724         * config/m68k/m68klynx.mh (XM_FILE): Delete.
9725         * config/i386/i386lynx.mh (XM_FILE): Delete.
9726         * config/rs6000/xm-rs6000ly.h: Delete file.
9727         * config/sparc/xm-sparclynx.h: Delete file.
9728         * config/m68k/xm-m68klynx.h: Delete file.
9729         * config/i386/xm-i386lynx.h: Delete file.
9730         * config/xm-lynx.h: Delete file.
9731         * config/djgpp/fnchange.lst: Update.
9732
9733 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9734
9735         * alpha-tdep.c (alpha_register_byte): New function.
9736         (alpha_register_raw_size): Ditto.
9737         (alpha_register_virtual_size): Ditto.
9738         (alpha_skip_prologue_internal): Renamed from
9739         alpha_skip_prologue.
9740         (alpha_skip_prologue): New version that calls
9741         alpha_skip_prologue_internal.
9742         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9743         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9744         second argument from alpha_skip_prologue.
9745         (REGISTER_BYTE): Use alpha_register_byte.
9746         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9747         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9748         (FRAMELESS_FUNCTION_INVOCATION): Use
9749         generic_frameless_function_invocation_not.
9750         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9751         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9752
9753 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9754
9755         * config/mips/xm-news-mips.h: Delete file.
9756         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9757
9758         * config/m88k/xm-m88k.h: Delete file.
9759         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9760         * config/m88k/xm-delta88v4.h: Ditto.
9761         * config/m88k/xm-delta88.h: Ditto.
9762
9763         * config/alpha/xm-fbsd.h: Delete file.
9764         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9765
9766         * config/sparc/xm-sparc.h: Delete file.
9767         * Makefile.in (xm-sun4os4.h): Delete dependency.
9768         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9769         * config/sparc/xm-sun4os4.h: Ditto.
9770         * config/sparc/xm-linux.h: Ditto.
9771
9772         * config/i386/xm-windows.h: Delete file.
9773
9774 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9775
9776         * utils.c: Include <sys/param.h> for MAXPATHLEN.
9777         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9778
9779 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9780
9781         * alpha-tdep.c (alpha_call_dummy_words): New.
9782         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9783         (CALL_DUMMY_P): Define.
9784         (CALL_DUMMY_WORDS): Define.
9785         (SIZEOF_CALL_DUMMY_WORDS): Define.
9786
9787 2002-01-19  Per Bothner  <per@bothner.com>
9788
9789         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
9790         isn't NULL, which can happen with some gcj-3.x-produced code.
9791
9792 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9793
9794         * alpha-tdep.c (alpha_register_virtual_type): New function.
9795         (alpha_init_frame_pc_first): Ditto.
9796         (alpha_fix_call_dummy): Ditto.
9797         (alpha_store_struct_return): Ditto.
9798         (alpha_extract_struct_value_address): Ditto.
9799         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9800         alpha_register_virtual_type.
9801         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9802         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9803         alpha_extract_struct_value_address.
9804         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9805         (INIT_FRAME_PC): Use init_frame_pc_noop.
9806         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9807
9808 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
9809
9810         * i386gnu-nat.c: Include "i386-tdep.h".
9811         (fetch_fpregs): Simplify code dealing with uninitialized floating
9812         point states such that it doesn't require FP7_REGNUM.
9813
9814 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9815
9816         * alpha-tdep.c (frame_extra_info): New.
9817         (alpha_find_saved_regs): Make static.  Use
9818         frame->extra_info.
9819         (alpha_frame_init_saved_regs): New function.
9820         (alpha_frame_saved_pc): Use frame->extra_info.
9821         (temp_saved_regs): Don't declare as struct frame_saved_regs.
9822         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9823         (init_extra_frame_info): Rename to...
9824         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
9825         (alpha_print_extra_frame_info): New function.
9826         (alpha_frame_locals_address): Ditto.
9827         (alpha_frame_args_address): Ditto.
9828         (alpha_pop_frame): Use frame->extra_info.
9829         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9830         alpha_frame_args_address.
9831         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9832         (alpha_find_saved_regs): Remove prototype.
9833         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9834         (EXTRA_FRAME_INFO): Remove.
9835         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9836         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9837
9838 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9839
9840         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9841         (alpha_cannot_fetch_register): Ditto.
9842         (alpha_cannot_store_register): Ditto.
9843         (alpha_register_convertible): Ditto.
9844         (alpha_use_struct_convention): Ditto.
9845         * config/alpha/tm-alpha.h: Update copyright years.
9846         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9847         (INNER_THAN): Use core_addr_lessthan.
9848         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9849         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9850         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9851         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9852         (FRAME_CHAIN): Remove unnecessary cast.
9853
9854 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
9855
9856         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9857         obsolete.
9858
9859 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
9860
9861         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
9862         * monitor.c, remote-array.c, remote-bug.c: Ditto.
9863         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9864         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9865         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9866         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9867         * x86-64-linux-nat.c: Ditto.
9868
9869 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9870
9871         * alpha-tdep.c (alpha_register_name): New function.
9872         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9873         (REGISTER_NAME): Define.
9874
9875 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9876
9877         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9878
9879 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9880
9881         * alpha-tdep.c: Update copyright years.
9882         (alpha_next_pc): New function.
9883         (alpha_software_single_step): Ditto.
9884         * config/alpha/tm-alpha.h: Add prototype for
9885         alpha_software_single_step.
9886
9887 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9888
9889         * alphabsd-nat.c: Update copyright years.
9890         (fill_gregset): Use regcache_collect.
9891         (fill_fpregset): Likewise.
9892         (fetch_inferior_registers): Only fetch integer registers
9893         if requested to do so.
9894         (store_inferior_registers): Only store integer registers
9895         if requested to do so.
9896
9897 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9898
9899         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9900         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9901         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9902         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9903         * config/alpha/fbsd.mh (XDEPFILES): Delete.
9904         * config/arm/linux.mh (XDEPFILES): Delete.
9905         * config/arm/nbsd.mh (XDEPFILES): Delete.
9906         * config/i386/i386dgux.mh (XDEPFILES): Delete.
9907         * config/i386/i386sol2.mh (XDEPFILES): Delete.
9908         * config/i386/i386m3.mh (XDEPFILES): Delete.
9909         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9910         * config/i386/i386gnu.mh (XDEPFILES): Delete.
9911         * config/i386/fbsd.mh (XDEPFILES): Delete.
9912         * config/i386/i386bsd.mh (XDEPFILES): Delete.
9913         * config/i386/i386sco5.mh (XDEPFILES): Delete.
9914         * config/i386/i386v4.mh (XDEPFILES): Delete.
9915         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9916         * config/i386/i386sco4.mh (XDEPFILES): Delete.
9917         * config/i386/i386aix.mh (XDEPFILES): Delete.
9918         * config/i386/go32.mh (XDEPFILES): Delete.
9919         * config/i386/cygwin.mh (XDEPFILES): Delete.
9920         * config/i386/i386lynx.mh (XDEPFILES): Delete.
9921         * config/i386/i386mach.mh (XDEPFILES): Delete.
9922         * config/i386/i386v32.mh (XDEPFILES): Delete.
9923         * config/i386/linux.mh (XDEPFILES): Delete.
9924         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9925         * config/i386/ncr3000.mh (XDEPFILES): Delete.
9926         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9927         * config/i386/i386sco.mh (XDEPFILES): Delete.
9928         * config/i386/i386v.mh (XDEPFILES): Delete.
9929         * config/i386/nbsd.mh (XDEPFILES): Delete.
9930         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9931         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9932         * config/i386/symmetry.mh (XDEPFILES): Delete.
9933         * config/i386/obsd.mh (XDEPFILES): Delete.
9934         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9935         * config/ia64/linux.mh (XDEPFILES): Delete.
9936         * config/ia64/aix.mh (XDEPFILES): Delete.
9937         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9938         * config/m68k/dpx2.mh (XDEPFILES): Delete.
9939         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9940         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9941         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9942         * config/m68k/linux.mh (XDEPFILES): Delete.
9943         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9944         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9945         * config/m68k/nbsd.mh (XDEPFILES): Delete.
9946         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9947         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9948         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9949         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9950         * config/m88k/delta88.mh (XDEPFILES): Delete.
9951         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9952         * config/m88k/m88k.mh (XDEPFILES): Delete.
9953         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9954         * config/mips/linux.mh (XDEPFILES): Delete.
9955         * config/mips/irix6.mh (XDEPFILES): Delete.
9956         * config/mips/irix5.mh (XDEPFILES): Delete.
9957         * config/mips/irix4.mh (XDEPFILES): Delete.
9958         * config/mips/irix3.mh (XDEPFILES): Delete.
9959         * config/mips/decstation.mh (XDEPFILES): Delete.
9960         * config/mips/mipsm3.mh (XDEPFILES): Delete.
9961         (NATDEPFILES): Move core-aout.o to here.
9962         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9963         * config/pa/hpux1020.mh (XDEPFILES): Delete.
9964         * config/pa/hppabsd.mh (XDEPFILES): Delete.
9965         * config/pa/hppahpux.mh (XDEPFILES): Delete.
9966         * config/pa/hpux11w.mh (XDEPFILES): Delete.
9967         * config/pa/hppaosf.mh (XDEPFILES): Delete.
9968         * config/pa/hpux11.mh (XDEPFILES): Delete.
9969         * config/powerpc/aix.mh (XDEPFILES): Delete.
9970         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9971         * config/powerpc/linux.mh (XDEPFILES): Delete.
9972         * config/romp/rtbsd.mh: Rename XDEPFILES.
9973         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9974         * config/rs6000/aix4.mh (XDEPFILES): Delete.
9975         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9976         * config/s390/s390.mh (XDEPFILES): Delete.
9977         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9978         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9979         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9980         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9981         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9982         * config/sparc/nbsd.mh (XDEPFILES): Delete.
9983         * config/sparc/linux.mh (XDEPFILES): Delete.
9984         * config/vax/vaxult.mh (XDEPFILES): Delete.
9985         * config/vax/vaxult2.mh (XDEPFILES): Delete.
9986         * Makefile.in (DEPFILES): Remove XDEPFILES.
9987
9988 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9989
9990         * utils.c (internal_verror): Fix comments, default is yes not no.
9991         Update queries to match.  Default to quit and dump core.
9992
9993 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9994
9995         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
9996         copyright.
9997         * defs.h, event-top.c, gdbcmd.h: Ditto.
9998         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9999         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10000         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10001         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10002         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10003         * mi/mi-main.c:Ditto.
10004
10005         * stack.c, symfile.c: Update copyright.
10006
10007 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
10008
10009         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10010         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10011         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10012         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10013
10014 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
10015
10016         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10017         * gdbserver/low-lynx.c (myattach): Likewise.
10018         * gdbserver/low-nbsd.c (myattach): Likewise.
10019         * gdbserver/low-sim.c (myattach): Likewise.
10020         * gdbserver/low-sparc.c (myattach): Likewise.
10021         * gdbserver/low-sun3.c (myattach): Likewise.
10022
10023         * gdbserver/low-linux.c (myattach): New function.
10024
10025         * gdbserver/server.c (attach_inferior): New function.
10026         (main): Handle "--attach".
10027
10028 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
10029
10030         * MAINTAINERS (language support): Daniel Jacobwitz is C++
10031         maintainer.
10032
10033 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
10034
10035         * c-typeprint.c (is_type_conversion_operator): Add additional
10036         check for non-conversion operators.
10037
10038 2002-01-15  Michael Snyder  <msnyder@redhat.com>
10039
10040         * linux-proc.c: Add "info proc" command, a la procfs.c.
10041         (read_mapping): New function, abstract and re-use code.
10042         (linux_find_memory_regions): Use new func read_mapping.
10043         (linux_info_proc_cmd): New function, implement "info proc".
10044         (_initialize_linux_proc): Add new command "info proc".
10045
10046 2002-01-15  Michael Snyder  <msnyder@redhat.com>
10047
10048         * symfile.c (generic_load): Use bfd_map_over_sections method
10049         instead of manipulating bfd structure members directly.
10050         (add_section_size_callback): New function, bfd sections callback
10051         used by generic_load.
10052         (load_sections_callback): New function, bfd sections callback
10053         used by generic_load.
10054
10055 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
10056
10057         [Based on work by Jim Blandy]
10058         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10059         (builtin_type_vec128): Export.
10060         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10061         types.
10062         (builtin_type_vec128): New builtin type for 128 bit vector
10063         registers.
10064         (build_gdbtypes): Initialize builtin_type_v16qi and
10065         builtin_type_v8hi. Create the vec128 register builtin type
10066         structure.
10067         (build_builtin_type_vec128): New function.
10068         (_initialize_gdbtypes): Register builtin_type_v16qi and
10069         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10070         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10071         AltiVec register to new builtin type.
10072
10073 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
10074
10075         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10076         to make_cv_type.
10077
10078 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
10079
10080         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10081         CLEAN_UP_REGISTER_VALUE.
10082         * regcache.c (supply_register): Update only call.
10083
10084 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
10085
10086         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10087         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10088         a29k-*-vxworks* targets as obsolete.
10089
10090 2002-01-14  Michael Snyder  <msnyder@redhat.com>
10091
10092         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10093         until we can resolve portability issues.
10094         * gregset.h: Remove references to fpxregs.
10095         * gcore.c (gcore_command): Initialize note_sec to NULL.
10096
10097 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10098
10099         * signals.c (target_signal_to_name): Rewrite.  Only use
10100         signals[].name when in bounds and non-NULL.
10101
10102 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10103
10104         From Petr Ledvina <ledvinap@kae.zcu.cz>:
10105         * signals.c (target_signal_to_name): Verify that SIG is within the
10106         bounds of the signals array.
10107
10108 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10109
10110         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10111
10112 2002-01-13  Keith Seitz  <keiths@redhat.com>
10113
10114         * stack.c (print_frame_info_base): Print the frame's pc
10115         only if when print_frame_info_listing_hook is not defined.
10116
10117 2002-01-13  Keith Seitz  <keiths@redhat.com>
10118
10119         * varobj.c (varobj_set_value): Make sure that there were no
10120         errors evaluating the object before attempting to set its
10121         value.
10122         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10123         so this offset adjustment is no longer necessary.
10124         (create_child): Don't set the error flag if the child is
10125         a CPLUS_FAKE_CHILD.
10126         (value_of_child): If value_fetch_lazy fails, return NULL
10127         so that callers will be notified that an error occurred.
10128         (c_value_of_variable): Delay check of variable's validity
10129         until later. We actually want all structs and unions to have
10130         the value "{...}".
10131         Do not return "???" for variables which could not be evaluated.
10132         This error condition must be returned to the caller so that it
10133         can get the error condition from gdb.
10134         (cplus_name_of_child): Adjust index for vptr before figuring
10135         out the name of the child.
10136         (cplus_value_of_child): If a child's (real) parent is not valid,
10137         don't even bother trying to give a value for it. Just return
10138         an error. Change all instances in this function.
10139         (cplus_type_of_child): If our parent is one of the "fake"
10140         parents, we need to get at the type of the real parent, and
10141         derive the child's true type using this information.
10142
10143 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10144
10145         From 2002-01-09 John Marshall <johnm@falch.net>:
10146         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10147         sources.redhat.com, and tweak some related URLs which had
10148         suffered from linkrot.
10149
10150 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10151
10152         From Jeff law:
10153         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10154         structures passed in registers.
10155
10156 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
10157
10158         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10159         white space which prevented compilation.  Reported by DSK
10160         <dsk@student.unsw.edu.au>.
10161
10162 2002-01-11  Michael Snyder  <msnyder@redhat.com>
10163
10164         * symfile.c (build_section_addr_info_from_section_tab):
10165         Use bfd access method instead of manipulating bfd directly.
10166         (syms_from_objfile): Ditto.
10167         (simple_overlay_update_1): Ditto.
10168         (simple_overlay_update): Ditto.
10169         (generic_load): Ditto.
10170         (overlay_unmapped_address): FIXME comment, bfd access methods.
10171         (sections_overlap): FIXME comment, bfd access methods.
10172         (pc_in_mapped_range): FIXME comment, bfd access methods.
10173         (pc_in_unmapped_range): FIXME comment, bfd access methods.
10174         (section_is_mapped): FIXME comment, bfd access methods.
10175         (section_is_overlay): FIXME comment, bfd access methods.
10176
10177         * symfile.c (generic_load): Whitespace and long line cleanups.
10178         Remove duplicate variable, change several local variables to
10179         more appropriate data types.
10180         (print_transfer_performance): Use %lu instead of %ld for ulongs.
10181
10182 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10183
10184         From Peter Schauer:
10185         * language.c (longest_local_hex_string_custom): Use phex_nz to
10186         convert NUM to a hex string.
10187
10188 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
10189
10190         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10191         the function.
10192         Update Copyright year.
10193
10194 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10195
10196         * language.c (longest_raw_hex_string): Delete unused function.
10197
10198 2002-01-11  Petr Sorfa  <petrs@caldera.com>
10199
10200         * MAINTAINERS (write-after-approval): Add myself.
10201         * dwarf2read.c (read_tag_string_type): Handling of
10202         DW_AT_byte_size.
10203         (read_tag_string_type): FORTRAN fix to prevent propagation of
10204         first string size.
10205         (set_cu_language): Handling of DW_LANG_Fortran95
10206
10207 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
10208
10209         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10210         GETPID(inferior_ptid).
10211         (store_inferior_registers): Likewise.
10212
10213 2002-01-10  Jason Merrill  <jason@redhat.com>
10214
10215         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10216         Fix DW_OP_minus.
10217
10218 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
10219
10220         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10221         and bfd/elf32-sh-nbsd.c.
10222
10223 2002-01-10  Michael Snyder  <msnyder@redhat.com>
10224
10225         * NEWS: Mention --pid and corefile/proc-id behavior change.
10226
10227         * Makefile.in: Add rules for gcore.o and linux-proc.o.
10228         * gcore.c: Include cli/cli-decode.h instead of command.h.
10229
10230         * main.c (captured_main): Add new command line option "--pid".
10231         If the second command line argument (following the symbol-file)
10232         begins with a digit, try to attach to it before trying to open
10233         it as a corefile.
10234         (print_gdb_help): Document the "--pid" argument.
10235
10236 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
10237
10238         * completer.c (command_completer): New function.
10239
10240         * completer.h <command_completer>: Add prototype.
10241
10242         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10243         completer for the "help" command.
10244
10245 2002-01-09  Jason Merrill  <jason@redhat.com>
10246
10247         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10248
10249 2002-01-09  Michael Snyder  <msnyder@redhat.com>
10250
10251         * i386-linux-nat.c (fill_fpxregset): Make global.
10252         (store_fpxregset): Ditto.
10253
10254         * gregset.h (gdb_fpxregset_t): Define.
10255         (supply_fpxregset): Prototype.
10256         (fill_fpxregset): Prototype.
10257
10258         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10259
10260 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10261
10262         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10263         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10264         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10265
10266 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
10267
10268         * MAINTAINERS: Update target maintainer rules so that any
10269         Maintainer can approve a tested patch for a maintenance-only
10270         target.
10271
10272 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10273
10274         * MAINTAINERS (write-after-approval): Add myself.
10275
10276         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10277         IN_SIGTRAMP.
10278
10279 2002-01-08  Michael Snyder  <msnyder@redhat.com>
10280
10281         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10282         real name of the executable, rather than the /proc name.
10283
10284 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10285
10286         Implement a "generate-core-file" command in gdb, save target state.
10287         * gcore.c: New file.  Implement new command 'generate-core-file'.
10288         Save a corefile image of the current state of the inferior.
10289         * linux-proc.c: Add linux-specific code for saving corefiles.
10290         * target.h (struct target_ops): Add new target vectors for saving
10291         corefiles; to_find_memory_regions and to_make_corefile_notes.
10292         (target_find_memory_regions): New macro.
10293         (target_make_corefile_notes): New macro.
10294         * target.c (update_current_target): Inherit new target methods.
10295         (dummy_find_memory_regions): New place-holder method.
10296         (dummy_make_corefile_notes): New place-holder method.
10297         (init_dummy_target): Initialize new dummy target vectors.
10298         * exec.c (exec_set_find_memory_regions): New function.
10299         Allow the exec_ops vector for memory regions to be taken over.
10300         (exec_make_note_section): New function, target vector method.
10301         * defs.h (exec_set_find_memory_regions): Export prototype.
10302         * procfs.c (proc_find_memory_regions): New function, corefile method.
10303         (procfs_make_note_section): New function, corefile method.
10304         (init_procfs_ops): Set new target vector pointers.
10305         (find_memory_regions_callback): New function.
10306         (procfs_do_thread_registers): New function.
10307         (procfs_corefile_thread_callback): New function.
10308         * sol-thread.c (sol_find_memory_regions): New function.
10309         (sol_make_note_section): New function.
10310         (init_sol_thread_ops): Initialize new target vectors.
10311         * inftarg.c (inftarg_set_find_memory_regions): New function.
10312         Allow to_find_memory_regions vector to be taken over.
10313         (inftarg_set_make_corefile_notes): New function.
10314         Allow to_make_corefile_notes vector to be taken over.
10315         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10316         interface layer if not target_has_execution (may be a corefile).
10317         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10318         * config/sparc/sun4sol2.mh: Ditto.
10319         * config/alpha/alpha-linux.mh: Ditto.
10320         * config/arm/linux.mh: Ditto.
10321         * config/i386/x86-64linux.mh: Ditto.
10322         * config/ia64/linux.mh: Ditto.
10323         * config/m68k/linux.mh: Ditto.
10324         * config/mips/linux.mh: Ditto.
10325         * config/powerpc/linux.mh: Ditto.
10326         * config/sparc/linux.mh: Ditto.
10327
10328 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10329
10330         * arm-linux-nat.c: Remove references to regcache.c internal data
10331         (registers[] and register_valid[]).
10332
10333 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10334
10335         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
10336         so that attaching to a pid will automatically read the process's
10337         symbol file and shlibs.
10338         * Makefile.in: Add rule for linux-proc.o.
10339         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10340         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10341         * config/arm/linux.mh: Ditto.
10342         * config/i386/linux.mh: Ditto.
10343         * config/i386/x86-64linux.mh: Ditto.
10344         * config/ia64/linux.mh: Ditto.
10345         * config/m68k/linux.mh: Ditto.
10346         * config/mips/linux.mh: Ditto.
10347         * config/powerpc/linux.mh: Ditto.
10348         * config/sparc/linux.mh: Ditto.
10349
10350 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
10351
10352         * win32-nat.c: Add i386-tdep.h dependency.
10353
10354 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10355
10356         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10357         instead of bfd_get_arch_size.  Don't bail out just because
10358         there's no exec_bfd.
10359
10360         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10361         * p-valprint.c (pascal_object_print_value): Ditto.
10362         * somread.c (som_symtab_read): Ditto.
10363         * symfile.c (simple_free_overlay_region_table): Ditto.
10364         * valops.c (value_assign): Ditto.
10365
10366         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10367         use tilde_expand and strerror for opening save-tracepoints file.
10368
10369         * thread-db.c (thread_db_new_objfile): Indendation fix.
10370
10371         * infptrace.c (GDB_MAX_ALLOCA): New define.
10372         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10373         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10374         can be overridden with whatever value is appropriate to the host).
10375         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10376         alloca to allocate potentially large buffer.
10377         * rs6000-nat.c (child_xfer_memory): Ditto.
10378         * symm-nat.c (child_xfer_memory): Ditto.
10379         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10380
10381 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
10382
10383         From Nick Clifton  <nickc@redhat.com>
10384         * d10v-tdep.c: Set STACK_START to 0x200bffe.
10385
10386 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10387
10388         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10389         Don't use exec_bfd if it's NULL.
10390
10391 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
10392
10393         * valops.c (value_arg_coerce): Fix formatting.
10394
10395 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10396
10397         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10398         * gnu-nat.c: Ditto.
10399
10400 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10401
10402         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10403         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10404         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10405         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10406         z8k-coff have not been multi-arched.  Update z8k-coff build
10407         status.
10408
10409 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10410
10411         * MAINTAINERS: Mark a29k target as obsolete.
10412         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10413         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
10414         comments.
10415         * NEWS: Note that a29k targets are obsolete.
10416         * a29k-tdep.c: Mark as obsolete.
10417         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10418         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10419         a29k-*-vxworks* targets as obsolete.
10420         * remote-adapt.c: Obsolete.
10421         * remote-eb.c: Obsolete.
10422         * remote-mm.c: Obsolete.
10423         * remote-udi.c: Obsolete.
10424         * config/a29k/a29k-udi.mt: Obsolete.
10425         * config/a29k/a29k.mt: Obsolete.
10426         * config/a29k/tm-a29k.h: Obsolete.
10427         * config/a29k/tm-vx29k.h: Obsolete.
10428         * config/a29k/vx29k.mt: Obsolete.
10429
10430 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10431
10432         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10433         with BFD_ENDIAN_BIG.
10434
10435 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10436
10437         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10438         * configure, config.in: Re-generate.
10439         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10440         * defs.h: Do not include <endian.h>.
10441
10442 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
10443
10444         * acconfig.h (HAVE_PT_GETXMMREGS): New.
10445         * config.in: Regenerate.
10446         * configure.in: Update copyright years.
10447         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10448         * configure: Regenerate.
10449         * i386bsd-nat.c: Update copyright years.
10450         (fill_gregset): Use regcache_collect.
10451         (fetch_inferior_registers): Only fetch integer registers
10452         if requested to do so.  Add support for XMM registers
10453         using PT_GETXMMREGS.
10454         (store_inferior_registers): Only store integer registers
10455         if requested to do so.  Add support for XMM registers
10456         using PT_SETXMMREGS.
10457         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10458         (store_inferior_registers): Remove.
10459         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10460         (fetch_elfcore_registers): New function.
10461         (i386nbsd_elfcore_fns): New.
10462         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10463         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10464         i386bsd-nat.o.
10465         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10466         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10467         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10468         * config/i386/tm-nbsd.h: Update copyright years.
10469         (HAVE_SSE_REGS): Define.
10470         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10471         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10472         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10473         (SIGCONTEXT_PC_OFFSET): Remove.
10474         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10475
10476 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10477
10478         * configure.tgt: Remove powerpc-*-macos* target.
10479         * config/m68k/xm-mpw.h: Delete file.
10480         * config/xm-mpw.h: Delete file.
10481         * ser-mac.c: Delete file.
10482         * mpw-make.sed: Delete file.
10483         * mpw-config.in: Delete file.
10484         * mac-xdep.c: Delete file.
10485         * mac-gdb.r: Delete file.
10486         * mac-defs.h: Delete file.
10487         * mac-nat.c: Delete file.
10488         * config/powerpc/macos.mh: Delete file.
10489         * config/powerpc/macos.mt: Delete file.
10490         * config/powerpc/nm-macos.h: Delete file.
10491         * config/powerpc/tm-macos.h: Delete file.
10492         * source.c (openp, open_source_file): Remove obsolete code.
10493         * top.c (gdb_readline): Ditto.
10494         * utils.c (query): Ditto.
10495         * event-top.c (display_gdb_prompt): Ditto.
10496         * Makefile.in (ser-mac.o): Delete obsolete target.
10497         * NEWS: Update.
10498
10499 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10500
10501         * defs.h (BIG_ENDIAN): Delete macro definition.
10502         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10503         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10504         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10505         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10506         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10507         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10508         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10509         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10510         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10511         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10512         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10513         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10514         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10515         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10516         * gdbarch.c: Re-generate.
10517
10518 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10519
10520         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10521         for core files.
10522
10523 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10524
10525         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10526
10527 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10528
10529         * value.h (value_ptr): Delete typedef.
10530
10531 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10532
10533         * i386nbsd-nat.c: Update copyright years.
10534         Include i386-tdep.h.
10535
10536 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
10537
10538         * stabsread.c: Update copyright years.
10539
10540         From Debashis Mahata <debashis.mahata@wipro.com>:
10541         (read_struct_fields): Deal with Sun C compiler erroneous stab
10542         output for structs and unions.
10543         Fix PR gdb/269.
10544
10545 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10546
10547         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10548         prototype.
10549
10550 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10551
10552         * cp-abi.c: Fix whitespace.
10553         (baseclass_offset): New wrapper function.
10554         * cp-abi.h (baseclass_offset): Add prototype.
10555         (struct cp_abi_ops): Add baseclass_offset pointer.
10556
10557         * valops.c (vb_match): Move to...
10558         * gnu-v2-abi.c (vb_match): here.
10559         * valops.c (baseclass_offset): Move to...
10560         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10561
10562         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10563
10564         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10565         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10566         * hpacc-abi.c (init_hpacc_ops): Likewise.
10567
10568 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10569
10570         * valops.c (find_overload_match): Accept obj as a
10571         reference parameter.  Update it before returning.
10572         * value.h (find_overload_match): Update prototype.
10573         * eval.c (evaluate_subexp_standard): Pass object to
10574         find_overload_match by reference.
10575
10576 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
10577
10578         * valarith.c: Replace value_ptr with struct value pointer.  Remove
10579         register attribute from value declarations.
10580         * valops.c: Ditto.
10581         * value.h: Ditto.
10582         * scm-lang.c (scm_lookup_name): Ditto.
10583
10584 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10585
10586         Abstract the functionality of iterating over mapped memory
10587         regions into a general purpose iterator function.
10588         * procfs.c (iterate_over_mappings): New function, general purpose
10589         iterator for memory sections.
10590         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10591         (solib_mappings_callback): New function, callback for above.
10592         (info_proc_mappings): Reimpliment using iterate_over_mappings.
10593         (info_mappings_callback): New function, callback for above.
10594
10595         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10596
10597 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
10598
10599         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10600         * i386-tdep.c: Include "elf-bfd.h".
10601         (process_note_abi_tag_sections): New function.
10602         (i386_gdbarch_init): Add code to recognize various OS/ABI
10603         combinations.
10604
10605         * maint.c (_initialize_maint_cmds): Add missing \ in
10606         string-literal.
10607
10608 For older changes see ChangeLog-2001
10609 \f
10610 Local Variables:
10611 mode: change-log
10612 left-margin: 8
10613 fill-column: 74
10614 version-control: never
10615 End: