This commit was generated by cvs2svn to track changes on a CVS vendor
[external/binutils.git] / gdb / ChangeLog
1 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
2
3         * infrun.c (handle_inferior_event): Move a comment outside of a
4         function call, in order to avoid indent reformatting this part
5         of the code in an unreadable way.
6
7 2002-08-23  Grace Sainsbury  <graces@redhat.com>
8
9         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
10         when breakpoints fail. Move general breakpoint error messages to
11         insert_breakpoints.  
12         * breakpoint.c (insert_breakpoints): Change warnings when
13         breakpoints are nto inserted to specify the type. Remove call to
14         memory_error when hardware breakpoints can't be inserted. Remove
15         multiple calls to warning so all messages are sent to the user at
16         once.
17         (delete_breakpoints): Make insert error messsages more explicit.
18
19 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
20
21         * ChangeLog: Move gdbserver entries after GDB 5.2 to
22         gdbserver/ChangeLog.
23
24 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
25
26         * i386-tdep.c: Include "objfiles.h".
27         (i386_svr4_init_abi): Set in_solib_call_trampoline and
28         skip_trampoline_code.
29         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
30         (CPLUS_MARKER): Define to '.'.
31
32         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
33         member.
34         (linux_corefile_thread_callback): Increase args->num_notes.
35         (linux_make_note_section): Initialize thread_args.num_notes, and
36         use it to determine whether notes for any threads were created.
37
38 2002-08-23  Donn Terry  <dterry@microsoft.com>
39
40         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
41         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
42         and PCUNKILL.
43         (write_with_trace): Conditionalize out the switch branch handling
44         PCSHOLD if the corresponding macro is not defined. Likewise for
45         PRSABORT and PRSTOP.
46         This change will be needed by the Interix port.
47
48 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
49
50         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
51         ev_offset fields.
52         (skip_prologue): Add support for BookE/e500 instructions.
53         (e500_extract_return_value): New function.
54         (frame_get_saved_regs): Add support for saving ev registers and
55         pseudo gpr's.
56         (e500_store_return_value): New function.
57         (rs6000_gdbarch_init): Move up default intializations of
58         deprecated_extract_return_value and store_return_value.  Overwrite
59         init of store_return_value with e500 specific version.
60         Set extract_return_value for e500.
61         
62 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
63
64         * blockframe.c (generic_call_dummy_register_unwind): Use
65         regcache_cooked_read to catch cases in which the variable is
66         stored in a pseudo register.
67
68 2002-08-22  Andrew Cagney  <cagney@redhat.com>
69
70         * NEWS: Mention that the i960 has been made obsolete.
71         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
72         i960-tdep.c
73         (remote-nrom.o): Obsolete target.
74         (remote-nindy.o, i960-tdep.o): Ditto.
75         * remote-nrom.c: Make file obsolete.
76         * remote-nindy.c, remote-vx960.c: Ditto.
77         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
78         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
79         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
80         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
81         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
82         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
83         i960-*-vxworks* obsolete.
84         * MAINTAINERS: Note that the i960 is obsolete.
85
86 >>>>>>> 1.3141
87 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
88
89         * aix-thread.c (aix_thread_detach): Disable thread debugging on
90         detach to allow reinitialization.
91
92 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
93
94         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
95         attempt).
96
97 2002-08-22  Jim Blandy  <jimb@redhat.com>
98
99         * coffread.c (coff_symfile_read): Don't try to read the line
100         number table from disk if the image file doesn't have a symbol
101         table; we'll never actually look at the info anyway, and Windows
102         ships DLL's with bogus file offsets for the line number data.
103
104 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
105
106         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
107         an e500 executable.
108
109 2002-08-21  Michael Snyder  <msnyder@redhat.com>
110
111         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
112         (MSYMBOL_SIZE): Replace macro with function.
113         (DEFAULT_MIPS_TYPE): Delete unused macro.
114         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
115         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
116
117 >>>>>>> 1.3134
118 2002-08-21  Jim Blandy  <jimb@redhat.com>
119
120         * valops.c (value_cast): Simplify and correct logic for doing a
121         static cast from a pointer to a base class to a pointer to a
122         derived class.
123
124 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
125
126         * infcmd.c (default_print_registers_info): Replace
127         do_registers_info.
128         (registers_info): Use gdbarch_print_registers_info instead of
129         DO_REGISTERS_INFO.
130         * inferior.h (default_print_registers_info): Replace
131         do_registers_info.
132         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
133         (DO_REGISTERS_INFO): Change to a predicate function.
134         * gdbarch.h, gdbarch.c: Regenerate.
135         
136 2002-08-21  Keith Seitz  <keiths@redhat.com>
137
138         * gdb-events.sh: Add target-changed event.
139         * gdb-events.c: Regenerated.
140         * gdb-events.c: Regenerated.
141         * valops.c (value_assign): Add target-changed event notification
142         to inlval_register, lval_memory, and lval_reg_frame_relative.
143
144 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
145
146         * NEWS: Add an entry regarding the improvement of the next/step
147         operation on Alpha Tru64 multi-processor machines.
148
149 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
150
151         * Makefile.in: Update dependencies for mi/ cli/ and tui/
152         directores.
153         * Makefile.in: Update all _h macro definitions.
154         * Makefile.in (install-gdbtk): Move to install section.
155         (rdi-share/libangsd.a): Move to end of file.
156
157 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
158
159         * frame.c (frame_register_unwind): When a register, set addrp to
160         the register's byte.
161
162 2002-08-20  Michael Snyder  <msnyder@redhat.com>
163
164         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
165         used locally, so move them from the target machine header to here.
166         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
167         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
168         Make static.
169         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
170
171 2002-08-20  Andrew Cagney  <cagney@redhat.com>
172
173         * NEWS: Mention that the Apollo line was made obsolete.
174         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
175         m68*-hp-hpux* obsolete.
176         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
177         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
178         * buildsym.c (make_blockvector): Make static.
179         * buildsym.h (make_blockvector): Make extern declaration obsolete.
180         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
181         (ALLDEPFILES): Remove dstread.c.
182         (dstread.o): Obsolete make rule.
183         * dstread.c: Makefile obsolete.
184         * dst.h: Ditto.
185         * config/m68k/hp300hpux.mt: Ditto.
186         * config/m68k/hp300hpux.mh: Ditto.
187         * config/m68k/hp300bsd.mt: Ditto.
188         * config/m68k/hp300bsd.mh: Ditto.
189         * config/m68k/apollo68b.mt: Ditto.
190         * config/m68k/apollo68v.mh: Ditto.
191         * config/m68k/apollo68b.mh: Ditto.
192
193 2002-08-20  Michael Snyder  <msnyder@redhat.com>
194
195         * mips-tdep.c (mips_in_return_stub): Make static.
196         (mips_gdbarch_init): Set in_solib_return_trampoline.
197         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
198
199 2002-08-20  Michael Snyder  <msnyder@redhat.com>
200
201         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
202         * gdbarch.c, gdbarch.h: Regenerate.
203         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
204         Add.
205         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
206
207 2002-08-20  Michael Snyder  <msnyder@redhat.com>
208
209         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
210         (mips_gdbarch_init): Set skip_trampoline_code, 
211         in_solib_call_trampoline.
212         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
213         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
214
215 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
216
217         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
218
219         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
220         vector type for ev registers.
221         (e500_pseudo_register_read): New function.
222         (e500_pseudo_register_write): New function.
223         (e500_dwarf2_reg_to_regnum): New function.
224         (PPC_UISA_NOFP_SPRS): New macro.
225         (PPC_EV_REGS): New macro.
226         (PPC_GPRS_PSEUDO_REGS): New macro.
227         (registers_e500): New register set for e500.
228         (variants): Add e500 variant.
229         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
230         before setting architectural dependent variations.  Initialize ev
231         registers numbers.  Add case for e500 architecture.  Set the
232         number of pseudo registers.
233
234 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
235
236         * rs6000-tdep.c: Clean up comments.
237
238 2002-08-20  Andrew Cagney  <cagney@redhat.com>
239
240         * h8300-tdep.c: Re-indent file.
241
242 2002-08-20  Jim Blandy  <jimb@redhat.com>
243
244         * Makefile.in (LDFLAGS): Allow the configure script to establish a
245         default for this.
246
247 2002-08-20  Keith Seitz  <keiths@redhat.com>
248
249         * breakpoints.c (watch_command_1): Use internal breakpoint
250         when setting a watchpoint_scope breakpoint.
251
252 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
253
254         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
255         (build_builtin_type_vec64i): Ditto.
256         (build_builtin_type_vec128): Ditto.
257         (build_builtin_type_vec128i): Ditto.
258
259 2002-08-19  Michael Snyder  <msnyder@redhat.com>
260
261         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
262         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
263         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
264         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
265         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
266         CALL_DUMMY_ADDRESS): Delete.
267         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
268         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
269         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
270         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
271         push_return_address.
272         (mips_register_raw_size, mips_eabi_use_struct_convention, 
273         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
274         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
275         mips_init_extra_frame_info, mips_eabi_push_arguments, 
276         mips_n32n64_push_arguments, mips_push_return_address,
277         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
278         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
279
280 >>>>>>> 1.3128
281 2002-08-19  Michael Snyder  <msnyder@redhat.com>
282
283         * mips-tdep.c (mips_frame_num_args): New function.
284         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
285         frame_saved_pc, frame_args_address, frame_locals_address, 
286         frame_num_args, and frame_args_skip.
287         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
288         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
289         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
290         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
291
292 2002-08-20  Michael Snyder  <msnyder@redhat.com>
293
294         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
295         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
296         * mips-tdep.c (mips_store_struct_return): New function.
297         (mips_extract_struct_value_address): New function.
298         (mips_gdbarch_init): Set store_struct_return and
299         extract_struct_value_address.
300
301 2002-08-20  David Carlton  <carlton@math.stanford.edu>
302
303         * dwarf2read.c (dwarf2_build_psymtabs): Check that
304         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
305         (read_file_scope): Check that line_header is nonzero before
306         decoding macro information.
307
308 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
309
310         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
311         flag the general-purpose registers as floating-point on targets
312         that don't support the floating-point registers.
313
314 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
315
316         * rs6000-tdep.c (altivec_register_p): Delete.
317         (rs6000_do_altivec_registers): Delete.
318         (rs6000_altivec_registers_info): Delete.
319         (rs6000_do_registers_info): Delete.
320         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
321         (rs6000_gdbarch_init): Remove setting of do_registers_info.
322
323 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
324
325         * infcmd.c (do_registers_info): Print vector registers in hex
326         format only.
327         (print_vector_info): Check that printing registers
328         makes sense.
329         (print_float_info): Ditto.
330
331 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
332
333         * mips-tdep.c (mips_gdbarch_init): Update.
334         (mips_o32_extract_return_value): Rewrite.
335         (mips_o32_store_return_value): Rewrite.
336         (mips_o32_xfer_return_value): New function.
337         (mips_xfer_register): Tweak debug print message.  Allow for
338         buf_offset when dumping the value transfered.
339
340 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
341
342         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
343         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
344         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
345         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
346         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
347
348 2002-08-14  Michael Snyder  <msnyder@redhat.com>
349
350         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
351
352 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
353
354         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
355         register.
356         (P): New macro to define a register as a pseudo register.
357         (R, R4, R8, R16, FR32, R64, R0): Updated.
358         (struct variant): Add new fields for number of pseudo registers
359         and number of total registers.
360         (tot_num_registers): New macro replacing....
361         (num_registers): ...deleted macro.
362         (num_registers): New function.
363         (num_pseudo_registers): New function.
364         (variants): Update all variants to intialize new fields correctly.
365         Postpone initialization of number of pseudo regs and real regs.
366         (init_variants): New function.
367         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
368         registers offsets.
369
370 2002-08-19  David Carlton  <carlton@math.stanford.edu>
371
372         * valops.c (search_struct_field): Change error message to treat
373         return value of 0 from value_static_field as meaning that field is
374         optimized out.
375         (value_struct_elt_for_reference): Ditto.
376         * values.c (value_static_field): Treat an unresolved location the
377         same as a nonexistent symbol.  Fix PR gdb/635.
378         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
379         enclosed.  Fix PR gdb/574.
380         * MAINTAINERS: Add self to Write After Approval list.
381
382 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
383
384         * mips-tdep.c (mips_xfer_register): New function.
385         (mips_n32n64_extract_return_value): Rewrite.
386         (mips_gdbarch_init): For N32 and N64, set extract_return_value
387         instead of deprecated_extract_return_value.
388
389 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
390
391         * rs6000-tdep.c (TDEP): Delete macro.
392         (branch_dest): Replace use of TDEP macro with its body.
393         (rs6000_pop_frame): Ditto.
394         (rs6000_push_arguments): Ditto.
395         (rs6000_skip_trampoline_code): Ditto.
396         (rs6000_frame_saved_pc): Ditto.
397         (rs6000_frame_chain): Ditto.
398         (rs6000_register_name): Ditto.
399         (rs6000_register_byte): Ditto.
400         (rs6000_register_raw_size): Ditto.
401         (rs6000_register_virtual_type): Ditto.
402         (rs6000_register_convertible): Ditto.
403         (rs6000_convert_from_func_ptr_addr): Ditto.
404
405 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
406
407         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
408         conditionally.
409         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
410         MIPS_LINUX_JB_ELEMENT_SIZE.
411         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
412         for MAX_REGISTER_RAW_SIZE arrays.
413         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
414         MIPS_LINUX_JB_ELEMENT_SIZE.
415
416 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
417
418         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
419
420 2002-08-19  Aidan Skinner <aidan@velvet.net>
421
422         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
423         ada-valprint.c ada-tasks.c.
424         (YYFILES): Add ada-exp.y.
425         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
426         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
427         (ada-exp.tab.o): New target.
428                 
429 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
430
431         * regcache.c (regcache_xfer_part): New function.
432         (regcache_raw_read_part): New function.
433         (regcache_raw_write_part): New function.
434         (regcache_cooked_read_part): New function.
435         (regcache_cooked_write_part): New function.
436         * regcache.h (regcache_raw_read_part): Declare.
437         (regcache_raw_write_part): Declare.
438         (regcache_cooked_read_part): Declare.
439         (regcache_cooked_write_part): Declare.
440
441 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
442
443         * remote.c (remote_open_1): Add async_p.
444         (remote_async_open_1): Delete.
445         (open_remote_target): Delete.
446         (remote_open, extended_remote_open): Update calls to remote_open_1.
447         (remote_async_open, extended_remote_async_open): Call
448         remote_open_1 instead of remote_async_open_1.
449
450 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
451
452         * blockframe.c: Fix a few coding standard violations.
453
454 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
455
456         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
457         here from ...
458         * config/i386/tm-i386sco5.h: ... here.  File removed.
459         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
460
461         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
462         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
463         (TM_FILE): Set to tm-i386.h.
464         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
465         * config/i386/tm-i386v.h: Remove file.
466         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
467         instead of "i386/tm-i386v.h".
468         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
469         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
470         "i386/tm-i386v.h".
471         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
472         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
473         "i386/tm-i386.h".
474
475 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
476
477         * config/i386/nm-i386v.h: Add protection against
478         multiple-inclusion.
479         (i386_register_u_addr): Remove prototype.
480         (register_u_addr): New prototype.
481         (REGISTER_U_ADDR): Redefine accordingly.
482         * i386v-nat.c: Improve several comments.
483         (i386_register_u_addr): Change signature and rename to
484         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
485         ubase variable.
486
487 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
488
489         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
490         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
491         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
492         deprecated_extract_return_value.
493         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
494         rename mips_o32o64_push_arguments.
495         (mips_gdbarch_init): Update.
496         (mips_extract_return_value): Delete.
497         (mips_o32_extract_return_value): Clone mips_extract_return_value.
498         (mips_o64_extract_return_value): Clone mips_extract_return_value.
499         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
500         (mips_n32n64_extract_return_value): Clone
501         mips_extract_return_value.
502         (mips_store_return_value): Delete.
503         (mips_o32_store_return_value): Clone mips_store_return_value.
504         (mips_o64_store_return_value): Clone mips_store_return_value.
505         (mips_eabi_store_return_value): Clone mips_store_return_value.
506         (mips_n32n64_store_return_value): Clone mips_store_return_value.
507
508 2002-08-18  Aidan Skinner <aidan@velvet.net>
509
510         * ada-lang.c: Use gdb_string.h instead of <string.h>.
511         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
512                 
513 2002-08-18  Aidan Skinner <aidan@velvet.net>
514
515         * ada-lang.c: Run through gdb_indent.sh.
516         * ada-lang.h: Run through gdb_indent.sh.
517         * ada-tasks.c: Run through gdb_indent.sh.
518         * ada-typeprint.c: Run through gdb_indent.sh.
519         * ada-valprint.c: Run through gdb_indent.sh.
520
521 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
522
523         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
524         ABI.
525
526 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
527
528         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
529
530         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
531         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
532
533         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
534         write_register_gen instead of write_register_bytes.
535
536         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
537         i[3456]-*-osf1mk* configurations have been made obsolete.
538         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
539         i[3456]86-*-osf1mk* hosts obsolete.
540         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
541         targets obsolete.
542         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
543         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
544         config/i386/i386m3.mt, config/i386/nm-m3.h,
545         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
546         config/i386/i386mk.mh, config/i386/i386mk.mt,
547         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
548         obsolete.
549         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
550         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
551         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
552
553 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
554
555         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
556         (hppa_value_returned_from_stack): Declare.
557         (hppa_extract_return_value): Declare.
558         * config/pa/hppa.mt: New file.
559         * configure.tgt: Recognize hppa*-*-*.
560         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
561
562 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
563
564         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
565         comment.
566
567 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
568
569         * top.c (gdb_rl_operate_and_get_next): Make sure
570         operate-and-get-next functions correctly even when the history
571         list is completely filled.
572
573 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
574
575         * MAINTAINERS (Target Instruction Set Architectures): Rename
576         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
577         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
578         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
579         already listed under Host/Native.
580
581         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
582         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
583         mips*-*-*.
584
585 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
586
587         * config/ia64/ia64.mt: New file.
588         * config/alpha/alpha.mt: New file.
589         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
590         ia64-linux-gnu.  Mention that ia64-elf is broken.
591         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
592
593 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
594
595         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
596         generic_func_frame_valid instead of func_frame_valid.
597
598 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
599
600         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
601         procfs appears to be broken when debugging on multi-processor
602         machines. So enable software single stepping in order to avoid
603         using the procfs interface to do next/step operations, using
604         internal breakpoints instead.
605
606         * infrun.c (handle_inferior_event): Readjust the stop_pc by
607         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
608         make this pc address equal to the value it would have if the
609         system stepping capability was used. Also set a new flag used
610         to ensure that we don't readjust the PC one more time later.
611
612         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
613         address by DECR_PC_AFTER_BREAK when software single step is
614         in use for this architecture, as this has already been taken
615         care of in handle_inferior_event().
616
617 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
618
619         * infrun.c (handle_inferior_event): Minor reformatting, to make
620         a rather long condition expression easier to read.
621
622 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
623
624         * Makefile.in (gdbtk.o): Move to end of file.
625         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
626         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
627         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
628         (gdbtk-wrapper.o, gdbres.o): Ditto.
629
630 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
631
632         * Makefile.in (copying.o): Separate out compile rule.
633         (hpux-thread.o, procfs.o, signals.o): Ditto.
634         (v850ice.o, z8k-tdep.o): Ditto.
635         (tui-file.o): Move to TUI section.
636         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
637         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
638
639 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
640
641         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
642         skip_trampoline_code, for better namespace-proofing.   
643
644         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
645
646 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
647
648         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
649
650 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
651
652         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
653         signal, check whether we hit a breakpoint before checking for a
654         single step breakpoint. Otherwise, GDB fails to notice that a
655         breakpoint has been hit when stepping onto a breakpoint.
656
657 2002-08-16  Keith Seitz  <keiths@redhat.com>
658
659         * gdb-events.sh (clear_gdb_event_hooks): New function.
660         * gdb-events.c: Regenerate.
661         * gdb-events.h: Regenerate.
662
663 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
664
665         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
666         not_a_sw_breakpoint.
667         * breakpoint.h (bpstat_stop_status): Add parameter names.
668
669 2002-08-16  Grace Sainsbury  <graces@redhat.com>
670
671         * remote.c (remote_insert_hw_breakpoint)
672         (remote_remove_hw_breakpoint): Fix calculation of length field
673         for Z-packet.
674
675 2002-08-15  Michael Snyder  <msnyder@redhat.com>
676
677         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
678         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
679         (supply_fpregset): Ditto.
680         
681         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
682         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
683         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
684         (TARGET_READ_SP): Delete.
685         (DO_REGISTERS_INFO): Delete.
686         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
687         Delete.
688         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
689         from macros to functions.
690
691         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
692         (mips_register_convertible, mips_register_convert_to_virtual,
693         mips_register_convert_to_raw): Make static.
694         (mips_read_sp): New function.
695         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
696         (mips_do_registers_info): Make static.
697         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
698         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
699         (mips_register_convert_from_type, mips_register_convert_to_type):
700         New functions.
701         (mips_gdbarch_init): Set up function_start_offset, 
702         register_virtual_size, pc_in_sigtramp.
703
704 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
705
706         * infcmd.c (vector_info): New function.
707         (_initialize_infcmd): Add command "info vector".
708         (print_vector_info): New function.
709
710         * gdbarch.sh (PRINT_VECTOR_INFO): New method
711         * gdbarch.h, gdbarch.c: Regenerate.
712
713 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
714
715         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
716         ``print_all''.  Only print vector registers when ``print_all''.
717
718 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
719
720         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
721         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
722
723         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
724         Add `args' parameter.
725         * gdbarch.h, gdbarch.c: Regenerate.
726         
727         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
728         
729         * infcmd.c (float_info): Call print_float_info.
730         (print_float_info): New function.  By default, print the
731         floating-point registers.
732
733         * arch-utils.h (default_print_float_info): Delete declaration.
734         * arch-utils.c (default_print_float_info): Delete function.
735         
736 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
737
738         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
739         out define.
740
741         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
742         FRAME.
743
744         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
745         * configure.host: Make i[3456]86-*-aix host obsolete.
746         * configure.tgt: Make i[3456]86-*-aix target obsolete.
747         * config/i386/i386aix.mh, config/i386/i386aix.mt,
748         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
749         config/i386/xm-i386aix.h: Make files obsolete.
750         * i386aix-nat.c: Make file obsolete.
751         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
752         (i386aix-nat.o): Make target obsolete.
753
754         * config/i386/nm-gnu.h: Removed.
755         * config/i386/nm-i386gnu.h: New file.
756         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
757         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
758         Moved here from ...
759         * config/i386/tm-i386gnu.h: ... here.  Removed.
760         * config/i386/xm-i386gnu.h: Removed.
761         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
762         (NAT_FILE): Set to nm-i386gnu.h.
763         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
764         * i386-tdep.c: New file.
765         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
766         (i386gnu-tdep.o): Specify dependencies.
767
768 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
769
770         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
771         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
772         Adjust a few comments to reflect reality a bit closer.
773         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
774         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
775         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
776         target_insert_watchpoint, target_remove_watchpoint):
777         Move defines to ...
778         * config/i386/nm-i386sco5.h: ... here.
779         (kernel_u_size): Add prototype.  Improve a few comments and add
780         protection against multiple inclusion.
781         
782         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
783         out define.
784
785         * uw-thread.c (SP_ARG0): Define if not already defined.
786         * config/i386/tm-i386.h (SO_ARG0): Remove define.
787
788         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
789
790         * config/i386/tm-i386.h: Don't include "regcache.h".
791
792         * i387-tdep.h (i387_print_float_info): New prototype.
793         * i387-tdep.c (print_i387_value, print_i387_ext,
794         print_i387_status_word, print_i387_control_word): Add `struct
795         ui_file *' argument and use it for output.
796         (i387_print_float_info): Renamed from i387_float_info.  Add
797         `struct gdbarch *' and `struct ui_file *' arguments and use the
798         latter for output.
799         * i386-tdep.c: Include "i387-tdep.h".
800         (i386_gdbarch_init): Set print_float_info.
801         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
802         (FLOAT_INFO): Remove define.
803
804 2002-08-13  Michael Snyder  <msnyder@redhat.com>
805
806         * mips-tdep.c (mips_push_arguments): Rename to
807         mips_eabi_push_arguments, and tune for EABI.
808         (MIPS_REGS_HAVE_HOME_P): Delete.
809         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
810         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
811         Delete references to mips_regs_have_home_p.
812
813 2002-08-14  Keith Seitz  <keiths@redhat.com>
814
815         * Makefile.in (install-gdbtk): Create insight plugin directory.
816         Install plugins.tcl file.
817
818 2002-08-14  Keith Seitz  <keiths@redhat.com>
819
820         * configure.in: Move SUBDIRS to near top of the file so that
821         --enable options may add things to it.
822         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
823         * configure: Regenerate.
824
825 2002-08-13  Michael Snyder  <msnyder@redhat.com>
826
827         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
828         cloned from mips_push_arguments, tuned for o32/o64 ABI.
829         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
830
831 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
832
833         * vax-tdep.c (vax_get_saved_register): Delete function.
834         (vax_gdbarch_init): Update.
835         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
836         (ns32k_gdbarch_init): Update.
837         * alpha-tdep.c (alpha_get_saved_register): Delete function.
838         (alpha_gdbarch_init): Update.
839
840 2002-08-13  Andrew Cagney  <cagney@redhat.com>
841
842         * regcache.c (init_regcache_descr): Overallocate the
843         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
844         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
845         nr_raw_registers.
846         (set_register_cached): Add range checking assertions.  Use
847         current_regcache.
848
849 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
850
851         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
852         numbers for MMX registers.
853
854 2002-08-13  Andrew Cagney  <cagney@redhat.com>
855
856         * i386-tdep.c (i386_gdbarch_init): Use
857         generic_unwind_get_saved_register.
858
859 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
860
861         * procfs.c (procfs_can_use_hw_breakpoint): New function.
862         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
863         target vector.
864         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
865         Delete.  Add comment regarding this now-deleted target method.
866
867 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
868
869         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
870         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
871         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
872         real PC and the page number (if it's within the memory bank window).
873         (m68hc11_pseudo_register_write): Likewise when saving.
874         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
875         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
876         (m68hc11_register_raw_size): And use 32-bit for it.
877         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
878         16K memory bank is used by the prog; also use the virtual pc.
879
880 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
881
882         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
883         (m68hc11_gdbarch_init): Install it in gdbarch.
884         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
885         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
886         (MSYMBOL_SIZE): New for documentation.
887         (insn_return_kind): Enum to specify how a function returns.
888         (frame_extra_info): Cleanup and record the return mode.
889         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
890         register in address computation.
891         (m68hc11_get_return_insn): New to obtain the return instruction used
892         by the function.
893         (m68hc11_frame_init_saved_regs): Take into account the return
894         instruction used by the function for far and interrupt functions.
895         (m68hc11_init_extra_frame_info): Take into account page register.
896         (m68hc11_frame_args_address): Adjust according to the return mode.
897         (show_regs): Print page register only when it's used.
898
899 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
900
901         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
902         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
903         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
904         registers.
905         (m68hc11_register_raw_size): Likewise.
906
907 2002-08-13  Andrew Cagney  <cagney@redhat.com>
908
909         * i386-tdep.c (i386_register_name): Handle mmx registers.
910         (mmx_regnum_p): New function.
911         (i386_mmx_names): New array.
912         (mmx_num_regs): New variable.
913         (i386_pseudo_register_read): New function.
914         (i386_pseudo_register_write): New function.
915         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
916
917         * regcache.c (regcache_raw_read_unsigned): New function.
918         (regcache_raw_read_signed): New function.
919         * regcache.h (regcache_raw_read_unsigned): Declare.
920         (regcache_raw_read_signed): Declare.
921
922 2002-08-13  Andrew Cagney  <cagney@redhat.com>
923
924         * regcache.c (regcache_raw_read_as_address): Delete function.
925         (regcache_cooked_read_signed): New function.
926         (regcache_cooked_read_unsigned): New function.
927         * regcache.h (regcache_cooked_read_signed): Declare.
928         (regcache_cooked_read_unsigned): Declare.
929         (regcache_raw_read_as_address): Delete declaration.
930
931         * blockframe.c (generic_read_register_dummy): Use
932         regcache_cooked_read_unsigned.
933         * i386-tdep.c (i386_extract_struct_value_address): Use
934         regcache_cooked_read_unsigned.
935
936 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
937
938         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
939         double sizes according to ELF ABI flags.
940         (gdbarch_tdep): Record elf_flags.
941
942 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
943
944         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
945         (m6812_prolog): They can appear in 68HC12 function prologue.
946         (m68hc11_frame_chain): Cleanup.
947
948 2002-08-12  Andrew Cagney  <cagney@redhat.com>
949
950         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
951         declarations.
952         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
953         (i386_linux_register_raw_size): Delete function.
954         (i386_linux_init_abi): Update.
955         * i386-tdep.c (i386_register_raw_size): Delete function.
956         (i386_register_byte): Delete function.
957         (i386_gdbarch_init): Update.
958         (i386_register_size): Delete array.
959         (i386_register_offset): Delete array.
960
961         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
962         (REGISTER_RAW_SIZE): Delete macro.
963         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
964         (REGISTER_BYTE): Delete macro.
965
966 2002-08-11  Aidan Skinner <aidan@velvet.net>
967
968         * ada-lang.c (ada_lookup_partial_symbol)
969         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
970         prototype names so that grep ^func works properly.
971
972         * ada-lang.c (ada_array_element_type)
973         (ada_lookup_partial_symbol): Fix typos in parameter list.
974
975         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
976         Fix prototype names so that grep ^func works properly.
977         
978 2002-08-10  Andrew Cagney  <cagney@redhat.com>
979             Elena Zannoni  <ezannoni@redhat.com>
980             Martin M. Hunt  <hunt@redhat.com>
981
982         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
983         (build_builtin_type_vec128i): Set the vector bit.
984         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
985         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
986         (build_builtin_type_vec64): New function.
987         (build_builtin_type_vec64i): New function.
988         (build_gdbtypes): Initialize builtin_type_vec64 and
989         builtin_type_vec64i.
990
991 2002-08-09  Andrew Cagney  <cagney@redhat.com>
992
993         * regcache.c (regcache_dump): Compare the register offset
994         with REGISTER_BYTE.
995         * arch-utils.c (generic_register_byte): New function.
996         * arch-utils.h (generic_register_byte): Declare.
997         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
998         * gdbarch.h, gdbarch.c: Regenerate.
999
1000 2002-08-09  Andrew Cagney  <cagney@redhat.com>
1001
1002         * regcache.c: Include "gdbcmd.h"
1003         (_initialize_regcache): Add commands "maintenance print
1004         registers", "maintenance print raw-registers" and "maintenance
1005         print cooked-registers".
1006         (enum regcache_dump_what): Define.
1007         (dump_endian_bytes): New function.
1008         (regcache_dump): New function.
1009         (regcache_print): New function.
1010         (maintenance_print_registers): New function.
1011         (maintenance_print_raw_registers): New function.
1012         (maintenance_print_cooked_registers): New function.
1013         * Makefile.in (regcache.o): Update dependencies.
1014
1015 2002-08-09  Michael Snyder  <msnyder@redhat.com>
1016
1017         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1018         (mips_push_arguments): Correct some comments.  Use paddr_nz
1019         for printing addresses in debug output.  Replace static
1020         allocation using MAX_REGISTER_RAW_SIZE with alloca.
1021         (mips_n32n64_push_arguments): New function, cloned from
1022         mips_push_arguments and tuned for the n32/n64 ABI.
1023         (mips_push_register): Buffer needs dynamic allocation.
1024         (mips_print_register): Ditto.
1025         (do_gp_register_row): Ditto.
1026         (mips_store_return_value): Ditto.
1027         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1028
1029 2002-08-09  Don Howard  <dhoward@redhat.com>
1030
1031         * memattr.c (mem_info_command): Print special case of upper bound
1032         as max CORE_ADDR + 1.
1033
1034 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1035
1036         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
1037         returns structs by ref if they're too big to fit in two registers.
1038
1039 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1040
1041         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1042         saved regs value.
1043         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1044         mips_find_saved_regs().
1045         (mips_pop_frame): Likewise.
1046
1047 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1048
1049         * blockframe.c (frame_saved_regs_register_unwind): Revise
1050         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1051         frames are in use.
1052
1053 2002-08-09  Grace Sainsbury  <graces@redhat.com>
1054         
1055         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1056         T-packets; the 'a' is not taken as a register number.
1057         (remote_check_watch_resources, remote_stopped_by_watchpoint)
1058         (remote_stopped_data_address): New functions; add to target
1059         vector.
1060         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1061         prototypes to match other implementations of this
1062         function. replace integer argument with pointer -- the length
1063         field in the Z-packet is the length of what is pointed to or 1 if
1064         pointer is null. Add to target vector.
1065         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1066         target vector.
1067
1068         From Mark Salter:
1069         * remote.c (remote_wait): Add support to extract optional
1070         watchpoint information from T-packet. Ignore unrecognized
1071         optional info in T-packet.
1072         (remote_async_wait): Ditto.
1073
1074 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
1075
1076         * cli/cli-dump.c: Change fopen modes to use binary open modes
1077         as defined in include/fopen-bin.h throughout.
1078
1079 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1080
1081         * mips-tdep.c: Minor whitespace and indentation clean-ups.
1082
1083 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1084
1085         * doublest.c (store_floating): Avoid floatformat_from_doublest()
1086         assertion failure by returning early after a warning.
1087
1088 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1089
1090         * mips-tdep.c (mips_find_saved_regs): Make static.
1091         (mips_frame_init_saved_regs): New function.
1092         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1093         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1094         (mips_find_saved_regs): Delete declaration.
1095
1096 2002-08-08  Grace Sainsbury  <graces@redhat.com>
1097
1098         * remote.c (remote_wait, remote_async_wait): Change
1099         thread_num from int to ULONGEST.
1100         (unpack_varlen_hex): Change result parameter from
1101         int * to ULONGEST *.
1102
1103 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
1104
1105         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1106         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1107         powerpc*-*-*.
1108         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1109
1110 2002-08-08  Andrew Cagney  <cagney@redhat.com>
1111
1112         * gcore.c (override_derive_stack_segment): Delete variable.
1113         (preempt_derive_stack_segment): Delete function.
1114         (derive_stack_segment): Delete function.
1115         (default_derive_stack_segment): Renamed to derive_stack_segment.
1116         (override_derive_heap_segment): Delete variable.
1117         (preempt_derive_heap_segment): Delete function.
1118         (derive_heap_segment): Delete function.
1119         (default_derive_heap_segment): Rename to derive_heap_segment.
1120
1121 2002-08-06  Michael Snyder  <msnyder@redhat.com>
1122
1123         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1124         * mips-tdep.c (mips_EABI_use_struct_convention, 
1125         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1126         New functions.  (mips_use_struct_convention): Delete.
1127         (mips_gdbarch_init): set use_gdbarch_convention.
1128
1129 2002-08-06  Michael Snyder  <msnyder@redhat.com>
1130
1131         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1132         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
1133         mips_o32_reg_struct_has_addr): New functions.
1134         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1135
1136 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
1137
1138         * regcache.c (pseudo_register): Delete function.
1139         (fetch_register): Delete function.
1140         (store_register): Delete function.
1141         (regcache_raw_read, legacy_read_register_gen): Use
1142         target_fetch_registers instead of fetch_register.
1143         (legacy_write_register_gen, regcache_raw_write): Use
1144         target_store_register instead of store_register.
1145         (write_register_bytes): Ditto.
1146
1147         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1148         (STORE_PSEUDO_REGISTER): Delete.
1149         * gdbarch.h, gdbarch.c: Regenerate.
1150
1151 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
1152
1153         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1154         write dump file binary.
1155
1156 2002-08-05  Michael Snyder  <msnyder@redhat.com>
1157
1158         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
1159         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
1160         (mips_gdbarch_init): Set N32 target to be mips64.
1161
1162 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
1163
1164         * frame.c (find_saved_register): Break out of loop once saved
1165         register address is found.  Don't mention sparc in loop comment
1166         anymore.
1167
1168 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
1169
1170         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1171         mips_default_saved_regsize to 8.
1172
1173 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
1174
1175         * gcore.c: Do not include <sys/procfs.h>.
1176         * Makefile.in (gcore.o): Update dependencies.
1177
1178 2002-08-06  Andrew Cagney  <cagney@redhat.com>
1179
1180         * configure.tgt: Make arc-*-* obsolete.
1181         * NEWS: Mention that arc-*-* has been identifed as obsolete.
1182         * MAINTAINERS: Make arc-elf obsolete.
1183         * arc-tdep.c: Make file obsolete.
1184         * config/arc/arc.mt: Ditto.
1185         * config/arc/tm-arc.h: Ditto.
1186
1187 2002-08-05  Theodore A. Roth  <troth@verinet.com>
1188
1189         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1190
1191 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
1192
1193         * mcore-tdep.c (mcore_gdbarch_init): Use
1194         generic_unwind_get_saved_register instead of
1195         generic_get_saved_register.
1196         * v850-tdep.c (v850_gdbarch_init): Ditto.
1197         * frv-tdep.c (frv_gdbarch_init): Ditto.
1198         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1199         * s390-tdep.c (s390_gdbarch_init): Ditto.
1200         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1201         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1202         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1203
1204 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
1205
1206         * objfiles.h: Add missing #include "symfile.h"
1207
1208         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1209
1210 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
1211
1212         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1213         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1214         of FIELD_BITSIZE.
1215
1216 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
1217
1218         * NEWS: Cleanup and nitpick.
1219
1220 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
1221
1222         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
1223
1224 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
1225
1226         * Makefile.in (gdbtk-bp.o): Update dependencies.
1227         (gdbtk-register.o): Ditto.
1228         (gdbtk-varobj.o): Ditto.
1229
1230 2002-08-03  Andrew Cagney  <cagney@redhat.com>
1231
1232         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1233         m68hc11_fetch_pseudo_register.
1234         (m68hc11_pseudo_register_write): Replace
1235         m68hc11_store_pseudo_register.
1236         (m68hc11_gdbarch_init): Update.
1237
1238 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
1239
1240         * gdbarch.sh: Include "gdb_string.h".
1241         * gdbarch.c: Regenerate.
1242
1243         * regcache.c: Include "gdb_string.h".
1244         * ax-general.c: Ditto.
1245         * varobj.c: Ditto.
1246         * std-regs.c: Ditto.
1247         * fbsd-proc.c: Ditto.
1248         * thread.c: Ditto.
1249
1250         * Makefile.in (regcache.o): Update dependencies.
1251         (thread.o, gdbarch.o): Ditto.
1252         (ax-general.o, gdbarch.o): Ditto.
1253         (varobj.o, std-regs.o): Ditto.
1254         (fbsd-proc.o): Specify dependencies.
1255
1256 2002-08-02  Andrew Cagney  <cagney@redhat.com>
1257
1258         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1259         regnum.
1260         (regcache_cooked_write): Ditto.
1261
1262 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
1263
1264         * regcache.c (regcache_cooked_read): New function.
1265         (regcache_cooked_write): New function.
1266         (read_register_gen): Rewrite using regcache_cooked_read.
1267         (write_register_gen): Rewrite using regcache_cooked_write.
1268
1269         * regcache.h (regcache_cooked_read, regcache_cooked_write):
1270         Declare.
1271
1272 2002-08-02  Andrew Cagney  <cagney@redhat.com>
1273
1274         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1275         Replace the architecture methods register_read and register_write.
1276         * gdbarch.h, gdbarch.c: Regenerate.
1277         * regcache.c (init_regcache_descr): Update.
1278         (read_register_gen): Update.
1279         (write_register_gen): Update.
1280         (supply_register): Update comment.
1281
1282         * sh-tdep.c (sh_gdbarch_init): Update.
1283         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1284         `regcache' and `gdbarch' parameters.  Make `buffer' a void
1285         pointer.  Update code.
1286         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1287         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
1288         void pointer.  Update code.
1289         (sh64_register_write): Delete.
1290         (sh4_register_read): Delete.
1291         (sh64_register_read): Delete.
1292         (sh4_register_write): Delete.
1293         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1294         void pointer, `to' parameter a void pointer.
1295         (sh_sh64_register_convert_to_raw): Ditto.
1296
1297 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1298
1299         * mips-tdep.c (mips_register_virtual_type): Use architecture
1300         invariant return values.
1301
1302 2002-08-01  Andrew Cagney  <cagney@redhat.com>
1303
1304         * linux-proc.c: Include "gdb_string.h".
1305         * Makefile.in (linux-proc.o): Update dependency list.
1306
1307 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1308
1309         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
1310         comment.
1311
1312 2002-08-01  Grace Sainsbury  <graces@redhat.com>
1313
1314         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1315         to_insert_watchpoint, to_remove_watchpoint,
1316         to_stopped_by_watchpoint, to_stopped_data_address,
1317         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1318         target vecctor. Define their corresponding macros so they call
1319         them.
1320         
1321         * target.c: Add default and debug versions of for
1322         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1323         to_insert_watchpoint, to_remove_watchpoint,
1324         to_stopped_by_watchpoint, to_stopped_data_address,
1325         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1326
1327 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1328
1329         * mips-tdep.c (mips_register_virtual_type): New function.
1330         (mips_gdbarch_init): Register mips_register_virtual_type()
1331         with gdbarch machinery.
1332         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1333         this file instead of tm-bigmips.h.
1334         (MIPS_REGSIZE): Delete this macro.
1335         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
1336         multiarch version in mips-tdep.c will be found.
1337
1338 2002-08-01  Andrew Cagney  <cagney@redhat.com>
1339
1340         * NEWS: Menion that CHILL has been made obsolete.
1341
1342         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1343         * stabsread.c (read_range_type): Ditto.
1344         * gdbtypes.h: Ditto.
1345         * language.c (binop_type_check): Ditto.
1346         (binop_result_type): Ditto.
1347         (integral_type): Ditto.
1348         (character_type): Ditto.
1349         (string_type): Ditto.
1350         (boolean_type): Ditto.
1351         (structured_type): Ditto.
1352         (lang_bool_type): Ditto.
1353         (binop_type_check): Ditto.
1354         * language.h (_LANG_chill): Ditto.
1355         * dwarfread.c (set_cu_language): Ditto.
1356         * dwarfread.c (CHILL_PRODUCER): Ditto.
1357         * dwarfread.c (handle_producer): Ditto.
1358         * expression.h (enum exp_opcode): Ditto.
1359         * eval.c: Ditto for comments.
1360         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1361         * expprint.c (print_subexp): Ditto.
1362         (print_subexp): Ditto.
1363         * valops.c (value_cast): Ditto.
1364         (search_struct_field): Ditto.
1365         * value.h (COERCE_VARYING_ARRAY): Ditto.
1366         * symfile.c (init_filename_language_table): Ditto.
1367         (add_psymbol_with_dem_name_to_list): Ditto.
1368         * valarith.c (value_binop): Ditto.
1369         (value_neg): Ditto.
1370         * valops.c (value_slice): Ditto.
1371         * symtab.h (union language_specific): Ditto.
1372         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1373         (SYMBOL_DEMANGLED_NAME): Ditto.
1374         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1375         * defs.h (enum language): Ditto.
1376         * symtab.c (got_symtab): Ditto.
1377         * utils.c (fprintf_symbol_filtered): Ditto.
1378
1379         * ch-typeprint.c: Make file obsolete.
1380         * ch-valprint.c: Make file obsolete.
1381         * ch-lang.h: Make file obsolete.
1382         * ch-exp.c: Make file obsolete.
1383         * ch-lang.c: Make file obsolete.
1384
1385         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1386         CHILL_LIB.
1387         (TARGET_FLAGS_TO_PASS): Ditto.
1388         (CHILLFLAGS): Obsolete.
1389         (CHILL): Obsolete.
1390         (CHILL_FOR_TARGET): Obsolete.
1391         (CHILL_LIB): Obsolete.
1392         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1393         ch-valprint.c.
1394         (HFILES_NO_SRCDIR): Remove ch-lang.h.
1395         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1396         ch-lang.o.
1397         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1398         targets.
1399
1400 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
1401
1402         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1403         This does not change anything at the moment, but will be helpful
1404         later when full Ada support is integrated.
1405
1406 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1407
1408         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1409         help message.
1410
1411 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1412
1413         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1414         and save it in a local variable.  Use variable in later test.
1415
1416 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1417
1418         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1419         test.  (Thanks to Daniel Jacobowitz.)
1420         
1421 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1422
1423         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1424         (mips_abi_strings): Add "n64".
1425         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
1426
1427 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1428
1429         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1430         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1431
1432 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1433
1434         * utils.c (host_pointer_to_address, address_to_host_pointer):
1435         Use gdb_assert() instead of explicit call to internal_error().
1436
1437 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
1438
1439         * Makefile.in (rs6000-nat.o): Update dependencies.
1440
1441         From Nicholas Duffek:
1442         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1443         (aix-thread.o): New rule.
1444         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1445         * config/powerpc/aix432.mh: New file.
1446
1447 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
1448
1449         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1450         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1451         (fetch_core_registers, ppc_linux_supply_gregset)
1452         (ppc_linux_supply_fpregset): New functions.
1453         (ppc_linux_regset_core_fns): New.
1454         (_initialize_ppc_linux_tdep): Call add_core_fns.
1455         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1456         and ppc_linux_supply_gregset.
1457         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1458         (supply_fpregset): Call ppc_linux_supply_fpregset.
1459         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1460         corelow.o.
1461         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1462
1463 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
1464
1465         * symtab.c (lookup_symbol): Demangle before lowercasing.
1466
1467 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
1468
1469         * symtab.h: Replace #include "gdb_obstack.h" with opaque
1470         declaration.
1471         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1472         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1473         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1474         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1475         "gdb_string.h".
1476         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1477         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1478         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1479         (avr-tdep.o, mon960-rom.o): Ditto.
1480         (aout_stabs_gnu_h): Define.
1481         (symtab_h): Remove $(gdb_obstack_h).
1482
1483 2002-07-30  Jim Blandy  <jimb@redhat.com>
1484
1485         Patch from David Carlton <carlton@math.stanford.edu>:
1486         * gdbinit.in: Move the `dir' commands that add GDB's own source
1487         directory to the search path to the end, so that the `gdb' source
1488         directory will be searched first.
1489
1490 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
1491
1492         * gdb_obstack.h: New file.
1493         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1494         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1495         * objfiles.h: Include "gdb_obstack.h".
1496         * Makefile.in (gdb_obstack_h): Define.
1497         (symtab_h): Add $(gdb_obstack_h).
1498         (objfiles_h): Add $(gdb_obstack_h).
1499         
1500         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1501         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1502         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1503         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1504         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1505         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1506         * symfile.c, coffread.c, c-typeprint.c: Ditto.
1507         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1508
1509         * Makefile.in (bcache.o): Update dependencies.
1510         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1511         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1512         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1513         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1514         (stabsread.o, symfile.o, symmisc.o): Ditto.
1515         (symtab.o, typeprint.o, macroexp.o): Ditto.
1516         (macrotab.o, mdebugread.o): Ditto.
1517         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1518         (coff_ecoff_h, aout_aout64_h): Define.
1519         (aout_stabs_gnu_h, libaout_h): Define.
1520
1521 2002-07-29  Andrew Cagney  <cagney@redhat.com>
1522
1523         * regcache.c (struct regcache_descr): Rename nr_registers to
1524         nr_cooked_registers.  Revise comments describing the structure
1525         member fields.
1526         (init_regcache_descr): Update.
1527         (init_legacy_regcache_descr): Update.
1528         (read_register_gen, write_register_gen): When a cooked register in
1529         the raw register range, directly access the value from the raw
1530         register cache.
1531
1532 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
1533
1534         * z8k-tdep.c: Do not include "obstack.h".
1535         * h8300-tdep.c, h8500-tdep.c: Ditto.
1536         * m68hc11-tdep.c, sh-tdep.c: Ditto.
1537         * valprint.c, v850-tdep.c: Ditto.
1538         * d10v-tdep.c, mn10300-tdep.c: Ditto.
1539         * mn10200-tdep.c: Ditto.
1540
1541         * Makefile.in (z8k-tdep.o): Update dependencies.
1542         (m68hc11-tdep.o, valprint.o): Ditto.
1543         (v850-tdep.o, d10v-tdep.o): Ditto.
1544         (mn10300-tdep.o, sparc-tdep.o): Ditto.
1545         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1546         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1547         (sh_opc_h, gdb_sim_sh_h): Define.
1548         (elf_sh_h, elf_bfd_h): Define.
1549         (opcode_m68hc11_h): Define.
1550         (OPCODES_SRC, OPCODES_DIR): define.
1551         (OPCODES): Use $(OPCODES_DIR).
1552         (gdb_sim_d10v_h): Rename sim_d10v_h.
1553         (gdb_sim_arm_h): Rename sim_arm_h.
1554
1555 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1556
1557         * utils.c (host_pointer_to_address, address_to_host_pointer):
1558         Change internal_error() message to indicate function responsible
1559         for the error.
1560
1561 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1562
1563         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1564         calls to local_hex_string_custom().
1565
1566 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1567
1568         * irix5-nat.c: Move IRIX shared library support from here...
1569         * solib-irix.c: ...to here.  Revised substantially to work with
1570         generic solib framework.
1571
1572         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1573         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1574         * mips-irix-tdep.c: New file.
1575
1576         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1577         (mips-irix-tdep.o, solib-irix.o): New rules.
1578         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1579         solib-irix.o.
1580         * config/mips/irix6.mt (TDEPFILES): Likewise.
1581         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1582
1583 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1584
1585         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1586         disabled (via ``#if 0'') includes.
1587
1588 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1589
1590         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1591         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1592         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1593         Add support for the fpscr register.
1594         * rs6000-nat.c (regmap, fetch_inferior_registers)
1595         (store_inferior_registers, fetch_core_registers): Likewise.
1596
1597 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1598
1599         * rs6000-nat.c (language.h): Include.
1600         (special_regs): Delete this array.
1601         (regmap): New function.
1602         (fetch_register, store_register):  Use regmap() to map gdb
1603         register numbers to ptrace register numbers.  Also, use
1604         outputs from regmap() to make decisions regarding type of
1605         ptrace() call to make.  In particular, don't compare against
1606         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1607         (fetch_inferior_registers, store_inferior_registers): Where
1608         possible, obtain register numbers from tdep struct.  Don't
1609         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1610         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1611         (LAST_UISA_SP_REGNUM): Delete.
1612         
1613 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
1614
1615         * rs6000-nat.c (ppc-tdep.h): Include.
1616         (fetch_registers, store_register, fetch_core_registers): Don't
1617         access registers[] directly.  Instead, use supply_register() or
1618         regcache_collect() as appropriate.
1619         (find_toc_address): Format hex address with local_hex_string().
1620
1621 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
1622
1623         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1624         bfd/elf32-frv.c.
1625
1626 2002-07-24  Tom Tromey  <tromey@redhat.com>
1627
1628         * jv-exp.y: Marked all strings with _().
1629         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1630         internal_error.
1631         (MethodInvocation, CastExpression, parse_number, yyerror,
1632         java_type_from_name, push_expression_name, yylex): Typo fixes.
1633
1634 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
1635
1636         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1637         (tee_file_flush, tee_file_write, tee_file_fputs)
1638         (tee_file_isatty): New.
1639         * ui-file.h (tee_file_new): Add prototype.
1640
1641 2002-07-24  Aidan Skinner <aidan@velvet.net>
1642
1643         * ada-lang.c: Change k&r style function definitions to prototyped
1644         form.
1645         * ada-typeprint.c: Change k&r style function definitions to prototyped
1646         form.
1647         * ada-valprint.c: Change k&r style function definitions to prototyped
1648         form.
1649         
1650 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1651
1652         * README: Remove reference to remote-bug.
1653         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1654         remote-bug.c.
1655         (m88k-nat.o): Delete rule.
1656         (m88k-tdep.o): Delete rule.
1657         (remote-bug.o): Delete rule.
1658         * MAINTAINERS: Mark as obsolete.
1659         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1660         * m88k-tdep.c: Make file obsolete.
1661         * config/m88k/m88k.mh: Ditto.
1662         * config/m88k/delta88v4.mh: Ditto.
1663         * config/m88k/delta88v4.mt: Ditto.
1664         * config/m88k/delta88.mt: Ditto.
1665         * config/m88k/delta88.mh: Ditto.
1666         * remote-bug.c: Ditto.
1667         * config/m88k/tm-delta88.h: Ditto.
1668         * config/m88k/nm-delta88v4.h: Ditto.
1669         * config/m88k/xm-delta88.h: Ditto.
1670         * config/m88k/xm-dgux.h: Ditto.
1671         * config/m88k/tm-m88k.h: Ditto.
1672         * config/m88k/nm-m88k.h: Ditto.
1673         * config/m88k/tm-delta88v4.h: Ditto.
1674         * m88k-nat.c: Ditto.
1675         * cxux-nat.c: Ditto.
1676         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1677         and m88*-*-* obsolete.
1678         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1679         m88*-*-* obsolete.
1680
1681 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1682
1683         * findvar.c (extract_unsigned_integer): Make `addr' parameter
1684         constant.  Same for local pointer variables.
1685         (extract_signed_integer): Ditto.
1686         * defs.h (extract_unsigned_integer): Update.
1687         (extract_signed_integer): Update.
1688
1689 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1690
1691         * regcache.c (regcache_raw_write): Change buf parameter to a
1692         constant void pointer.
1693         (regcache_raw_read): Change buf parameter to a void pointer.
1694         (legacy_write_register_gen): Change myaddr parameter a constant
1695         void pointer.
1696         (supply_register): Change val parameter to a const void pointer.
1697         * regcache.h (regcache_raw_write): Update declaration.
1698         (regcache_raw_read): Update declaration.
1699         (supply_register): Update declaration.
1700
1701 2002-07-24  Tom Tromey  <tromey@redhat.com>
1702
1703         * defs.h (gdb_readline_wrapper): Declare.
1704         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1705         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1706         * top.c (gdb_readline_wrapper): New function.
1707         (command_line_input): Use it.
1708
1709 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1710
1711         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1712         regcache_read and regcache_write.
1713         (regcache_raw_read_as_address): Replace regcache_read_as_address.
1714         * regcache.c: Update.
1715         * sh-tdep.c (sh64_push_arguments): Update comment.
1716         (sh_pseudo_register_read): Update.
1717         (sh_pseudo_register_write): Update.
1718         (sh4_register_read): Update.
1719         (sh4_register_write): Update.
1720         (sh64_pseudo_register_read): Update.
1721         (sh64_pseudo_register_write): Update.
1722         (sh64_register_read): Update.
1723         (sh64_register_write): Update.
1724         * i386-tdep.c (i386_extract_return_value): Update.
1725         (i386_extract_struct_value_address): Update.
1726         (i386_extract_return_value): Update.
1727         * blockframe.c (generic_read_register_dummy): Update.
1728         (generic_call_dummy_register_unwind): Update
1729         * infrun.c (write_inferior_status_register): Update.
1730
1731 2002-07-23  Jim Blandy  <jimb@redhat.com>
1732
1733         * parser-defs.h (expression_context_pc): Make this extern.
1734         (Thanks to Michael Snyder.)
1735
1736 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
1737
1738         GDB 5.2.1 released from 5.2 branch.
1739         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1740         * README: Update to mention 5.2.1.
1741
1742 2002-07-23  Mark Salter  <msalter@redhat.com>
1743
1744         * remote.c (remote_read_bytes): Fix check for error.
1745
1746 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1747
1748         * aix-thread.c (language.h): Include.
1749         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1750         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1751         Print newlines at end of debug messages.
1752         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1753         (pdc_write_data): Use local_hex_string() instead of %llx formats.
1754
1755 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1756
1757         * aix-thread.c (ppc-tdep.h): Include.
1758         (special_register_p): New function.
1759         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1760         (store_regs_user_thread): Use register number information from
1761         gdbarch_tdep struct instead of hardcoded offsets relative to
1762         FIRST_UISA_SP_REGNUM.
1763         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
1764         special_register_p() instead of using FPLAST_REGNUM and
1765         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1766         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
1767         will be MQ's register number.
1768
1769 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1770
1771         * aix-thread.c (ops): Rename to aix_thread_ops.
1772         (base_ops): Rename to base_target.
1773         (ops_attach): Rename to aix_thread_attach.
1774         (ops_detach): Rename to aix_thread_detach.
1775         (ops_resume): Rename to aix_thread_detach.
1776         (ops_wait):   Rename to aix_thread_wait.
1777         (ops_kill):   Rename to aix_thread_kill.
1778         (init_ops):   Rename to init_aix_thread_ops.
1779         (ops_fetch_register): Rename to aix_thread_fetch_register.
1780         (ops_store_register): Rename to aix_thread_store_register.
1781         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1782         (ops_thread_alive):   Rename to aix_thread_thread_alive.
1783         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1784         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
1785         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1786         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
1787         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1788         (store_regs_lib):  Rename to store_regs_user_thread.
1789         (store_regs_kern): Rename to store_regs_kernel_thread.
1790
1791 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1792
1793         * aix-thread.c (ops_prepare_to_store): Eliminate.
1794         (init_ops): Don't initialize ops.prepare_to_store.
1795         (store_regs_kern): Pre-fetch register buffers from child, 
1796         because some registers may not be in the cache.  Copy
1797         regs from register cache only if they are cached.
1798         (store_regs_lib): Copy regs from register cache only
1799         if they are cached.
1800         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1801         fill_gprs64): Ditto.
1802
1803 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1804
1805         * aix-thread.c (gdb_assert.h): Include.
1806         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1807         register sizes (from register cache) match size of buffer holding
1808         register data.
1809         (fill_sprs32): Change parameter types to match those in the ptrace()
1810         buffer.
1811         (store_regs_lib): Likewise, but for 32-bit temporary variables.
1812         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1813
1814 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1815
1816         * aix-thread.c (supply_sprs64): Cosmetic change.
1817         (supply_sprs32): Cosmetic change.
1818         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1819         (fill_sprs64): Use regcache_collect instead of read_register.
1820         (store_regs_lib): Use regcache_collect instead of 
1821         read_register.  Use fill_sprs32 instead of fill_sprs64,
1822         if debugging a 32-bit architecture.
1823         (store_regs_kern): Use fill_gprs64 etc. to pull the values
1824         out of the register cache, instead of passing a pointer into
1825         the register cache directly to ptrace.  Use regcache_collect
1826         insteaad of read_register.
1827         (ops_prepare_to_store): Use target_read_registers instead
1828         of read_register_bytes.
1829
1830 2002-07-20  Aidan Skinner <aidan@velvet.net>
1831
1832         * MAINTAINERS: Add self under write after approval. 
1833                 
1834 2002-07-20  Aidan Skinner <aidan@velvet.net>
1835
1836         * ada-tasks.c: Change k&r style function definitions to prototyped
1837         form.
1838                 
1839 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
1840
1841         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1842         * x86-64-tdep.c: Include "objfiles.h".
1843         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1844         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1845
1846 2002-07-17  Michal Ludvig  <michal@suse.cz>
1847
1848         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1849         (update_context): Initialise cfa variable.
1850
1851 2002-07-17  Michael Snyder  <msnyder@redhat.com>
1852
1853         * aix-thread.c: Shorten some long lines.  
1854         Bring comments into line with code spec.
1855
1856 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
1857
1858         * infrun.c: Re-indent using gdb_indent.sh.
1859
1860 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
1861
1862         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1863         Leave the indentation temporarily untouched, to minimize the diffs.
1864
1865 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
1866
1867         * stabsread.c: Make os9k sections of the code obsolete,
1868         for real this time.
1869         * stabsread.h: Make os9k sections of the code obsolete.
1870
1871 2002-07-18  Michal Ludvig <mludvig@suse.cz>
1872
1873         * linux-low.c (regsets_store_inferior_registers): Add free()
1874         at the end of a loop to prevent memory leak.
1875         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1876         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1877         * config/sparc/tm-sp64linux.h: Make the rest of #endif
1878         line a comment.
1879         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1880
1881 2002-07-17  Jim Blandy  <jimb@redhat.com>
1882
1883         * macrocmd.c (info_macro_command): Remove newline from error
1884         message.
1885
1886 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
1887
1888         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1889         (sh_gdbarch_init): Use it for sh-dsp.
1890
1891 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
1892
1893         * dwarf2read.c (read_initial_length): Handle older, non-standard,
1894         64-bit DWARF2 format.
1895
1896 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
1897
1898         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1899         <sys/proc.h> when not available.
1900
1901 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
1902
1903         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1904         * stabsread.c: Make os9k sections of the code obsolete.
1905         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1906         * config/i386/i386os9k.mt: Make file obsolete.
1907         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1908         (COMMON_OBS): Remove os9kread.o
1909         (SFILES): Remove os9kread.c.
1910         (os9kread.o, remote-os9k.o): Make target obsolete.
1911         * remote-os9k.c: Make file obsolete.
1912         * os9kread.c: Make file obsolete.
1913         * Makefile.in
1914
1915 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
1916
1917         * NEWS: Mention that the FR30 has been made obsolete.
1918         * fr30-tdep.c: Make file obsolete.
1919         * config/fr30/tm-fr30.h: Ditto.
1920         * config/fr30/fr30.mt: Ditto.
1921         * configure.tgt: Make fr30-*-elf obsolete.
1922         * MAINTAINERS: Make fr30-elf obsolete.
1923
1924 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
1925
1926         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1927         found is not inside a section.
1928
1929 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
1930
1931         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1932         strerror().
1933         (pdc_realloc): Use xrealloc() instead of realloc().
1934
1935 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
1936
1937         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1938         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1939         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1940         macros.
1941
1942 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
1943
1944         * aix-thread.c (ptrace_check): Eliminate goto.
1945         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
1946         problem.
1947
1948 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
1949
1950         * aix-thread.c (gdbcmd.h): Include.
1951         (DEBUG, DBG, DBG2, dbg): Eliminate.
1952         (debug_aix_thread): New static global.
1953         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1954         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1955         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1956         invocations to DBG and DBG2 macros to test against
1957         ``debug_aix_thread'' and call fprintf_unfiltered().
1958         (_initialize_aix_thread): Add new command "set debug aix-thread".
1959
1960 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
1961
1962         From Gerhard Tonn <TON@de.ibm.com>:
1963         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1964         instead of supply_register.
1965
1966 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
1967
1968         * dwarf2cfi.c: Include "gdb_assert.h".
1969         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1970         non-NULL.
1971         (update_context): Do not use __func__.  Add missing ``break''.
1972         (update_context): Do not use __func__.
1973
1974 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
1975
1976         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1977         and its setting.  Set gdbarch instruction printing functions
1978         directly.  For non-rs6000 case use new function
1979         gdb_print_insn_powerpc.
1980         (gdb_print_insn_powerpc): New function.
1981
1982 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
1983
1984         * NEWS: Mention that the d30v has been marked obsolete.
1985         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1986         * configure.tgt: Mark d30v-*-* as obsolete.
1987         * d30v-tdep.c: Mark file as obsolete.
1988         * config/d30v/d30v.mt: Ditto.
1989         * config/d30v/tm-d30v.h: Ditto.
1990
1991 2002-07-13  Aidan Skinner <aidan@velvet.net>
1992
1993         * ada-tasks.c (add_task_entry): replace calls to
1994         malloc() with xmalloc
1995         * ada-tasks.c (init_task_list): replace calls to free with xfree()
1996         
1997         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1998         ada_finish_decode_line_1, all_sals_for_line
1999         ada_breakpoint_rewrite): replace calls to free() with xfree()
2000                 
2001 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2002
2003         From Nicholas Duffek (with minor changes by Martin Hunt, 
2004         Louis Hamilton, and Kevin Buettner):
2005         * aix-thread.c: New file.
2006
2007 2002-07-12  Petr Sorfa <petrs@caldera.com>
2008
2009         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
2010         complaint for invalid attribute class or form.
2011         (read_func_scope): DW_AT_frame_base
2012         better handling of DW_AT_block*.
2013         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2014         better handling of DW_AT_block*.
2015         (read_common_block): DW_AT_location
2016         better handling of DW_AT_block*.
2017         (read_partial_die): DW_AT_location better handling
2018         of DW_AT_block*.
2019         (new_symbol): DW_AT_external better handling of
2020         DW_AT_block*. Proper initialization of variable
2021         "addr".
2022         (attr_form_is_block): New function that returns true
2023         if the attribute's form is of DW_FORM_block*.
2024
2025 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2026
2027         * valops.c (find_method_list): Remove comment about
2028         removed STATIC_MEMFUNCP argument.
2029         (value_find_oload_method_list): Likewise.
2030
2031 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2032
2033         From Nicholas Duffek:
2034         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2035         target_new_objfile_hook.
2036
2037 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2038
2039         From Nicholas Duffek:
2040         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2041         csect.
2042
2043 2002-07-12  Andrew Cagney  <cagney@redhat.com>
2044
2045         * MAINTAINERS: Mention --enable-sim-build-warnings.
2046         (m68hc11-elf): Disable sim build warnings.
2047         (m32r-elf): Mark as broken obsolete candidate.
2048         (x86_64-linux-gnu): Mark as buildable with -Werror.
2049         (arm-elf): Change -w to ``,'' which enables warnings but not
2050         -Werror.
2051
2052 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
2053
2054         * bcache.h: Update copyright.
2055         (struct bstring, struct bcache): Move definition to "bcache.c".
2056         Replaced by opaque declaration.
2057         (bcache_xfree): Replace free_bcache.
2058         (bcache_xmalloc, bcache_memory_used): Declare.
2059         
2060         * bcache.c: Update copyright.
2061         (struct bstring, struct bcache): Moved to here from "bcache.h".
2062         Update comments.
2063         (bcache_xmalloc, bcache_memory_used): New functions.
2064         (bcache_xfree): Replace function free_bcache.
2065         
2066         * Makefile.in (objfiles.o): Add $(bcache_h).
2067         (objfiles_h): Remove $(bcache_h).
2068         (symfile.o): Add $(bcache_h).
2069
2070         * symmisc.c: Update copyright.
2071         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2072         (print_objfile_statistics): Use bcache_memory_used.
2073
2074         * symfile.c: Include "bcache.h".
2075         (reread_symbols): Use bcache_xfree.
2076         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2077         (add_psymbol_to_list): Pass psymbol_cache by value.
2078         (add_psymbol_with_dem_name_to_list): Ditto.
2079
2080         * objfiles.h: Update copyright.
2081         (struct bcache): Declare opaque.  Do not include "bcache.h".
2082         (struct objfile): Change psymbol_cache and macro_cache to ``struct
2083         bcache'' pointers.
2084         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2085
2086         * objfiles.c: Include "bcache.h".  Update copyright.
2087         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2088         macro_cache.
2089         (free_objfile): Use bcache_xfree.
2090
2091 2002-07-11  Grace Sainsbury  <graces@redhat.com>
2092
2093         * monitor.c (monitor_fetch_register): Make name a constant.
2094         (monitor_store_register): Same.
2095
2096 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
2097
2098         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2099         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2100         (finish_block) For non-function blocks, hash the symbol table.  For
2101         function blocks, mark the symbol table as unhashed.
2102         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2103         (msymbol_hash_iw): Likewise.
2104         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2105         value.
2106         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2107         (lookup_minimal_symbol): Likewise for both.
2108         * symtab.h (struct block): Add `hashtable' flag.  Comment the
2109         hashtable.
2110         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2111         (ALL_BLOCK_SYMBOLS): Update.
2112         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2113         (struct symbol): Add `hash_next' pointer.
2114         * symtab.c (lookup_block_symbol): Search using the hash table when
2115         possible.
2116         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2117         (search_symbols, find_addr_symbol): Likewise.
2118
2119         * dstread.c (process_dst_block): Clear hashtable bit for new block.
2120         (read_dst_symtab): Likewise.
2121         * jv-lang.c (get_java_class_symtab): Likewise.
2122         * mdebugread.c: Include "gdb_assert.h".
2123         (shrink_block): Assert that the block being modified is not hashed.
2124         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2125         * symmisc.c (free_symtab_block): Walk the hash table when freeing
2126         symbols.
2127         (dump_symtab): Recognize hashed blocks.
2128         * printcmd.c (print_frame_args):  Assert that function blocks do not
2129         have hashed symbol tables.
2130         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2131         (fill_in_ada_prototype, debug_print_block): Likewise.
2132         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
2133
2134 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
2135
2136         * stack.c (print_frame): Use result of frame_address_in_block()
2137         instead of fi->pc when evaluating symbols.
2138         (backtrace_command_1): Ditto.
2139
2140 2002-07-11  Andrew Cagney  <cagney@redhat.com>
2141
2142         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2143         Make static.
2144
2145         * arm-tdep.c (arm_register_name): Make return type constant.
2146
2147 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
2148
2149         * win32-nat.c (has_detach_ability): Convert to strict ISO C
2150         prototype.
2151         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2152         * s390-tdep.c (s390_fp_regnum): Ditto.
2153         (s390_read_fp): Ditto.
2154         (s390_pop_frame): Ditto.
2155         (_initialize_s390_tdep): Ditto.
2156         * remote.c (get_remote_state): Ditto.
2157         * procfs.c (mappingflags): Ditto.
2158         * memattr.c (_initialize_mem): Ditto.
2159         * mcore-tdep.c (mcore_pop_frame): Ditto.
2160         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2161         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2162         * language.c (set_case_str): Ditto.
2163         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2164         * frv-tdep.c (new_variant): Ditto.
2165         (frv_stopped_data_address): Ditto.
2166         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2167         (context_alloc): Ditto.
2168         (frame_state_alloc): Ditto.
2169         (unwind_tmp_obstack_init): Ditto.
2170         (unwind_tmp_obstack_free): Ditto.
2171         (cfi_read_fp): Ditto.
2172         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2173         (cris_pop_frame): Ditto.
2174         * c-lang.c (scanning_macro_expansion): Ditto.
2175         (finished_macro_expansion): Ditto.
2176         (c_preprocess_and_parse): Ditto.
2177         * gdbarch.sh: Ditto.
2178         * gdbarch.h, gdbarch.c: Regenerate.
2179         * config/mn10200/tm-mn10200.h: Adjust indentation.
2180         * target.c: Adjust indentation.
2181         * symtab.h: Adjust indentation.
2182         * stabsread.h: Adjust indentation.
2183         * remote-es.c: Adjust indentation.
2184         * os9kread.c: Adjust indentation.
2185
2186 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
2187         
2188         * wince.c (_initialize_wince): Rename _initialize_inftarg.
2189         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2190
2191 2002-07-10  Grace Sainsbury  <graces@redhat.com>
2192         
2193         * NEWS: Mention m68k, mcore multi-arching.  
2194         * MAINTAINERS: Change status of m68k, mcore to reflect
2195         multi-arching.
2196
2197 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
2198
2199         * valops.c (find_overload_match): Free oload_syms.
2200
2201 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
2202
2203         Define HAVE_SYS_PROC_H if sys/proc.h exists
2204         * configure.in: Add check for sys/proc.h
2205         * config.in: Regenerate.
2206         * configure: Regenerate.
2207
2208 2002-07-09  Grace Sainsbury  <graces@redhat.com>
2209
2210         * config/m68k/tm-m68k.h: Remove macros wrapped in 
2211         #if !GDB_MULTI_ARCH. 
2212
2213 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
2214
2215         * config.in, configure: Regenerate.
2216
2217 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
2218
2219         * dwarf2cfi.c: Include "gcore.h".
2220         (execute_stack_op): Fix implementation of the
2221         DW_OP_deref and DW_OP_deref_size operators by letting do their
2222         lookup in the target.
2223
2224 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
2225
2226         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2227         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2228         tdep->sc_sp_offset.
2229
2230 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
2231
2232         Fix PR gdb/595, gdb/602
2233         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2234         Don't call value_cast, just read the vtable pointer; update comments
2235         to match.
2236
2237 2002-07-05  Grace Sainsbury  <graces@redhat.com>
2238
2239         * config/mcore/tm-mcore.h: Remove file.
2240         * config/mcore/mcore.mt: Remove definition of TM_FILE
2241         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2242
2243 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
2244
2245         * i386bsd-tdep.c: Include "gdb_string.h".
2246
2247 2002-07-04  Grace Sainsbury  <graces@redhat.com>
2248
2249         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2250         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2251         mcore-tdep.
2252         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2253         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2254         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2255         (RETVAL_REGNUM): Move macros from tm-mcore.h
2256         (mcore_reg_struct_has_addr): New function.
2257         (mcore_gdbarch_init): Added initializations for the macros removed
2258         from tm-mcore.h.
2259
2260 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2261
2262         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2263         traditonal string branding within the ELF header.
2264
2265 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
2266
2267         * symtab.c (remove_params): New function.
2268         (make_symbol_overload_list): Use it instead of cplus_demangle.
2269         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
2270
2271 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2272
2273         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2274
2275         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2276         New variables.
2277         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2278         and tdep->sigtramp_end.
2279         * i386obsd-nat.c: New file.
2280         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2281
2282         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2283         Don't call get_current_frame().
2284
2285 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
2286
2287         * i386-nat.c (child_post_startup_inferior): New function
2288         calling i386_cleanup_dregs if
2289         I386_USE_GENERIC_WATCHPOINTS is defined.
2290         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2291         conditional to acknowledge that i386-nat.c has its
2292         own child_post_startup_inferior function.
2293
2294 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2295
2296         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2297         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2298         instead of MAX_REGISTER_RAW_SIZE.
2299         (i386_extract_return_value, i386_extract_struct_value_address):
2300         Convert to use regcache.
2301         (i386_gdbarch_init): Set max_register_raw_size and
2302         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2303         Set extract_return_value and extract_struct_value_address instead
2304         of their deprecated variants.
2305
2306         Convert i386 target to generic dummy frames.
2307         * i386-tdep.c: Include "symfile.h".
2308         (i386_frameless_signal_p): Consider a function to be frameless if
2309         the pc points at the first instruction of the function.
2310         (i386_frame_chain): Handle (generic) call dummies.
2311         (i386_frame_saved_pc): Likewise.
2312         (i386_frame_init_saved_regs): Remove code dealing with call
2313         dummies on the stack.
2314         (i386_push_dummy_frame): Removed.
2315         (i386_call_dummy_words): Removed.
2316         (i386_fix_call_dummy): Removed.
2317         (i386_push_return_address): New function.
2318         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
2319         parameter, and don't call get_current_frame.
2320         (i386_pop_frame): New function.
2321         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2322         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2323         entry_point_address, set call_dummy_breakpoint_offset to 0, set
2324         call_dummy_length to 0, set call_dummy_words to NULL, set
2325         sizeof_call_dummy_words to 0, set fix_call_dummy to
2326         generic_fix_call_dummy, set pc_in_call_dummy to
2327         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2328         generic_push_dummy_frame, set push_return_address to
2329         i386_push_return_address and set frame_chain_valid to
2330         generic_file_frame_chain_valid.
2331
2332 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2333
2334         * gdbarch.sh (struct regcache): Add opaque declaration.
2335         (EXTRACT_RETURN_VALUE): New architecture method.
2336         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2337         * gdbarch.h, gdbarch.c: Regenerate.
2338         * arch-utils.c (legacy_extract_return_value): New function.
2339         * arch-utils.h (legacy_extract_return_value): Declare.
2340         * values.c (value_being_returned): Re-enable code handling
2341         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
2342         deprecated_grub_regcache_for_registers call to block handling
2343         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2344         (EXTRACT_RETURN_VALUE): Do not define.
2345
2346 2002-07-03  Grace Sainsbury  <graces@redhat.com>
2347
2348         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2349         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2350         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2351         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2352         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2353         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2354         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2355         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2356         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2357         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2358         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2359         argument so the function fits the prototype in the architecture
2360         vector.
2361         (mcore_pop_frame): Remove argument so the function fits the
2362         prototype. Use get_current_frame instead of the argument.
2363         (mcore_push_arguments): Change type of struct_return so the
2364         function can be used in the architecture vector.
2365         (mcore_store_struct_return): Add.
2366         (mcore_frame_init_saved_regs): Add.
2367         (mcore_gdbarch_init): Add function calls to replace the macros
2368         removed from tm-mcore.h
2369
2370 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2371
2372         * infcmd.c (print_return_value): Remove compatibility code calling
2373         deprecated_grub_regcache_for_registers.
2374         
2375         * values.c: Include "regcache.h".
2376         (value_being_returned): Update.  Use
2377         deprecated_grub_regcache_for_registers to extract the register
2378         buffer address.  
2379         * value.h (value_being_returned): Change ``retbuf'' parameter to a
2380         ``struct regcache''.
2381         * Makefile.in (values.o): Add dependency on $(regcache_h).
2382
2383         * inferior.h (run_stack_dummy): Change type of second parameter to
2384         a ``struct regcache''.
2385         * valops.c (hand_function_call): Change type of retbuf to ``struct
2386         regcache''.  Allocate using regcache_xmalloc, clean using
2387         make_cleanup_regcache_xfree.
2388         * infcmd.c (run_stack_dummy): Update.  Use
2389         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2390
2391         * regcache.c (do_regcache_xfree): New function.
2392         (make_cleanup_regcache_xfree): New function.
2393         * regcache.h (make_cleanup_regcache_xfree): Declare.
2394
2395 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2396
2397         * event-top.c (command_line_handler): Don't read past
2398         beginning of buffer.
2399
2400 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2401         
2402         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
2403         struct frame_id. 
2404         (varobj_create): Store frame_id for root.
2405         (varobj_gen_name): Use xasprintf.
2406         (varobj_update): Save and restore frame using get_frame_id() and
2407         frame_find_by_id().
2408         (create_child): Use xasprintf.
2409         (new_root_variable): Initialize frame_id.
2410         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2411         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2412         to prevent memory leak.
2413
2414 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2415
2416         * valops.c (hand_function_call): Move declaration of retbuf to
2417         start of function, allocate using malloc, add a cleanup but before
2418         the inf_status cleanup, cleanup the buffer.  Rename local variable
2419         old_chain to inf_status_cleanup.
2420
2421 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2422
2423         * top.c (execute_command): Use cmd_func() and cmd_func_p().
2424
2425         * cli/cli-decode.c (cmd_func_p): New function.
2426         (cmd_func): New function.
2427
2428         * command.h: Add cmd_func() and cmd_func_p().   
2429         
2430 2002-07-03  Grace Sainsbury  <graces@redhat.com>
2431
2432         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2433         (REGISTER_SIZE): Remove.
2434         (MAX_REGISTER_RAW_SIZE): Remove.
2435         (REGISTER_VIRTUAL_TYPE): Remove.
2436         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2437         (REGISTER_NAME): Remove.
2438         (USE_GENERIC_DUMMY_FRAMES): Remove.
2439         (CALL_DUMMY): Remove.
2440         (CALL_DUMMY_START_OFFSET): Remove.
2441         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2442         (CALL_DUMMY_LOCATION): Remove.
2443         (FIX_CALL_DUMMY): Remove.
2444         (CALL_DUMMY_ADDRESS): Remove.
2445         (SIZEOF_CALL_DUMMY_WORDS): Remove.
2446         (SAVE_DUMMY_FRAME_TOS): Remove.
2447         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2448         (mcore_register_virtual_type): New function.
2449         (mcore_register_byte): New function.
2450         (mcore_register_size): New function.
2451         (mcore_register_name): New function.
2452         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2453         macros removed from tm-mcore.h.
2454         (mcore_dump_tdep): Add.
2455         (_initialize_mcore_tdep): Add gdbarch_register call.
2456
2457 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
2458
2459         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2460         frameless_look_for_prologue, such that we actually call this
2461         function.
2462
2463 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2464
2465         * frame.h (frame_address_in_block): New function.
2466
2467         * blockframe.c (frame_address_in_block): New function extracted
2468         from get_frame_block().
2469         (get_frame_block): Use frame_address_in_block().
2470         (block_innermost_frame): Use frame_address_in_block() to match
2471         the frame pc address against the block boundaries rather than
2472         the frame pc directly. This prevents a failure when a frame pc
2473         is actually a return-address pointing immediately after the end
2474         of the given block. 
2475
2476 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2477
2478         * MAINTAINERS: Add self under write after approval. 
2479
2480 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2481
2482         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2483         used in architecture vector. The default is
2484         m68k_local_breakpoint_from_pc.
2485         (m68k_local_breakpoint_from_pc): Add.
2486         (enum): Add register numbers from tm-m68k.h.
2487         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2488         vector.  
2489         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2490         GDB_MULTI_ARCH_PARTIAL.
2491         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2492         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2493         m68k-tdep.c.
2494         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2495         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2496         to enum in m68k-tdep.c
2497
2498 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2499
2500         * solib-osf.c (open_map): Compute the list of shared libraries
2501         loaded by the inferior, rather than the list of libraries loaded
2502         by GDB itself.  Otherwise, GDB ends up reading the symbols from
2503         the wrong shared libraries...
2504
2505 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
2506
2507         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2508         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2509         macros.
2510         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2511         Remove functions.
2512         (FRAMELESS_SIGNAL): Remove function.
2513         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2514         i386_linux_saved_pc_after_call): Removed.
2515         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2516         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
2517         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2518
2519         * i386-tdep.c (i386_frameless_signal_p): New function.
2520         (i386_frame_chain): Deal with frameless signals.
2521         (i386_sigtramp_saved_sp): New function.
2522         (i386_frame_saved_pc): Deal with frameless signals.
2523         (i386_saved_pc_after_call): Make sure the correct value is
2524         returned just after entry into a sigtramp.
2525         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2526         i386fbsd4_sc_sp_offset): New variables.
2527         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2528         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
2529         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2530         similiar to what we already did for sc_pc_offset.
2531         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2532         tdep->sc_sp_offset.
2533
2534         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2535
2536 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
2537
2538         * config/i386/tm-x86-64linux.h: New.
2539         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2540         definitions.
2541         * config/i386/nm-x86-64.h: Rename to ...
2542         * config/i386/nm-x86-64linux.h: ... this one.
2543         * config/i386/x86-64linux.mh: Reflect the above change.
2544         
2545 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
2546
2547         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2548         with sigcontext_addr.  Add sc_sp_offset.
2549         (i386bsd_sigtramp_saved_pc): Remove prototype.
2550         (i386bsd_sicontext_addr): Add prototype.
2551         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2552         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2553         (i386_svr4_sigtramp_saved_pc): Removed.
2554         (i386_svr4_sigcontext_addr): New function.
2555         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2556         Initialize tdep->sigcontext_addr instead.  Initialize
2557         tdep->sc_pc_offset and tdep->sc_sp_offset.
2558         (i386_gdbarch_init): Likewise.
2559         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2560         any more.
2561         (i386bsd_sigtramp_saved_pc): Remove function.
2562         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2563         Initialize tdep->sigcontext_addr instead.  Initialize
2564         tdep->sc_pc_offset.
2565         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2566         of tdep->sigtramp_saved_pc.
2567         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2568         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
2569         instead.
2570
2571         * i386-tdep.c (i386_frameless_function_invocation,
2572         i386_frame_num_args, i386_frame_init_saved_regs,
2573         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2574         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2575         i386_extract_return_value, i386_store_return_value,
2576         i386_extract_struct_value_address, i386_register_virtual_type,
2577         i386_register_convertible, i386_register_convert_to_virtual,
2578         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2579         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2580         static.
2581
2582 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
2583
2584         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2585
2586         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2587         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2588         this macro.  Include "value.h".
2589
2590 2002-06-30  Aidan Skinner  <aidan@velvet.net>
2591
2592         * ada-exp.tab.c: remove as it's a generated file
2593         * ada-lex.c: remove as it's a generated file
2594                 
2595 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
2596
2597         * config/i386/tm-i386.h (struct frame_info, struct
2598         frame_saved_regs, struct value, struct type): Remove forward
2599         declarations.
2600
2601         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2602         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2603         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2604         (FILL_FPXREGSET): Define.
2605
2606         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2607
2608         * configure.tgt (i[3456]86-*-openbsd*): Fold into
2609         i[3456]86-*-netbsd* case.
2610         * config/i386/tm-obsd.h: Removed.
2611         * config/i386/obsd.mt: Removed.
2612         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2613         core-aout.o.
2614         (MH_CFLAGS): Add -DYYDEBUG=0.
2615
2616         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2617         i386nbsd_sc_pc_offset on OpenBSD too.
2618
2619         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2620         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2621         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2622         define.
2623         * i386bsd-tdep.c: Include "arch-utils.h".
2624         (i386bsd_aout_in_solib_call_trampoline): New function.
2625         (i386bsd_init_abi): Set in_solib_call_trampoline to
2626         i386bsd_aout_in_solib_call_trampoline.
2627         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2628         in_solib_call_trampoline to generic_in_solib_call_trampoline.
2629
2630 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2631
2632         * macrotab.h: Do not include "obstack.h" or "bcache.h".
2633         (struct obstack, struct bcache): Add opaque declarations.
2634         * Makefile.in (macrotab_h): Update
2635
2636 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2637
2638         * blockframe.c (generic_find_dummy_frame): Change return type to
2639         ``struct regcache''.
2640         (struct dummy_frame): Replace field ``registers'' with regcache, a
2641         struct regcache object.
2642         (generic_find_dummy_frame): Update.
2643         (generic_push_dummy_frame): Update.  Use regcache_xfree,
2644         regcache_xmalloc and regcache_cpy.
2645         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
2646         regcache_xfree.
2647         (deprecated_generic_find_dummy_frame): Update.
2648         (generic_read_register_dummy): Update.  Use
2649         regcache_read_as_address.
2650         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
2651         (generic_get_saved_register): Update.  Use regcache_read.
2652
2653 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2654
2655         * Makefile.in (objfiles_h): Add $(bcache_h).
2656         * objfiles.h: Include "bcache.h".
2657
2658         * Makefile.in (symtab_h): Remove $(bcache_h).
2659         * symtab.h: Do not include "bcache.h".
2660
2661 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2662
2663         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2664         generic_func_frame_chain_valid.
2665
2666 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
2667
2668         * config/i386/nm-fbsd.h: Include <sys/param.h>.
2669         * config/i386/tm-fbsd.h: Likewise.
2670
2671 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2672
2673         * rs6000-tdep.c (rs6000_gdbarch_init): Use
2674         generic_unwind_get_saved_register.
2675
2676 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
2677
2678         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2679         * regcache.c (supply_register): Add missing argument to
2680         register_buffer call.
2681
2682 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
2683
2684         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
2685         Solaris /bin/grep does not not like it.  From Peter Schauer.
2686
2687 2002-06-26  Tom Tromey  <tromey@redhat.com>
2688
2689         * command.h (add_setshow_cmd): Declare.
2690         (add_setshow_cmd_full): Declare.
2691         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
2692         returns void.  Use add_setshow_cmd_full.
2693         (add_setshow_cmd_full): New function.
2694         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2695         (add_setshow_boolean_cmd): Likewise.
2696
2697 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2698
2699         * config/vax/tm-vax.h: Protect from multiple inclusion.
2700         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2701         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2702         * config/vax/tm-vaxbsd.h: ...here.  New file.
2703         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2704
2705 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2706
2707         * config/vax/tm-vax.h (BREAKPOINT): Remove.
2708         (BELIEVE_PCC_PROMOTION): Remove.
2709         (AP_REGNUM): Move to...
2710         * config/vax/nm-vax.h: ...here.
2711         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2712         (vax_breakpoint_from_pc): New function.
2713         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2714         and gdbarch_believe_pcc_promotion.
2715
2716 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2717
2718         * Makefile.in (vax_tdep_h): Define.  
2719         (vax-tdep.o): Use $(vax_tdep_h).
2720         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2721         (vax_dump_tdep): New function. 
2722         (_initialize_vax_tdep): Register vax_dump_tdep.
2723         * vax-tdep.h: Include osabi.h.     
2724         (struct gdbarch_tdep): New. 
2725
2726 2002-06-26  Andrew Cagney  <cagney@redhat.com>
2727
2728         * frame.h (deprecated_generic_find_dummy_frame): Rename
2729         generic_find_dummy_frame.
2730         * blockframe.c (generic_find_dummy_frame): Make static.
2731         (deprecated_generic_find_dummy_frame): New function.
2732         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2733         generic_find_dummy_frame with deprecated_find_dummy_frame.
2734         (sh64_nofp_frame_init_saved_regs): Ditto.
2735         (sh_fp_frame_init_saved_regs): Ditto.
2736         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2737         (s390_frame_chain): Ditto.
2738         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2739
2740 2002-06-26  Grace Sainsbury  <graces@redhat.com>
2741
2742         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2743         gdbarch vector are at the top.
2744         (NUM_REGS): Remove.
2745         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2746         (FRAME_ARGS_ADDRESS): Remove.
2747         (FRAME_LOCALS_ADDRESS): Remove.
2748         (FRAME_NUM_ARGS): Remove.
2749         (FRAME_ARGS_SKIP): Remove.  
2750         * m68k-tdep.c (enum): Add eumeration of special register numbers.
2751         (m68k_gdbarch_init): Add gdbarch initializations for macros
2752         undefined in tm-m68k.h
2753
2754 2002-06-26  Grace Sainsbury  <graces@redhat.com>
2755
2756         * monitor.h: Add the function regname to monitor_ops
2757         structure. This way NUM_REGS does not have to be a constant.
2758         * monitor.c (monitor_fetch_register): Added support for regname
2759         function. The function is called if the array regnames is NULL.
2760         (monitor_store_register): Same.
2761         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2762         regnames array.
2763         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2764         cpu32bug_cmds.regname to point to new function.
2765         * abug-rom.c (abug_regname): Same as above.
2766         (init_abug_cmds): Same.
2767         * dbug-rom.c (dbug_regname): Same as above.
2768         (init_dbug_cmds): Same.
2769         * remote-est.c (est_regname): Same. 
2770         (init_est_cmds): Same.
2771         * rom68k-rom.c (rom68k_regname): Same. 
2772         (init_rom68k_cmds): Same.
2773
2774 2002-06-25  Tom Tromey  <tromey@redhat.com>
2775
2776         * breakpoint.c (delete_command): Don't repeat `delete' commands.
2777
2778 2002-06-25  Andrew Cagney  <cagney@redhat.com>
2779
2780         * infrun.c (stop_registers): Change variable's type to ``struct
2781         regcache'''.
2782         (xmalloc_inferior_status): Delete function.
2783         (free_inferior_status): Delete function.
2784         (normal_stop): Use regcache_cpy.
2785         (struct inferior_status): Change type of fields ``stop_registers''
2786         and ``registers'' to ``struct regcache''.
2787         (write_inferior_status_register): Use regcache_write.
2788         (save_inferior_status): Instead of calling
2789         xmalloc_inferior_status, allocate the inf_status buffer directly.
2790         Use regcache_dup_no_passthrough and regcache_dup to save the
2791         buffers.
2792         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2793         Replace the stop_registers regcache instead of overriding it.  Use
2794         regcache_xfree.  Instead of calling free_inferior_status, xfree
2795         the buffer directly.
2796         (discard_inferior_status): Use regcache_xfree.  Instead of calling
2797         free_inferior_status, xfree the buffer directly.
2798         (build_infrun): Use regcache_xmalloc.
2799         (_initialize_infrun): Delete redundant call to build_infrun.
2800
2801         * Makefile.in (infcmd.o): Add $(regcache_h).
2802
2803         * infcmd.c: Include "regcache.h".
2804         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2805         obtain the address of `stop_registers' register buffer.
2806         (print_return_value): Ditto.
2807
2808         * inferior.h (struct regcache): Add opaque declaration.
2809         (stop_registers): Change variable's declared type to ``struct
2810         regcache''.
2811
2812 2002-06-24  Tom Tromey  <tromey@redhat.com>
2813
2814         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2815         * target.c (initialize_targets): Fixed typo in
2816         trust-readonly-sections `show' documentation.
2817
2818         * main.c: Marked all strings with _().
2819
2820 2002-06-24  Don Howard  <dhoward@redhat.com>
2821
2822         * memattr.c (create_mem_region): Treat hi == 0 as a special case
2823         that means max CORE_ADDR+1.
2824         (lookup_mem_region): Ditto.
2825         (mem_info_command): Ditto.
2826
2827 2002-06-24  Grace Sainsbury  <graces@redhat.com>
2828
2829         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2830         (REGISTER_BYTES_OK): Remove.
2831         (REGISTER_BYTES): Remove.
2832         (STORE_STRUCT_RETURN): Remove.
2833         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2834         (STORE_RETURN_VALUE): Remove.
2835         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2836         (FRAME_CHAIN): Remove.
2837         (FRAMELESS_FUNCTION_INVOCATION): Remove.
2838         (FRAME_SAVED_PC): Remove.  
2839         * m68k-tdep.c (m68k_register_bytes_ok):Add.
2840         (m68k_store_struct_return): Add.
2841         (m68k_deprecated_extract_return_value): Add.
2842         (m68k_deprecated_extract_struct_value_address): Add.
2843         (m68k_store_return_value): Add.
2844         (m68k_frame_chain): Add.
2845         (m68k_frameless_function_invocation): Add.
2846         (m68k_frame_saved_pc): Add.
2847         (m68k_gdbarch_init): added set_gdbarch calls for new 
2848         functions and deleted macros.
2849
2850 2002-06-23  Tom Tromey  <tromey@redhat.com>
2851
2852         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2853         (ALLDEPFILES): Likewise.
2854         (udiheaders): Removed.
2855         (udip2soc.o): Likewise.
2856         (udi2go32.o): Likewise.
2857         (udr.o): Likewise.
2858         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2859
2860 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
2861
2862         * infrun.c (_initialize_infrun): Delete unnecessary call to
2863         build_infrun.
2864
2865         * regcache.h: Update comments describing the regcache_cpy family
2866         of functions.
2867         (regcache_save, regcache_restore): Delete declaration.
2868         (regcache_save_no_passthrough): Delete declaration.
2869         (regcache_restore_no_passthrough): Delete declaration.
2870         * regcache.c (regcache_save): Delete function.
2871         (regcache_save_no_passthrough): Delete function.
2872         (regcache_restore): Delete function.
2873         (regcache_restore_no_passthrough): Delete function.
2874
2875 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
2876
2877         * config/m68k/tm-m68k.h: Fix typo.
2878         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2879         (m68k_frame_init_saved_regs): Declare.
2880
2881 2002-06-21  Jim Blandy  <jimb@redhat.com>
2882
2883         Remove some vestiges of Harris 88k support.
2884         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2885         register numbering quirk.
2886         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2887         odd symbols occurring in Harris 88k ELF targets.
2888
2889 2002-06-21  Tom Tromey  <tromey@redhat.com>
2890
2891         * gdb_locale.h: New file.
2892         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2893         (defs_h): Added gdb_locale.h.
2894         * configure, config.in: Rebuilt.
2895         * configure.in (PACKAGE): Define.
2896         * defs.h: Include gdb_locale.h.
2897         * main.c (captured_main): Call setlocale, bindtextdomain,
2898         textdomain.
2899
2900 2002-06-21  Dave Brolley  <brolley@redhat.com>
2901
2902         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2903         * config/frv/frv.mt: New file.
2904         * config/frv/tm-frv.h: New file.
2905         * configure.tgt: Support frv-*-*.
2906         * Makefile.in (frv-tdep.o): New target.
2907         * frv-tdep.c: New file.
2908         * NEWS: Mention frv.
2909
2910 2002-06-21  Dave Brolley  <brolley@redhat.com>
2911
2912         * MAINTAINERS: Add self to "Write After Approval" list.
2913
2914 2002-06-21  Grace Sainsbury  <graces@redhat.com>
2915
2916         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2917         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2918         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2919         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2920         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2921
2922         * m68k-tdep.c: Include arch-utils.h
2923         (m68k_register_raw_size): Add.
2924         (m68k_register_virtual_size): Add.
2925         (m68k_register_virtual_type): Add.
2926         (m68k_register_name): Add.
2927         (m68k_stack_align): Add.
2928         (m68k_register_byte): Add.
2929         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2930         tm-m68k.h.
2931
2932 2002-06-21  Grace Sainsbury  <graces@redhat.com>
2933
2934         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2935         m68k_find_saved_regs.
2936         (m68k_pop_frame): Removed saved_regs structure, and replaced
2937         references to it with frame->saved_regs.
2938         (m68k_gdbarch_init): Added function calls to initialize the
2939         gdbarch structure.
2940         (m68k_fix_call_dummy): Add. 
2941         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2942         (CALL_DUMMY): Remove.
2943         (CALL_DUMMY_LENGTH): Remove.
2944         (CALL_DUMMY_START_OFFSET): Remove.
2945         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2946         (FIX_CALL_DUMMY): Remove.
2947         (PUSH_DUMMY_FRAME): Remove.
2948         (POP_FRAME): Remove.
2949
2950 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2951
2952         * parse.c (parse_fprintf): New function used to avoid calls to
2953         fprintf in bison parser generated debug code.
2954         * parser-defs.h: Declaration of new parse_fprintf function.
2955         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2956         Set YYDEBUG to 1 by default.
2957         Set YYFPRINTF as parse_fprintf.
2958
2959 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
2960
2961         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
2962         encoding anymore.
2963         (pointer_encoding, enum ptr_encoding): New.
2964         (execute_cfa_program): Take care about pointer encoding.        
2965         (dwarf2_build_frame_info): Only call parse_frame_info for 
2966         .debug_frame and .eh_frame.
2967         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2968         fixed augmentation handling, added relative addressing, 
2969         ignore duplicate FDEs. Added comments.
2970         * dwarf2cfi.c: Reindented.
2971         
2972 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
2973
2974         * event-top.c (command_handler): Don't use space_at_cmd_start
2975         unless there is sbrk() on the host. Assign time and space data
2976         to union fields of the appropriate length.
2977
2978 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
2979
2980         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
2981         x86_64_register_name. Return type changed to 'const char *'.
2982         (x86_64_register_name2nr): Rename to x86_64_register_number.
2983         (x86_64_gdbarch_init): Update to reflect the change.
2984         * x86-64-tdep.h: Ditto.
2985         * x86-64-linux-nat.c (x86_64_fxsave_offset)
2986         (supply_fpregset): Ditto.
2987
2988 2002-06-19  Andrew Cagney  <cagney@redhat.com>
2989
2990         * regcache.h: Update copyright.
2991         (struct regcache, struct gdbarch): Add opaque declarations.
2992         (current_regcache): Declare global variable.
2993         (regcache_read, regcache_write): Add gdbarch parameter.
2994         (regcache_save, regcache_save_no_passthrough)
2995         (regcache_restore, regcache_restore_no_passthrough)
2996         (regcache_dup, regcache_dup_no_passthrough)
2997         (regcache_cpy, regcache_cpy_no_passthrough)
2998         (deprecated_grub_regcache_for_registers)
2999         (deprecated_grub_regcache_for_register_valid)
3000         (regcache_valid_p): Add function declarations.
3001         
3002         * regcache.c: Update copyright.
3003         (regcache_descr_handle): New global variable.
3004         (struct regcache_descr): Define.
3005         (init_legacy_regcache_descr, init_regcache_descr): New functions.
3006         (regcache_descr, xfree_regcache_descr): New functions.
3007         (struct regcache): Define.
3008         (regcache_xmalloc, regcache_xfree): New functions.
3009         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3010         (regcache_dup, regcache_dup_no_passthrough): New functions.
3011         (regcache_valid_p, regcache_read_as_address): New functions.
3012         (deprecated_grub_regcache_for_registers): New function.
3013         (deprecated_grub_regcache_for_register_valid): New function.
3014         (current_regcache): New global variable.
3015         (register_buffer): Add regcache parameter.  Update calls.
3016         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
3017         (read_register_gen, write_register_gen): Update register_buffer
3018         call.  Test for legacy_p instead of gdbarch_register_read_p or
3019         gdbarch_register_write_p.
3020         (regcache_collect): Update register_buffer call.
3021         (build_regcache): Rewrite.  Use deprecated grub functions.
3022         (regcache_save, regcache_save_no_passthrough): New functions.
3023         (regcache_restore, regcache_restore_no_passthrough): New
3024         functions.
3025         (_initialize_regcache): Create the regcache_data_handle. Swap
3026         current_regcache global variable.
3027         
3028         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3029         parameter to regcache_read and regcache_write calls.
3030         (sh4_register_read): Ditto.
3031         (sh64_pseudo_register_read): Ditto.
3032         (sh64_register_read): Ditto.
3033         (sh_pseudo_register_write): Ditto.
3034         (sh4_register_write): Ditto.
3035         (sh64_pseudo_register_write): Ditto.
3036         (sh64_register_write): Ditto.
3037
3038         * defs.h (XCALLOC): Define.
3039
3040 2002-06-19  Grace Sainsbury  <graces@redhat.com>
3041
3042         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3043         * m68k-tdep.c (m68k_gdbarch_init): Added.
3044         (m68k_dump_tdep): Added.
3045
3046 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3047
3048         * ada-lang.c (fill_in_ada_prototype): Update comment.
3049
3050 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3051
3052         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
3053         MIPS_ABI_LAST.
3054         (mips_abi_string, mips_abi_strings): New.
3055         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3056         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
3057         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
3058         O32 if no ABI is found.
3059         (mips_dump_tdep): Use mips_abi_strings.
3060         (mips_abi_update): New function.
3061         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
3062         ``set mips abi'' and ``show mips abi''.  Check the size of
3063         mips_abi_strings.
3064
3065 2002-06-19  Andrew Cagney  <cagney@redhat.com>
3066
3067         * i386-linux-tdep.c (i386_linux_register_name): Make return type
3068         constant.
3069
3070 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
3071
3072         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
3073         current frame using only the first stack size adjustment. All
3074         subsequent size adjustments are not considered to be part of
3075         the "static" part of the current frame.
3076         Compute the address of the saved registers relative to the
3077         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3078         in use in this frame.
3079
3080 2002-06-18  Don Howard  <dhoward@redhat.com>
3081  
3082         * valops.c (value_ind): Use value_at_lazy() when dereferencing
3083         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
3084         suggesting this solution.
3085
3086 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
3087
3088         * config/romp/xm-rtbsd.h: Delete file.
3089         * config/romp/rtbsd.mh: Delete file.
3090
3091 2002-06-18  Keith Seitz  <keiths@redhat.com>
3092
3093         * breakpoint.c (condition_command): Post breakpoint_modify
3094         when a condition is added to an existing breakpoint.
3095         (commands_command): Likewise for commands.
3096         (set_ignore_count): Likewise for ignore counts.
3097         If no tty, do not simply return, still need to send event
3098         notification.
3099         (ignore_command): Only print a newline if the command came
3100         from a tty.
3101         Don't call breakpoints_changed, since this is now properly
3102         handled by set_ignore_count.
3103
3104 2002-06-18  Andrew Cagney  <cagney@redhat.com>
3105
3106         * MAINTAINERS: Note that cris-elf target can be compiled with
3107         -Werror.
3108         * cris-tdep.c (cris_register_name): Make return type constant.
3109         (cris_breakpoint_from_pc): Ditto.
3110
3111 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
3112
3113         * frame.h (struct frame_info): Change type of context to 
3114         'struct context'.
3115
3116 2002-06-17  Andrew Cagney  <cagney@redhat.com>
3117
3118         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3119         pointer.
3120         * gdbarch.h, gdbarch.c: Regenerate.
3121         * config/mips/tm-mips.h (mips_register_name): Update.
3122         * i386-tdep.h (i386_register_name): Update.
3123         * mips-tdep.c (mips_register_name): Update
3124         * alpha-tdep.c (alpha_register_name): Update.
3125         * arch-utils.c (legacy_register_name): Update.
3126         * arch-utils.h (legacy_register_name): Update.
3127         * avr-tdep.c (avr_register_name): Update.
3128         * ia64-tdep.c (ia64_register_name): Update.
3129         * i386-tdep.c (i386_register_name): Update.
3130         * sparc-tdep.c (sparc32_register_name): Update.
3131         (sparc64_register_name): Update.
3132         (sparclite_register_name): Update.
3133         (sparclet_register_name): Update.
3134         * sh-tdep.c (sh_generic_register_name): Update.
3135         (sh_sh_register_name): Update.
3136         (sh_sh3_register_name): Update.
3137         (sh_sh3e_register_name): Update.
3138         (sh_sh_dsp_register_name): Update.
3139         (sh_sh3_dsp_register_name): Update.
3140         (sh_sh4_register_name): Update.
3141         (sh_sh64_register_name): Update.
3142         * s390-tdep.c (s390_register_name): Update.
3143         * rs6000-tdep.c (rs6000_register_name): Update.
3144         * ns32k-tdep.c (ns32k_register_name_32082): Update.
3145         (ns32k_register_name_32382): Update.
3146         * d10v-tdep.c (d10v_ts2_register_name): Update.
3147         (d10v_ts3_register_name): Update.
3148         * xstormy16-tdep.c (xstormy16_register_name): Update.
3149         * vax-tdep.c (vax_register_name): Update.
3150         * v850-tdep.c (v850_register_name): Update.
3151         * m68hc11-tdep.c (m68hc11_register_name): Update.
3152         * mn10300-tdep.c (mn10300_generic_register_name): Update.
3153         (am33_register_name): Update.
3154
3155 2002-06-17  Grace Sainsbury  <graces@redhat.com>
3156
3157         * m68k-tdep.c: Reindented.
3158
3159 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
3160
3161         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3162         list of predefined types.
3163
3164 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
3165
3166         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3167         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3168         REGISTER_CONVERT_TO_RAW): Remove defines.
3169         (i386_register_virtual_type, i386_register_convertible,
3170         i386_register_convert_to_virtual, i386_register_convert_to_raw):
3171         Remove prototypes.
3172         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3173         macros mentioned above.
3174
3175         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3176         (i386lynx_saved_pc_after_call): Remove prototype.
3177         * i386ly-tdep.c: Include "i386-tdep.h".
3178         (i386lynx_saved_pc_after_call): Make static.  Use
3179         read_memory_nobpt instead of read_memory.  Use
3180         read_memory_unsigned_integer instead of read_memory_integer.
3181         (i386lynx_init_abi): New function.
3182         (i386lynx_coff_osabi_sniffer): New function.
3183         (_initialize_i386bsd_tdep): New function.
3184
3185         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3186         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3187         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3188         (i386_fix_call_dummy): Remove prototype.
3189         * i386-tdep.c (i386_call_dummy_words): New variable.
3190         (i386_gdbarch_init): Adjust for removal of the
3191         macros mentioned above.
3192
3193 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3194
3195         * command.h (add_setshow_auto_boolean_cmd): Replace
3196         add_set_auto_boolean_cmd.
3197         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3198         add_set_auto_boolean_cmd.
3199         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3200         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3201         mask-address'' command.
3202         (show_mask_address): Add cmd parameter.
3203         * remote.c (add_packet_config_cmd): Update.  Change type of
3204         set_func and show_func to cmd_sfunc_ftype.
3205         (_initialize_remote): Update `set remote Z-packet'
3206         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3207         (show_remote_protocol_e_packet_cmd): Ditto.
3208         (show_remote_protocol_E_packet_cmd): Ditto.
3209         (show_remote_protocol_P_packet_cmd): Ditto.
3210         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3211         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3212         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3213         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3214         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3215         (show_remote_protocol_Z_packet_cmd): Ditto.
3216         (show_remote_protocol_binary_download_cmd): Ditto.
3217         (show_remote_cmd): Pass NULL to all of above.
3218
3219 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3220
3221         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3222         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3223         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3224         POP_FRAME): Remove defines.
3225         (i386_push_arguments, i386_store_struct_return,
3226         i386_extract_return_value, i386_store_return_value,
3227         i386_extract_struct_value_address, i386_push_dummy_frame,
3228         i386_pop_frame): Renove prototypes.
3229         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3230         macros mentioned above.
3231
3232 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3233
3234         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3235         add_set_boolean_cmd.
3236         (add_setshow_cmd): New function.
3237         * command.h (add_setshow_boolean_cmd): Replace
3238         add_set_boolean_cmd.
3239         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3240         and ``set rdiromatzero''.
3241         * maint.c (_initialize_maint_cmds): Update commented out code.
3242         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3243         * target.c (initialize_targets): Update `set
3244         trust-readonly-sections'.
3245         * remote.c (_initialize_remote): Update `set remotebreak'.
3246
3247 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3248
3249         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3250         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3251         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3252         fit into multi-arch framework.
3253         (i386_breakpoint_from_pc): New function.
3254         (i386_gdbarch_init): Adjust for removal of the macros mentioned
3255         above.
3256
3257         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3258         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3259         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3260         (i386_frameless_function_invocation, i386_frame_num_args,
3261         i386_frame_init_saved_regs): Remove prototypes.
3262         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3263         macros mentioned above.
3264
3265 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3266
3267         * cli/cli-decode.c (set_cmd_cfunc): Update.
3268         (set_cmd_sfunc): Update.
3269         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3270         (set_cmd_sfunc, set_cmd_cfunc): Update.
3271         * cli/cli-decode.h: Update.
3272
3273 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3274
3275         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3276         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3277
3278 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3279
3280         * defs.h (auto_boolean): Declare enum.
3281         * command.h (cmd_auto_boolean): Delete enum.
3282         * mips-tdep.c (mask_address_var): Update.
3283         (mips_mask_address_p): Update.
3284         (show_mask_address): Update.
3285         * remote.c (struct packet_config): Update.
3286         (update_packet_config): Update.
3287         (show_packet_config_cmd): Update.
3288         (packet_ok): Update.
3289         (add_packet_config_cmd): Update.
3290         (_initialize_remote): 
3291         * command.h: Update.
3292         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3293         (do_setshow_command): Update.
3294         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3295         * cli/cli-decode.h: Update.
3296
3297 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3298
3299         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3300         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3301         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3302         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3303         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3304         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3305
3306         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3307         list of DJGPP COFF targets.
3308
3309         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3310         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3311         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3312         (FP0_REGNUM): Remove define.
3313         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3314         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3315         (i386_register_virtual_size): Remove protoype.
3316         * i386-tdep.c (i386_register_virtual_size): Removed.
3317         (i386_extract_return_value, i386_store_return_value): Use
3318         FP0_REGNUM instead of NUM_FREGS to determine whether the
3319         floating-point registers are available.
3320         (i386_gdbarch_init): Tweak FIXME about FPU registers.
3321         Adjust for removal of macros mentioned above.
3322
3323 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3324
3325         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
3326         comments.
3327         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3328         Remove prototypes.
3329         (supply_gregset, fill_gregset): Remove use of register keyword and
3330         remove declaration for regmap.  Use I386_NUM_GREGS instead of
3331         NUM_REGS and NUM_FREGS.
3332         (FPREGSET_FSAVE_OFFSET): Remove.
3333         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3334         NUM_FREGS to determine whether the floating-point registers are
3335         available.
3336
3337         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3338         gnu_store_registers): Replace usage of NUM_GREGS with
3339         I386_NUM_GREGS.
3340
3341         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3342         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3343         usage of NUM_GREGS with I386_NUM_GREGS.
3344
3345         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3346
3347         * i386bsd-nat.c: Include "i386-tdep.h".
3348         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3349         I386_NUM_GREGS.
3350
3351         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3352         and associated comment.  They no longer make any sense, since we
3353         don't use this file anymore on Linux.
3354
3355         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3356         * i386-tdep.c (i386_register_offset, i386_register_size): Use
3357         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3358         elements in these arrays.
3359         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3360         MAX_NUM_REGS.
3361
3362 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3363
3364         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3365         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3366
3367 2002-06-14  Andrew Cagney  <cagney@redhat.com>
3368
3369         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3370         EXTRACT_RETURN_VALUE.
3371         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3372         EXTRACT_STRUCT_VALUE_ADDRESS.
3373         * gdbarch.h, gdbarch.c: Regenerate.
3374         
3375         * values.c (value_being_returned): Handle
3376         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3377         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3378
3379         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
3380         * arm-tdep.c (arm_gdbarch_init): Update.
3381         * avr-tdep.c (avr_gdbarch_init): Update.
3382         * cris-tdep.c (cris_gdbarch_init): Update.
3383         * d10v-tdep.c (d10v_gdbarch_init): Update.
3384         * ia64-tdep.c (ia64_gdbarch_init): Update.
3385         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3386         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3387         * s390-tdep.c (s390_gdbarch_init): Update.
3388         * sh-tdep.c (sh_gdbarch_init): Update.
3389         * s390-tdep.c (s390_gdbarch_init): Update.
3390         * sparc-tdep.c (sparc_gdbarch_init): Update.
3391         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3392         * v850-tdep.c (v850_gdbarch_init): Update.
3393         * vax-tdep.c (vax_gdbarch_init): Update.
3394         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3395         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3396
3397         * config/arc/tm-arc.h: Update.
3398         * config/d30v/tm-d30v.h: Update.
3399         * config/fr30/tm-fr30.h: Update.
3400         * config/h8300/tm-h8300.h: Update.
3401         * config/h8500/tm-h8500.h: Update.
3402         * config/i386/tm-i386.h: Update.
3403         * config/i386/tm-ptx.h: Update.
3404         * config/i386/tm-symmetry.h: Update.
3405         * config/i960/tm-i960.h: Update.
3406         * config/m32r/tm-m32r.h: Update.
3407         * config/m68k/tm-delta68.h: Update.
3408         * config/m68k/tm-linux.h: Update.
3409         * config/m68k/tm-m68k.h: Update.
3410         * config/m88k/tm-m88k.h: Update.
3411         * config/mcore/tm-mcore.h: Update.
3412         * config/mips/tm-mips.h: Update.
3413         * config/mn10200/tm-mn10200.h: Update.
3414         * config/pa/tm-hppa.h: Update.
3415         * config/pa/tm-hppa64.h: Update.
3416         * config/sparc/tm-sp64.h: Update.
3417         * config/sparc/tm-sparc.h: Update.
3418         * config/sparc/tm-sparclet.h: Update.
3419         * config/z8k/tm-z8k.h: Update.
3420
3421 2002-06-14  Andrew Cagney  <cagney@redhat.com>
3422
3423         * Makefile.in (i386_linux_tdep_h): Define.
3424         (i386_tdep_h, i387_tdep_h): Define.
3425         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3426         $(i386_tdep_h) and $(i387_tdep_h).
3427         * i386-linux-nat.c: Include "i386-linux-tdep.h".
3428
3429 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
3430
3431         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3432         Already covered by the default.
3433
3434         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3435         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
3436         (i386_gdbarch_init): Initialize long_double_format and long_double
3437         bit.
3438
3439         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3440         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
3441         Move these to ...
3442         * config/i386/i386sol2.mh: ... here.
3443         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3444         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3445         (SIGCONTEXT_PC_OFFSET): Remove define.
3446         (IN_SIGTRAMP): Remove define.
3447         * i386-sol2-tdep.c: New file.
3448         
3449         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3450         * config/i386/tm-i386nw.h: Removed.
3451
3452         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3453         USE_STRUCT_CONVENTION): Remove defines.
3454         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3455         (get_longjmp_target): Remove prototype.
3456         (IN_SIGTRAMP): Remove define.
3457         (i386bsd_in_sigtramp): Remove prototype.
3458         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3459         function.  Update comment accordingly
3460         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3461         (FRAME_SAVED_PC): Remove define.
3462         (i386bsd_frame_saved_pc): Remove prototype.
3463         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3464         GET_LONGJMP_TARGET): Remove defines.
3465         (get_longjmp_target): Remove prototype.
3466         (IN_SIGTRAMP): Remove define.
3467         (i386bsd_in_sigtramp): Remove prototype.
3468         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3469         function.  Update comment accordingly
3470         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3471         (FRAME_SAVED_PC): Remove define.
3472         (i386bsd_frame_saved_pc): Remove prototype.
3473         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3474         Remove prototype.
3475         (USE_STRUCT_CONVENTION): Remove prototype.
3476         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3477         declaration.
3478         (_initialize_i386bsd_nat): Revise logic to determine some
3479         constants at compile time when compiling a native GDB.  Warn if
3480         things don't match up with what we expect.
3481         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3482         Remove variables.
3483         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
3484         to use date stored in `struct gdbarch_tdep'.
3485         (i386bsd_sigcontext_offset): Remove varaible.
3486         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
3487         stored in `struct gdbarch_tdep'.
3488         (i386bsd_frame_saved_pc): Make static.
3489         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3490         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3491         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3492         i386fbsd4_sc_pc_offset): New variables.
3493         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3494         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3495         functions.
3496         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3497         functions.
3498         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3499         Modify the value of i386fbsd_sigtramp_start and
3500         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3501         i386fbsd_sigtramp_end.
3502         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3503         function.
3504
3505         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3506         define to i386-linux-tdep.h.
3507         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3508         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3509         defines.
3510         (i386_linux_register_name, i386_linux_register_byte,
3511         i386_linux_register_raw_size): Remove prototypes.
3512         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3513         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3514         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3515         TARGET_WRITE_PC): Remove defines.
3516         (i386_linux_in_sigtramp, i386_linux_frame_chain,
3517         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3518         i386_linux_write_pc): Remove prototypes.
3519         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3520         (get_longjmp_target): Remove prototype.
3521         * i386-linux-tdep.h: New file.
3522         * i386-linux-nat.c: Include "i386-linux-tdep.h".
3523         * i386-linux-tdep.c: Include "i386-tdep.h" and
3524         "i386-linux-tdep.h".
3525         (i386_linux_register_name, i386_linux_register_byte,
3526         i386_linux_register_raw_size, i386_linux_in_sigtramp,
3527         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3528         Make static.
3529         (i386_linux_init_abi): New function.
3530         (_initialize_i386_linux_tdep): New function.
3531
3532         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3533         (i386_saved_pc_after_call): Remove prototype.
3534         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3535         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3536         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3537         (i386_register_name, i386_stab_reg_to_regnum,
3538         i386_dwarf_reg_to_regnum): Remove prototypes.
3539         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3540         SIZEOF_SSE_REGS): Remove defines.
3541         (REGISTER_BYTES): Remove define.
3542         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3543         (i386_register_byte, i386_register_raw_size): Remove prototypes.
3544         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3545         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3546         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3547         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3548         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3549         (get_longjmp_target): Remove prototype.
3550         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3551         (sigtramp_saved_pc): Remove define.
3552         (i386v4_sigtramp_saved_pc): Remove prototype.
3553         * config/i386/tm-go32.h (FRAME_CHAIN,
3554         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3555         (i386go32_frame_saved_pc): Remove prototype.
3556         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3557         (get_longjmp_target): Remove prototype.
3558         * i386-tdep.h: Include "osabi.h".
3559         (enum i386_abi): Removed.
3560         (enum struct_return): New enum.
3561         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3562         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3563         sc_pc_offset members.
3564         (i386_gdbarch_register_os_abi): Remove prototype.
3565         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3566         I386_SSE_NUM_REGS): New defines.
3567         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3568         I386_SSE_SIZEOF_REGS): New defines.
3569         (i386_register_name, i386_register_byte, i386_register_raw_size):
3570         New prototypes.
3571         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3572         (i386bsd_sigtramp_saved_pc): New prototype.
3573         * i386-tdep.c: Don't include "elf-bfd.h".
3574         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3575         i386_frame_chain, i386_saved_pc_after_call): Make static.
3576         (i386_frame_saved_pc): Rewrite to call architecture dependent
3577         function to deal with signal handlers.  Make static.
3578         (i386go32_frame_saved_pc): Removed.
3579         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3580         Removed.
3581         (i386_get_longjmp_target): New function.
3582         (default_struct_convention, pcc_struct_convention,
3583         reg_struct_convention, valid_conventions, struct_convention): New
3584         variables.
3585         (i386_use_struct_convention): New function.
3586         (i386v4_sigtramp_saved_pc): Renamed to
3587         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
3588         (i386_pc_in_sigtramp): New function.
3589         (i386_abi_names): Removed.
3590         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3591         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3592         Removed.
3593         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3594         i386_gdbarch_register_os_abi): Removed.
3595         (struct i386_abi_handler): Removed.
3596         (i386_abi_handler_list): Removed.
3597         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3598         functions.
3599         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3600         i386_nw_init_abi): New functions.
3601         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3602         Use set_gdbarch_xxx() calls instead of relying on macros for a
3603         number of calls.
3604         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3605         (_initialize_i386_tdep): Add new 'struct-convcention' command.
3606         Register the various architecture variants defined in this file.
3607
3608 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
3609
3610         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3611         (struct main_type): Remove arg_types member.  Update comments for
3612         struct field.
3613         (TYPE_ARG_TYPES): Remove.
3614         (TYPE_FN_FIELD_ARGS): Update.
3615         (smash_to_method_type): Update prototype.
3616
3617         * c-typeprint.c (cp_type_print_method_args): Take method type
3618         instead of argument list.  Use new argument layout.  Simplify.
3619         (c_type_print_args): Use new argument layout.  Simplify.
3620         (c_type_print_base): Update call to cp_type_print_method_args.
3621         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3622         argument; use die->type instead.  Update call to
3623         smash_to_method_type.
3624         (read_structure_scope): Update call to dwarf2_add_member_fn.
3625         * gdbtypes.c (allocate_stub_method): Update comment.
3626         (smash_to_method_type): Take new NARGS and VARARGS arguments.
3627         Use new argument layout.
3628         (check_stub_method): Use new argument layout.  Don't count
3629         void as an argument.
3630         (print_arg_types): Update comments.  Use new argument layout.
3631         (recursive_dump_type): Don't print arg_types member.
3632         * hpread.c (hpread_read_struct_type): Use new argument layout.
3633         (fixup_class_method_type): Likewise.
3634         (hpread_type_lookup): Likewise.
3635         * stabsread.c (read_type): Update calls to read_args and
3636         smash_to_method_type.
3637         (read_args): Use new argument layout.  Simplify.
3638         * valops.c (typecmp): Use new argument layout.  Update parameters
3639         and comments.  Simplify.
3640         (hand_function_call): Use new argument layout.
3641         (search_struct_method): Update call to typecmp.
3642         (find_overload_match): Use new argument layout.
3643
3644 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3645
3646         * NEWS: Mention multithreaded debug support for gdbserver.
3647
3648 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3649
3650         * MAINTAINERS: Mention NEWS.
3651
3652 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3653
3654         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3655         (struct mips_objfile_private, compare_pdr_entries): New.
3656         (non_heuristic_proc_desc): Read the ".pdr" section if it
3657         is present.
3658
3659 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
3660
3661         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3662         (arm_debug): New static variable.
3663         (_initialize_arm_tdep): Add ``set debug arm'' command.
3664
3665 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
3666
3667         * Makefile.in (sim_arm_h): Define.
3668         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3669         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3670         (arm_register_sim_regno): New function, map an internal REGNUM
3671         onto a simulator register number.
3672         (arm_gdbarch_init): Set register_sim_regno.
3673
3674 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
3675
3676         * MAINTAINERS: Add self.
3677
3678 2002-06-11  Jim Blandy  <jimb@redhat.com>
3679
3680         * source.c (source_info): Mention whether the symtab has
3681         information about preprocessor macros.
3682
3683         Call the command `info macro', not `show macro'.
3684         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3685         Fix error message.
3686         (_initialize_macrocmd): Register `info_macro_command' in
3687         `infolist', not `showlist'.
3688
3689 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
3690
3691         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3692         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3693         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3694         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3695         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
3696         unconditionally.
3697         (set_mipsfpu_single_command, set_mipsfpu_double_command)
3698         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3699         (_initialize_mips_tdep): Remove dead code.
3700         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3701         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3702         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3703         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3704         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3705         MIPS_LAST_FP_ARG_REGNUM): Remove.
3706
3707 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
3708
3709         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3710         (unwind_tmp_obstack_free, parse_frame_info)
3711         (update_context, cfi_read_fp, cfi_write_fp)
3712         (cfi_frame_chain, cfi_init_extra_frame_info)
3713         (cfi_virtual_frame_pointer): Use the above function.
3714         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3715
3716 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
3717
3718         * v850-tdep.c (v850_type_is_scalar): New function.
3719         (v850_use_struct_convention): Match current gcc implementation
3720         as close as possible.
3721         (v850_push_arguments): Fix stack_offset handling.  Don't write
3722         struct_addr into register.  This is done by v850_store_struct_return.
3723         (v850_extract_return_value): Care for structs.
3724         (v850_store_return_value): Ditto.
3725         (v850_store_struct_return): Actually write address.
3726
3727 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
3728
3729         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3730         without debug information too.
3731
3732 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3733
3734         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3735         Make multi-arch pure.
3736         * gdbarch.h, gdbarch.c: Re-generate.
3737         * arm-tdep.c (arm_print_float_info): Update.
3738         * arch-utils.h (default_print_float_info): Update.
3739         * arch-utils.c (default_print_float_info): Update.
3740         * infcmd.c (float_info): Update call.
3741
3742 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3743
3744         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3745         the front of the initialize list.
3746
3747 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3748
3749         * infrun.c (struct inferior_status): Replace fields
3750         selected_frame_address and selected_level with field
3751         selected_frame_id.
3752         (save_inferior_status): Update.  Use get_frame_id.
3753         (struct restore_selected_frame_args): Delete.
3754         (restore_selected_frame): Update.  Use frame_find_by_id.
3755         (restore_inferior_status): Update.
3756
3757         * breakpoint.h (struct breakpoint): Change type of
3758         watchpoint_frame to frame_id.
3759         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
3760         call to get_current_frame.
3761         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
3762         get_current_frame.
3763         (watchpoint_check): Use frame_find_by_id.
3764
3765         * frame.h (record_selected_frame): Delete declaration.
3766         * stack.c (record_selected_frame): Delete function.
3767         
3768         * frame.h (struct frame_id): Define.
3769         (get_frame_id): Declare.
3770         (frame_find_by_id): Declare.
3771         * frame.c (frame_find_by_id): New function.
3772         (get_frame_id): New function.
3773
3774 2002-06-10  Andrey Volkov <avolkov@transas.com>
3775
3776         * ser-e7kpc.c: Fix duplicated define and call of 
3777         _initialize_ser_e7000pc
3778             
3779 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
3780
3781         * signals/signals.c (target_signal_from_host): Fix #ifdef
3782         SIGRTMIN case.
3783         (do_target_signal_to_host): Likewise.
3784
3785 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
3786
3787         * mips-tdep.c (mips_find_abi_section): New function.
3788         (mips_gdbarch_init): Call it.
3789
3790 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3791
3792         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3793         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
3794         after Andrew's 2002-06-08 gdbarch change.
3795
3796 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3797
3798         * i386-linux-nat.c (suppy_gregset): Don't supply
3799         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3800         register cache.
3801         (fill_gregset): Don't fetch it under the same circumstances.
3802
3803 2002-06-09  Andrew Cagney  <cagney@redhat.com>
3804
3805         * Makefile.in (callback_h): Define.
3806         (remote_sim_h): Update path to remote-sim.h.
3807         (remote-rdp.o): Add $(callback_h).
3808         (remote-sim.o): Use $(callback_h).
3809         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3810         * remote-rdp.c: Include "gdb/callback.h".
3811
3812 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3813
3814         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3815         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3816
3817 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3818
3819         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3820         * rdi-share/serpardr.c: Ditto.
3821         * rdi-share/unixcomm.c: Ditto.
3822         * rdi-share/serdrv.c: Ditto.
3823         * rdi-share/hostchan.h: Ditto.
3824         * rdi-share/hostchan.c: Ditto.
3825         * rdi-share/host.h: Ditto.
3826         * rdi-share/devsw.c: Ditto.
3827
3828         * objfiles.h: Change type of obj_private to void pointer.
3829         * pa64solib.c: Update copyright.  Don't include "assert.h", use
3830         strcmp instead of STREQ, use LONGEST, do not use PTR
3831         * somsolib.c: Ditto.
3832
3833         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3834         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3835         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3836
3837 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3838
3839         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3840         (default_get_saved_register): Delete function.
3841         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3842         generic_unwind_get_saved_register.
3843         * gdbarch.h, gdbarch.c: Re-generate.
3844         
3845 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3846
3847         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3848         generic_func_frame_chain_valid.
3849         * gdbarch.h, gdbarch.c: Re-generate.
3850         * blockframe.c (generic_func_frame_chain_valid): Only check
3851         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
3852         passing FP to PC_IN_CALL_DUMMY.
3853         Fix PR gdb/360.
3854
3855 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3856
3857         * gdbarch.sh (struct gdbarch_data): Add field init_p.
3858         (register_gdbarch_data): Initialize init_p.
3859         (gdbarch_data): Initialize data pointer using the init function.
3860         (init_gdbarch_data): Delete function.
3861         (gdbarch_update_p): Update.
3862         (initialize_non_multiarch): Update.
3863         (struct gdbarch): Add field initialized_p.
3864         * gdbarch.h, gdbarch.c: Re-generate.
3865
3866 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
3867
3868         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3869         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3870         better do the things actually here.
3871         * x86-64-tdep.c (x86_64_register_name2nr): New.
3872         (x86_64_register_name): Renamed to x86_64_register_nr2name.
3873         (x86_64_gdbarch_init): Respect the above change.
3874         * x86-64-tdep.h (x86_64_register_name2nr)
3875         (x86_64_register_nr2name): Add prototypes.
3876         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3877
3878 2002-06-06  Michael Snyder  <msnyder@redhat.com>
3879
3880         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3881         Delete extra braces and re-indent.
3882         (d10v_store_return_value): Char return values
3883         must be shifted over by one byte in R0.
3884         (d10v_extract_return_value): Delete extra braces, re-indent.
3885
3886 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
3887
3888         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3889         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3890         (d10v_integer_to_address): Rewrite.
3891         (d10v_frame_init_saved_regs): When reading fp and sp registers use
3892         the d10v specific functions which take care of converting to the
3893         correct space.
3894
3895 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
3896
3897         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3898         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3899
3900 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
3901
3902         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3903         includes.
3904         * config/tm-linux.h: Ditto.
3905         * config/alpha/tm-alphalinux.h: Ditto.
3906         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3907         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3908         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3909         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3910         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3911         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3912         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3913         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3914         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3915         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3916         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3917         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3918         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3919         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3920         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3921         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3922         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3923         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3924         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3925         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3926         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3927         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3928         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3929         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3930         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3931         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3932         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3933         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3934         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3935         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3936         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3937         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3938         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3939         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3940         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3941         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3942         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3943
3944 2002-05-04  Aidan Skinner <aidan@velvet.net>
3945
3946         * ada-exp.tab.c: New file
3947         * ada-exp.y: New file
3948         * ada-lang.c: New file
3949         * ada-lang.h: New file
3950         * ada-lex.c: New file
3951         * ada-lex.l: New file
3952         * ada-tasks.c: New file
3953         * ada-typeprint.c: New file
3954         * ada-valprint.c: New file
3955         
3956 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
3957
3958         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3959         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3960
3961 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
3962
3963         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3964         insetead of ppc-linux-tdep.o.
3965         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3966         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3967
3968 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
3969
3970         2002-05-07 Christian Groessler <chris@groessler.org>
3971         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3972         bit register contents for little endian hosts.
3973
3974 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
3975
3976         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3977         any maintainer.
3978
3979 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
3980
3981         * gdbarch.h: Regenerate.
3982
3983 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
3984
3985         * MAINTAINERS: Add everyone to write-after-approval list.
3986
3987 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
3988
3989         * stack.c (frame_info): Use frame_register_unwind instead of
3990         saved_regs.  Mention when the SP is on the stack or in a register.
3991
3992         * frame.h (frame_register_unwind_ftype): Define.  Document.
3993         (struct frame_info): Add field register_unwind and
3994         register_unwind_cache.
3995         (frame_register_unwind): Declare.
3996         (generic_unwind_get_saved_register): Declare.
3997
3998         * frame.c (frame_register_unwind): New function.
3999         (generic_unwind_get_saved_register): New function.
4000
4001         * blockframe.c (generic_call_dummy_register_unwind): New function.
4002         (frame_saved_regs_register_unwind): New function.
4003         (set_unwind_by_pc): New function.
4004         (create_new_frame): New function.
4005         (get_prev_frame): New function.
4006
4007 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
4008
4009         * a29k-share/: Delete directory.
4010         * remote-vx29k.c: Delete file.
4011
4012 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4013
4014         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4015         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4016
4017 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4018
4019         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4020         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4021         (sparc64nbsd-nat.o)
4022         (sparcnbsd-nat.o)
4023         (sparcnbsd-tdep.o): New dependency lists.
4024         * NEWS: Note new UltraSPARC NetBSD native configuration.
4025         * configure.host (sparc64-*-netbsd*): New host.
4026         * configure.tgt (sparc-*-netbsdelf*)
4027         (sparc-*-netbsd*): Set gdb_target to nbsd.
4028         (sparc64-*-netbsd*): New target.
4029         * sparc64nbsd-nat.c: New file.
4030         * sparcnbsd-nat.c: New file.
4031         * sparcnbsd-tdep.c: New file.
4032         * sparcnbsd-tdep.h: New file.
4033         * config/sparc/nbsd.mt: New file.
4034         * config/sparc/nbsd64.mh: New file.
4035         * config/sparc/nbsd64.mt: New file.
4036         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4037         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4038         (HOST_IPC): Remove.
4039         * config/sparc/nbsdaout.mt: Remove.
4040         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4041         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4042         (HOST_IPC): Remove.
4043         * config/sparc/nbsdelf.mt: Remove.
4044         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
4045         sparc-nat.c compatiblity defines.
4046         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
4047         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4048         * config/sparc/tm-nbsd64.h: New file.
4049         * config/sparc/tm-nbsdaout.h: Remove.
4050         * config/sparc/xm-nbsd.h: Remove.
4051
4052 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4053
4054         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4055         * sparc-tdep.c: Include osabi.h.
4056         (gdbarch_tdep): Add osabi member.
4057         (_initialize_sparc_tdep): Use gdbarch_register.
4058         (sparc_gdbarch_init): Use generic OS ABI framework.
4059         (sparc_dump_tdep): New function.
4060
4061 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
4062
4063         * corefile.c (do_captured_read_memory_integer): Return non-zero
4064         result.
4065         (safe_read_memory_integer): Copy result of memory read when
4066         status is non-zero.  Also, add comments.
4067
4068 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
4069
4070         * Makefile.in (ppc_tdep_h): Define.
4071         (ppc-linux-nat.o)
4072         (ppc-linux-tdep.o)
4073         (rs6000-tdep.o): Use $(ppc_tdep_h).
4074         (ppc-sysv-tdep.o)
4075         (ppcnbsd-nat.o)
4076         (ppcnbsd-tdep.o): New dependency lists.
4077         * ppc-tdep.h: Use generic OS ABI framework.
4078         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4079         (ppc_linux_init_abi): New functions.
4080         (ppc_sysv_abi_broken_use_struct_convention)
4081         (ppc_sysv_abi_use_struct_convention)
4082         (ppc_sysv_abi_push_arguments): Move to...
4083         * ppc-sysv-tdep.c: ...here.
4084         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4085         * rs6000-tdep.c (process_note_abi_tag_sections)
4086         (get_elfosabi): Remove.
4087         (rs6000_gdbarch_init): Use generic OS ABI framework.
4088         (rs6000_dump_tdep): New function.
4089         (_initialize_rs6000_tdep): Use gdbarch_register.
4090         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4091         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4092         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4093         of ppc-linux-tdep.o.
4094         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4095         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4096         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4097         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4098         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4099         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4100
4101 2002-05-29  Jim Blandy  <jimb@redhat.com>
4102
4103         * macroscope.c (default_macro_scope): Put `void' in empty argument
4104         list.
4105
4106 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
4107
4108         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4109         * arch-utils.c: Include "sim-regno.h".
4110         * gdbarch.sh: Don't include "sim-regno.h".
4111         * gdbarch.h, gdbarch.c: Regenerate.
4112         * sim-regno.h (legacy_register_sim_regno): Move declaration from
4113         here.
4114         * arch-utils.h (legacy_register_sim_regno): To here.
4115         * remote-sim.c (legacy_register_sim_regno): Move function from
4116         here.
4117         * arch-utils.c (legacy_register_sim_regno): To here.
4118
4119 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
4120
4121         * sim-regno.h: New file.
4122         * Makefile.in (sim_regno_h): Define.
4123         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4124         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4125         (legacy_register_sim_regno): New function.
4126         (one2one_register_sim_regno): New function.
4127         (gdbsim_fetch_register): Rewrite.
4128         (gdbsim_store_register): Only store a register when
4129         REGISTER_SIM_REGNO is valid.
4130         * d10v-tdep.c: Include "sim-regno.h".
4131         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4132         (d10v_ts3_register_sim_regno): Ditto.
4133         * gdbarch.sh: Include "sim-regno.h".
4134         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4135         * gdbarch.h, gdbarch.c: Regenerate.
4136         * arch-utils.h (default_register_sim_regno): Delete declaration.
4137         * arch-utils.c (default_register_sim_regno): Delete function.
4138
4139 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
4140
4141         * ppcnbsd-nat.c: Rewrite.
4142         * ppcnbsd-tdep.c: New file.
4143         * ppcnbsd-tdep.h: New file.
4144         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4145         solib.o, and solib-svr4.o.
4146         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4147         nbsd-tdep.o, and corelow.o.
4148
4149 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
4150
4151         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4152         `tr' and `sed'.  Mention that `broken' targets are not expected to
4153         build.
4154
4155 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
4156
4157         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4158         Let PC point right after the prologue before looking up symbols.
4159         
4160 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
4161
4162         * i386-tdep.c (i386_register_virtual_type): Return 
4163         builtin_type_vec128i for SSE registers.
4164
4165         * gdbtypes.h (builtin_type_vec128i): Declare.
4166
4167         * gdbtypes.c (build_builtin_type_vec128i): New function.
4168         (builtin_type_v2_double, builtin_type_v4_int64): New types.
4169         (builtin_type_vec128i): New type for SSE2 128-bit registers.
4170         (build_gdbtypes): Initialize new builtin vector types.
4171         (_initialize_gdbtypes): Register new vector types with gdbarch.
4172
4173 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4174
4175         * MAINTAINERS: ns32k is not longer an obsolete candidate,
4176         since it has been multi-arch'd.
4177         * NEWS: Note that ns32k-*-* is now partial multi-arch.
4178         Move Alpha and VAX multi-arch news entries to same section
4179         as other multi-arch news.
4180
4181 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4182
4183         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4184         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
4185         static.  Rename some register numbers to put them in ns32k-tdep
4186         private namespace.
4187         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4188         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4189         functions.
4190         (_initialize_ns32k_tdep): Use gdbarch_register.
4191         * ns32k-tdep.h: New file.
4192         * ns32knbsd-tdep.c: New file.
4193         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4194         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4195         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4196         REGISTER_BYTES, REGISTER_BYTE): Remove.
4197         * config/ns32k/tm-ns32k.h: New file.
4198         * config/ns32k/tm-umax.h: Remove.
4199
4200 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4201
4202         * ns32k-tdep.c (ns32k_saved_pc_after_call,
4203         ns32k_store_struct_return, ns32k_extract_return_value,
4204         ns32k_store_return_value, ns32k_extract_struct_value_address): New
4205         functions.
4206         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4207         ns32k_saved_pc_after_call.
4208         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4209         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4210         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4211         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4212         ns32k_extract_struct_value_address.
4213
4214 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4215
4216         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4217         ns32k_fix_call_dummy): New.
4218         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4219         ns32k_call_dummy_words.
4220         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4221         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4222         CALL_DUMMY_NARGS): Remove.
4223         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4224
4225 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4226
4227         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4228         ns32k_frame_saved_pc, ns32k_frame_args_address,
4229         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4230         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4231         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4232         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4233         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4234         (BREAKPOINT): Remove..
4235         (FRAME_CHAIN): Define as ns32k_frame_chain.
4236         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4237         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4238         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4239         (FRAME_FIND_SAVED_REGS): Remove.
4240         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4241         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4242         (POP_FRAME): Define as ns32k_pop_frame.
4243
4244 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4245
4246         * ns32k-tdep.c (ns32k_register_byte_32082,
4247         ns32k_register_byte_32382, ns32k_register_raw_size,
4248         ns32k_register_virtual_size, ns32k_register_virtual_type): New
4249         functions.
4250         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4251         ns32k_register_byte_32382.
4252         * config/ns32k/tm-umax.h: Update copyright years.
4253         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4254         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4255         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4256         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4257         (ns32k_get_enter_addr): Fix prototype.
4258
4259 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4260
4261         * ns32k-tdep.c: Update copyright years.
4262         (ns32k_register_name_32082): New function.
4263         (ns32k_register_name_32382): Ditto.
4264         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4265         (REGISTER_NAME): Define as ns32k_register_name_32382.
4266         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4267         (REGISTER_NAME): Define as ns32k_register_name_32082.
4268
4269 2002-05-24  Jim Blandy  <jimb@redhat.com>
4270
4271         * dwarf2read.c (free_line_header): Use xfree, not free.
4272
4273 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
4274
4275         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4276         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4277
4278 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4279
4280         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4281
4282 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4283
4284         From Ross Alexander at NEC Europe:
4285         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4286
4287 2002-05-23  Michael Snyder  <msnyder@redhat.com>
4288
4289         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4290         for input, rather than parse_and_eval_address.  
4291
4292 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4293
4294         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4295         * Makefile.in (sim_d10v_h): Update definition.
4296
4297 2002-05-24  Andrew Cagney  <cagney@redhat.com>
4298
4299         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4300         change `2002-05-22 Michael Snyder' below.
4301         (d10v_push_arguments): Ditto.
4302         (d10v_extract_return_value): Ditto.
4303
4304 2002-05-23  Jim Blandy  <jimb@redhat.com>
4305
4306         * macrotab.c (check_for_redefinition): Don't complain if the new
4307         definition is the same as the previous one.  Take more arguments
4308         to allow the comparison.
4309         (macro_define_object, macro_define_function): Pass more arguments
4310         to check_for_redefinition.
4311
4312 2002-05-22  Michael Snyder  <msnyder@redhat.com>
4313
4314         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4315         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4316         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4317         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4318         Don't bail if return_pc is PC_IN_CALL_DUMMY.
4319         Add a temp variable to save a call (and a memory read).
4320         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4321         if possible (so that PC_IN_CALL_DUMMY will work).
4322
4323 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
4324
4325         * MAINTAINERS: Remove status `OBSOLETE' from v850.
4326
4327 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
4328
4329         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4330         fde->cie_ptr.
4331         (dwarf2_build_frame_info): Corrected handling of eh_frame.
4332         (dwarf2_build_frame_info): Add offset to fde->initial_location 
4333         so that frames of shared libraries are mapped correctly.
4334         (execute_stack_op): Change type of 'result' from ULONGEST to
4335         CORE_ADDR.
4336         
4337 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4338
4339         * config/alpha/tm-nbsd.h: Include solib.h.
4340
4341 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4342
4343         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4344         assumptions about the host's byte order.
4345
4346 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4347
4348         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4349         to dependency list.
4350         * alphanbsd-tdep.c: Include solib-svr4.h.
4351         * shnbsd-tdep.c: Ditto.
4352
4353 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4354
4355         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4356         nbsd-tdep.h to dependency list.
4357         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4358         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4359         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4360         nbsdaout.mh and nbsdelf.mh consistently.
4361         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4362         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4363         nbsdaout.mt and nbsdelf.mh consistently.
4364         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
4365         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4366         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4367         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
4368         a.out shared library stuff from here...
4369         * config/nm-nbsdaout.h: ...to here.
4370         * config/tm-nbsd.h: Remove.
4371         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4372         * config/arm/nbsd.mh: Remove.
4373         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4374         nbsd-tdep.o.
4375         * config/arm/nbsdaout.mh: New file. 
4376         * config/arm/nbsdelf.mh: New file.
4377         * config/arm/nm-nbsdaout.h: New file.
4378         * config/i386/nbsd.mh: Remove.
4379         * config/i386/nbsd.mt: Remove.
4380         * config/i386/nbsdaout.mh: New file.
4381         * config/i386/nbsdaout.mt: New file.
4382         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4383         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4384         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
4385         i386_register_u_addr): Remove.
4386         * config/i386/nm-nbsdaout.h: New file.
4387         * config/i386/nm-nbsdelf.h: Remove.
4388         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4389         (USE_STRUCT_CONVENTION): Remove.
4390         * config/i386/tm-nbsdaout.h: New file.
4391         * config/i386/tm-nbsdelf.h: Remove.
4392         * config/m68k/nbsd.mh: Remove.
4393         * config/m68k/nbsd.mt: Remove.
4394         * config/m68k/nbsdaout.mh: New file.
4395         * config/m68k/nbsdaout.mt: New file. 
4396         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4397         * config/m68k/nm-nbsdaout.h: New file.
4398         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4399         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4400         * config/ns32k/nbsd.mh: Remove.
4401         * config/ns32k/nbsd.mt: Remove. 
4402         * config/ns32k/nbsdaout.mh: New file.
4403         * config/ns32k/nbsdaout.mt: New file.
4404         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
4405         * config/ns32k/nm-nbsdaout.h: New file.
4406         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
4407         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4408         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4409         (SVR4_SHARED_LIBS): Remove.
4410         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4411         * config/sparc/nbsd.mh: Remove.
4412         * config/sparc/nbsd.mt: Remove.
4413         * config/sparc/nbsdaout.mh: New file.
4414         * config/sparc/nbsdaout.mt: New file.
4415         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4416         * config/sparc/nbsdelf.mt: New file.
4417         * config/sparc/nm-nbsdaout.h: New file.   
4418         * config/sparc/nm-nbsdelf.h: Remove.
4419         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4420         * config/sparc/tm-nbsdaout.h: New file.
4421
4422 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4423
4424         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4425         mipsnbsd-tdep.c
4426         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4427
4428 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4429
4430         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4431         shnbsd-nat.c.
4432         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4433
4434 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4435
4436         * NEWS: Note new MIPS NetBSD native configuration. 
4437         * configure.host (mips*-*-netbsd*): New host. 
4438         * configure.tgt (mips*-*-netbsd*): New target. 
4439         * mipsnbsd-nat.c: New file.
4440         * mipsnbsd-tdep.c: New file.
4441         * mipsnbsd-tdep.h: New file.
4442         * config/mips/nbsd.mh: New file.
4443         * config/mips/nbsd.mt: New file.
4444         * config/mips/nm-nbsd.h: New file.
4445         * config/mips/tm-nbsd.h: New file.
4446
4447 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4448
4449         * Makefile.in (SFILES): Add osabi.c.
4450         (COMMON_OBS): Add osabi.o.
4451         (osabi.o): New dependency list.
4452         * osabi.c: New file.
4453         * osabi.h: New file.
4454         * doc/gdbint.texinfo: Document new generic OS ABI framework.
4455
4456         * Makefile.in (alpha_tdep_h): Define and use instead of
4457         alpha-tdep.h.
4458         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4459         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4460         Remove.
4461         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4462         * alpha-tdep.h: Include osabi.h.
4463         (alpha_abi): Remove.
4464         (gdbarch_tdep): Use generic OS ABI framework.
4465         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4466         gdbarch_register_osabi.
4467         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4468         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4469         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4470
4471         * Makefile.in (sh_tdep_h): Add osabi.h.
4472         * sh-tdep.h (sh_osabi): Remove.
4473         (gdbarch_tdep): Use generic OS ABI framework.
4474         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4475         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4476         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4477         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4478
4479         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4480         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4481         gdbarch_register_osabi.
4482         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4483         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4484         (get_elfosabi): Rename to...
4485         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
4486         ABI framework support routines.
4487         (arm_gdbarch_init): Use generic OS ABI framework.
4488         (arm_dump_tdep): Likewise.
4489         (_initialize_arm_tdep): Likewise.
4490         * arm-tdep.h: Include osabi.h.
4491         (arm_abi): Remove.
4492         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
4493         osabi member.
4494         (arm_gdbarch_register_os_abi): Remove prototype.
4495         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4496         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4497
4498         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4499         * mips-tdep.c: Include osabi.h.
4500         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4501         OS ABI framework.
4502
4503 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
4504
4505         * h8300-tdep.c: Fix formatting.
4506
4507 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
4508
4509         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4510         printing vector registers.
4511
4512 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4513
4514         From Fernando Nasser:
4515         * remote.c (remote_async_open_1): Re-throw the exception when the
4516         connection fails.
4517         (remote_cisco_open): Ditto.
4518         (remote_open_1): Ditto.
4519
4520 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4521
4522         * remote.c (remote_start_remote_dummy): Add uiout parameter.
4523         (remote_start_remote): Add uiout parameter.  Pass through to
4524         remote_start_remote_dummy.
4525         (remote_open_1): Use catch_exception instead of catch_errors.
4526         (remote_async_open_1): Ditto.
4527         (remote_cisco_open): Ditto.
4528
4529 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4530
4531         * remote.c (remote_start_remote): Replace PTR with void pointer.
4532         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
4533         static.
4534
4535 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
4536
4537         * gdb_indent.sh: Allow the script to be run in the sim directory.
4538
4539 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
4540
4541         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4542         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4543
4544         * corelow.c (core_open): Only call set_gdbarch_from_file if
4545         exec_bfd is NULL.
4546
4547 2002-05-17  Andrey Volkov <avolkov@transas.com>
4548
4549         * h8300-tdep.c: Add support of EXR register
4550         * config/h8300/tm-h8300.h: Ditto. 
4551         
4552 2002-05-17  Andrey Volkov <avolkov@transas.com>
4553
4554         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
4555         
4556 2002-05-17  Andrey Volkov <avolkov@transas.com>
4557
4558         * h8300-tdep.c: Change literal regnums to REGNO.
4559         
4560 2002-05-17  Jim Blandy  <jimb@redhat.com>
4561
4562         * NEWS: Note addition of macro support.
4563
4564         Expand preprocessor macros in C expressions.
4565         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4566         (scan_macro_expansion, scanning_macro_expansion,
4567         finished_macro_expansion): New function declarations.
4568         (expression_macro_lookup_func, expression_macro_lookup_baton): New
4569         variable declarations.
4570         * parser-defs.h (expression_context_pc): New declaration.
4571         * parse.c (expression_context_pc): New variable.
4572         (parse_exp_1): Set expression_context_pc, as well as
4573         expression_context_block.
4574         * c-exp.y (yylex): If we're not already reading the result of a
4575         macro expansion, try to macro-expand the next token.  When we're
4576         done scanning a macro expansion, switch back to the mainline text.
4577         Commas and `if's in a macro's expansion don't terminate the input.
4578         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4579         (macro_original_text, macro_expanded_text,
4580         expression_macro_lookup_func, expression_macro_lookup_baton): New
4581         variables.
4582         (scan_macro_expansion, scanning_macro_expansion,
4583         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4584         c_preprocess_and_parse): New functions.
4585         (c_language_defn, cplus_language_defn, asm_language_defn): Call
4586         c_preprocess_and_parse, instead of c_parse.
4587         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4588         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4589
4590 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
4591
4592         * sh-tdep.c (gdb_print_insn_sh64): Delete.
4593         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4594         (sh_gdbarch_init): Always use gdb_print_insn_sh.
4595
4596 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
4597
4598         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
4599
4600 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
4601
4602         * Makefile.in (sh_tdep_h): Define and use.
4603         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4604         register enum): Move to...
4605         * * sh-tdep.h: ...here.
4606         * sh-tdep.c: Include sh-tdep.h.
4607         * sh3-rom.c: Likewise.
4608         * shnbsd-tdep.c: Likewise.
4609
4610 2002-05-16  Michael Snyder  <msnyder@redhat.com>
4611
4612         * arm-tdep.c: Spelling fix in comment.
4613
4614 2002-05-16  Jim Blandy  <jimb@redhat.com>
4615
4616         Add commands for manually expanding macros and showing their
4617         definitions.
4618         * macrocmd.c, macroscope.c, macroscope.h: New files.
4619         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4620         (macroscope_h): New variable.
4621         (HFILES_NO_SRCDIR): Add macroscope.h.
4622         (COMMON_OBS): Add macrocmd.o, macroscope.o.
4623         (macroscope.o, macrocmd.o): New rules.
4624
4625         Teach the Dwarf 2 reader to read macro information.
4626         * dwarf2read.c: #include "macrotab.h".
4627         (dwarf_macinfo_buffer): New variable.
4628         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4629         dwarf_macinfo_size.
4630         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4631         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4632         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4633         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4634         dwarf2_macro_spaces_in_definition): New complaints.
4635         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4636         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4637         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4638         the partial symbol table.
4639         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4640         from what's recorded in the partial symbol table.
4641         (read_file_scope): If the compilation unit has a
4642         `DW_AT_macro_info' attribute, read its macro information.
4643         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4644
4645 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
4646
4647         Fix PR gdb/546
4648         * ser-tcp.c: Don't include <netinet/udp.h>.
4649
4650 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
4651
4652         * MAINTAINERS: Update my email address.
4653
4654 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
4655
4656         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4657         include file of the same name.
4658
4659 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4660
4661         * configure.tgt: Mark v850 as multi-arched.
4662         * config/v850/tm-v850.h: Remove file.
4663         * config/v850/v850.mt: Eliminate TM_FILE.
4664
4665 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4666
4667         * v850-tdep.c: Full multi-arch.
4668         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4669         Define GDB_MULTI_ARCH to 2.
4670
4671 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4672
4673         * p-exp.y (current_type): New static variable.
4674         Carries the type of the expression at the position that is parsed.
4675         (push_current_type, pop_current_type): Two new functions. Used
4676         to store/restore current_type in expression on specific tokens.
4677         (search_field): New static variable. Set to one after parsing a point
4678         as at that point only a FIELDNAME token should be searched.
4679         (FIELDNAME): New token. After a point only a token belonging to 
4680         current_type type definition is allowed.
4681         (all over token rules): reset and change current_type according
4682         to rules.
4683         (exp '[' rule): insert implicit array index field if
4684         exp is a pascal string type.
4685
4686 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4687
4688         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
4689         frame info.  Use frame_info's saved_regs instead of matching member
4690         in extra_frame_info throughout.
4691         (v850_frame_init_saved_regs): New function.
4692         (v850_init_extra_frame_info): Move most functionality into
4693         v850_frame_init_saved_regs().
4694         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4695         (v850_frame_find_saved_regs): Remove declaration.
4696         (FRAME_FIND_SAVED_REGS): Remove definition.
4697         (v850_frame_init_saved_regs): Add declaration.
4698         (FRAME_INIT_SAVED_REGS): Add definition.
4699
4700 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4701
4702         * v850-tdep.c: Begin multi-arch'ing v850.
4703         (v850_target_architecture_hook): Remove function.
4704         (v850_gdbarch_init): New function.  Add code previously in
4705         v850_target_architecture_hook().
4706         (_initialize_v850_tdep): Don't  set target_architecture_hook.
4707         Call register_gdbarch_init() instead.
4708
4709 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
4710
4711         * gdbtypes.h (struct cplus_struct_type): Remove args field.
4712         * hpread.c (hpread_read_struct_type): Remove assignments to args.
4713         (fixup_class_method_type): Likewise.
4714
4715 2002-05-15  Jim Blandy  <jimb@redhat.com>
4716
4717         Add macro structures to GDB's symbol tables.  Nobody puts anything
4718         in them yet.
4719         * symtab.h (struct symtab): New member: `macro_table'.
4720         * buildsym.h (pending_macros): New global variable.
4721         * buildsym.c: #include "macrotab.h".
4722         (buildsym_init): Initialize `pending_macros'.
4723         (end_symtab): If we found macro information while reading a CU's
4724         debugging info, do build a symtab structure for it.  Make the
4725         symtab point to the macro information, and clear the
4726         `pending_macros' pointer which held it while we were reading the
4727         debug info.
4728         (really_free_pendings): Free any pending macro table.
4729         * objfiles.h (struct objfile): New member: `macro_cache'.
4730         * objfiles.c (allocate_objfile): Set allocate and free functions
4731         for the macro cache's objstack.
4732         (free_objfile): Empty the macro cache's obstack.
4733         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4734         set new allocate and free functions for it.
4735         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4736         free functions for the macro cache's objstack.  (Why is this
4737         function building its own objfile?)
4738         * symmisc.c (print_objfile_statistics): Print statistics on the
4739         macro bcache.
4740         * Makefile.in: Note that buildsym.o depends on macrotab.h.
4741
4742 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
4743
4744         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4745         (REGISTER_U_ADDR): Delete definition.
4746         (arm_register_u_addr): Delete declaration.
4747
4748 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
4749
4750         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4751         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4752
4753 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
4754
4755         * regcache.c (register_valid): Revise comments refering to "Not
4756         available" and "unavailable".
4757         * frame.c (frame_register_read): Ditto.
4758         * findvar.c (value_of_register): Ditto.
4759
4760 2002-05-15  Andrew Cagney  <cagney@redhat.com>
4761
4762         * Makefile.in (remote_sim_h): Replace remote-sim_h.
4763         (remote-sim.o): Update dependencies.
4764         (d10v-tdep.o): Specify dependencies.
4765         (sim_d10v_h): Define.
4766
4767 2002-05-14  Jim Blandy  <jimb@redhat.com>
4768
4769         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4770         * macrotab.c (macro_lookup_inclusion, find_definition,
4771         new_macro_table): Same.
4772         
4773         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4774         not `! strcmp ()'.  This is a dubious improvement.
4775         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4776
4777         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4778         although it's not necessary, to avoid a warning.
4779
4780 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
4781
4782         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4783         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4784         TYPE_INSTANCE_FLAGS.
4785         (struct main_type): New.
4786         (struct type): Move most members to struct main_type.  Change
4787         cv_type and as_type to new type_chain member.  Add instance_flags.
4788         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4789         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4790         (finish_cv_type): Remove prototype.
4791         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
4792         Set TYPE_CHAIN.
4793         (alloc_type_instance): New function.
4794         (smash_type): New function.
4795         (make_pointer_type, make_reference_type, make_function_type)
4796         (smash_to_member_type, smash_to_method_type): Call smash_type.
4797         (make_qualified_type): New function.
4798         (make_type_with_address_space): Call make_qualified_type.
4799         (make_cv_type): Likewise.
4800         (finish_cv_type): Remove unnecessary function.
4801         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
4802         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4803         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4804         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4805         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4806         * hpread.c (hpread_read_struct_type): Likewise.
4807         * stabsread.c (read_struct_type): Likewise.
4808
4809 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
4810
4811         * configure.tgt: Add a catch all sh* target, for cases like
4812         sh[2,3,4]-elf and sh-hms.
4813
4814 2002-05-14  Keith Seitz  <keiths@redhat.com>
4815
4816         * event-loop.c (create_file_handler): Don't do anything but
4817         update data when we are given a fd which we are already
4818         monitoring.
4819
4820 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
4821
4822         * dwarf2cfi.c (context_cpy): Copy registers correctly.
4823         (update_context): Use __func__ in warnings.
4824         
4825 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
4826
4827         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
4828         and tcp_close to net_open and net_close.
4829         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
4830         using UDP if requested.  Don't try to disable Nagle on UDP
4831         sockets.
4832         * remote.c (remote_serial_open): New function.  Warn about UDP.
4833         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4834
4835 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
4836
4837         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4838
4839 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
4840
4841         * configure.tgt: Remove sh-hms target.
4842         * MAINTAINERS: Don't list sh-hms as a separate target.
4843
4844 2002-05-13  Jim Blandy  <jimb@redhat.com>
4845
4846         Add first preprocessor macro-expansion files.
4847         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4848         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4849         (splay_tree_h, macroexp_h, macrotab_h): New variable.
4850         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4851         (COMMON_OBS): Add macrotab.o, macroexp.o.
4852         (macroexp.o, macrotab.o): New rules.
4853
4854 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
4855
4856         * config/m88k/tm-m88k.h: Update copyright.
4857         (m88k_target_write_pc): Declare
4858         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4859         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4860         (SHIFT_INST_REGS): Update definition.
4861         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
4862         using old definition of TARGET_WRITE_PC.
4863         * regcache.c (generic_target_write_pc): Delete code handling
4864         NNPC_REGNUM.
4865         * gdbarch.sh (NNPC_REGNUM): Delete.
4866         * gdbarch.h, gdbarch.c: Regenerate.
4867
4868 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
4869
4870         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4871         builtin reg number.
4872
4873 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
4874
4875         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4876         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4877         (gen_address_of, gen_struct_ref, gen_repeat): Use type
4878         access macros.
4879         * c-typeprint.c (cp_type_print_method_args): Likewise.
4880         (c_type_print_args): Likewise.
4881         * d10v-tdep.c (d10v_push_arguments): Likewise.
4882         (d10v_extract_return_value): Likewise.
4883         * expprint.c (print_subexp): Likewise.
4884         * gdbtypes.c (lookup_primitive_typename): Likewise.
4885         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4886         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4887         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4888         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4889         (TYPE_VECTOR): Likewise.
4890         * hpread.c (hpread_read_struct_type)
4891         (fix_static_member_physnames, fixup_class_method_type)
4892         (hpread_type_lookup): Likewise.
4893         * mdebugread.c (parse_symbol, parse_type): Likewise.
4894         * p-lang.c (is_pascal_string_type): Likewise.
4895         * valops.c (hand_function_call): Likewise.
4896         * x86-64-tdep.c (classify_argument): Likewise.
4897
4898         * hpread.c (hpread_read_function_type)
4899         (hpread_read_doc_function_type): Call replace_type.
4900         * dstread.c (create_new_type): Delete.
4901         (decode_dst_structure, process_dst_function): Call alloc_type.
4902         Use type access macros.
4903
4904 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
4905
4906         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4907         the're not supported by the current architecture.
4908         (i387_fill_fxsave): Likewise.
4909
4910 2002-05-12  Fred Fish  <fnf@redhat.com>
4911
4912         * symfile.c (default_symfile_offsets): Arrange for uninitialized
4913         sect_index_xxx members to index the first slot in section_offsets
4914         if all of the section_offsets are zero.
4915
4916 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
4917
4918         * configure.tgt (sparc-*openbsd): Remove entry accidentially
4919         checked in with last change.
4920
4921 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
4922
4923         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4924         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
4925         config.sub.
4926
4927 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
4928
4929         * Makefile.in: Update dependencies.
4930
4931 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
4932
4933         * language.c (local_hex_string_custom): Simplify.  Do not depend
4934         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4935
4936         * memattr.c (mem_info_command): Replace calls to
4937         longest_local_hex_string and longest_local_hex_string_custom.
4938         * buildsym.c (make_blockvector): Ditto.
4939         * solib.c (info_sharedlibrary_command): Ditto.
4940         * tracepoint.c (tracepoints_info): Ditto.
4941         * symtab.c (print_msymbol_info): Ditto.
4942
4943         * language.c (local_hex_string): Delete.
4944         (local_hex_string_custom): Delete.
4945         (longest_local_hex_string): Rename to local_hex_string.
4946         (longest_local_hex_string_custom): Rename to
4947         local_hex_string_custom.
4948         * language.h (local_hex_string): Change parameter type to LONGEST.
4949         (local_hex_string_custom): Ditto.
4950         (longest_local_hex_string): Delete declaration.
4951         (longest_local_hex_string_custom): Ditto.
4952
4953         * solib.c: Update copyright.
4954         * memattr.c: Update copyright.
4955         
4956 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
4957
4958         * arch-utils.h (legacy_register_to_value): Declare.
4959         (legacy_value_to_register): Declare.
4960         (legacy_convert_register_p): Declare.
4961         * arch-utils.c (legacy_register_to_value): New function.
4962         (legacy_value_to_register): New function.
4963         (legacy_convert_register_p): New function.
4964
4965         * gdbarch.sh (REGISTER_TO_VALUE): Define.
4966         (VALUE_TO_REGISTER): Define.
4967         (CONVERT_REGISTER_P): Define.
4968         * gdbarch.h, gdbarch.c: Regenerate.
4969
4970         * valops.c (value_assign): Use CONVERT_REGISTER_P and
4971         VALUE_TO_REGISTER.
4972         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4973         CONVERT_REGISTER_P.
4974
4975 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
4976             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
4977
4978         * Makefile.in: Update dependencies for valops.c.
4979         * valops.c: Include "gdb_assert.h".
4980         (typecmp): Skip THIS parameter to methods.
4981         (find_method_list): Remove static_memfuncp argument,
4982         update callers.  Check for stub methods.
4983         (find_value_oload_method_list): Don't set *static_memfuncp.
4984         (find_overload_match): Don't check for stub methods.  Assert
4985         that methods are not stubbed.  Handle static methods.
4986         (value_find_oload_method_list): Remove static_memfuncp argument.
4987         * gdbtypes.c (check_stub_method): Do not add THIS pointer
4988         to the argument list for static stub methods.
4989         * value.h (value_find_oload_method_list): Update prototype.
4990
4991 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
4992
4993         * arch-utils.h (generic_register_size): Declare.
4994         (generic_register_raw_size, generic_register_virtual_size): Delete
4995         declarations.
4996         * arch-utils.c (generic_register_raw_size): Delete.
4997         (generic_register_size): New function.
4998         (generic_register_virtual_size): Delete.
4999
5000         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5001         default generic_register_size.
5002         * gdbarch.h, gdbarch.c: Re-generate.
5003         
5004         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5005         register_virtual_size.
5006         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5007         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5008
5009 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5010
5011         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5012         * gdbarch.h, gdbarch.c: Regenerate.
5013         * gnu-v3-abi.c: Update copyright.
5014         (vtable_address_point_offset): Update.
5015         (gnuv3_rtti_type): Update.
5016         (gnuv3_baseclass_offset): Update.
5017         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5018         (init_fetch_link_map_offsets): Update.
5019         * remote.c (get_remote_state): Update.
5020         
5021 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
5022
5023         * TODO: Remove value_headof/value_from_vtable_info comment.
5024         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5025         * values.c (value_headof, value_from_vtable_info): Delete.
5026         * value.h (value_from_vtable_info): Delete prototype.
5027
5028 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5029
5030         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5031         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5032         $(gdb_regex_h).
5033         (gdb_assert_h): Define.
5034         (gdb_wait_h): Define.
5035         (gdb_regex_h): Define.
5036
5037 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
5038
5039         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5040         * linespec.c (find_methods): Handle GCC 3.x template constructors.
5041
5042 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5043
5044         * nbsd-tdep.c: Fix comment.
5045
5046 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5047
5048         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5049         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5050         (nbsd-tdep.o): New dependency list.
5051         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
5052         nbsd-tdep.h.
5053         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5054         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5055         * nbsd-tdep.c: New file.
5056         * nbsd-tdep.h: New file.
5057         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
5058         nbsd-tdep.h.
5059         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5060         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5061         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5062         * config/sh/nbsd.mt (TDEPFILES): Ditto.
5063
5064 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5065
5066         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5067         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5068         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5069         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5070         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5071         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5072
5073 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5074
5075         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5076         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5077         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5078         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5079         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5080         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5081         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5082
5083 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5084
5085         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
5086         fetch_elfcore_registers to...
5087         * i386nbsd-tdep.c: ...here.
5088         (i386nbsd_use_struct_convention): Rename to...
5089         (i386nbsd_aout_use_struct_convention): ...this.
5090         (i386nbsd_supply_reg): New function.
5091         (i386nbsd_fill_reg): New function.
5092         (fetch_core_registers): Use i386nbsd_supply_reg.
5093         (fetch_elfcore_registers): Likewise.
5094         (_initialize_i386nbsd_tdep): New function.
5095         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5096         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5097         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5098         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5099         (i386nbsd_aout_use_struct_convention): ...this.
5100
5101 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5102
5103         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5104         (store_inferior_registers): Use shnbsd_fill_reg.
5105         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
5106         sh_nbsd_supply_register): Collapse into...
5107         (shnbsd_supply_reg): ...this.
5108         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5109         (shnbsd_fill_reg): ...this.
5110         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5111         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5112         (fetch_core_registers): Use shnbsd_supply_reg.
5113         (fetch_elfcore_registers): Use shnbsd_supply_reg.
5114         (sh_nbsd_core_fns): Rename to...
5115         (shnbsd_core_fns): ...this.
5116         (sh_nbsd_elfcore_fns): Rename to...
5117         (shnbsd_elfcore_fns): ...this.
5118         (sh_nbsd_init_abi): Rename to...
5119         (shnbsd_init_abi): ...this.
5120         (_initialize_sh_nbsd_tdep): Rename to...
5121         (_initialize_shnbsd_tdep): ...this.
5122         * shnbsd-tdep.h (sh_nbsd_supply_registers,
5123         sh_nbsd_supply_register, sh_nbsd_fill_registers,
5124         sh_nbsd_fill_register): Remove prototypes.
5125         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5126
5127 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5128
5129         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5130         (i387-nat.o): Delete dependency list.
5131         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5132         (x86-64-linux-nat.o): Likewise.
5133         * i387-nat.c: Delete file, moving contents to...
5134         * i387-tdep.c: ...here.
5135         * i387-nat.h: Rename...
5136         * i387-tdep.h: ...to this.
5137         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5138         * i386-linux-nat.c: Likewise.
5139         * i386bsd-nat.c: Likewise.
5140         * i386gnu-nat.c: Likewise.
5141         * i386nbsd-nat.c: Likewise.
5142         * i386v4-nat.c: Likewise.
5143         * x86-64-linux-nat.c: Likewise.
5144         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5145         * config/i386/go32.mh (NATDEPFILES): Likewise.
5146         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5147         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5148         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5149         * config/i386/linux.mh (NATDEPFILES): Likewise.
5150         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5151         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5152         * config/i386/obsd.mh (NATDEPFILES): Likewise.
5153         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5154
5155 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5156
5157         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5158         (alphanbsd-nat.o): Remove dependency list.
5159         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5160         * alphanbsd-nat.c: Delete.  Contents moved to...
5161         * alphanbsd-tdep.c: ...here.
5162         (_initialize_alphanbsd_tdep): Register core functions.
5163         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5164
5165 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5166
5167         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5168         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5169         (alphanbsd-nat.o): Likewise.
5170         (alphabsd-tdep.o): New dependency list.
5171         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5172         (fill_gregset): Use alphabsd_fill_reg.
5173         (supply_fpregset): Use alphabsd_supply_fpreg.
5174         (fill_fpregset): Use alphabsd_fill_fpreg.
5175         (fetch_inferior_registers): Use struct reg and struct fpreg
5176         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
5177         and alphabsd_supply_fpreg.
5178         (store_inferior_registers): Use struct reg and struct fpreg
5179         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
5180         and alphabsd_fill_fpreg.
5181         * alphabsd-tdep.c: New file.
5182         * alphabsd-tdep.h: New file.
5183         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5184         (fetch_elfcore_registers): Use alphabsd_supply_reg and
5185         alphabsd_supply_fpreg.
5186         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5187         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5188
5189 2002-05-11  Eric Christopher  <echristo@redhat.com>
5190
5191         * mips-tdep.c (mips_double_register_type): Fix thinko.
5192         (mips_single_register_type): Ditto.
5193         * MAINTAINERS: Add self.
5194
5195 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
5196
5197         * i387-nat.c (i387_supply_register, i387_fill_fsave,
5198         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5199         right thing on architectures with different endianness and/or
5200         integer sizes.
5201
5202 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
5203
5204         From Christian Limpach <chris@Pin.LU>
5205         * configure.in: Change sed expression which comments out
5206         NATDEPFILES to also comment out continuation lines.
5207         * configure: Regenerate.
5208
5209 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5210
5211         * sh-tdep.c: Clean up code erroneously reintroduced by previous
5212         big patch.
5213
5214 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5215
5216         * sh-tdep.c: Include correct file.
5217
5218 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5219
5220         New support for sh64-elf (sh5) target.
5221
5222         * configure.tgt: For sh64-elf target, default to sh-elf.
5223
5224         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5225         (struct gdbarch_tdep): Add new fields for new registers and ABI
5226         info.
5227
5228         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5229         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5230         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5231         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5232         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5233         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5234         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5235         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5236         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5237         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5238         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5239         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5240         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5241         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5242         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5243         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5244         sh64_get_gdb_regnum, sh64_media_reg_base_num,
5245         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5246         sign_extend, sh64_nofp_frame_init_saved_regs,
5247         sh64_init_extra_frame_info, sh64_get_saved_register,
5248         sh64_extract_struct_value_address, sh64_pop_frame,
5249         sh64_push_arguments, sh64_extract_return_value,
5250         sh64_store_return_value, sh64_show_media_regs,
5251         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5252         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5253         sh_sh64_register_virtual_type,
5254         sh_sh64_register_convert_to_virtual,
5255         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5256         sh64_register_read, sh64_pseudo_register_write,
5257         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5258         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5259         sh64_do_pseudo_register, sh_compact_do_registers_info,
5260         sh64_do_registers_info, sh_gdbarch_init): New functions.
5261
5262 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5263
5264         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5265
5266 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
5267
5268         * linespec.c (decode_line_1): Check for a double quote after
5269         a filename correctly.
5270
5271 2002-05-10  Jim Blandy  <jimb@redhat.com>
5272
5273         Properly track the size of the current objfile's .debug_line section.
5274         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5275         (DWARF_LINE_SIZE): New macro.
5276         (dwarf2_build_psymtabs_hard): Record the line section's size in
5277         the partial symbol table.
5278         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5279         symbol table.
5280
5281 2002-05-10  Petr Sorfa  <petrs@caldera.com>
5282
5283         * ia64-tdep.c: Handle breakpoints on L instruction type
5284         in MLX instruction bundle by moving the breakpoint to
5285         the third slot (X instruction type) as L holds only data.
5286
5287 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
5288
5289         * dbxread.c (discarding_local_symbols_complaint): New complaint.
5290         (process_one_symbol): Complain about discarding local symbols
5291         due to a misplaced N_LBRAC entry.
5292
5293 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
5294
5295         From Daniel Berlin <dan@cgsoftware.com>
5296         * linespec.c (find_toplevel_char): '<' and '>' also increase and
5297         decrease the depth we are at, in the case of templates.
5298
5299 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5300
5301         * mips-tdep.c (mips_float_register_type): New function.
5302         (mips_double_register_type): New function.
5303         (mips_print_register): Use them.
5304         (do_fp_register_row): Likewise.
5305
5306 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5307
5308         * signals/signals.c (signals): Remove conditional compilation around
5309         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
5310         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5311
5312 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5313
5314         * remote-rdp.c (remote_rdp_can_run): Remove.
5315
5316 2002-05-09  Tom Tromey  <tromey@redhat.com>
5317
5318         * jv-valprint.c (java_val_print): Handle `char' as a special case
5319         of TYPE_CODE_INT.
5320
5321 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5322
5323         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5324         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5325         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5326         str r(0123),[sp,#nn].
5327         (arm_skip_prologue): Ditto.  Also make disassembly
5328         order-independent by placing it in a loop.
5329
5330 2002-05-06  Michael Snyder  <msnyder@redhat.com>
5331
5332         * stabsread.c (read_type): Add recognition for new attribute:
5333         "@V;" means that an array type is actually a vector.
5334         This is analogous to the vector flag that's been added to dwarf2.
5335
5336 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
5337
5338         * i386-tdep.h (i386_abi): New enum.
5339         (struct gdbarch_tdep): Replace os_ident member with abi.
5340         (i386_gdbarch_register_os_abi): New prototype.
5341         * i386-tdep.c (i386_abi_names): New array.
5342         (process_note_abi_tag_sections): Removed.
5343         (process_note_sections): New function.
5344         (i386_elf_abi_from_note, i386_elf_abi): New functions.
5345         (struct i386_abi_handler): New struct.
5346         (i386_abi_handler_list): New variable.
5347         (i386_gdbarch_register_os_abi): New function.
5348         (i386_gdbarch_init): Adapt for the changes given above.
5349
5350 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
5351
5352         * gregset.h: Say "GNU/Linux".
5353
5354 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
5355
5356         * gdbtypes.c : Add new builtin type for 64 bit vectors.
5357         (build_gdbtypes): Build builtin_type_v2_float.
5358         (_initialize_gdbtypes): Register new builtin type.
5359
5360 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
5361
5362         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5363         (clear_gdbarch_swap): New function.
5364         (initialize_non_multiarch): Call.
5365         (gdbarch_update_p): Before calling init(), swap out and clear the
5366         existing architecture.
5367         * gdbarch.c: Regenerate.
5368
5369 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5370
5371         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5372         alphanbsd-tdep.c.
5373
5374 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5375
5376         * sh-nbsd-nat.c: Rename to...
5377         * shnbsd-nat.c: ...this.
5378         * sh-nbsd-tdep.c: Rename to...
5379         * shnbsd-tdep.c: ...this.
5380         * sh-nbsd-tdep.h: Rename to...
5381         * shnbsd-tdep.h: ...this.
5382         * config/sh/nbsd.mh: Use shnbsd-nat.o.
5383         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5384
5385 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
5386
5387         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5388         concatenation for command help messages.
5389
5390 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5391
5392         * NEWS: Note new sh*-*-netbsdelf* configuration.
5393         * configure.host: Set gdb_host_cpu to sh for all sh*.
5394         (sh*-*-netbsdelf*): New host.
5395         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5396         (sh*-*-netbsdelf*): New target.
5397         * sh-nbsd-nat.c: New file.
5398         * sh-nbsd-tdep.c: New file.
5399         * sh-nbsd-tdep.h: New file.
5400         * config/sh/nbsd.mh: New file.
5401         * config/sh/nbsd.mt: New file.
5402         * config/sh/nm-nbsd.h: New file.
5403         * config/sh/tm-nbsd.h: New file.
5404
5405 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5406
5407         * sh-tdep.c (sh_osabi_names): Declare.
5408         (process_note_abi_tag_sections): New function.
5409         (get_elfosabi): Ditto.
5410         (sh_gdbarch_register_os_abi): Ditto.
5411         (sh_dump_tdep): Ditto.
5412         _initialize_sh_tdep): Use gdbarch_register to register
5413         sh_gdbarch_init and sh_dump_tdep.
5414         * config/sh/tm-sh.h (sh_osabi): Declare.
5415         (gdbarch_tdep): Add sh_osabi and osabi_name members.
5416
5417 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
5418
5419         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5420         (thumb_scan_prologue): Ditto.
5421         (arm_find_callers_reg): Ditto.
5422         (arm_frame_chain): Ditto.
5423         (arm_init_extra_frame_info): Ditto.
5424         (arm_frame_saved_pc): Ditto.
5425         (arm_pop_frame): Ditto.
5426         (arm_push_return_address): New function.
5427         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5428         call_dummy_location, call_dummy_breakpoint_offset_p,
5429         call_dummy_breakpoint_offset, call_dummy_p,
5430         call_dummy_stack_adjust_p, call_dummy_words,
5431         sizeof_call_dummy_words, call_dummy_start_offset,
5432         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5433         call_dummy_address, push_return_address and push_dummy_frame for
5434         generic dummy frames.
5435
5436 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5437
5438         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5439         size computation for alloca.
5440         (sh_fp_frame_init_saved_regs): Likewise.
5441
5442 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
5443
5444         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5445         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5446         * arm-tdep.c (arm_store_return_value): Use them.
5447         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5448         * remote-rdp.c (remote_rdp_fetch_register): Use
5449         ARM_MAX_REGISTER_RAW_SIZE.
5450         (remote_rdp_store_register): Likewise.
5451
5452 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
5453
5454         * dwarf2cfi.c: Code cleanup, removed unused variables,
5455         added default labels to switch {} statements.
5456         * x86-64-tdep.c: Ditto.
5457         * x86-64-linux-nat.c: Ditto.
5458
5459 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5460
5461         * solib.h: Protect against multiple inclusion.
5462
5463 2002-05-06  Jim Blandy  <jimb@redhat.com>
5464
5465         Add first preprocessor macro-expansion files.
5466         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5467         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5468         (splay_tree_h, macroexp_h, macrotab_h): New variable.
5469         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5470         (COMMON_OBS): Add macrotab.o, macroexp.o.
5471         (macroexp.o, macrotab.o): New rules.
5472
5473         Separate the job of reading the line number info statement program
5474         header (...expialidocious) out into its own function.
5475         * dwarf2read.c (struct line_head, struct filenames, struct
5476         directories): Replace with...
5477         (struct line_header): New structure, containing the full
5478         contents of the statement program header, including the
5479         include directory and file name tables.
5480         (read_file_scope): If we have line number info, instead of just
5481         calling dwarf_decode_lines to do all the work, call
5482         dwarf_decode_line_header first to get a `struct line_header'
5483         containing the data in the statement program header, and then
5484         pass that to dwarf_decode_lines, which will pick up where that
5485         left off.  Be sure to clean up the `struct line_header' object.
5486         (dwarf_decode_line_header, free_line_header, add_include_dir,
5487         add_file_name): New functions.
5488         (dwarf_decode_lines): Move all the code to read the statement
5489         program header into dwarf_decode_line_header.  Take the line
5490         header it built as the first argument, instead of the offset to
5491         the compilation unit's line number info.  Use the new `struct
5492         line_header' type instead of the old structures.  No need to do
5493         cleanups here now, since we don't allocate anything.
5494         (dwarf2_statement_list_fits_in_line_number_section,
5495         dwarf2_line_header_too_long): New complaints.
5496
5497 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
5498
5499         * gdbtypes.c (init_vector_type): New function.
5500         (build_builtin_type_vec128): Simplify the representation of SIMD
5501         registers.
5502         (build_gdbtypes): Initialize new builtin vector types.
5503         (_initialize_gdbtypes): Register new vector types with gdbarch.
5504         (builtin_type_v4_float, builtin_type_v4_int32,
5505         builtin_type_v8_int16, builtin_type_v16_int8,
5506         builtin_type_v2_int32, builtin_type_v4_int16,
5507         builtin_type_v8_int8): New (renamed) SIMD types.
5508
5509 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
5510
5511         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5512         (i387_fill_fxsave): Likewise.
5513
5514 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
5515
5516         * alpha-tdep.c (alpha_extract_return_value): Don't use
5517         non-constant array size in prototype.
5518
5519 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5520
5521         From Brian Taylor <briant at model dot com>:
5522         * ui-out.c (ui_out_field_core_addr): Use the function
5523         longest_local_hex_string_custom'to format addresses > 32 bits
5524         wide.
5525
5526         * ui-out.c (ui_out_field_core_addr): Update comment.
5527
5528 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5529
5530         * stack.c (select_and_print_frame): Make static.  Delete the
5531         parameter `level'.
5532         (func_command): Update call.
5533         (select_frame_command): Delete code computing the frame level.
5534         * frame.h (select_and_print_frame): Delete declaration.
5535
5536 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5537
5538         * sparc-tdep.c (sparc_get_saved_register): Comment why
5539         get_prev_frame call is safe.
5540
5541 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5542
5543         * frame.h (select_frame): Delete level parameter.
5544         * stack.c (select_frame): Update.  Use frame_relative_level to
5545         obtain the frame's level.
5546         (select_and_print_frame): Update call.
5547         (select_frame_command): Ditto.
5548         (up_silently_base): Ditto.
5549         (down_silently_base): Ditto.
5550         * ocd.c (ocd_start_remote): Ditto.
5551         * remote-rdp.c (remote_rdp_open): Ditto.
5552         * remote-mips.c (mips_initialize): Ditto.
5553         (common_open): Ditto.
5554         * remote-e7000.c (e7000_start_remote): Ditto.
5555         * m3-nat.c (select_thread): Ditto.
5556         * hppa-tdep.c (child_get_current_exception_event): Ditto.
5557         (child_get_current_exception_event): Ditto.
5558         * varobj.c (varobj_create): Ditto.
5559         (varobj_update): Ditto.
5560         (c_value_of_root): Ditto.
5561         * tracepoint.c (finish_tfind_command): Ditto.
5562         * corelow.c (core_open): Ditto.
5563         * arch-utils.c (generic_prepare_to_proceed): Ditto.
5564         * thread.c (info_threads_command): Ditto.
5565         (switch_to_thread): Ditto.
5566         * infrun.c (normal_stop): Ditto.
5567         (restore_selected_frame): Ditto.
5568         (restore_inferior_status): Ditto.
5569         * breakpoint.c (insert_breakpoints): Ditto.
5570         (watchpoint_check): Ditto.
5571         (bpstat_stop_status): Ditto.
5572         (do_enable_breakpoint): Ditto.
5573         * blockframe.c (flush_cached_frames): Ditto.
5574         (reinit_frame_cache): Ditto.
5575
5576 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5577
5578         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5579         maintainer.
5580
5581 2002-05-04  Jim Blandy  <jimb@redhat.com>
5582
5583         * gdbtypes.c (replace_type): Doc fix.
5584
5585 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5586
5587         * valprint.c (strcat_longest): Delete commented out function.
5588         Update copyright.
5589
5590 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5591
5592         * MAINTAINERS: Mark a29k as deleted.
5593         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
5594         Move new configurations to the top.
5595         * configure.tgt: Remove a29k.
5596         * config/a29k/tm-vx29k.h: Delete.
5597         * config/a29k/vx29k.mt: Delete.
5598         * config/a29k/tm-a29k.h: Delete.
5599         * config/a29k/a29k-udi.mt: Delete.
5600         * config/a29k/a29k.mt: Delete.
5601         * a29k-tdep.c: Delete.
5602         * remote-udi.c: Delete.
5603         * remote-mm.c: Delete.
5604         * remote-eb.c: Delete.
5605         * remote-adapt.c: Delete.
5606         * Makefile.in: Remove obsolete code.
5607         * config/s390/s390x.mt: Ditto.
5608         * config/s390/s390.mt: Ditto.
5609         * config/sparc/sparclynx.mh: Ditto.
5610         * config/sparc/linux.mh: Ditto.
5611         * config/pa/hppaosf.mh: Ditto.
5612         * config/pa/hppabsd.mh: Ditto.
5613         * config/ns32k/nbsd.mt: Ditto.
5614         * config/mips/vr5000.mt: Ditto.
5615         * config/m68k/sun3os4.mh: Ditto.
5616         * config/m68k/nbsd.mt: Ditto.
5617         * config/m68k/m68klynx.mh: Ditto.
5618         * config/m32r/m32r.mt: Ditto.
5619         * config/i386/x86-64linux.mt: Ditto.
5620         * config/i386/nbsdelf.mt: Ditto.
5621         * config/i386/nbsd.mt: Ditto.
5622         * config/i386/i386lynx.mh: Ditto.
5623
5624 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5625
5626         * target.c (debug_print_register): New function.  Handle oversize
5627         registers.
5628         (debug_to_fetch_registers): Call.
5629         (debug_to_store_registers): Call.
5630
5631 2002-05-03  Jim Blandy  <jimb@redhat.com>
5632
5633         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5634         (read_type): Doc fix.
5635         * gdbtypes.c (replace_type): Doc fix.
5636
5637         * stabsread.c (multiply_defined_struct): New complaint.
5638         (read_struct_type): If the type we were passed isn't empty, or
5639         incomplete, don't read the new struct type into it; complain,
5640         and return the original type unchanged.  Take a new `type_code'
5641         argument, which is the type code for the new type.
5642         (read_type): Rather than storing the type's type code here, pass
5643         it as an argument to read_struct_type, and let that take care of
5644         storing it.  That way, we don't overwrite the original type code,
5645         so read_struct_type can use it to decide whether we're overwriting
5646         something we shouldn't.
5647         (complain_about_struct_wipeout): New function.
5648
5649 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
5650
5651         * gdbarch.sh: Assert that gdbarch is non-NULL.
5652         * gdbarch.c: Regenerate.
5653
5654 2002-05-03  Jason Merrill  <jason@redhat.com>
5655
5656         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5657         and return NULL.
5658
5659 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
5660
5661         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5662         (x86_64_dwarf2gdb_regno_map_length),
5663         (x86_64_dwarf2_reg_to_regnum): Added.
5664         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5665         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5666         (_initialize_x86_64_tdep): Synced with the change above.
5667         (x86_64_skip_prologue): Reformulated message.
5668
5669 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
5670
5671         * f-exp.y: Also use new prev_lexptr variable
5672         to improve error reporting. Based on Michael Snyder
5673         2002-04-24 dated patch to c-exp.y.
5674         * jv-exp.y: Likewise.
5675         * m2-exp.y: Likewise.
5676
5677 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
5678
5679         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5680         we are dealing with vectors.
5681
5682 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5683
5684         * config/m68k/tm-nbsd.h: Obvious fix,
5685         correct machine name.
5686
5687 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5688
5689         * p-typeprint.c (pascal_type_print_base): Add support
5690         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5691
5692 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5693
5694         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5695         for fondamental pascal 'char' type.
5696
5697 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5698
5699         * p-lang.h (is_pascal_string_type): Declaration changed,
5700         new sixth argument of type char ** added.
5701         * p-lang.c (is_pascal_string_type): Implementation
5702         changed. Args length_pos, length_size, string_pos, char_size
5703         can now be NULL. New argument arrayname set to the field
5704         name of the char array. Return value set to char array
5705         field index plus one.
5706         * p-valprint.c (pascal_val_print): Adapt to new declaration of
5707         is_pascal_string_type function.
5708
5709 2002-05-02  Andrew Cagney  <cagney@redhat.com>
5710
5711         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5712         <cagney@redhat.com> change.
5713         * gdbarch.c: Regenerate.
5714
5715 2002-05-02  Andrew Cagney  <cagney@redhat.com>
5716
5717         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5718         before probing for a new one.  Detect errorenous gdbarch_init
5719         functions.
5720         * gdbarch.c: Regenerate.
5721
5722 2002-05-01  Andrew Cagney  <cagney@redhat.com>
5723
5724         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5725         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
5726         * config/v850/tm-v850.h: Ditto.  Update copyright.
5727
5728 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
5729
5730         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5731         current_gdbarch.
5732
5733 2002-04-30  Michael Snyder  <msnyder@redhat.com>
5734
5735         * arm-tdep.c: Whitespace clean-ups.
5736         (arm_skip_prologue): Fix thinko; two lines
5737         should have been removed as part of 4/24 change.
5738
5739 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
5740
5741         * rs6000-tdep.c: Added comment describing how fpscr register
5742         numbers were chosen.
5743
5744 2002-04-30  Michael Snyder  <msnyder@redhat.com>
5745
5746         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5747
5748 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
5749
5750         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5751         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5752         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5753
5754 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
5755
5756         From Louis Hamilton <hamilton@redhat.com>:
5757         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5758         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5759         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5760         not bfd-private xcoff data, to determine wordsize.
5761         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5762
5763 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
5764
5765         GDB 5.2 released from 5.2 branch.
5766
5767 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
5768
5769         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5770         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5771         (x86_64_register_info_table): Added comments with register numbers.
5772
5773 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
5774
5775         * rs6000-tdep.c (rs6000_extract_return_value,
5776         rs6000_store_return_value): Handle returning vectors.
5777         (rs6000_gdbarch_init): Use
5778         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5779         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5780         New function.
5781         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5782         vectors.
5783         (ppc_sysv_abi_push_arguments): Handle vector parameters.
5784         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5785
5786 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
5787
5788         * hpread.c (hpread_psymtab_to_symtab_1,
5789         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5790         with fprintf_unfiltered (gdb_stderr,...).
5791
5792 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
5793
5794         * remote-array.c (printf_monitor, write_monitor,
5795         array_insert_breakpoint, array_remove_breakpoint ):
5796         Replace fprintf (stderr,...
5797         with fprintf_unfiltered (gdb_stderr,....
5798         * remote-es.c: Likewise.
5799         * remote-os9k.c: Likewise.
5800         * remote-st.c: Likewise.
5801
5802 2002-04-28  Andreas Schwab  <schwab@suse.de>
5803
5804         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5805         linux-proc.o and gcore.o.
5806
5807 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
5808
5809         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5810         code without frame pointers.
5811
5812 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
5813
5814         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5815         ON_STACK is needed.
5816
5817 2002-04-26  Ben Elliston  <bje@redhat.com>
5818
5819         * target.c (do_xfer_memory): Correct reference to the new option
5820         "trust-readonly-sections".
5821
5822 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
5823
5824         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5825         * gdbtypes.c (recursive_dump_type): Output the vector flag.
5826         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5827         vectors.
5828         (read_array_type): Record the fact that this array type is really a
5829         vector (i.e. are passed in by value).
5830
5831 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
5832
5833         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5834         * alpha-tdep.c (alpha_sigcontext_addr): New function.
5835         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5836         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5837         * alpha-linux-tdep.c: Include frame.h.
5838         (alpha_linux_sigcontext_addr): New function.
5839         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5840         alpha_linux_sigcontext_addr.
5841         * alpha-osf1-tdep.c: Include gdbcore.h.
5842         (alpha_osf1_sigcontext_addr): New function.
5843         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5844         alpha_osf1_sigcontext_addr.
5845         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5846         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5847
5848 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
5849
5850         * stack.c (selected_frame_level):
5851         (select_frame): Do not set selected_frame_level.
5852         * frame.h (selected_frame_level): Delete declaration.
5853
5854 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
5855
5856         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5857         convert_from_func_ptr-addr when AIX / PowerOpen.
5858
5859 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
5860
5861         * valops.c (hand_function_call): Call
5862         generic_save_call_dummy_addr.
5863         * frame.h (generic_save_call_dummy_addr): Declare.
5864         * blockframe.c (struct dummy_frame): Add fields call_lo and
5865         call_hi.
5866         (generic_find_dummy_frame): Check for PC in range call_lo to
5867         call_hi instead of entry_point_address.
5868         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5869         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
5870         (generic_save_call_dummy_addr): New function.
5871
5872 2002-04-24  David S. Miller  <davem@redhat.com>
5873
5874         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5875         sparc_skip_prologue.
5876         (sparc_skip_prologue): Kill frameless_p arg, and use line number
5877         information to find prologue when possible.
5878         (sparc_prologue_frameless_p): Call examine_prologue directly.
5879         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5880         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5881         second argument.
5882         (SKIP_PROLOGUE): Likewise.
5883
5884 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
5885
5886         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5887         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5888         indicate that the condition it was testing is always true.
5889         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5890         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5891         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5892
5893 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
5894
5895         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5896         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5897         tdep->jb_pc and tdep->jb_elt_size.
5898         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5899         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5900         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5901         * alpha-nat.c (get_longjmp_target): Remove.
5902         (JB_ELEMENT_SIZE): Ditto.
5903         (JB_PC): Ditto.
5904         * alpha-tdep.c (alpha_get_longjmp_target): New function.
5905         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
5906         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5907         to alpha_get_longjmp_target.
5908         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5909         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5910         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5911
5912 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
5913
5914         * README: Update to GDB 5.2.
5915
5916 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
5917
5918         * gdbarch.sh (LC_ALL): Set to `c'.
5919
5920 2002-04-25  Theodore A. Roth  <troth@verinet.com>
5921
5922         * avr-tdep.c: Ran through gdb_indent.sh.
5923
5924 2002-04-25  Theodore A. Roth  <troth@verinet.com>
5925
5926         * MAINTAINERS: Add myself as AVR maintainer.
5927         * NEWS: Note new target avr.
5928
5929 2002-04-25  Theodore A. Roth  <troth@verinet.com>
5930
5931         * Makefile.in: Add support for AVR target.
5932         * configure.tgt: Add support for AVR target.
5933         * avr-tdep.c: New file
5934         * config/avr/avr.mt: New file.
5935
5936 2002-04-25  Theodore A. Roth  <troth@verinet.com>
5937
5938         * MAINTAINERS: Add myself to write-after-approval.
5939
5940 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
5941
5942         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5943         with fprintf_unfiltered (gdb_stderr,....
5944
5945 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
5946
5947         Fix PR gdb/508.
5948         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5949
5950 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
5951
5952         * p-exp.y: Also use new prev_lexptr variable
5953         to improve error reporting. Based on Michael Snyder
5954         2002-04-24 dated patch to c-exp.y.
5955
5956 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
5957
5958         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5959         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5960         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
5961         to 0.
5962         * config/alpha/tm-alpha.h: Remove forward decls of struct type
5963         and struct value.
5964         (FUNCTION_START_OFFSET): Remove.
5965         (BREAKPOINT): Ditto.
5966
5967 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
5968
5969         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5970         * NEWS: Ditto.
5971
5972 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
5973
5974         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5975         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5976         alpha_linux_pc_in_sigtramp.
5977         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5978         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5979         alpha_osf1_pc_in_sigtramp.
5980         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5981         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5982         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5983         alphafbsd_pc_in_sigtramp.
5984         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5985         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5986         alphanbsd_pc_in_sigtramp.
5987         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5988         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5989
5990 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
5991
5992         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5993
5994 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
5995
5996         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5997         alphanbsd-tdep.c.
5998         (alphanbsd-nat.o): New dependency list.
5999         (alphanbsd-tdep.o): Ditto.
6000         * NEWS: Note new native NetBSD/alpha configuration.
6001         * alphanbsd-nat.c: New file.
6002         * alphanbsd-tdep.c: Ditto.
6003         * configure.host (alpha*-*-netbsd*): New host.
6004         * configure.tgt (alpha*-*-netbsd*): New target.
6005         * config/alpha/nbsd.mh: New file.
6006         * config/alpha/nbsd.mt: Ditto.
6007         * config/alpha/nm-nbsd.h: Ditto.
6008         * config/alpha/tm-nbsd.h: Ditto.
6009
6010 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6011
6012         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6013         (alpha-osf1-tdep.o): New dependency list.
6014         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6015         and skip_sigtramp_frame members.
6016         * alpha-linux-tdep.c: Include gdbcore.h.
6017         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6018         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6019         * alpha-osf1-tdep.c: New file.
6020         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6021         alpha-osf1-dep.c.
6022         (alpha_frame_past_sigtramp_frame): New function.
6023         (alpha_dynamic_sigtramp_offset): Ditto.
6024         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6025         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6026         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6027         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6028         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6029         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6030         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6031         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6032         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6033         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6034         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
6035         to find_solib_trampoline_target.
6036         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6037         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6038         (SKIP_TRAMPOLINE_CODE): Remove.
6039         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6040         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6041         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6042         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6043         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6044         (PROC_SIGTRAMP_MAGIC): Ditto.
6045         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6046         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6047         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6048         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6049         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6050
6051 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6052
6053         * NEWS: Note that Alpha targets are now multi-arch.
6054
6055 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6056
6057         * parser-defs.h (prev_lexptr): New external variable.
6058         * parse.c (parse_exp_1): Set prev_lexptr to null before
6059         calling the language-specific parser.
6060         * c-exp.y (yylex): Set prev_lexptr to start of current token.
6061         (yyerror): Use prev_lexptr in error reporting.
6062
6063 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
6064
6065         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6066         * gregset.h: If FILL_FPXREGSET is defined, provide
6067         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6068         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6069         is defined, call fill_fpxregset.
6070
6071 2002-04-24  Roland McGrath  <roland@frob.com>
6072
6073         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6074         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6075         (supply_gregset, supply_fpregset): New functions.
6076
6077         * gnu-nat.c (gnu_find_memory_regions): New function.
6078         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6079         (gnu_xfer_memory): Add a cast.
6080
6081 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6082
6083         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6084         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
6085         of argument regs ("str r(0123), [r11, #-nn"]).
6086         (arm_skip_prologue): Better handling for frameless functions.
6087         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
6088         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6089
6090 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
6091
6092         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6093         NUM_PSEUDO_REGS can be used.
6094
6095 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
6096
6097         * arch-utils.h: Update copyright.
6098
6099         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6100         * gdbarch.h, gdbarch.c: Re-generate.
6101
6102         * inferior.h (IN_SIGTRAMP): Delete definition.
6103         * arch-utils.c (legacy_pc_in_sigtramp): New function.
6104         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6105
6106         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6107         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6108         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
6109         (find_proc_framesize): Ditto.
6110         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6111         (alpha_init_extra_frame_info): Ditto.
6112         * infrun.c (handle_inferior_event): Ditto.
6113         (handle_inferior_event): Ditto.
6114         (check_sigtramp2): Ditto.
6115         * blockframe.c (create_new_frame): Ditto.
6116         (get_prev_frame): Ditto.
6117         * ppc-linux-tdep.c: Update comments.
6118         * i386-linux-tdep.c: Update comments.
6119         * breakpoint.c (bpstat_what): Update comment.
6120
6121 2002-04-24  David S. Miller  <davem@redhat.com>
6122
6123         * i960-tdep.c (register_in_window_p): New function.
6124         (i960_find_saved_register): Use it instead of
6125         REGISTER_IN_WINDOW_P.
6126         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6127
6128         * symtab.h (find_stab_function_addr): Kill extern.
6129         * minsyms.c (find_stab_function_addr): Remove from here...
6130         * dbxread.c: ... to here, and mark it static.
6131
6132 2002-04-20  David S. Miller  <davem@redhat.com>
6133
6134         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6135         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6136
6137 2002-04-21  David S. Miller  <davem@redhat.com>
6138
6139         * remote-vxsparc.c (vx_read_register): Fix typo, we want
6140         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6141         (vx_write_register): Likewise.
6142
6143 2002-04-23  J. Brobecker  <brobecker@gnat.com>
6144
6145         * source.c (is_regular_file): New function.
6146         (openp): Check wether file to open is a regular file
6147         to avoid opening directories.
6148
6149 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6150
6151         * findvar.c (extract_signed_integer): Cast printf argument
6152         to suppress format warning.
6153         (extract_unsigned_integer): Likewise.
6154         * infcmd.c (registers_info): Likewise.
6155         * top.c (get_prompt_1): Likewise.
6156         * valops.c (value_assign): Likewise.
6157         * valprint.c (print_decimal): Likewise.
6158
6159 2002-04-22  H.J. Lu  (hjl@gnu.org)
6160
6161         * c-exp.y (typebase): Support
6162
6163         [long|long long|short] [signed|unsigned] [int|]
6164
6165         and
6166
6167         signed [long|long long|short] int
6168
6169 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6170
6171         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6172         and vax-tdep.h.
6173         * vax-tdep.h: New file.
6174         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6175         Make several routines static.
6176         (vax_get_saved_register): New function.
6177         (vax_gdbarch_init): New function.
6178         (_initialize_vax_tdep): Register vax_gdbarch_init.
6179         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6180         Remove macros now under the control of gdbarch.
6181
6182 2002-04-22  Michael Snyder  <msnyder@redhat.com>
6183
6184         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6185         Some whitespace and coding standards tweaks.
6186
6187 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6188
6189         * vax-tdep.c: Include regcache.h.
6190         (vax_call_dummy_words): New.
6191         (sizeof_vax_call_dummy_words): New.
6192         (vax_fix_call_dummy): New function.
6193         (vax_saved_pc_after_call): Ditto.
6194         * config/vax/tm-vax.h: Don't include regcache.h.
6195         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6196         (CALL_DUMMY): Remove.
6197         (CALL_DUMMY_WORDS): Define.
6198         (SIZEOF_CALL_DUMMY_WORDS): Define.
6199         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6200
6201 2002-04-18  Michael Snyder  <msnyder@redhat.com>
6202
6203         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6204
6205 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6206
6207         * vax-tdep.c (vax_frame_chain): New function.
6208         (vax_push_dummy_frame): Ditto.
6209         (vax_pop_frame): Ditto.
6210         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6211         (FRAMELESS_FUNCTION_INVOCATION): Use
6212         generic_frameless_function_invocation_not.
6213         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6214         (POP_FRAME): Use vax_pop_frame.
6215
6216 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6217
6218         * vax-tdep.c (vax_store_struct_return): New function.
6219         (vax_extract_return_value): Ditto.
6220         (vax_store_return_value): Ditto.
6221         (vax_extract_struct_value_address): Ditto.
6222         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6223         vax_store_struct_return.
6224         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6225         (STORE_RETURN_VALUE): Use vax_store_return_value.
6226         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6227
6228 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6229
6230         * vax-tdep.c (vax_frame_saved_pc): New function.
6231         (vax_frame_args_address_correct): Ditto.
6232         (vax_frame_args_address): Ditto.
6233         (vax_frame_locals_address): Ditto.
6234         (vax_frame_num_args): Move code to be in proximity to
6235         other frame-related functions.
6236         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6237         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6238         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6239         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6240         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6241
6242 2002-04-22  H.J. Lu  (hjl@gnu.org)
6243
6244         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6245         includedir.
6246
6247 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6248
6249         * vax-tdep.c (vax_frame_init_saved_regs): New function.
6250         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6251         (FRAME_INIT_SAVED_REGS): New macro.
6252
6253 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6254
6255         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6256
6257 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6258
6259         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6260         where needed.
6261         (fetch_osf_core_registers): Likewise.
6262         (supply_gregset): Likewise.
6263
6264 2002-04-22  J. Brobecker  <brobecker@gnat.com>
6265
6266         * symfile.h (get_section_index): Define.
6267         * symfile.c (get_section_index): New function.
6268         * mdebugread.c (SC_IS_SBSS): New macro.
6269         (SC_IS_BSS): Return true for the scBss storage class only, as
6270         the scSBss storage class refers to the .sbss section.
6271         (parse_partial_symbols): Discard the symbols which associated
6272         section does not exist.
6273         Make sure to use the .sbss section index for symbols which
6274         storage class is scBss, rather than using the .bss section index.
6275
6276 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6277
6278         * vax-tdep.c: Update copyright years.
6279         (vax_register_name): New function.
6280         (vax_register_byte): Ditto.
6281         (vax_register_raw_size): Ditto.
6282         (vax_register_virtual_size): Ditto.
6283         (vax_register_virtual_type): Ditto.
6284         * config/vax/tm-vax.h: Update copyright years.
6285         (REGISTER_NAMES): Remove.
6286         (REGISTER_NAME): Define.
6287         (REGISTER_BYTE): Use vax_register_byte.
6288         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6289         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6290         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6291
6292 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6293
6294         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6295         declaration
6296         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6297
6298 2002-04-21  David S. Miller  <davem@redhat.com>
6299
6300         * arch-utils.c (generic_prologue_frameless_p): Kill
6301         SKIP_PROLOGUE_FRAMELESS_P code.
6302         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6303         references.
6304         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6305         * arc-tdep.c (arc_prologue_frameless_p): Implement.
6306         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6307         references.
6308         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6309         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6310         (sparc_gdbarch_init): Pass it to
6311         set_gdbarch_prologue_frameless_p.
6312
6313 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6314
6315         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6316         (alphabsd-nat.o): New dependency list.
6317
6318 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6319
6320         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6321         alphafbsd-tdep.c.
6322         (alpha-linux-tdep.o): New dependency list.
6323         (alphafbsd-tdep.o): Likewise.
6324
6325 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6326
6327         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
6328         to here...
6329         * alpha-tdep.c: ...from here.
6330         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6331
6332 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6333
6334         * config/alpha/tm-alpha.h: Move alpha_software_single_step
6335         prototype from here...
6336         * alpha-tdep.h: ...to here.
6337
6338 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6339
6340         * frame.h (selected_frame_level): Document as deprecated.
6341         (frame_relative_level): Declare.
6342         * stack.c (frame_relative_level): New function.
6343         (selected_frame_level): Document as deprecated.
6344         (select_frame): Do not set the selected_frame_level.
6345
6346         * stack.c (frame_info, record_selected_frame): Update.
6347         (frame_command, current_frame_command): Update.
6348         (up_silently_base, up_command, down_silently_base): Update.
6349         (down_command): Update.
6350         * inflow.c (kill_command): Update.
6351         * tracepoint.c (finish_tfind_command): Update.
6352         * corelow.c (core_open): Update.
6353         * thread.c (info_threads_command): Update.
6354         (do_captured_thread_select): Update.
6355         * infcmd.c (finish_command): Update.
6356         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6357
6358 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6359
6360         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6361
6362 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6363
6364         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
6365         type const.
6366
6367 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6368
6369         * alphafbsd-tdep.c: Update copyright years.  Include
6370         alpha-tdep.h.
6371         (alphafbsd_use_struct_convention): Make static.
6372         (alphafbsd_init_abi): New function.
6373         (_initialize_alphafbsd_tdep): New function.
6374         * config/alpha/tm-fbsd.h: Update copyright years.
6375         (USE_STRUCT_CONVENTION): Remove.
6376
6377 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6378
6379         * alpha-tdep.c (alpha_abi_handler): New structure to describe
6380         an Alpha ABI variant.
6381         (alpha_abi_handler_list): Declare.
6382         (alpha_gdbarch_register_os_abi): New function.
6383         (alpha_gdbarch_init): Give registered ABI variant handlers a
6384         chance to tweak the gdbarch once we have set up defaults.
6385         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6386
6387 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6388
6389         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6390         to standard_coerce_float_to_double.
6391         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6392
6393 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6394
6395         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6396         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6397         from gdbarch_tdep rather than a constant.
6398         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6399         the default text address for all Alpha Unix ABIs.
6400         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6401         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6402
6403 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6404
6405         * alpha-tdep.h: New file.  Includes several Alpha target constants
6406         taken from...
6407         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
6408         let gdbarch deal with.
6409         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6410         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6411         to dependency list.
6412         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
6413         Alpha target register names.
6414         * alphabsd-nat.c: Likewise.
6415         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
6416         Alpha target register names.  Make serveral routines static.
6417         (alpha_get_saved_register): New function.
6418         (alpha_abi_names): New.
6419         (process_note_abi_tag_sections): New function.
6420         (get_elfosabi): New function.
6421         (alpha_gdbarch_init): New function.
6422         (alpha_dump_tdep): New function.
6423         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6424
6425 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6426
6427         * frame.c (find_saved_register): Delete #ifdef
6428         HAVE_REGISTER_WINDOWS code.
6429         * config/sparc/tm-sparc.h: Update comments.
6430         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6431
6432 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6433
6434         * i960-tdep.c (i960_find_saved_register): New function.
6435         (i960_get_saved_register): New function.
6436         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6437         (i960_get_saved_register): Declare.
6438         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6439
6440 2002-04-20  David S. Miller  <davem@redhat.com>
6441
6442         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6443
6444 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6445
6446         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6447         instead of NUM_PSEUDO_REGS.
6448
6449 2002-04-20  David S. Miller  <davem@redhat.com>
6450
6451         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6452         GDB_MULTI_ARCH_PARTIAL
6453         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6454         define, let tm-sp64.h do it.
6455
6456 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
6457
6458         * frame.c (find_saved_register): Avoid a NULL pointer
6459         dereference and actually walk the frame list.
6460
6461 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6462
6463         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6464         sorted in most most-recent-used order.  Document.
6465         * gdbarch.h, gdbarch.c: Regenerate.
6466
6467 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
6468
6469         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6470         instead of ->prev.
6471         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6472         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6473         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6474         instead of ->prev.
6475
6476 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
6477
6478         Fix PR gdb/471.
6479         * gdbtypes.c (init_simd_type): Rewrite using new functions.
6480         (build_builtin_type_vec128): Ditto.
6481         (append_composite_type_field): Fix calculation of type length in
6482         union case.
6483
6484 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
6485
6486         * config/djgpp/README: Update.
6487
6488         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6489         compiler warnings.
6490
6491 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
6492
6493         * alpha-tdep.c (setup_arbitrary_frame): Rename...
6494         (alpha_setup_arbitrary_frame): ...to this.
6495         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6496         for alpha_setup_arbitrary_frame.
6497
6498 2002-04-18  Andrew Cagney  <cagney@redhat.com>
6499
6500         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6501         * gdbarch.h, gdbarch.c: Regenerate.
6502
6503         * defs.h (breakpoint_from_pc_fn): Delete type definition.
6504         * target.h (memory_breakpoint_from_pc): Update declaration.
6505         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6506
6507         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6508         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6509         * mem-break.c (memory_breakpoint_from_pc): Ditto.
6510         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6511         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6512         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6513         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6514         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6515         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6516         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6517         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6518         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6519
6520         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6521         const pointer.
6522         * monitor.c (monitor_insert_breakpoint): Ditto.
6523         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6524
6525         * config/mcore/tm-mcore.h: Update copyright.
6526         * mem-break.c: Ditto.
6527         * xstormy16-tdep.c: Ditto.
6528
6529 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6530
6531         * p-exp.y: Add precedence rule for '^' token.
6532         This removes the shift/reduce conflicts.
6533         Remove the comment concerning these shift/reduce conflicts.
6534
6535 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
6536
6537         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6538         (registers_powerpc_nofp): New register set for processors
6539         without floating point unit.
6540
6541 2002-04-18  David S. Miller  <davem@redhat.com>
6542
6543         * MAINTAINERS: Add myself to write-after-approval.
6544
6545 2002-04-17  Michael Snyder  <msnyder@redhat.com>
6546
6547         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6548
6549 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6550
6551         * rs6000-tdep.c (frame_initial_stack_address): Use
6552         frame_register_read to read the alloca_reg.
6553
6554 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6555
6556         * frame.c (find_saved_register): Find saved registers in the next
6557         not prev frame.
6558         Fix PR gdb/365.
6559
6560 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6561
6562         * gdbarch.sh (LANG): Set to ``c''.
6563
6564 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
6565
6566         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6567
6568 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
6569
6570         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6571         Update copyright.
6572
6573         * hpread.c (hpread_get_lntt): Add declaration.
6574         Also fix PR gdb/391.
6575
6576 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
6577
6578         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6579         * aclocal.m4, configure: Re-generate.
6580         Fix PR gdb/391.
6581
6582 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
6583
6584         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6585         instead of tm_print_insn.
6586
6587 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
6588
6589         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6590
6591 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
6592
6593         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6594         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6595         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6596
6597 2002-04-12  Don Howard  <dhoward@redhat.com>
6598
6599         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6600         max_user_call_depth.
6601         (init_cmd_lists): Initialize the new value;
6602         * cli/cli-script.c (execute_user_command): Limit the call depth of
6603         user defined commands.  This avoids a core-dump when user commands
6604         are infinitly recursive.
6605
6606 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6607
6608         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6609         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6610         from tdep struct instead of DEFAULT_LR_SAVE.
6611         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6612         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6613         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6614
6615 2002-04-12  Michael Snyder  <msnyder@redhat.com>
6616
6617         * Remote.c: Spelling fix.
6618         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6619         If no symbol found for "sbrk", try "_sbrk".
6620         (make_output_phdrs): Use bfd_section_name.
6621         (gcore_copy_callback): Use bfd_section_name.
6622         * eval.c: Indentation fix-ups.
6623         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6624         in case it gets applied to an address that is already
6625         in the instruction space.
6626         * cli/cli-decode.c (help_list): Allow long lines to wrap.
6627         * symfile.c: Fix indentation, long lines.
6628         * source.c: White space fix-up.
6629
6630 2002-04-12  Andrew Cagney  <cagney@redhat.com>
6631
6632         * defs.h (read_relative_register_raw_bytes): Delete declaration.
6633         * frame.c (frame_register_read): New function.  Return non-zero on
6634         success.
6635         (read_relative_register_raw_bytes_for_frame): Delete.
6636         (read_relative_register_raw_bytes): Delete.
6637         * frame.h (frame_register_read): Declare.
6638         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
6639         * sh-tdep.c: Ditto.
6640         * infcmd.c (do_registers_info): Ditto.
6641         * hppa-tdep.c: Ditto.
6642         * rs6000-tdep.c: Ditto.
6643         * h8500-tdep.c: Ditto.
6644         * mips-tdep.c: Ditto.
6645         * h8300-tdep.c: Ditto.
6646         * z8k-tdep.c: Ditto.
6647
6648 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6649
6650         From Jimi X <jimix@watson.ibm.com>:
6651         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6652         64-bit SysV ABI.
6653
6654 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6655
6656         From Jimi X <jimix@watson.ibm.com>:
6657         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6658         bfd info.
6659
6660 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6661
6662         From Jimi X <jimix@watson.ibm.com>:
6663         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6664         register sets for these processor variants.
6665
6666 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
6667
6668         * regformats/reg-ppc.dat: Support FPSCR.
6669
6670 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
6671
6672         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6673         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6674         Add fpscr as an invalid/unfetchable register.
6675         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6676         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6677         (fill_fpregset): Add support for register fpscr.
6678         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6679         (fill_gregset): Account for the fact that register ``mq'' might
6680         not exist.
6681         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6682         (registers_power): Add fpscr to register set at slot 71.
6683         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6684         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
6685
6686 2002-04-11  Michael Snyder  <msnyder@redhat.com>
6687
6688         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6689         * configure: Regenerate.
6690         * config.in: Regenerate.
6691         * acconfig.h: Add define for _SYSCALL32.
6692         * core-sol2.c: Remove #define _SYSCALL32.
6693         * solib-legacy.c: Remove #define _SYSCALL32.
6694
6695 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6696
6697         * stack.c (select_frame): Cleanup internal error message, do not
6698         use %p.
6699
6700 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6701
6702         * stack.c (select_frame): Check that selected_frame and the
6703         specified level are as expected.
6704         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6705         Update copyright.
6706         * frame.h (struct frame_info): Add field `level'.  Update
6707         copyright.
6708         Work-in-progress PR gdb/464.
6709
6710 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6711
6712         * maint.c (maint_print_section_info): Rename print_section_info.
6713         (print_bfd_section_info, print_objfile_section_info): Update.
6714         * inferior.h (struct gdbarch): Add opaque declaration.
6715         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6716         * gdbarch.h: Regenerate.
6717
6718 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
6719
6720         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6721         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6722         (kernel_u_size): Added.
6723         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6724         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6725
6726 2002-04-04  Jim Ingham  <jingham@apple.com>
6727
6728        * valarith.c (find_size_for_pointer_math): New function, either returns
6729        the size for a pointer's target, returns 1 for void *, or errors for
6730        incomplete types.
6731        (value_add, value_sub): use find_size_for_pointer_math.
6732
6733 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6734
6735         * linux-low.c (linux_look_up_symbols): New hook.
6736         (linux_target_ops): Add linux_look_up_symbols.
6737         * remote-utils.c (decode_address): New function.
6738         (look_up_one_symbol): New function.
6739         * server.c (handle_query): Call target look_up_symbols hook.
6740         * server.h (look_up_one_symbol): Add prototype.
6741         * target.h (struct target_ops): Add look_up_symbols hook.
6742
6743 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
6744
6745         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6746         override FP_REGNUM with frame->fp.  Update copyright.
6747         * parse.c (num_std_regs, std_regs): Delete.
6748         (target_map_name_to_register): Do not search std_regs.  Update
6749         function description.
6750         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6751         declarations.  Update copyright.
6752         Fix PR gdb/251.
6753
6754 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6755
6756         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6757         after the last symbol in a block.
6758
6759 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
6760
6761         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6762         is non zero as a found symbol.
6763
6764 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
6765
6766         * findvar.c: Include "builtin-regs.h".
6767         (value_of_register): Call value_of_builtin_reg when applicable.
6768         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6769         (target_map_name_to_register): Call
6770         builtin_reg_map_name_to_regnum.
6771         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6772         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6773         (builtin_regs_h): Define.
6774         (builtin-regs.o): New target.
6775         (findvar.o): Add $(builtin_regs_h).
6776         * builtin-regs.c, builtin-regs.h: New files.
6777         * std-regs.c: New file.
6778         Partial fix for PR gdb/251.
6779
6780 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6781
6782         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6783         it's no longer required.
6784
6785 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
6786
6787         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6788
6789 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6790
6791         From Jimi X <jimix@watson.ibm.com>:
6792         * rs6000-tdep.c (rs6000_software_single_step): Use
6793         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6794         and size.  Use target_insert_breakpoint() and
6795         target_remove_breakpoint() to insert and remove breakpoints
6796         instead of explicit memory reads and writes.
6797
6798 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6799
6800         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6801         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6802         ELF_OBJECT_FORMAT ifdef.
6803
6804 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6805
6806         From Jimi X <jimix@watson.ibm.com>:
6807         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6808
6809 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6810
6811         From Jimi X <jimix@watson.ibm.com>:
6812         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6813         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6814
6815 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
6816
6817         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6818         s/asprintf/xasprintf/.
6819         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6820
6821 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
6822
6823         I believe Jeff Law denies responsability for this one:
6824         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6825         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6826         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6827         Work-around for PR gdb/366.
6828
6829 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
6830
6831         * remote-e7000.c (write_small, e7000_read_inferior_memory,
6832         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6833         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6834
6835 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
6836
6837         * sh-tdep.c (sh_fp_frame_init_saved_regs,
6838         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6839         information.
6840
6841 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
6842
6843         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6844         maintainer.
6845
6846 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
6847
6848         * README (Reporting Bugs in GDB): Document the bug web page as the
6849         prefered way of submitting bugs.
6850         Fix PR gdb/402.
6851
6852 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
6853
6854         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6855         -1.  Update comment.
6856         * gdbarch.h, gdbarch.c: Re-generate.
6857
6858 2002-04-07  Andreas Schwab  <schwab@suse.de>
6859
6860         * m68klinux-nat.c (fill_fpregset): Properly pass address of
6861         buffer to regcache_collect.
6862
6863 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
6864
6865         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
6866         * gdbarch.c, gdbarch.h: Re-generate.
6867
6868 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
6869
6870         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6871         declaration.  Fix -Werror.
6872
6873 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
6874
6875         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6876         * gdbarch.c: Regenerate.
6877
6878 2002-04-05  Michael Snyder  <msnyder@redhat.com>
6879
6880         * breakpoint.c (clear_command): Rewrite middle section to
6881         combine two loops with identical control conditions.
6882         Add a cleanup to eliminate a memory leak.
6883         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6884
6885 2002-04-05  H.J. Lu  (hjl@gnu.org)
6886
6887         * solib-svr4.c (bkpt_names): Add "__start".
6888
6889 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
6890
6891         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6892         as test for 64 bit target.
6893
6894 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
6895
6896         * h8500-tdep.c (h8500_write_fp): Delete function.
6897         * dwarf2cfi.c (cfi_write_fp): Document as not used.
6898         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6899         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6900         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6901         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6902         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6903         (s390_write_fp):
6904         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6905         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6906         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6907         (d10v_write_fp): Delete function.
6908         * inferior.h (write_fp, generic_target_write_fp): Delete
6909         declarations.
6910         * regcache.c (generic_target_write_fp): Delete function.
6911         (write_fp): Delete function.
6912         * gdbarch.sh (TARGET_WRITE_FP): Delete.
6913         * gdbarch.h, gdbarch.c: Regenerate.
6914         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6915         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6916         (sparc64_write_fp): Delete declaration.
6917         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6918         (h8500_write_fp): Delete declaration.
6919
6920 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
6921
6922         * sparc-tdep.c (sparc64_write_fp): Delete.
6923         (sparc_push_dummy_frame): Replace write_fp call with code to store
6924         the FP directly.
6925         (sparc_gdbarch_init): Do not initialize write_fp.
6926
6927 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
6928
6929         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6930         clause.
6931
6932 2002-03-29  Jim Blandy  <jimb@redhat.com>
6933
6934         * stack.c (get_selected_block): Add new argument `addr_in_block',
6935         used to return the exact code address we used to select the block,
6936         not just the block.
6937         * blockframe.c (get_frame_block, get_current_block): Same.
6938         * frame.h (get_frame_block, get_current_block,
6939         get_selected_block): Update declarations.
6940         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6941         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6942
6943 2002-04-05  Michael Snyder  <msnyder@redhat.com>
6944
6945         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6946         warning message.
6947
6948 2002-04-05  J. Brobecker  <brobecker@gnat.com>
6949
6950         * utils.c (xfullpath): New function.
6951         * defs.h (xfullpath): Add declaration.
6952         * source.c (openp): Use xfullpath in place of gdb_realpath to
6953         avoid resolving the basename part of filenames when the
6954         associated file is a symbolic link. This fixes a potential
6955         inconsistency between the filenames known to GDB and the
6956         filenames it prints in the annotations.
6957         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6958         to be able to match a filename with either the real filename, or
6959         the name of any symbolic link to this file.
6960         (lookup_partial_symtab): Ditto.
6961
6962 2002-04-04  Michael Snyder  <msnyder@redhat.com>
6963
6964         * breakpoint.c: Add support for hardware breakpoints in overlays.
6965         (overlay_events_enabled): New state variable.
6966         (insert_breakpoints): Use overlay_events_enabled to decide
6967         whether to attempt to set a breakpoint at the overlay load addr.
6968         Handle bp_hardware_breakpoint as well as bp_breakpoint.
6969         (remove_breakpoint): Use overlay_events_enabled to decide
6970         whether breakpoints need to be removed from overlay load addr.
6971         Handle bp_hardware_breakpoint as well as bp_breakpoint.
6972         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
6973         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
6974         disable_overlay_breakpoints): Update overlay_events_enabled.
6975
6976 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
6977
6978         * dwarf2read.c (struct function_range): New.
6979         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6980         (check_cu_functions): New.
6981         (read_file_scope): Initialize global function lists.
6982         Call dwarf_decode_line after processing children.
6983         (read_func_scope): Add to global function list.
6984         (dwarf_decode_lines): Call check_cu_functions everywhere
6985         record_line is called.  Call record_line with a linenumber
6986         of 0 to mark sequence ends.
6987
6988 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
6989
6990         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
6991         change sync with glibc.
6992
6993 2002-04-03  Jim Blandy  <jimb@redhat.com>
6994
6995         * configure.in: Call AC_C_INLINE.
6996         * configure: Regenerated.
6997
6998 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
6999
7000         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7001         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7002
7003 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
7004
7005         * NEWS: Mention gcore support on FreeBSD/i386.
7006
7007         * fbsd-proc.c: New file.
7008         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7009         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7010
7011         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7012         while statement.
7013
7014 2002-03-29  Jim Blandy  <jimb@redhat.com>
7015
7016         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7017         unescaped newlines in string literals, but newer ones don't.  So
7018         escape them.
7019
7020 2002-03-26  Michael Snyder  <msnyder@redhat.com>
7021             Andrew Cagney <cagney@redhat.com>
7022
7023         * cli/cli-dump.c: New file.  Dump memory to file,
7024         restore file to memory.
7025         * cli/cli-dump.h: New file.
7026         * Makefile.in: Add rules, dependencies for cli-dump.o.
7027         * NEWS: Mention new commands.
7028
7029 2002-03-28  Michael Snyder  <msnyder@redhat.com>
7030
7031         * symfile.c (symbol_file_add): Move test for null symbols to later.
7032
7033 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7034
7035         From veksler at il.ibm.com:
7036         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7037         the xstrduped original path.
7038         Fix PR gdb/417.
7039
7040 2002-03-27  Michael Snyder  <msnyder@redhat.com>
7041
7042         * breakpoint.c (_initialize_breakpoint): Clean up help string.
7043         * infcmd.c (_initialize_infcmd): Ditto.
7044         * language.c (_initialize_language): Ditto.
7045         * symfile.c (_initialize_symfile): Ditto.
7046         * top.c (_init_main): Ditto.
7047         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7048
7049 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
7050
7051         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7052         vector registers handling.
7053         (skip_prologue): Handle new AltiVec instructions.  Fill in new
7054         fields of frame data.
7055         (frame_get_saved_regs): Fill in information for AltiVec registers.
7056
7057 2002-03-27  Jim Blandy  <jimb@redhat.com>
7058
7059         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7060         a function; leave this macro here to invoke that function.
7061         (symbol_init_mangled_name): Declaration for that function.
7062         * symtab.c (symbol_init_mangled_name): New function.
7063
7064 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7065
7066         * valarith.c: Replace strerror with safe_strerror.
7067         * tracepoint.c: Ditto.
7068         * lin-lwp.c: Ditto.
7069         * go32-nat.c: Ditto.
7070         * inflow.c: Ditto.
7071         * gnu-nat.c: Ditto.
7072
7073 2002-03-27  Andreas Schwab  <schwab@suse.de>
7074
7075         * event-top.c (command_line_handler): Remove useless if.
7076
7077 2002-03-27  Andreas Jaeger  <aj@suse.de>
7078
7079         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7080         comment.
7081
7082 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
7083
7084         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7085         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7086         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7087         (x86_64_linux_dr_get_status, supply_gregset),
7088         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7089         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7090         (x86_64_register_info_table): Add.
7091         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7092         (x86_64_register_raw_size, x86_64_register_virtual_type),
7093         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7094         general x86_64_register_info_table.
7095         (i386_gdbarch_init): gdbarch_register_bytes is now set
7096         dynamicaly during initialization.
7097         * regformats/reg-x86-64.dat: Synced with changes to registers above.
7098         * gdbserver/linux-x86-64-low.c: Ditto.
7099
7100 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7101
7102         * gdbserver/server.c (main): Call target_signal_to_host_p
7103         and target_signal_to_host on signals received from the remote.
7104         * gdbserver/remote-utils.c (prepare_resume_reply): Call
7105         target_signal_from_host on signals sent to the remote.
7106         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
7107         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
7108
7109 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7110
7111         * signals/signals.c: Include "server.h" in gdbserver build.
7112         (target_signal_from_name): Don't use STREQ.
7113         (_initialize_signals): Likewise.  Don't include function in
7114         gdbserver build.
7115
7116 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7117
7118         * signals.c: Moved to...
7119         * signals/signals.c: Here.
7120         * Makefile (signals.o): Update.
7121
7122 2002-03-26  Jeff Law (law@redhat.com)
7123
7124         * somread.c (som_symtab_read): Remove some commented out code and
7125         updated related comments.  Do not set the minimal symbol table to
7126         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7127         in a dynamic executable.
7128         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7129         where we are unable to find the minimal symbol for the given
7130         PC value.
7131
7132 2002-03-25  Jeff Law (law@redhat.com)
7133
7134         * linux-proc.c (read_mapping): Scan up to end of line for filename.
7135
7136 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
7137
7138         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7139
7140 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7141
7142         * command.h: Update copyright.
7143         (struct cmd_list_element): Replace definition with opaque
7144         declaration.
7145         (enum cmd_types): Document that it will eventually be moved to
7146         cli/cli-decode.h
7147         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7148         (MALLOCED_REPLACEMENT): Delete macro.
7149         * Makefile.in (cli_decode_h): Add $(command_h).
7150         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7151         * top.c: Include "cli/cli-decode.h".
7152         * completer.c: Include "cli/cli-decode.h".
7153         * maint.c: Include "cli/cli-decode.h".
7154         * cli/cli-decode.h: Include "command.h".
7155         (enum command_class): Delete.
7156         (enum cmd_types): Comment out.
7157         (enum cmd_auto_boolean): Delete.
7158         (enum var_types): Delete.
7159
7160 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7161
7162         * cli/cli-decode.c: Include "gdb_assert.h".
7163         (add_set_or_show_cmd): New static function.
7164         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
7165         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
7166         all fields, such as func, from the set command.
7167
7168 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7169
7170         * MAINTAINERS (sh-elf): Change warning flag to -w.
7171
7172 2002-03-23  Andrew Cagney  <cagney@redhat.com>
7173
7174         * defs.h (error): Add printf format attribute.
7175         * thread-db.c (thread_from_lwp): Fix error format string.
7176         * stack.c (parse_frame_specification): Ditto.
7177         * cli/cli-decode.c (undef_cmd_error): Ditto.
7178         * scm-lang.c (scm_lookup_name): Ditto.
7179         * tracepoint.c (trace_error): Ditto.
7180         * remote-utils.c (usage): Ditto.
7181         * remote.c (compare_sections_command): Ditto.
7182         Fix PR gdb/328.
7183
7184 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
7185
7186         * gdbtypes.c (append_composite_type_field): New function.
7187         (init_composite_type): New function.
7188         * gdbtypes.h (append_composite_type_field): Declare.
7189         (init_composite_type): Ditto.
7190
7191 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
7192
7193         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7194         function.
7195         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7196         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7197         structure returning convention for SYSV ABI case, but not
7198         for GNU/Linux, FreeBSD, or NetBSD.
7199
7200 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
7201
7202         * symtab.h (lookup_block_symbol): Add mangled_name argument
7203         to prototype.
7204
7205         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7206         with new mangled_name argument.
7207         * linespec.c (decode_line_1): Likewise.
7208         * valops (value_of_this): Likewise.
7209         * symtab.c (lookup_transparent_type): Likewise.
7210         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
7211         (lookup_symbol): If we are given a mangled name, pass it down
7212         to lookup_symbol_aux.
7213         (lookup_block_symbol): If we are given a mangled name to check
7214         against, only return symbols which match it.
7215
7216 2002-03-22  Christopher Faylor  <cgf@redhat.com>
7217
7218         * win32-nat.c (child_create_inferior): Check for proper shell to use
7219         here, in case the user changes it on the fly.
7220         (_initialize_inftarg): Remove shell path considerations.
7221
7222 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
7223
7224         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7225         for gdbarch_max_register_raw_size and max_register_virtual_size.
7226         Adjust copyright year.
7227
7228 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
7229
7230          * dbxread.c (process_one_symbol): Extend the first N_SLINE
7231          in a function to cover the entire beginning of the function
7232          as well if it does not already.
7233
7234 2002-03-21  Tom Rix  <trix@redhat.com>
7235
7236         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7237         (rs6000_ptrace64): Renamed from ptrace64.
7238
7239 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7240
7241         * gdbserver/remote-utils.c (remote_open): Don't call
7242         getprotobyname, we're all using TCP here so just use
7243         IPPROTO_TCP.
7244         * gdbserver/gdbreplay.c (remote_open): Ditto.
7245
7246 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7247
7248         * regcache.c (_initialize_regcache): No need to call
7249         build_regcache() at this time; it gets called whenever
7250         the gdbarch changes.
7251
7252 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
7253
7254         * sparc-nat.c:  Include sys/param.h where possible.
7255
7256 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
7257
7258         Fix PR gdb/422.
7259         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7260         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7261         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7262         complex types.
7263         * stabsread.c (rs6000_builtin_type): Likewise.
7264         (read_sun_floating_type): Likewise.
7265
7266 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7267
7268         * stabsread.c (read_member_functions): Remove skip code for duplicate
7269         constructor/destructor methods.  Use standard parsing for these
7270         methods and just do not chain them to the list of methods after
7271         parsing.
7272
7273 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
7274
7275         * coffread.c: Remove redundant static declarations.  Replace
7276         occurrences of `PTR' with `void *'.
7277         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7278         * top.h (quit_cover): Likewise.
7279         * defs.h (catch_errors): Likewise.
7280
7281 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7282
7283         * defs.h (XMALLOC): Define.
7284         * gdb-events.sh (XMALLOC): Delete macro.
7285         * gdb-events.c, gdb-events.h: Regenerate.
7286         * gdbarch.sh (XMALLOC): Delete macro.
7287         * gdbarch.c: Regenerate.
7288         * serial.c (XMALLOC): Delete macro.
7289         * ui-file.c (XMALLOC): Ditto.
7290         * ser-unix.h (XMALLOC): Ditto.
7291         * sh-tdep.c (XMALLOC): Ditto.
7292         * ui-out.c (XMALLOC): Ditto.
7293         * utils.c (XMALLOC): Ditto.
7294         * i386-tdep.c (XMALLOC): Ditto.
7295         * gdb-events.c (XMALLOC): Ditto.
7296         * d10v-tdep.c (XMALLOC): Ditto.
7297         * cli-out.c (XMALLOC): Ditto.
7298
7299         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7300         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7301         * ui-file.c, ui-out.c: Ditto.
7302
7303 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7304
7305         * command.h (struct cmd_list_element): Add field context.
7306         (set_cmd_context, get_cmd_context): Declare.
7307         * cli/cli-decode.h: Ditto.
7308         * cli/cli-decode.c (get_cmd_context): New function.
7309         (set_cmd_context): New function.
7310         (add_cmd): Initialize context.
7311         Part of fixing PR gdb/145 and PR gdb/146.
7312
7313 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7314
7315         * cli/cli-decode.c (cmd_type): New function.
7316         * command.h (cmd_type): Declare.
7317         * infrun.c (set_schedlock_func): Call function cmd_type.
7318         * kod.c (kod_set_os): Call cmd_type.
7319         * cris-tdep.c (cris_version_update): Use function cmd_type.
7320         (cris_mode_update, cris_abi_update): Ditto.
7321
7322         * command.h: (execute_cmd_post_hook): Declare.
7323         (execute_cmd_pre_hook): Declare.
7324         * cli/cli-script.c (clear_hook_in_cleanup): New function.
7325         (execute_cmd_post_hook, execute_cmd_pre_hook): New
7326         functions. Execute pre/post hook while ensuring that afterwords
7327         hook_in is cleared.
7328         * top.c (execute_command): Use execute_cmd_post_hook, and
7329         execute_cmd_pre_hook to execute pre/post commands.
7330         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7331         hook_stop_stub.
7332         (hook_stop_stub): Call execute_cmd_pre_hook.
7333
7334 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7335
7336         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
7337         set'' and this leads to a core dump.  Move xstrdup of
7338         operating_system to after check that it is not NULL.
7339
7340 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7341
7342         * kod.c (kod_set_os): Remove unnecessary check that
7343         ``command->type'' is set_cmd.
7344
7345         * valprint.c (set_input_radix): Use input_radix.
7346         (set_output_radix): Use output_radix.
7347         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7348         isn't reverted.
7349
7350 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
7351
7352         * value.h (struct value): Delete field ``substring_addr''.  Change
7353         aligner fields to force_doublest_align, force_longest_align,
7354         force_core_addr_align and force_pointer_aligh.
7355
7356         * value.h (struct value): Fix typo in above change.
7357
7358 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7359
7360         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7361         to fix internal_error from ``maintenance print architecture''.
7362
7363 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7364
7365         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7366         for gcc versions after gcc-2.8.1.
7367
7368 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7369
7370         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7371         for method resolution.  Restore adjustment of ``this'' pointer after
7372         calling value_struct_elt, which was accidentally removed during the
7373         HP merge.
7374
7375 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
7376
7377         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7378         value_of_register.
7379         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
7380         get_saved_register.
7381         * value.h (value_of_register): Update.
7382
7383 2002-03-14  Richard Henderson  <rth@redhat.com>
7384
7385         * configure.in: Detect declaration for canonicalize_file_name.
7386         * utils.c (canonicalize_file_name): Declare, if needed.
7387         (gdb_realpath): Prefer realpath if available and usable.
7388         * config.in, configure: Rebuild.
7389
7390 2002-03-14  Richard Henderson  <rth@redhat.com>
7391
7392         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7393         a constant array bound.
7394
7395         * MAINTAINERS: Add myself to write-after-approval.
7396
7397 2002-03-14  Michael Snyder  <msnyder@redhat.com>
7398
7399         * symfile.c (syms_from_objfile): Return immediately if no syms.
7400         (symbol_file_add): Return immediately if no syms.
7401         (find_sym_fns): Return immediately if no syms.
7402
7403 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
7404
7405         * gdbserver/remote-util.c (remote_open): Print remote-side's
7406         IP address when remote debugging over the network.
7407
7408 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
7409
7410         * config/sparc/fbsd.mh: Fix copyright.
7411         * config/sparc/fbsd.mt: Likewise.
7412
7413 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
7414
7415         * MAINTAINERS: Fix typo in name of gdb warnings option.
7416         (x86-64): Fix formating so that this can be parsed by awk.
7417
7418 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7419
7420         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7421         * defs.h: Include "gdb/signals.h".
7422         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7423
7424 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
7425
7426         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7427         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7428         from x86-64-tdep.h
7429
7430 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7431             Don Howard <dhoward@redhat.com>
7432
7433         * mips-tdep.c (ST0_FR): Define.
7434         (mips2_fp_compat): New function, temporarily disabled.
7435         (mips_read_fp_register_single): New function.
7436         (mips_read_fp_register_double): New function.
7437         (mips_print_register): Use them.
7438         (do_fp_register_row): Likewise.
7439
7440 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
7441
7442         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7443         approval''.
7444
7445 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7446
7447         * stabsread.c (read_member_functions): Fix is_stub test for
7448         static member functions, improve comment.
7449
7450 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
7451
7452         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7453         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7454         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7455         commands that set boolean values.
7456         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7457         (arm_rdi_resume): Always initialize PC.
7458         (arm_rdi_open): Don't use rslt as a boolean.
7459         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7460         (arm_rdi_fetch_registers, arm_rdi_store_registers)
7461         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7462         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7463
7464 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
7465
7466         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7467         * configure: Rebuilt.
7468
7469 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7470
7471         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7472         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7473
7474 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
7475
7476         * cli/cli-decode.c (set_cmd_completer): New function.
7477         * command.h (set_cmd_completer): Declare.
7478         * cli/cli-decode.h (set_cmd_completer): Ditto.
7479
7480         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7481         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7482         * win32-nat.c (_initialize_inftarg): Ditto.
7483         * remote-rdi.c (_initialize_remote_rdi): Ditto.
7484         * proc-api.c (_initialize_proc_api): Ditto.
7485         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7486         * source.c (_initialize_source): Ditto.
7487         * exec.c (_initialize_exec): Ditto.
7488         * solib.c (_initialize_solib): Ditto.
7489         * top.c (init_main): Ditto.
7490         * tracepoint.c (_initialize_tracepoint): Ditto.
7491         * symfile.c (_initialize_symfile): Ditto.
7492         * printcmd.c (_initialize_printcmd): Ditto.
7493         * infcmd.c (_initialize_infcmd): Ditto.
7494         * corefile.c (_initialize_core): Ditto.
7495
7496 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7497
7498         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7499
7500 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7501
7502         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7503
7504 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7505
7506         * NEWS: Update headings, 5.2 has branched.
7507
7508 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
7509
7510         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7511         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7512         (register_addr, REGISTER_RAW_SIZE): Likewise.
7513         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7514         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7515
7516 2002-03-03  Michal Ludvig <mludvig@suse.cz>
7517
7518         * MAINTAINERS (x86-64): Add myself.
7519         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7520         changed value_ptr -> struct value *
7521
7522 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
7523
7524         * configure.host (sparc64-*-freebsd): Add.
7525         * configure.tgt: Likewise.
7526         * config/sparc/fbsd.mh: New file.
7527         * config/sparc/fbsd.mt: Likewise.
7528         * config/sparc/nm-fbsd.h: Likewise.
7529         * config/sparc/tm-fbsd.h: Likewise.
7530
7531 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
7532
7533         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7534         regformats/reg-s390x.dat.
7535
7536 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
7537
7538         * utils.c: Add FIXME explaining true/false problem.
7539
7540 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
7541
7542         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7543
7544 2002-02-28  Michael Chastain  <mec@shout.net>
7545
7546         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7547
7548 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
7549
7550         * gdbserver/linux-s390-low.c: New file.
7551         * regformats/reg-s390.dat: New file.
7552         * regformats/reg-s390x.dat: New file.
7553         * gdbserver/configure.srv: Add S/390.
7554         * gdbserver/Makefile.in: Add S/390.
7555         * configure.tgt: Enable gdbserver for S/390.
7556
7557 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
7558
7559         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7560         first line of the doc string for "info dos", except at the end of
7561         the sentence, since the short help stops at the first period.
7562
7563 2002-02-28  Jason Merrill  <jason@redhat.com>
7564
7565         * dwarf2read.c (dwarf_cfi_name): Add new codes.
7566
7567 2002-02-27  Fred Fish  <fnf@redhat.com>
7568
7569         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7570         comment (dumy -> dummy).
7571
7572 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7573
7574         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7575
7576 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
7577
7578       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7579
7580 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7581
7582         * gdbserver/acconfig.h: New file.
7583         * gdbserver/i387-fp.c: New file.
7584         * gdbserver/i387-fp.h: New file.
7585         * gdbserver/linux-x86-64.c: New file.
7586         * regformats/reg-x86-64.dat: New file.
7587         * configure.tgt: Add x86_64-*-linux* gdbserver support.
7588         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7589         * gdbserver/configure.in: Add support for regsets.
7590         * gdbserver/config.in: Regenerate.
7591         * gdbserver/configure: Regenerate.
7592         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
7593         * gdbserver/linux-low.h: New file.
7594         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
7595         for regsets.
7596         * gdbserver/linux-arm-low.c: Include "linux-low.h".
7597         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7598         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7599         * gdbserver/linux-mips-low.c: Include "linux-low.h".
7600         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7601         * gdbserver/linux-sh-low.c: Include "linux-low.h".
7602         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
7603         "i387-fp.h".  Add PTRACE_GETREGS and friends.
7604         * gdbserver/regcache.c (supply_register): New function.
7605         (supply_register_by_name): New function.
7606         (collect_register): New function.
7607         (collect_register_by_name): New function.
7608
7609 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7610
7611         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7612         (config.status): Add configure.srv dependency.
7613         (server_h): Add config.h dependency.
7614
7615 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7616
7617         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7618         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7619         * gdbserver/configure.srv: Change i386-*-linux* to use
7620         reg-i386-linux.o.
7621
7622 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7623
7624         * x86-64-tdep.c: Re-indent.  Update copyright date.
7625
7626 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7627
7628         From Michal Ludvig <mludvig@suse.cz>:
7629         * x86-64-tdep.c (value.h): Delete.
7630         (gdb_assert.h): Include.
7631         (x86_64_register_convert_to_virtual,
7632         x86_64_register_convert_to_raw ): Add check which lets only
7633         floating-point values to be converted.
7634         (value_push): Delete.
7635         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7636         (i386_gdbarch_init): Number of register_bytes fixed.
7637
7638 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7639
7640         * MAINTAINERS: Add x86-64 target.
7641
7642 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7643
7644         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7645         * osfsolib.c (solib_map_sections): Ditto.
7646         * irix5-nat.c (solib_map_sections): Ditto.
7647         * corelow.c (gdb_check_format): Ditto.
7648         * symfile.c (symfile_bfd_open): Ditto.
7649         * solib.c (solib_map_sections): Ditto.
7650         Fix PR gdb/354.
7651
7652 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7653
7654         * remote.c (_initialize_remote): By default, disable ``e'' and
7655         ``E'' step out-of-range packets.
7656
7657 2002-02-26  Andreas Schwab  <schwab@suse.de>
7658
7659         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7660         m68k_linux_frame_saved_pc.
7661         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7662         in_sigtramp.
7663         (SIGCONTEXT_PC_OFFSET): Remove.
7664         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7665         m68k_linux_sigtramp_saved_pc): New functions.
7666         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7667         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7668         (UCONTEXT_PC_OFFSET): Define.
7669         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7670         non-RT and RT signal trampolines.
7671
7672 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
7673
7674         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7675         (TARGET_NBPG, STACK_END_ADDR): Delete
7676         (VARIABLES_INSIDE_BLOCK): Delete.
7677
7678 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
7679
7680         * utils.c (perror_with_name): Make string parameter constant.
7681         (print_sys_errmsg): Ditto.
7682         (query): Ditto.
7683         * defs.h (perror_with_name): Update.
7684         (print_sys_errmsg): Update.
7685         (query): Update.
7686
7687 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
7688
7689         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7690         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7691
7692 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7693
7694         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7695         if it already matches the current architecture from the exec file.
7696         Include arch-utils.h for gdbarch_info_init prototype.
7697         * Makefile.in (rs6000-nat.o): Update dependencies.
7698
7699 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
7700
7701         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7702          list of exported variables.
7703
7704 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
7705
7706         * gdbserver/configure.srv: New file.
7707         * gdbserver/configure.in: Use configure.srv instead
7708         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
7709         from it.
7710         * gdbserver/configure: Regenerated.
7711         * gdbserver/terminal.h: New file.
7712         * gdbserver/Makefile.in: Update for configure changes.  Remove
7713         more unneeded include paths.
7714
7715 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
7716
7717         From wiz at danbala:
7718         * config/sparc/tm-sp64.h: Fix grammar and typos.
7719         Fix PR gdb/287.
7720
7721 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
7722
7723         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7724         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
7725         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7726         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7727         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7728         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7729         * s390-tdep.c: Ditto.
7730         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7731         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7732         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7733         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7734         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7735         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7736         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7737         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7738         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7739         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7740         Fix PR gdb/378.
7741
7742 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7743
7744         * lin-thread.c: Delete file.
7745         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7746         to gdb_proc_service.h.
7747         * configure: Re-generate.
7748
7749         * ocd.c (ocd_open): Do not try to open the "ocd" device.
7750         * serial.c (serial_open): Delete check for "ocd".
7751         Fix PR gdb/349.
7752
7753         * Makefile.in (linux-thread.o): Delete target.
7754         * linux-thread.c: Delete file.
7755
7756         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
7757         renamed SH files to be consistent.
7758
7759         * symtab.c (sort_search_symbols): Use xfree.
7760
7761 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
7762
7763         * arm-linux-tdep.c (arm_linux_init_abi): Register
7764         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7765         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7766         definition with undef, since we don't want the sysvr4 definition.
7767         (SKIP_TRAMPOLINE_CODE): Likewise.
7768
7769 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7770
7771         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7772
7773         * configure.in: (AC_CHECK_FUNCS) Added test for
7774         canonicalize_file_name Regenerated.
7775         * config.in, configure: Regenerated.
7776         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7777         defined use canonicalize_file_name.
7778
7779 2002-02-23  Michael Chastain  <mec@shout.net>
7780
7781         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7782
7783 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7784
7785         * README: Remove references to cygnus.com.
7786         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7787         dot com'' form.  Remove references to cygnus.com and sourceware.
7788
7789 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7790
7791         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7792         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7793         1003.1-2001 no longer allows "head -1".
7794         * gdb/Makefile.in (version.c): Likewise.
7795         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7796         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7797         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
7798
7799 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7800
7801         * cli/cli-decode.c (cmd_cfunc_eq): New function.
7802         * command.h (cmd_cfunc_eq): Declare.
7803         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7804
7805         * cli/cli-cmds.h (is_complete_command): Change parameter to a
7806         ``struct cmd_list_element *''.
7807         * cli/cli-cmds.c (is_complete_command): Update.  Use
7808         cmd_cfunc_eq.
7809         * top.c (execute_command): Pass the command to
7810         is_complete_command.
7811         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7812
7813 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7814
7815         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7816         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7817         architecture defines.
7818         * s390-tdep.c (s390_gdbarch_init): Likewise.
7819
7820 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
7821
7822         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7823         (arm_linux_push_arguments): Likewise.
7824         (arm_linux_init_abi): Register them.  Also register linux-specific
7825         call_dummy_words.
7826         (find_minsym_and_objfile): Use strcmp, not STREQ.
7827         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7828         (arm_linux_call_dummy_words): Delete declaration.
7829         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7830         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7831         declarations.
7832         (LOWEST_PC): Delete.
7833
7834 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7835
7836         * maint.c (print_section_info): Do not prepend `0x' to filepos
7837         output, it will be handled by local_hex_string_custom.
7838
7839 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
7840
7841         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7842         (store_newfpe_double, store_newfpe_extended, store_fpregister)
7843         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7844
7845 2002-02-22  Jim Blandy  <jimb@redhat.com>
7846
7847         Indicate that the bcache functions don't change the strings
7848         they're passed.
7849         * bcache.h (bcache, hash): Add `const' keywords to declarations.
7850         * bcache.c (bcache, hash): Add `const' keywords to definitions.
7851
7852 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
7853
7854         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7855
7856 2002-02-21  Christopher Faylor  <cgf@redhat.com>
7857
7858         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7859         find the complete path to a loaded DLL.
7860
7861 2002-02-21  Fred Fish  <fnf@redhat.com>
7862
7863         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7864         that marks the end of the range of a function, enter a line number
7865         entry that has a line number of zero and a PC offset that matches
7866         the end of the function.  This starts a range of PC's for which no
7867         line number information is known.
7868         * symtab.c (find_pc_sect_line): If our best fit is in a range of
7869         PC's for which no line number info is found (line number is zero)
7870         then we didn't find any valid line information.
7871         * symtab.h: Document use of zero line number entry.
7872
7873 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
7874
7875         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7876         (have_ptrace_getvrregs): Define for run time checks.
7877         (gdb_vrregset_t): New type for Altivec register handling.
7878         (fetch_register, store_register): Fetch/store altivec register
7879         when needed.
7880         (fetch_altivec_register, store_altivec_register): New functions.
7881         (supply_vrregset, fill_vrregset): New functions.
7882         (fetch_altivec_registers, store_altivec_registers): New functions.
7883         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7884         registers as well.
7885
7886 2002-02-21  Jiri Smid  <smid@suse.cz>
7887
7888         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7889
7890 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
7891
7892         * Makefile.in (armnbsd-nat.o): Update dependencies.
7893         * armnbsd-nat.c (supply_gregset): New function.  Common code to
7894         supply the integer register set.
7895         (supply_fparegset): New function.  Similar for FPA registers.
7896         (fetch_regs, fetch_fp_regs): Use them.
7897         (fetch_core_registers): Likewise.
7898         (fetch_elfcore_registers): New function.
7899         (arm_netbsd_elfcore_fns): New core-file type specification.
7900         (_initialize_arm_netbsd_nat): Register it.
7901
7902 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
7903
7904         * armnbsd-nat.c: Include gdbcore.h.
7905         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7906         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7907         'void' to declaration, to shut up ARI.
7908         (fetch_core_registers): Make static.  Rewrite using supply_register.
7909         (arm_netbsd_core_fns): New core-file type specification.
7910         (_initialize_arm_netbsd_nat): New function.
7911
7912 2002-02-21  Christopher Faylor  <cgf@redhat.com>
7913
7914         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7915         value.
7916
7917 2002-02-20  Christopher Faylor  <cgf@redhat.com>
7918
7919         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7920         fails.
7921
7922 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7923
7924         * jv-exp.y (parse_number): Change type of implicit longs
7925         to builtin_type_uint64.
7926
7927 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7928
7929         * gdbserver/linux-low.c (mywait): Change argument to waitpid
7930         to be an integer instead of a `union wait'.
7931
7932 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7933
7934         * mips-linux-nat.c: Call the operating system GNU/Linux.
7935         * mips-linux-tdep.c: Likewise.
7936         * mips-tdep.c: Likewise.
7937
7938 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7939
7940         Fix PR gdb/265.
7941         * jv-exp.y (parse_number): Handle 64-bit integers.
7942
7943 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7944
7945         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
7946         AC_STDC_HEADERS to AC_HEADER_STDC.
7947         * gdbserver/configure: Regenerated.
7948
7949 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
7950
7951         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7952         is defined.
7953         * sparc-tdep.c (get_longjmp_target): Likewise.
7954
7955 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
7956
7957         * News: Add news about ARM and Multi-arch.  Mention the new target
7958         arm*-*-netbsd*.
7959
7960 2002-02-19  Jim Blandy  <jimb@redhat.com>
7961
7962         * stabsread.c (error_type_complaint): Improve error message.
7963
7964 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
7965
7966         * gdbserver/README: Update documentation.
7967         * gdbserver/configure.in: Update configury to match documentation.
7968         * gdbserver/Makefile.in: Likewise.
7969         * gdbserver/configure: Regenerated.
7970         * gdbserver/aclocal.m4: New file, generated by aclocal.
7971         * gdbserver/config.in: New file, generated by autoheader.
7972
7973 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
7974
7975         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7976         armnbsd-nat.c.
7977
7978 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
7979
7980         * arm-tdep.h (enum arm_float_model): New enum.
7981         (struct gdbarch_tdep): Add fp_model.
7982         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
7983         up floating-point conversions until we know the floating-point model
7984         in use by the inferior.  Don't complain about being unable to
7985         determine the ABI of the inferior when we don't have one.
7986         (arm_extract_return_value): Support different floating-point models.
7987         (arm_store_return_value): Likewise.
7988         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
7989         ARM_FLOAT_SOFT.
7990         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7991
7992 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7993
7994         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7995         of ``current_gdbarch''.
7996
7997 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
7998
7999         * armnbsd-nat.c : ANSIfy all function declarations.
8000         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8001         (fetch_inferior_registers): Re-implement in terms of above.
8002         (store_register, store_regs, store_fp_register, store_fp_regs): New.
8003         (store_inferior_registers): Re-implement in terms of above.
8004
8005 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8006
8007         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8008         kernel.
8009         * arm-linux-tdep.c: Likewise.
8010         * config/arm/tm-linux.h: Likewise.
8011
8012 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8013
8014         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8015         * config/arm/nbsd.mt (TM_FILE): Delete.
8016         * config/arm/tm-nbsd.h: Delete.
8017
8018 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8019
8020         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8021         Initialize CALL_DUMMY_LENGTH.
8022
8023 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8024
8025         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8026         function.
8027         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8028         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8029         defines one thing and that is incorrect for this port.
8030         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8031
8032 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8033
8034         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8035
8036 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8037
8038         * win32-nat.c (display_selector): New function. Displays information
8039         about the information returned by GetThreadSelectorEntry API function.
8040         (display_selectors): New function. Displays the infomation of
8041         the selector given as argument, or of CS, DS ans FS selectors
8042         if no argument is given.
8043         ( _initialize_inftarg): Add "w32" as info prefix command.
8044         Add "info w32 selector" as command calling display_selectors.
8045
8046 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8047
8048         * i386-tdep.c (get_longjmp_target): Fix compilation failure
8049         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8050         if not defined.
8051
8052 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8053
8054         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8055
8056 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8057
8058         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8059         (arm_fix_call_dummy): Call it.
8060         (arm_call_dummy_breakpoint_offset): Delete.
8061         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8062         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8063
8064 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
8065
8066         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8067         Default to func_frame_chain_valid.
8068         * gdbarch.h, gdbarch.c: Re-generate.
8069         * frame.h (FRAME_CHAIN_VALID): Delete definition.
8070
8071 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
8072
8073         * ppc-linux-nat.c: Update copyright.
8074         (fetch_register, store_register): Add tid parameter, don't compute
8075         tid here.
8076         (fetch_ppc_registers, store_ppc_registers): Add tid
8077         parameter. Pass it along to callees.
8078         (fetch_inferior_registers, store_inferior_registers): Compute tid
8079         here, and pass it to calleed functions.
8080         (fill_gregset, supply_fpregset): Clean up formatting.
8081
8082 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8083
8084         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8085         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8086
8087 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8088
8089         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8090         * gdbarch.c gdbarch.h: Regenerate.
8091         * breakpoint.c (create_longjmp_breakpoint): Always compile this
8092         function.
8093         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8094         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8095         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8096
8097         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8098         * arm-tdep.c (arm_get_longjmp_target): New function.
8099         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
8100         this to a positive value register arm_get_longjmp_target as the
8101         longjmp handler.
8102         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8103         (arm_linux_init_abi): Set up longjmp description in tdep.
8104         * armnbsd-nat.c (get_longjmp_target): Delete.
8105         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8106         description in tdep.
8107         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8108         (get_longjmp_target): Delete declaration.
8109         (GET_LONGJMP_TARGET): Delete.
8110         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8111         (GET_LONGJMP_TARGET): Delete.
8112
8113 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
8114
8115         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
8116         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8117         of ``current_gdbarch''.
8118
8119 2002-02-17  Tom Tromey  <tromey@redhat.com>
8120
8121         * cli/cli-cmds.c (compare_strings): New function.
8122         (complete_command): Only print each unique item once.
8123         * completer.h (complete_line): Declare.
8124         * completer.c (complete_line): New function.
8125         (line_completion_function): Use it.
8126
8127 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
8128
8129         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8130         * gdbarch.h, gdbarch.c: Re-generate.
8131
8132 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8133
8134         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8135
8136 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8137
8138         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8139         * valops.c (value_arg_coerce): Don't take the address of a reference
8140         to convert an argument to a reference.
8141
8142 2002-02-15  Christopher Faylor  <cgf@redhat.com>
8143
8144         * win32-nat.c (get_image_name): New function.
8145         (handle_load_dll): Use get_image_name function.
8146         (get_child_debug_event): Avoid registering debug events until possibly
8147         execed process is started.
8148         (child_create_inferior): Allow invocation via shell so that command
8149         line redirection, etc.  works ok.
8150         (_initialize_inftarg): Add new command: "set shell" to control whether
8151         a shell is used to start a process.
8152
8153 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8154
8155         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8156         instead of find_register_by_number.
8157         (cannot_store_register): Likewise.
8158
8159 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8160
8161         * dwarf2read.c: Replace fprintf (stderr, ...) by
8162         fprintf_unfiltered (gdb_stderr, ...).
8163
8164 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8165
8166         * gdbserver/gdbserver.1: Document --attach.
8167
8168 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8169
8170         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8171         descriptions.
8172         * arm-tdep.c (arm_default_arm_le_breakpoint)
8173         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8174         (arm_default_thumb_be_breakpoint): New.  Initialize them from
8175         traditional breakpoint defines.
8176         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8177         (arm_gdbarch_init): Initialize new breakpoint variables.
8178         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8179         (arm_linux_init_abi): Initialize linux-specific breakpoint.
8180         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8181         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8182         code out to ...
8183         (arm_netbsd_init_abi_common): ... here; new function.
8184         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8185         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8186         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8187         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8188
8189 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8190
8191         * arm-tdep.h (enum arm_abi): New enum.
8192         (struct gdbarch_tdep): New structure.
8193         (LOWEST_PC): Provide a default.
8194         (arm_gdbarch_register_os_abi): Declare new function.
8195         * arm-tdep.c (arm_abi_names): New array.
8196         (process_note_abi_tag_sections): New function.
8197         (get_elfosabi): New function.
8198         (arm_gdbarch_register_os_abi): New function.
8199         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
8200         support for that ABI has been built in, then call the appropriate
8201         configuration routine.  Use gdbarch_num_regs() to get the number
8202         of registers.
8203         (arm_dump_tdep): New function.
8204         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8205         place-holder functions.
8206         (_initialize_arm_tdep): Register them.
8207         * config/arm/tm-arm.h (LOWEST_PC): Delete.
8208
8209         * armnbsd-tdep.c: New file.
8210         * Makefile.in (armnbsd-tdep.o): Add dependencies.
8211         * config/arm/nbsd.mt (TDEPFILES): Add it.
8212         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8213
8214         * armnbsd-nat.c: Include regcache.h.
8215         * Makefile.in (armnbsd-nat.o): Update dependency list.
8216
8217         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8218
8219 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8220
8221         * gdbserver/Makefile.in: Fix typos in target rules.
8222
8223 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8224
8225         Fix part of PR gdb/267.
8226         * linespec.c (find_methods): Handle constructors specially for now.
8227
8228 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
8229
8230         * arm-tdep.c (arm_push_arguments): Eliminate special float type
8231         handling.
8232         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8233         standard_coerce_float_to_double().
8234
8235 2002-02-14  Christopher Faylor  <cgf@redhat.com>
8236
8237         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8238         GDBINIT_FILENAME.
8239
8240 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
8241
8242         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8243         find_variant_by_name, because it confuses the multiarch
8244         framework. Return NULL if there isn't an architecture with the
8245         user supplied name, instead of forcing a different one without
8246         recording the change with the multiarch machinery.
8247         (find_variant_by_name): Delete.
8248
8249 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8250
8251         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8252         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8253
8254 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
8255
8256         * stack.c (print_frame_info_base): When calling
8257         print_frame_info_listing_hook, set current_source_symtab.
8258
8259 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8260
8261         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8262         and remove unused $(INCLUDE_DIR).
8263         Add regcache.c to OBS.
8264         Add generated register protocol files to clean target.
8265         Update dependencies for new objects, obsolete old target code.
8266
8267         * gdbserver/linux-low.c: Remove all platform-specific code to
8268         new files.  Remove various dead code.  Update to use regcache
8269         functionality.
8270         * gdbserver/remote-utils.c (fromhex): Add return statement
8271         to quiet warning.
8272         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8273         constant.
8274         (input_interrupt): Add integer parameter to match prototype
8275         of a signal handler.
8276         (outreg): Use register_data ().
8277         (prepare_resume_reply): Use gdbserver_expedite_regs.
8278         * gdbserver/server.c (main): Dynamically allocate own_buf because
8279         PBUFSIZ is no longer constant.  Use registers_to_string () and
8280         registers_from_string ().
8281         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
8282         for error (), fatal (), and warning ().  Update definition of
8283         PBUFSIZ to use regcache functionality.  Add include guard.
8284         * gdbserver/utils.c (fatal): Add missing ``const''.
8285         (warning): New function.
8286
8287         * regformats/regdat.sh: Include "regcache.h" in generated files.
8288         Provide init_registers () function.
8289         * regformats/regdef.h: Add prototype for set_register_cache ().
8290         Add include guard.
8291
8292         * gdbserver/linux-arm-low.c: New file.
8293         * gdbserver/linux-i386-low.c: New file.
8294         * gdbserver/linux-ia64-low.c: New file.
8295         * gdbserver/linux-m68k-low.c: New file.
8296         * gdbserver/linux-mips-low.c: New file.
8297         * gdbserver/linux-ppc-low.c: New file.
8298         * gdbserver/linux-sh-low.c: New file.
8299
8300         * gdbserver/regcache.c: New file.
8301         * gdbserver/regcache.h: New file.
8302
8303         * gdbserver/low-linux.c: Removed obsolete file.
8304
8305 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8306
8307         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8308         * config/i386/linux.mt: Likewise.
8309         * config/ia64/linux.mt: Likewise.
8310         * config/m68k/linux.mh: Likewise.
8311         * config/powerpc/linux.mh: Likewise.
8312         * config/mips/linux.mt: Likewise.
8313
8314         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8315
8316         * config/i386/i386lynx.mh: Mark gdbserver variables
8317         as (currently) obsolete for this target.
8318         * config/i386/nbsd.mt: Likewise.
8319         * config/i386/nbsdelf.mt: Likewise.
8320         * config/m32r/m32r.mt: Likewise.
8321         * config/m68k/m68klynx.mh: Likewise.
8322         * config/m68k/nbsd.mt: Likewise.
8323         * config/m68k/sun3os4.mh: Likewise.
8324         * config/mips/vr5000.mt: Likewise.
8325         * config/ns32k/nbsd.mt: Likewise.
8326         * config/pa/hppabsd.mh: Likewise.
8327         * config/pa/hppaosf.mh: Likewise.
8328         * config/powerpc/nbsd.mt: Likewise.
8329         * config/rs6000/rs6000lynx.mh: Likewise.
8330         * config/s390/s390.mt: Likewise.
8331         * config/s390/s390x.mt: Likewise.
8332         * config/sparc/sparclynx.mh: Likewise.
8333         * config/sparc/sun4os4.mh: Likewise.
8334         * config/i386/x86-64linux.mt: Likewise.
8335         * config/sparc/linux.mh: Likewise.
8336
8337 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8338
8339         * configure.tgt: Configure gdbserver only for known working
8340         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
8341         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
8342         SUBDIRS if it is configured.  Update comment for ${nativefile}.
8343         * configure: Regenerated.
8344
8345 2002-02-13  Michael Snyder  <msnyder@redhat.com>
8346
8347         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8348
8349         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8350         (default_gcore_mach): Just return 0, work around a problem in bfd.
8351         (default_gcore_target): OK to return NULL if exec_bfd is null.
8352         (make_mem_sec): Use a cast, avoid a warning.
8353
8354         * procfs.c (find_memory_regions_callback): Use a cast instead of
8355         calling host_pointer_to_address (which complains if
8356         sizeof (host pointer) != sizeof (target pointer)).
8357         (procfs_make_note_section): Avoid overflow in psargs string.
8358
8359         * procfs.c (procfs_make_note_section): Make the default
8360         implementation return an error.
8361
8362 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
8363
8364         * procfs.c (procfs_make_note_section): Provide a default definition
8365         (for alpha-dec-osf4.0f). Fix typos.
8366
8367 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
8368
8369         * linux-proc.c: Add include of regcache.h.
8370         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8371
8372 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
8373
8374         From 2002-01-18 Greg McGary <greg@mcgary.org>:
8375         * memattr.c (create_mem_region): Disallow useless empty region.
8376         Regions are half-open intervals, so allow [A..B) [B..C) as
8377         non-overlapping.
8378
8379 2002-02-13  Michael Chastain <mec@shout.net>
8380
8381         * defs.h: Kill CONST_PTR.
8382         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8383         * c-lang.c (c_builtin_types): Likewise.
8384         * ch-lang.c (ch_builtin_types): Likewise.
8385         * f-lang.c (f_builtin_types): Likewise.
8386         * language.c (unknown_builtin_types): Likewise.
8387         * m2-lang.c (m2_builtin_types): Likewise.
8388         * p-lang.c (pascal_builtin_types): Likewise.
8389         * scm-lang.c (c_builtin_types): Likewise.
8390
8391 2002-02-13  Keith Seitz  <keiths@redhat.com>
8392
8393         * arm-tdep.h (arm_get_next_pc): Add declaration.
8394
8395 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
8396
8397         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
8398         with other related struct-returning functions.
8399         (arm_extract_struct_value_address): New function.
8400         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
8401         initialize float_format, double_format and long_double_format as
8402         appropriate to the endianness of the target.
8403         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8404         (arm_use_struct_convention): Delete declaration.
8405         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8406
8407 2002-02-13  Keith Seitz  <keiths@redhat.com>
8408
8409         * defs.h (core_addr_to_string_nz): New function.
8410
8411 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
8412
8413         Apply missing bits of 2002-01-15 patch.
8414         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8415         (fill_fpregset): Use i387_fill_fsave.
8416
8417 2002-02-12  Keith Seitz  <keiths@redhat.com>
8418
8419         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8420         (core_addr_to_string_nz): New function.
8421
8422 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8423
8424         * arm-linux-nat.c: Really include arm-tdep.h.
8425         * config/arm/tm-linux.h (struct type, struct value): Declare.
8426
8427 2002-02-11  Michael Snyder  <msnyder@redhat.com>
8428
8429         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8430         (gcore section): Ifdef for Solaris and Unixware only.
8431         (procfs_do_thread_registers): Unixware needs one lwpstatus
8432         per thread (not one prstatus or pstatus).
8433         (procfs_make_note_section): Iterate only over kernel threads (lwps),
8434         not over all gdb threads.  For unixware, call elfcore_write_pstatus
8435         once before iterating over threads.
8436
8437 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8438
8439         * arm-tdep.h: New file.
8440         * arm-tdep.c: Include arm-tdep.h.
8441         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8442         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8443         (arm_print_float_info, arm_register_type, convert_to_extended)
8444         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8445         (arm_extract_return_value, arm_register_name): Make static.
8446         (arm_software_single_step): Similarly.  Fix types in declaration.
8447         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8448         (arm_store_return_value, arm_store_struct_return): New functions.
8449         (arm_gdbarch_init): Register the above functions.  Also register
8450         call_dummy_start_offset, sizeof_call_dummy_words,
8451         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8452         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8453         max_register_virtual_size, register_size.  Set up
8454         prologue_cache.saved_regs here, rather than ...
8455         (_initialize_arm_tdep): ... here.
8456         * config/arm/tm-arm.h (struct type, struct value): Delete forward
8457         declarations.
8458         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8459         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8460         (arm_print_float_info, arm_register_type, convert_to_extended)
8461         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8462         (arm_extract_return_value, arm_register_name): Delete declarations.
8463         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8464         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8465         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8466         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8467         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8468         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8469         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8470         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8471         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8472         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8473         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8474         (arm_get_next_pc): No-longer static -- these are needed by the RDI
8475         interface.
8476         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8477         * remote-rdi.c remote-rdp.c: Likewise.
8478         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8479         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8480         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8481         definition.
8482
8483         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8484         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8485         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8486         from non-ARM_ prefixed definitions.
8487         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8488         all uses of above.
8489         * remote-rdi.c remote-rdp.c: Likewise.
8490         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8491
8492 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8493
8494         * arm-tdep.c (arm_frameless_function_invocation)
8495         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8496         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8497         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8498         (arm_pop_frame, arm_get_next_pc): Make static.
8499         (arm_gdbarch_init): Register above in gdbarch structure.
8500         (arm_read_fp): Renamed from arm_target_read_fp.
8501         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8502         * config/arm/tm-arm.h (arm_frameless_function_invocation)
8503         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8504         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8505         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8506         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8507         (arm_pc_is_thumb_dummy): Delete declarations.
8508         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8509         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8510         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8511         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8512
8513 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
8514
8515         * symtab.c (compare_search_syms): New function.
8516         (sort_search_symbols): New function.
8517         (search_symbols): Sort symbols after searching rather than
8518         before.
8519
8520 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8521
8522         * NEWS: Linux -> GNU/Linux.
8523
8524 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8525
8526         * gdbarch.sh: For for level one methods, disallow a definition
8527         when partially multi-arched.  Add comments explaining rationale.
8528         * gdbarch.h: Re-generate.
8529
8530 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8531
8532         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8533         multi-arch partial.
8534
8535 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8536
8537         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
8538         field.  Use diff -u.
8539         * gdbarch.c: Re-generate.
8540
8541 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8542
8543         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8544         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8545         partial.
8546
8547 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8548
8549         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8550         multi-arch partial.
8551         (PUSH_ARGUMENTS): Switch to using predefault.
8552         * gdbarch.c: Regenerate.
8553
8554 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8555
8556         * valops.c (PUSH_ARGUMENTS): Delete definition.
8557         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8558         partial.  Default to default_push_arguments.
8559         * gdbarch.h, gdbarch.c: Regenerate.
8560
8561 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8562
8563         * defs.h (throw_exception): Rename return_to_top_level.  Update
8564         comments.
8565         * utils.c (error_stream, internal_verror, quit): Ditto.
8566         * top.c (throw_exception, catcher): Ditto.
8567         * sparclet-rom.c (sparclet_load): Ditto.
8568         * remote.c (interrupt_query, minitelnet): Ditto.
8569         * remote-sds.c (interrupt_query): Ditto.
8570         * remote-mips.c (mips_error, mips_kill): Ditto.
8571         * ocd.c (interrupt_query): Ditto.
8572         * monitor.c (monitor_interrupt_query): Ditto.
8573         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8574         * target.h: Update comment.
8575
8576         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8577
8578 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8579
8580         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8581         default_double_format.
8582         * gdbarch.h, gdbarch.c: Re-generate.
8583         * findvar.c (floatformat_unknown): Delete variable definition.
8584         * doublest.h (floatformat_unknown): Delete variable declaration.
8585
8586 2002-02-09  Jim Blandy  <jimb@redhat.com>
8587
8588         * stabsread.c (read_type): Add code to parse Sun's syntax for
8589         prototyped function types.
8590
8591 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8592
8593         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8594         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8595
8596 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8597
8598         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8599         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
8600         now _initialize_xcoffsolib gets called again and overrides the
8601         commands from solib.c in a native configuration.
8602
8603 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
8604
8605         * doublest.c (store_typed_floating): Don't try to return a value.
8606         Fixes PR gdb/290.
8607
8608 2002-02-08  Jim Blandy  <jimb@redhat.com>
8609
8610         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8611         is prototyped and has no arguments, print its argument list as
8612         `(void)'.
8613
8614 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8615
8616         * MAINTAINERS (write-after-approval): Add myself.
8617         (paper-trail): I've escaped!
8618
8619 2002-02-08  Christopher Faylor  <cgf@redhat.com>
8620
8621         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8622         changes.
8623         (_initialize_check_for_gdb_ini): Ditto.
8624
8625 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
8626
8627         * win32-nat.c (cygwin_pid_to_str): Fix typo.
8628         xaprintf -> xasprintf.
8629
8630 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
8631
8632         * win32-nat.c: Remove use of printf and sprintf functions.
8633
8634 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
8635
8636         * arm-tdep.c (arm_frame_chain_valid): Make static.
8637         (arm_push_arguments): Likewise.
8638         (arm_gdbarch_init): New function.
8639         (_initialize_arm_tdep): Call it.
8640         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8641         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8642         (FRAME_CHAIN_VALID): Delete.
8643         (arm_frame_chain_valid): Delete declaration.
8644         (PUSH_ARGUMENTS): Delete.
8645         (arm_push_arguments): Delete declaration.
8646         (CALL_DUMMY_P): Delete.
8647
8648 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
8649             Corinna Vinschen  <vinschen@redhat.com>
8650
8651         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8652         on builtin float types.
8653
8654 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
8655
8656         * utils.c: Include <curses.h> before "bfd.h".
8657         * tui/tui-hooks.c: Likewise.
8658         * tui/tui.c: Likewise.
8659         * tui/tuiCommand.c: Likewise.
8660         * tui/tuiData.c: Likewise.
8661         * tui/tuiDataWin.c: Likewise.
8662         * tui/tuiDisassem.c: Likewise.
8663         * tui/tuiGeneralWin.c: Likewise.
8664         * tui/tuiIO.c: Likewise.
8665         * tui/tuiLayout.c: Likewise.
8666         * tui/tuiRegs.c: Likewise.
8667         * tui/tuiSource.c: Likewise.
8668         * tui/tuiSourceWin.c: Likewise.
8669         * tui/tuiStack.c: Likewise.
8670         * tui/tuiWin.c: Likewise.
8671
8672 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
8673
8674         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8675         to include space for pseudoregs as well. Update loops accordingly.
8676         (sh_fp_frame_init_saved_regs): Ditto.
8677         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8678
8679 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
8680
8681         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8682         Add Richard Earnshaw to Arm maintainers.
8683
8684 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
8685
8686         * defs.h (warning_begin): Delete declaration.
8687
8688         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8689         Delete macro.
8690
8691 2002-02-07  Michael Snyder  <msnyder@redhat.com>
8692
8693         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8694         Logic bug, remove misplaced else.
8695
8696 2002-02-07  Klee Dienes  <klee@apple.com>
8697
8698         * fork-inferior.c (fork_inferior): Add '!' to the list of
8699         characters that need to be quoted when building a string for the
8700         shell.  Quote '!' specifically with a backslash, since CSH chokes
8701         when trying to evaluate "str!str".
8702
8703 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
8704
8705         * rdi-share/host.h: Only provide a typedef for bool if it is not
8706         defined.
8707
8708 2002-02-04  Michael Snyder  <msnyder@redhat.com>
8709
8710         * breakpoint.h (enum bptype): Add new overlay event bp type.
8711         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8712
8713         * breakpoint.c (create_internal_breakpoint): New function.
8714         (internal_breakpoint_number): Moved into create_internal_breakpoint.
8715         (create_longjmp_breakpoint): Use create_internal_breakpoint.
8716         (create_thread_event_breakpoint): Ditto.
8717         (create_solib_event_breakpoint): Ditto.
8718         (create_overlay_event_breakpoint): New function.
8719         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8720         (update_breakpoints_after_exec): Delete and re-initialize
8721         overlay event breakpoints after an exec.  Add FIXME comment
8722         about longjmp breakpoint.
8723         (print_it_typical): Ignore overlay event breakpoints.
8724         (print_one_breakpoint): Ditto.
8725         (mention): Ditto.
8726         (bpstat_what): Do not stop for overlay event breakpoints.
8727         (delete_breakpoint): Don't delete overlay event breakpoints.
8728         (breakpoint_re_set_one): Delete the overlay event breakpoint.
8729         (breakpoint_re_set): Re-create overlay event breakpoint.
8730
8731         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8732         (overlay_manual_command): Disable overlay breakpoints.
8733         (overlay_off_command): Disable overlay breakpoints.
8734
8735 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8736
8737         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8738         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8739         to here from config/tm-arm.h.
8740         (coff_sym_is_thumb): Make static.
8741         (arm_elf_make_msymbol_special): New function.
8742         (arm_coff_make_msymbol_special): New function.
8743         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8744         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8745         (coff_sym_is_thumb): Delete declaration.
8746         (arm_elf_make_msymbol_special): Declare.
8747         (arm_coff_make_msymbol_special): Declare.
8748         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8749         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8750
8751 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8752
8753         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8754
8755 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8756
8757         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8758         * gdbarch.c gdbarch.h: Regenerate.
8759         * arch-utils.c (default_print_float_info): New function.
8760         * arch-utils.h (default_print_float_info): Prototype it.
8761         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8762         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8763         (PRINT_FLOAT_INFO): Document it.
8764
8765         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8766         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8767         (PRINT_FLOAT_INFO): Define.
8768
8769 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
8770
8771         * win32-nat.c (_initialize_check_for_gdb_ini):
8772         Add typecast to sprintf argument to suppress a warning.
8773
8774 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
8775
8776         * win32-nat.c (last_sig): Changed type of variable to target_signal,
8777         to allow easier handling of pass state.
8778         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8779         that gives exception name and address.
8780         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8781         and set last_sig value to ourstatus->value.sig. Some missing
8782         exceptions added.
8783         (child_continue): Correctly report continue_status.
8784         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8785         TARGET_SIGNAL_0 (new default value).
8786         (child_resume): consider sig argument passed to decide if
8787         the exception should be passed to debuggee or not.
8788
8789 2002-02-05  Michael Snyder  <msnyder@redhat.com>
8790
8791         * regcache.c (fetch_register): Call target_fetch_register
8792         only if we don't call FETCH_PSEUDO_REGISTER.
8793         (store_register): Call target_store_register only if we
8794         don't call STORE_PSEUDO_REGISTER.
8795
8796 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
8797
8798         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8799         ELF_MAKE_MSYMBOL_SPECIAL.
8800         * gdbarch.c, gdbarch.h: Regenerate.
8801         * arch-utils.c (default_make_msymbol_special): New function.
8802         * arch-utils.h (default_make_msymbol_special): Export.
8803         * elfread.c (elf_symtab_read): Compile use of
8804         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8805         multiarched.
8806         * coffread.c (coff_symtab_read): Ditto, for
8807         COFF_MAKE_MSYMBOL_SPECIAL.
8808
8809 2002-02-05  Jim Blandy  <jimb@redhat.com>
8810
8811         * solib-svr4.c (svr4_truncate_ptr): New function.
8812         (svr4_relocate_section_addresses): Do the address arithmetic with
8813         the appropriate truncation for target addresses, even when
8814         CORE_ADDR is larger than a target address.
8815
8816 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8817
8818         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8819         to (int *).
8820
8821 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8822
8823         * gdbserver/linux-low.c (kill_inferior): Remove commented out
8824         code.
8825
8826 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8827
8828         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8829
8830 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8831
8832         * gdbserver/linux-low.c: Remove unused include files.
8833
8834 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8835
8836         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8837         (read_inferior_memory): Use it.
8838         (write_inferior_memory): Likewise.
8839
8840 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8841
8842         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8843         grubbing through sys_errlist.
8844
8845 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8846
8847         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8848
8849 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
8850         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8851
8852 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
8853
8854         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8855         (do_sfunc, set_cmd_sfunc): New functions.
8856
8857         * command.h (struct cmd_list_element): Add field func.
8858         * cli/cli-decode.h (struct cmd_list_element): Ditto.
8859         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8860         * cli/cli-decode.h: Ditto.
8861
8862         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8863         (help_all, help_cmd_list): Ditto.
8864         (find_cmd, complete_on_cmdlist): Ditto.
8865         * top.c (execute_command): Ditto.
8866
8867         * cli/cli-setshow.c (do_setshow_command): Call func instead of
8868         function.sfunc.
8869
8870         * infcmd.c (notice_args_read): Fix function signature.
8871
8872         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8873         * cli/cli-decode.c (add_set_cmd): Ditto.
8874         * utils.c (initialize_utils): Ditto.
8875         * maint.c (_initialize_maint_cmds): Ditto.
8876         * infrun.c (_initialize_infrun): Ditto.
8877         * demangle.c (_initialize_demangler): Ditto.
8878         * remote.c (add_packet_config_cmd): Ditto.
8879         * mips-tdep.c (_initialize_mips_tdep): Ditto.
8880         * cris-tdep.c (_initialize_cris_tdep): Ditto.
8881         * proc-api.c (_initialize_proc_api): Ditto.
8882         * kod.c (_initialize_kod): Ditto.
8883         * valprint.c (_initialize_valprint): Ditto.
8884         * top.c (init_main): Ditto.
8885         * infcmd.c (_initialize_infcmd): Ditto.
8886         * corefile.c (_initialize_core): Ditto.
8887         * arm-tdep.c (_initialize_arm_tdep): Ditto.
8888         * arch-utils.c (initialize_current_architecture): Ditto.
8889         (_initialize_gdbarch_utils): Ditto.
8890         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8891
8892         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8893         * wince.c (_initialize_inftarg): Ditto.
8894         * symfile.c (_initialize_symfile): Ditto.
8895         * mips-tdep.c (_initialize_mips_tdep): Ditto.
8896         * language.c (_initialize_language): Ditto.
8897         * arc-tdep.c (_initialize_arc_tdep): Ditto.
8898
8899 2002-02-04  Michael Snyder  <msnyder@redhat.com>
8900
8901         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8902
8903 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
8904
8905         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8906         Add rules for building the register data files.
8907
8908 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
8909
8910         * regformats/regdat.sh: Add braces to the definition of
8911         expedite_regs_${arch}.
8912
8913 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
8914
8915         * regformats/regdef.h (struct reg): Add comment describing the
8916         requirements for offset and size fields.
8917
8918 2002-02-04  Andreas Schwab  <schwab@suse.de>
8919
8920         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8921         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8922
8923 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
8924
8925         * gdbarch.sh (copyright): Update years in generated header.
8926         (SMASH_TEXT_ADDRESS): Add rule.
8927         * gdbarch.h, gdbarch.c: Re-generate.
8928         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8929         * dbxread.c: Likewise.
8930         * dwarfread.c: Likewise.
8931         * elfread.c: Likewise.
8932         * somread.c: Likewise.
8933
8934         * arm-tdep.c (arm_smash_text_address): New function.
8935         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8936
8937 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
8938
8939         Add support for hardware watchpoints on win32 native.
8940         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
8941         CONTEXT_DEBUG_REGISTERS.
8942         (dr variable): New variable. Static array containing a local copy
8943         of debug registers.
8944         (debug_registers_changed): New variable.  Reflects when debug registers
8945         are changed and need to be written to inferior.
8946         (debug_registers_used): New variable. Reflects when any debug register
8947         was set, used when new threads are created.
8948         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8949         i386-nat code.
8950         (thread_rec): Set dr array if id is the thread of current_event .
8951         (child_continue, child_resume): Change the debug registers for all
8952         threads if debug_registers_changed.
8953         (child_add_thread): Change the debug registers if debug_registers_used.
8954         * config/i386/cygwin.mh: Add use of i386-nat.o file.
8955         Link nm.h to new nm-cygwin.h file.
8956         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8957         of hardware registers.
8958
8959 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
8960
8961         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8962         Restore behavour broken by 2002-01-20 Andrew Cagney
8963         <ac131313@redhat.com> IEEE_FLOAT removal.
8964
8965 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
8966
8967         * c-valprint.c (c_val_print): Pass a proper valaddr to
8968         cp_print_class_method.
8969         * valops.c (search_struct_method): If there is only one method
8970         and args is NULL, return that method.
8971
8972 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
8973
8974         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8975         accessing tag_name directly.
8976
8977 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
8978
8979         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8980         of accessing tag_name directly.
8981
8982 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
8983
8984         PR gdb/280
8985         * gdbtypes.c (replace_type): New function.
8986         * gdbtypes.h (replace_type): Add prototype.
8987         * stabsread.c (read_type): Use replace_type.
8988
8989 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
8990
8991         * Makefile.in (memattr.o): Add missing dependencies rule.
8992
8993 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8994
8995         * breakpoint.c (break_at_finish_command): Really export.
8996         (break_at_finish_at_depth_command): Ditto.
8997         (tbreak_at_finish_command): Ditto.
8998         * hppa-tdep.c: Include completer.h.
8999         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9000         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9001
9002 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9003
9004         * utils.c (do_write): New function.
9005         (error_stream): Rewrite combining the code from error_begin and
9006         verror.
9007         (verror): Rewrite using error_stream.
9008         (error_begin): Delete function.
9009
9010 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9011
9012         * utils.c (error_begin): Make static.
9013         * defs.h (error_begin): Delete declaration.
9014
9015         * linespec.c (cplusplus_error): Replace cplusplus_hint.
9016         (decode_line_1): Use cplusplus_error instead of error_begin,
9017         cplusplus_hint and return_to_top_level.
9018         * coffread.c (coff_symfile_read): Use error instead of error_begin
9019         and return_to_top_level.
9020         * infrun.c (default_skip_permanent_breakpoint): Ditto.
9021
9022 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9023
9024         * language.h (type_error, range_error): Make string parameter
9025         constant.
9026         * language.c (warning_pre_print): Delete extern declaration.
9027         * dwarfread.c (warning_pre_print): Ditto.
9028         * language.c (type_error, range_error): Rewrite to use verror and
9029         vwarning instead of warning_begin.
9030
9031 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9032
9033         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9034         (set_ignore_count): Move misplaced comment back where it belongs.
9035
9036 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9037
9038         * command.h (NO_FUNCTION): Delete macro.
9039         * cli/cli-decode.h (NO_FUNCTION): Ditto.
9040         * top.c (execute_command): Replace NO_FUNCTION with NULL.
9041         * tracepoint.c (_initialize_tracepoint): Ditto.
9042         * cli/cli-decode.c (add_set_cmd): Ditto.
9043         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9044
9045 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9046
9047         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9048         Update ``this'' pointer when calling virtual functions.
9049
9050 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9051
9052         * breakpoint.c (create_temp_exception_breakpoint): Delete.
9053         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9054
9055 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9056
9057         * regformats/reg-arm.dat: New file.
9058         * regformats/reg-i386.dat: New file.
9059         * regformats/reg-ia64.dat: New file.
9060         * regformats/reg-m68k.dat: New file.
9061         * regformats/reg-mips.dat: New file.
9062         * regformats/reg-ppc.dat: New file.
9063         * regformats/reg-sh.dat: New file.
9064         * regformats/regdef.h: New file.
9065         * regformats/regdat.sh: New file.
9066
9067 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
9068
9069         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9070         (arm_frame_args_address, arm_frame_locals_address): New functions.
9071         (arm_frame_num_args): New function.
9072         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9073         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9074         (FRMA_NUM_ARGS): Call arm_frame_num_args.
9075
9076 2002-01-31  Michael Snyder  <msnyder@redhat.com>
9077
9078         * breakpoint.c (break_at_finish_command): Export.
9079         (break_at_finish_at_depth_command): Export.
9080         (tbreak_at_finish_command): Export.
9081         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9082         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9083         "tbreak" commands, which are HPPA specific.
9084
9085         * printcmd.c (disassemble_command): Remove an ancient
9086         artifact of an old merge.
9087
9088         * symfile.h (enum overlay_debugging_state):
9089         Define enum constant values for overlay mode.
9090         * symfile.c (overlay_debugging): Use enums instead of literals.
9091         (overlay_is_mapped, overlay_auto_command,
9092         overlay_manual_command): Ditto.
9093
9094         * breakpoint.c (insert_breakpoints, remove_breakpoint,
9095         breakpoint_here_p, breakpoint_inserted_here_p,
9096         breakpoint_thread_match, bpstat_stop_status,
9097         describe_other_breakpoints, check_duplicates, clear_command):
9098         Coding standard fixes.
9099
9100         * target.c (target_xfer_memory): Add spaces, coding standard.
9101         (do_xfer_memory): Add missing line to trust-readonly
9102         code: check bfd SEC_READONLY flag for section.
9103
9104 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
9105
9106         * PROBLEMS: Fix typo, 5.1->5.1.1.
9107
9108 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
9109
9110         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9111         data symbols, since we search based on textlow and texthigh.
9112         (find_pc_sect_symtab): Likewise.
9113
9114 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9115
9116         * defs.h (vwarning): Declare.
9117         * utils.c (vwarning): New function.
9118         (warning): Call vwarning.
9119         (warning_begin): Delete function.
9120
9121         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9122         the warning message.
9123         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9124         warning_begin.
9125
9126 2002-01-30  Michael Snyder  <msnyder@redhat.com>
9127
9128         * NEWS: Mention "set trust-readonly-sections" command.
9129         Mention generate-core-file command.
9130
9131 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9132
9133         * target.c: New command, "set trust-readonly-sections on".
9134         (do_xfer_memory): Honor the suggestion to trust readonly sections
9135         by reading them from the object file instead of from the target.
9136         (initialize_targets): Register command "set trust-readonly-sections".
9137
9138 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9139
9140         * parse.c (target_map_name_to_register): Simplify, search regs and
9141         pseudo-regs using a single loop.
9142
9143 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9144
9145         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9146
9147 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
9148
9149         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9150         * config/i386/i386v42mp.mh: Add i387-nat.o .
9151         * i386v4-nat.c: Include i387-nat.h.
9152         (supply_fpregset): Use i387_supply_fsave.
9153         (fill_fpregset): Use i387_fill_fsave.
9154
9155 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
9156
9157         * arm-tdep.c (arm_call_dummy_words): Define.
9158         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9159         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9160         (CALL_DUMMY_WORDS): Define.
9161         (arm_call_dummy_words): Declare.
9162         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9163         (arm_linux_call_dummy_words): Declare.
9164
9165 2002-01-30  Andreas Schwab  <schwab@suse.de>
9166
9167         * m68klinux-nat.c: Fix last change to use regcache_collect
9168         instead of referencing registers[] directly.
9169
9170 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9171
9172         * parse.c (target_map_name_to_register): Delete code wrapped in
9173         #ifdef REGISTER_NAME_ALIAS_HOOK.
9174
9175 2002-01-28  Michael Snyder  <msnyder@redhat.com>
9176
9177         * regcache.c (legacy_read_register_gen): Need to be able to
9178         read pseudo-register as well as real register.
9179         (legacy_write_register_gen): Ditto.
9180
9181 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9182
9183         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9184         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9185         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9186         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9187         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9188         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9189         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9190         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9191         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9192         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9193         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9194         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9195         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9196         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9197         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9198         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9199         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9200         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9201         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9202         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9203
9204 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9205
9206         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9207         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9208         (initialize_current_architecture): Update target_byte_order using
9209         information from BFD.
9210         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9211         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9212
9213 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9214
9215         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9216         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
9217
9218         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9219         #ifdef INVALID_FLOAT.
9220         * infcmd.c (do_registers_info): Ditto.
9221         * values.c (unpack_double): Ditto.  Add comment.
9222
9223         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9224         already commented out.
9225
9226 2002-01-26  Andreas Schwab  <schwab@suse.de>
9227
9228         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9229         * m68klinux-nat.c: Update ptrace interface for fetching/storing
9230         registers and add support for PTRACE_GETREGS.
9231
9232 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
9233
9234         GDB 5.1.1 released from 5.1 branch.
9235         * NEWS: Add 5.1.1 news.
9236         * README: Sync with 5.1 branch.
9237
9238 2002-01-23  Fred Fish  <fnf@redhat.com>
9239
9240         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9241         stabstring on initial malloc.  Reallocing will copy it for us,
9242         if necessary.
9243
9244 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9245
9246         * Makefile.in (hpread_h): Delete.
9247         (HFILES_NO_SRCDIR): Remove hpread.h.
9248         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9249         (hpread.o): Update dependencies.
9250         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9251
9252         * hp-psymtab-read.c: Remove file.
9253         * hp-symtab-read.c: Remove file.
9254         * hpread.h: Remove file.
9255
9256         * hpread.c: Merge all contents of hp-psymtab-read.c,
9257         hp-symtab-read.c and hpread.h into this file, as it was prior to
9258         January 1999.
9259
9260         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9261         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9262         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9263         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9264
9265 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9266
9267         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9268         fill_gregset): Call gdbarch_tdep() just once, assign result to
9269         variable and use that, instead of calling the function several
9270         times.
9271
9272 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9273
9274         * configure.host: Accept sparcv9 as alias for sparc64.
9275         * configure.tgt: Likewise.
9276
9277 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
9278
9279         * solib-aix5.c (build_so_list_from_mapfile)
9280         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9281         arguments is not reversed.
9282         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9283         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9284
9285 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
9286
9287         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9288         modified version of obsolete sh_fetch_pseudo_register.
9289         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9290         (sh4_register_read): New function.
9291         (sh_pseudo_register_write): New function. Renamed and modified
9292         version of obsolete sh_store_pseudo_register.
9293         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9294         (sh4_register_write): New function.
9295         (sh_gdbarch_init): Remove setting of gdbarch function
9296         fetch_pseudo_register and store_pseudo_register. Remove setting of
9297         register_convert_to_raw, register_convert_to_virtual,
9298         register_convertible.
9299         (sh_sh4_register_convertible): Delete. No longer needed. All is
9300         taken care by architecture specific functions
9301         register_read/register_write.
9302         (sh_sh4_register_convert_to_virtual): Make static.
9303         (sh_sh4_register_convert_to_raw): Ditto.
9304
9305 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
9306
9307         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9308         (floatformat_is_nan, floatformat_mantissa): Ditto.
9309
9310         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9311         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9312         builtin_type_ieee_double_little,
9313         builtin_type_ieee_double_littlebyte_bigword,
9314         builtin_type_m68881_ext, builtin_type_i960_ext,
9315         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9316         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9317         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9318         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9319
9320 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
9321
9322         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9323         parameter.  Set frameless flag if it exists and depended of
9324         whether the scanned function is frameless or not.
9325         (xstormy16_skip_prologue): If function is frameless, return
9326         result of xstormy16_scan_prologue().
9327         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9328         call.
9329
9330 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
9331
9332         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9333         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9334         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9335         sh_sh4_register_byte, sh_sh4_register_raw_size,
9336         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9337         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9338         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9339         sh_store_pseudo_register, sh_do_pseudo_register): Call
9340         gdbarch_tdep() just once, assign result to variable and use that,
9341         instead of calling the function several times.
9342
9343 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
9344
9345         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9346         macros instead of LAST_FPU_CTRL_REGNUM.
9347         (store_register): Likewise.
9348
9349 2002-01-21  Jim Blandy  <jimb@redhat.com>
9350
9351         * infcmd.c (run_command): Check that the `exec' target layer's BFD
9352         is up-to-date before running the program, not just when a program
9353         exits.
9354
9355 2002-01-21  Fred Fish  <fnf@redhat.com>
9356
9357         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9358         when we have found all instructions we are looking for.
9359
9360 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9361
9362         * arm-tdep.c (arm_register_name): New function.
9363         (arm_registers_names): Make static.
9364         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9365         (arm_register_name): Declare.
9366         (REGISTER_NAME): Use it.
9367
9368 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9369             Kevin Buettner  <kevinb@redhat.com>
9370
9371         Convert arm targets to new FRAME interface.
9372         * arm-tdep.c (struct frame_extra_info): Remove fsr.
9373         (arm_frame_find_save_regs): Delete.
9374         (arm_frame_init_saved_regs): New.
9375         (arm_init_extra_frame_info): Alloacte saved_regs as required.
9376         Allocate extra_info as required.  Convert all uses of fsr.regs
9377         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9378         to use extra_info.
9379         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9380         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9381         (check_prologue_cache, save_prologue_cache): Likewise.
9382         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9383         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9384         (FRAME_FIND_SAVED_REGS): Delete.
9385         (arm_frame_find_saved_regs): Delete prototype.
9386         (arm_frame_init_saved_regs): New prototype.
9387         (FRAME_INIT_SAVED_REGS): Define.
9388
9389 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9390
9391         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9392
9393 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9394
9395         From Jeff Law <law@redhat.com>:
9396         * infttrace.c: Include <sys/pstat.h>.
9397         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
9398         exec file if the ttrace equivalent fails.
9399
9400 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9401
9402         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9403         (closeLogFile): Ditto.
9404
9405 2002-01-20  Michael Chastain  <mec@shout.net>
9406
9407         * top.c (print_gdb_version): Bump copyright year to 2002.
9408
9409 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9410
9411         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9412         Zannoni and Eli Zaretskii.
9413
9414 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9415
9416         * buildsym.c: Update copyright years.
9417         * c-typeprint.c: Likewise.
9418         * dwarf2read.c: Likewise.
9419         * f-typeprint.c: Likewise.
9420         * gdbtypes.c: Likewise.
9421         * gdbtypes.h: Likewise.
9422         * hp-symtab-read.c: Likewise.
9423         * hpread.c: Likewise.
9424         * mdebugread.c: Likewise.
9425         * p-typeprint.c: Likewise.
9426
9427 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9428
9429         * remote-sim.c (gdbsim_open): Simplify code testing the macro
9430         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
9431         byte-order selectable.
9432         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9433         * arch-utils.c: Ditto.
9434         (set_endian): Ditto.
9435         (set_endian_from_file): Ditto.
9436         * gdbserver/low-sim.c (create_inferior): Ditto.
9437         * gdbarch.sh: Ditto.
9438         * gdbarch.h: Re-generate.
9439         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9440         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9441         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9442         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9443         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9444         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9445         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9446         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9447         macro definition.
9448         * config/mips/tm-wince.h: Remove #undef of macro
9449         TARGET_BYTE_ORDER_SELECTABLE.
9450         * config/sh/tm-wince.h: Ditto.
9451
9452 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9453
9454         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9455         member function fields.  Add accessor macro
9456         TYPE_FN_FIELD_ARTIFICIAL.
9457         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9458         * c-typeprint.c (c_type_print_base): Skip artificial member
9459         functions.
9460
9461 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9462
9463         * f-typeprint.c: Delete unused function f_type_print_args.
9464         * p-typeprint.c: Delete unused function pascal_type_print_args.
9465
9466 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9467
9468         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
9469         comment.  Add ``artificial'' to ``union field_location''.
9470
9471         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9472
9473         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9474         * mdebugread.c (parse_symbol): Likewise.
9475         * stabsread.c (define_symbol): Likewise.
9476         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9477         initializing TYPE_FIELD_BITPOS to n (obsolete).
9478         (hpread_doc_function_type): Likewise.
9479         * hpread.c (hpread_function_type): Likewise.
9480
9481 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9482
9483         * configure.in (host_makefile_frag): Only require a host makefile
9484         fragment when a native build.
9485         * configure: Re-generate.
9486
9487 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9488
9489         * doublest.h (floatformat_from_type): Declare.
9490         * doublest.c (floatformat_from_type): New function.
9491         (convert_typed_floating): Use.
9492
9493         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9494         call to function floatformat_from_type.
9495
9496         * gdbarch.sh (IEEE_FLOAT): Delete.
9497         * gdbarch.h, gdbarch.c: Re-generate.
9498         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9499         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9500         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9501         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9502         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9503         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9504         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9505         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9506         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9507         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9508         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9509         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9510
9511         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9512         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9513         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9514         * sh-tdep.c (sh_gdbarch_init): Ditto.
9515         * mips-tdep.c (mips_gdbarch_init): Ditto.
9516         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9517         * cris-tdep.c (cris_gdbarch_init): Ditto.
9518
9519 2002-01-20  Jiri Smid  <smid@suse.cz>
9520
9521         * configure.host, configure.tgt: Support x86-64.
9522         * NEWS: Note new target x86-64.
9523
9524         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9525         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9526         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9527         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9528         x86-64-linux-nat.o): Fix dependencies.
9529
9530 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9531
9532         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9533         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9534         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9535         * config/sparc/xm-sun4os4.h: Delete file.
9536         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9537
9538 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9539
9540         * config/sparc/sparclynx.mh (XM_FILE): Delete.
9541         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9542         * config/m68k/m68klynx.mh (XM_FILE): Delete.
9543         * config/i386/i386lynx.mh (XM_FILE): Delete.
9544         * config/rs6000/xm-rs6000ly.h: Delete file.
9545         * config/sparc/xm-sparclynx.h: Delete file.
9546         * config/m68k/xm-m68klynx.h: Delete file.
9547         * config/i386/xm-i386lynx.h: Delete file.
9548         * config/xm-lynx.h: Delete file.
9549         * config/djgpp/fnchange.lst: Update.
9550
9551 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9552
9553         * alpha-tdep.c (alpha_register_byte): New function.
9554         (alpha_register_raw_size): Ditto.
9555         (alpha_register_virtual_size): Ditto.
9556         (alpha_skip_prologue_internal): Renamed from
9557         alpha_skip_prologue.
9558         (alpha_skip_prologue): New version that calls
9559         alpha_skip_prologue_internal.
9560         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9561         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9562         second argument from alpha_skip_prologue.
9563         (REGISTER_BYTE): Use alpha_register_byte.
9564         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9565         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9566         (FRAMELESS_FUNCTION_INVOCATION): Use
9567         generic_frameless_function_invocation_not.
9568         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9569         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9570
9571 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9572
9573         * config/mips/xm-news-mips.h: Delete file.
9574         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9575
9576         * config/m88k/xm-m88k.h: Delete file.
9577         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9578         * config/m88k/xm-delta88v4.h: Ditto.
9579         * config/m88k/xm-delta88.h: Ditto.
9580
9581         * config/alpha/xm-fbsd.h: Delete file.
9582         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9583
9584         * config/sparc/xm-sparc.h: Delete file.
9585         * Makefile.in (xm-sun4os4.h): Delete dependency.
9586         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9587         * config/sparc/xm-sun4os4.h: Ditto.
9588         * config/sparc/xm-linux.h: Ditto.
9589
9590         * config/i386/xm-windows.h: Delete file.
9591
9592 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9593
9594         * utils.c: Include <sys/param.h> for MAXPATHLEN.
9595         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9596
9597 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9598
9599         * alpha-tdep.c (alpha_call_dummy_words): New.
9600         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9601         (CALL_DUMMY_P): Define.
9602         (CALL_DUMMY_WORDS): Define.
9603         (SIZEOF_CALL_DUMMY_WORDS): Define.
9604
9605 2002-01-19  Per Bothner  <per@bothner.com>
9606
9607         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
9608         isn't NULL, which can happen with some gcj-3.x-produced code.
9609
9610 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9611
9612         * alpha-tdep.c (alpha_register_virtual_type): New function.
9613         (alpha_init_frame_pc_first): Ditto.
9614         (alpha_fix_call_dummy): Ditto.
9615         (alpha_store_struct_return): Ditto.
9616         (alpha_extract_struct_value_address): Ditto.
9617         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9618         alpha_register_virtual_type.
9619         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9620         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9621         alpha_extract_struct_value_address.
9622         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9623         (INIT_FRAME_PC): Use init_frame_pc_noop.
9624         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9625
9626 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
9627
9628         * i386gnu-nat.c: Include "i386-tdep.h".
9629         (fetch_fpregs): Simplify code dealing with uninitialized floating
9630         point states such that it doesn't require FP7_REGNUM.
9631
9632 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9633
9634         * alpha-tdep.c (frame_extra_info): New.
9635         (alpha_find_saved_regs): Make static.  Use
9636         frame->extra_info.
9637         (alpha_frame_init_saved_regs): New function.
9638         (alpha_frame_saved_pc): Use frame->extra_info.
9639         (temp_saved_regs): Don't declare as struct frame_saved_regs.
9640         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9641         (init_extra_frame_info): Rename to...
9642         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
9643         (alpha_print_extra_frame_info): New function.
9644         (alpha_frame_locals_address): Ditto.
9645         (alpha_frame_args_address): Ditto.
9646         (alpha_pop_frame): Use frame->extra_info.
9647         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9648         alpha_frame_args_address.
9649         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9650         (alpha_find_saved_regs): Remove prototype.
9651         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9652         (EXTRA_FRAME_INFO): Remove.
9653         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9654         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9655
9656 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9657
9658         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9659         (alpha_cannot_fetch_register): Ditto.
9660         (alpha_cannot_store_register): Ditto.
9661         (alpha_register_convertible): Ditto.
9662         (alpha_use_struct_convention): Ditto.
9663         * config/alpha/tm-alpha.h: Update copyright years.
9664         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9665         (INNER_THAN): Use core_addr_lessthan.
9666         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9667         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9668         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9669         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9670         (FRAME_CHAIN): Remove unnecessary cast.
9671
9672 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
9673
9674         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9675         obsolete.
9676
9677 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
9678
9679         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
9680         * monitor.c, remote-array.c, remote-bug.c: Ditto.
9681         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9682         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9683         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9684         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9685         * x86-64-linux-nat.c: Ditto.
9686
9687 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9688
9689         * alpha-tdep.c (alpha_register_name): New function.
9690         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9691         (REGISTER_NAME): Define.
9692
9693 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9694
9695         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9696
9697 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9698
9699         * alpha-tdep.c: Update copyright years.
9700         (alpha_next_pc): New function.
9701         (alpha_software_single_step): Ditto.
9702         * config/alpha/tm-alpha.h: Add prototype for
9703         alpha_software_single_step.
9704
9705 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9706
9707         * alphabsd-nat.c: Update copyright years.
9708         (fill_gregset): Use regcache_collect.
9709         (fill_fpregset): Likewise.
9710         (fetch_inferior_registers): Only fetch integer registers
9711         if requested to do so.
9712         (store_inferior_registers): Only store integer registers
9713         if requested to do so.
9714
9715 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9716
9717         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9718         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9719         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9720         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9721         * config/alpha/fbsd.mh (XDEPFILES): Delete.
9722         * config/arm/linux.mh (XDEPFILES): Delete.
9723         * config/arm/nbsd.mh (XDEPFILES): Delete.
9724         * config/i386/i386dgux.mh (XDEPFILES): Delete.
9725         * config/i386/i386sol2.mh (XDEPFILES): Delete.
9726         * config/i386/i386m3.mh (XDEPFILES): Delete.
9727         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9728         * config/i386/i386gnu.mh (XDEPFILES): Delete.
9729         * config/i386/fbsd.mh (XDEPFILES): Delete.
9730         * config/i386/i386bsd.mh (XDEPFILES): Delete.
9731         * config/i386/i386sco5.mh (XDEPFILES): Delete.
9732         * config/i386/i386v4.mh (XDEPFILES): Delete.
9733         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9734         * config/i386/i386sco4.mh (XDEPFILES): Delete.
9735         * config/i386/i386aix.mh (XDEPFILES): Delete.
9736         * config/i386/go32.mh (XDEPFILES): Delete.
9737         * config/i386/cygwin.mh (XDEPFILES): Delete.
9738         * config/i386/i386lynx.mh (XDEPFILES): Delete.
9739         * config/i386/i386mach.mh (XDEPFILES): Delete.
9740         * config/i386/i386v32.mh (XDEPFILES): Delete.
9741         * config/i386/linux.mh (XDEPFILES): Delete.
9742         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9743         * config/i386/ncr3000.mh (XDEPFILES): Delete.
9744         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9745         * config/i386/i386sco.mh (XDEPFILES): Delete.
9746         * config/i386/i386v.mh (XDEPFILES): Delete.
9747         * config/i386/nbsd.mh (XDEPFILES): Delete.
9748         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9749         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9750         * config/i386/symmetry.mh (XDEPFILES): Delete.
9751         * config/i386/obsd.mh (XDEPFILES): Delete.
9752         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9753         * config/ia64/linux.mh (XDEPFILES): Delete.
9754         * config/ia64/aix.mh (XDEPFILES): Delete.
9755         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9756         * config/m68k/dpx2.mh (XDEPFILES): Delete.
9757         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9758         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9759         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9760         * config/m68k/linux.mh (XDEPFILES): Delete.
9761         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9762         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9763         * config/m68k/nbsd.mh (XDEPFILES): Delete.
9764         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9765         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9766         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9767         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9768         * config/m88k/delta88.mh (XDEPFILES): Delete.
9769         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9770         * config/m88k/m88k.mh (XDEPFILES): Delete.
9771         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9772         * config/mips/linux.mh (XDEPFILES): Delete.
9773         * config/mips/irix6.mh (XDEPFILES): Delete.
9774         * config/mips/irix5.mh (XDEPFILES): Delete.
9775         * config/mips/irix4.mh (XDEPFILES): Delete.
9776         * config/mips/irix3.mh (XDEPFILES): Delete.
9777         * config/mips/decstation.mh (XDEPFILES): Delete.
9778         * config/mips/mipsm3.mh (XDEPFILES): Delete.
9779         (NATDEPFILES): Move core-aout.o to here.
9780         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9781         * config/pa/hpux1020.mh (XDEPFILES): Delete.
9782         * config/pa/hppabsd.mh (XDEPFILES): Delete.
9783         * config/pa/hppahpux.mh (XDEPFILES): Delete.
9784         * config/pa/hpux11w.mh (XDEPFILES): Delete.
9785         * config/pa/hppaosf.mh (XDEPFILES): Delete.
9786         * config/pa/hpux11.mh (XDEPFILES): Delete.
9787         * config/powerpc/aix.mh (XDEPFILES): Delete.
9788         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9789         * config/powerpc/linux.mh (XDEPFILES): Delete.
9790         * config/romp/rtbsd.mh: Rename XDEPFILES.
9791         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9792         * config/rs6000/aix4.mh (XDEPFILES): Delete.
9793         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9794         * config/s390/s390.mh (XDEPFILES): Delete.
9795         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9796         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9797         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9798         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9799         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9800         * config/sparc/nbsd.mh (XDEPFILES): Delete.
9801         * config/sparc/linux.mh (XDEPFILES): Delete.
9802         * config/vax/vaxult.mh (XDEPFILES): Delete.
9803         * config/vax/vaxult2.mh (XDEPFILES): Delete.
9804         * Makefile.in (DEPFILES): Remove XDEPFILES.
9805
9806 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9807
9808         * utils.c (internal_verror): Fix comments, default is yes not no.
9809         Update queries to match.  Default to quit and dump core.
9810
9811 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9812
9813         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
9814         copyright.
9815         * defs.h, event-top.c, gdbcmd.h: Ditto.
9816         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9817         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9818         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9819         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9820         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9821         * mi/mi-main.c:Ditto.
9822
9823         * stack.c, symfile.c: Update copyright.
9824
9825 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
9826
9827         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9828         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9829         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9830         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9831
9832 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
9833
9834         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9835         * gdbserver/low-lynx.c (myattach): Likewise.
9836         * gdbserver/low-nbsd.c (myattach): Likewise.
9837         * gdbserver/low-sim.c (myattach): Likewise.
9838         * gdbserver/low-sparc.c (myattach): Likewise.
9839         * gdbserver/low-sun3.c (myattach): Likewise.
9840
9841         * gdbserver/low-linux.c (myattach): New function.
9842
9843         * gdbserver/server.c (attach_inferior): New function.
9844         (main): Handle "--attach".
9845
9846 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
9847
9848         * MAINTAINERS (language support): Daniel Jacobwitz is C++
9849         maintainer.
9850
9851 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
9852
9853         * c-typeprint.c (is_type_conversion_operator): Add additional
9854         check for non-conversion operators.
9855
9856 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9857
9858         * linux-proc.c: Add "info proc" command, a la procfs.c.
9859         (read_mapping): New function, abstract and re-use code.
9860         (linux_find_memory_regions): Use new func read_mapping.
9861         (linux_info_proc_cmd): New function, implement "info proc".
9862         (_initialize_linux_proc): Add new command "info proc".
9863
9864 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9865
9866         * symfile.c (generic_load): Use bfd_map_over_sections method
9867         instead of manipulating bfd structure members directly.
9868         (add_section_size_callback): New function, bfd sections callback
9869         used by generic_load.
9870         (load_sections_callback): New function, bfd sections callback
9871         used by generic_load.
9872
9873 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
9874
9875         [Based on work by Jim Blandy]
9876         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9877         (builtin_type_vec128): Export.
9878         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9879         types.
9880         (builtin_type_vec128): New builtin type for 128 bit vector
9881         registers.
9882         (build_gdbtypes): Initialize builtin_type_v16qi and
9883         builtin_type_v8hi. Create the vec128 register builtin type
9884         structure.
9885         (build_builtin_type_vec128): New function.
9886         (_initialize_gdbtypes): Register builtin_type_v16qi and
9887         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9888         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9889         AltiVec register to new builtin type.
9890
9891 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
9892
9893         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9894         to make_cv_type.
9895
9896 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
9897
9898         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9899         CLEAN_UP_REGISTER_VALUE.
9900         * regcache.c (supply_register): Update only call.
9901
9902 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
9903
9904         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9905         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9906         a29k-*-vxworks* targets as obsolete.
9907
9908 2002-01-14  Michael Snyder  <msnyder@redhat.com>
9909
9910         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9911         until we can resolve portability issues.
9912         * gregset.h: Remove references to fpxregs.
9913         * gcore.c (gcore_command): Initialize note_sec to NULL.
9914
9915 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9916
9917         * signals.c (target_signal_to_name): Rewrite.  Only use
9918         signals[].name when in bounds and non-NULL.
9919
9920 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9921
9922         From Petr Ledvina <ledvinap@kae.zcu.cz>:
9923         * signals.c (target_signal_to_name): Verify that SIG is within the
9924         bounds of the signals array.
9925
9926 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9927
9928         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9929
9930 2002-01-13  Keith Seitz  <keiths@redhat.com>
9931
9932         * stack.c (print_frame_info_base): Print the frame's pc
9933         only if when print_frame_info_listing_hook is not defined.
9934
9935 2002-01-13  Keith Seitz  <keiths@redhat.com>
9936
9937         * varobj.c (varobj_set_value): Make sure that there were no
9938         errors evaluating the object before attempting to set its
9939         value.
9940         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9941         so this offset adjustment is no longer necessary.
9942         (create_child): Don't set the error flag if the child is
9943         a CPLUS_FAKE_CHILD.
9944         (value_of_child): If value_fetch_lazy fails, return NULL
9945         so that callers will be notified that an error occurred.
9946         (c_value_of_variable): Delay check of variable's validity
9947         until later. We actually want all structs and unions to have
9948         the value "{...}".
9949         Do not return "???" for variables which could not be evaluated.
9950         This error condition must be returned to the caller so that it
9951         can get the error condition from gdb.
9952         (cplus_name_of_child): Adjust index for vptr before figuring
9953         out the name of the child.
9954         (cplus_value_of_child): If a child's (real) parent is not valid,
9955         don't even bother trying to give a value for it. Just return
9956         an error. Change all instances in this function.
9957         (cplus_type_of_child): If our parent is one of the "fake"
9958         parents, we need to get at the type of the real parent, and
9959         derive the child's true type using this information.
9960
9961 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9962
9963         From 2002-01-09 John Marshall <johnm@falch.net>:
9964         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9965         sources.redhat.com, and tweak some related URLs which had
9966         suffered from linkrot.
9967
9968 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9969
9970         From Jeff law:
9971         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9972         structures passed in registers.
9973
9974 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
9975
9976         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9977         white space which prevented compilation.  Reported by DSK
9978         <dsk@student.unsw.edu.au>.
9979
9980 2002-01-11  Michael Snyder  <msnyder@redhat.com>
9981
9982         * symfile.c (build_section_addr_info_from_section_tab):
9983         Use bfd access method instead of manipulating bfd directly.
9984         (syms_from_objfile): Ditto.
9985         (simple_overlay_update_1): Ditto.
9986         (simple_overlay_update): Ditto.
9987         (generic_load): Ditto.
9988         (overlay_unmapped_address): FIXME comment, bfd access methods.
9989         (sections_overlap): FIXME comment, bfd access methods.
9990         (pc_in_mapped_range): FIXME comment, bfd access methods.
9991         (pc_in_unmapped_range): FIXME comment, bfd access methods.
9992         (section_is_mapped): FIXME comment, bfd access methods.
9993         (section_is_overlay): FIXME comment, bfd access methods.
9994
9995         * symfile.c (generic_load): Whitespace and long line cleanups.
9996         Remove duplicate variable, change several local variables to
9997         more appropriate data types.
9998         (print_transfer_performance): Use %lu instead of %ld for ulongs.
9999
10000 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10001
10002         From Peter Schauer:
10003         * language.c (longest_local_hex_string_custom): Use phex_nz to
10004         convert NUM to a hex string.
10005
10006 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
10007
10008         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10009         the function.
10010         Update Copyright year.
10011
10012 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10013
10014         * language.c (longest_raw_hex_string): Delete unused function.
10015
10016 2002-01-11  Petr Sorfa  <petrs@caldera.com>
10017
10018         * MAINTAINERS (write-after-approval): Add myself.
10019         * dwarf2read.c (read_tag_string_type): Handling of
10020         DW_AT_byte_size.
10021         (read_tag_string_type): FORTRAN fix to prevent propagation of
10022         first string size.
10023         (set_cu_language): Handling of DW_LANG_Fortran95
10024
10025 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
10026
10027         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10028         GETPID(inferior_ptid).
10029         (store_inferior_registers): Likewise.
10030
10031 2002-01-10  Jason Merrill  <jason@redhat.com>
10032
10033         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10034         Fix DW_OP_minus.
10035
10036 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
10037
10038         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10039         and bfd/elf32-sh-nbsd.c.
10040
10041 2002-01-10  Michael Snyder  <msnyder@redhat.com>
10042
10043         * NEWS: Mention --pid and corefile/proc-id behavior change.
10044
10045         * Makefile.in: Add rules for gcore.o and linux-proc.o.
10046         * gcore.c: Include cli/cli-decode.h instead of command.h.
10047
10048         * main.c (captured_main): Add new command line option "--pid".
10049         If the second command line argument (following the symbol-file)
10050         begins with a digit, try to attach to it before trying to open
10051         it as a corefile.
10052         (print_gdb_help): Document the "--pid" argument.
10053
10054 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
10055
10056         * completer.c (command_completer): New function.
10057
10058         * completer.h <command_completer>: Add prototype.
10059
10060         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10061         completer for the "help" command.
10062
10063 2002-01-09  Jason Merrill  <jason@redhat.com>
10064
10065         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10066
10067 2002-01-09  Michael Snyder  <msnyder@redhat.com>
10068
10069         * i386-linux-nat.c (fill_fpxregset): Make global.
10070         (store_fpxregset): Ditto.
10071
10072         * gregset.h (gdb_fpxregset_t): Define.
10073         (supply_fpxregset): Prototype.
10074         (fill_fpxregset): Prototype.
10075
10076         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10077
10078 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10079
10080         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10081         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10082         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10083
10084 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
10085
10086         * MAINTAINERS: Update target maintainer rules so that any
10087         Maintainer can approve a tested patch for a maintenance-only
10088         target.
10089
10090 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10091
10092         * MAINTAINERS (write-after-approval): Add myself.
10093
10094         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10095         IN_SIGTRAMP.
10096
10097 2002-01-08  Michael Snyder  <msnyder@redhat.com>
10098
10099         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10100         real name of the executable, rather than the /proc name.
10101
10102 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10103
10104         Implement a "generate-core-file" command in gdb, save target state.
10105         * gcore.c: New file.  Implement new command 'generate-core-file'.
10106         Save a corefile image of the current state of the inferior.
10107         * linux-proc.c: Add linux-specific code for saving corefiles.
10108         * target.h (struct target_ops): Add new target vectors for saving
10109         corefiles; to_find_memory_regions and to_make_corefile_notes.
10110         (target_find_memory_regions): New macro.
10111         (target_make_corefile_notes): New macro.
10112         * target.c (update_current_target): Inherit new target methods.
10113         (dummy_find_memory_regions): New place-holder method.
10114         (dummy_make_corefile_notes): New place-holder method.
10115         (init_dummy_target): Initialize new dummy target vectors.
10116         * exec.c (exec_set_find_memory_regions): New function.
10117         Allow the exec_ops vector for memory regions to be taken over.
10118         (exec_make_note_section): New function, target vector method.
10119         * defs.h (exec_set_find_memory_regions): Export prototype.
10120         * procfs.c (proc_find_memory_regions): New function, corefile method.
10121         (procfs_make_note_section): New function, corefile method.
10122         (init_procfs_ops): Set new target vector pointers.
10123         (find_memory_regions_callback): New function.
10124         (procfs_do_thread_registers): New function.
10125         (procfs_corefile_thread_callback): New function.
10126         * sol-thread.c (sol_find_memory_regions): New function.
10127         (sol_make_note_section): New function.
10128         (init_sol_thread_ops): Initialize new target vectors.
10129         * inftarg.c (inftarg_set_find_memory_regions): New function.
10130         Allow to_find_memory_regions vector to be taken over.
10131         (inftarg_set_make_corefile_notes): New function.
10132         Allow to_make_corefile_notes vector to be taken over.
10133         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10134         interface layer if not target_has_execution (may be a corefile).
10135         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10136         * config/sparc/sun4sol2.mh: Ditto.
10137         * config/alpha/alpha-linux.mh: Ditto.
10138         * config/arm/linux.mh: Ditto.
10139         * config/i386/x86-64linux.mh: Ditto.
10140         * config/ia64/linux.mh: Ditto.
10141         * config/m68k/linux.mh: Ditto.
10142         * config/mips/linux.mh: Ditto.
10143         * config/powerpc/linux.mh: Ditto.
10144         * config/sparc/linux.mh: Ditto.
10145
10146 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10147
10148         * arm-linux-nat.c: Remove references to regcache.c internal data
10149         (registers[] and register_valid[]).
10150
10151 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10152
10153         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
10154         so that attaching to a pid will automatically read the process's
10155         symbol file and shlibs.
10156         * Makefile.in: Add rule for linux-proc.o.
10157         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10158         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10159         * config/arm/linux.mh: Ditto.
10160         * config/i386/linux.mh: Ditto.
10161         * config/i386/x86-64linux.mh: Ditto.
10162         * config/ia64/linux.mh: Ditto.
10163         * config/m68k/linux.mh: Ditto.
10164         * config/mips/linux.mh: Ditto.
10165         * config/powerpc/linux.mh: Ditto.
10166         * config/sparc/linux.mh: Ditto.
10167
10168 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
10169
10170         * win32-nat.c: Add i386-tdep.h dependency.
10171
10172 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10173
10174         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10175         instead of bfd_get_arch_size.  Don't bail out just because
10176         there's no exec_bfd.
10177
10178         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10179         * p-valprint.c (pascal_object_print_value): Ditto.
10180         * somread.c (som_symtab_read): Ditto.
10181         * symfile.c (simple_free_overlay_region_table): Ditto.
10182         * valops.c (value_assign): Ditto.
10183
10184         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10185         use tilde_expand and strerror for opening save-tracepoints file.
10186
10187         * thread-db.c (thread_db_new_objfile): Indendation fix.
10188
10189         * infptrace.c (GDB_MAX_ALLOCA): New define.
10190         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10191         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10192         can be overridden with whatever value is appropriate to the host).
10193         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10194         alloca to allocate potentially large buffer.
10195         * rs6000-nat.c (child_xfer_memory): Ditto.
10196         * symm-nat.c (child_xfer_memory): Ditto.
10197         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10198
10199 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
10200
10201         From Nick Clifton  <nickc@redhat.com>
10202         * d10v-tdep.c: Set STACK_START to 0x200bffe.
10203
10204 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10205
10206         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10207         Don't use exec_bfd if it's NULL.
10208
10209 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
10210
10211         * valops.c (value_arg_coerce): Fix formatting.
10212
10213 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10214
10215         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10216         * gnu-nat.c: Ditto.
10217
10218 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10219
10220         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10221         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10222         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10223         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10224         z8k-coff have not been multi-arched.  Update z8k-coff build
10225         status.
10226
10227 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10228
10229         * MAINTAINERS: Mark a29k target as obsolete.
10230         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10231         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
10232         comments.
10233         * NEWS: Note that a29k targets are obsolete.
10234         * a29k-tdep.c: Mark as obsolete.
10235         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10236         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10237         a29k-*-vxworks* targets as obsolete.
10238         * remote-adapt.c: Obsolete.
10239         * remote-eb.c: Obsolete.
10240         * remote-mm.c: Obsolete.
10241         * remote-udi.c: Obsolete.
10242         * config/a29k/a29k-udi.mt: Obsolete.
10243         * config/a29k/a29k.mt: Obsolete.
10244         * config/a29k/tm-a29k.h: Obsolete.
10245         * config/a29k/tm-vx29k.h: Obsolete.
10246         * config/a29k/vx29k.mt: Obsolete.
10247
10248 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10249
10250         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10251         with BFD_ENDIAN_BIG.
10252
10253 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10254
10255         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10256         * configure, config.in: Re-generate.
10257         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10258         * defs.h: Do not include <endian.h>.
10259
10260 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
10261
10262         * acconfig.h (HAVE_PT_GETXMMREGS): New.
10263         * config.in: Regenerate.
10264         * configure.in: Update copyright years.
10265         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10266         * configure: Regenerate.
10267         * i386bsd-nat.c: Update copyright years.
10268         (fill_gregset): Use regcache_collect.
10269         (fetch_inferior_registers): Only fetch integer registers
10270         if requested to do so.  Add support for XMM registers
10271         using PT_GETXMMREGS.
10272         (store_inferior_registers): Only store integer registers
10273         if requested to do so.  Add support for XMM registers
10274         using PT_SETXMMREGS.
10275         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10276         (store_inferior_registers): Remove.
10277         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10278         (fetch_elfcore_registers): New function.
10279         (i386nbsd_elfcore_fns): New.
10280         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10281         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10282         i386bsd-nat.o.
10283         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10284         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10285         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10286         * config/i386/tm-nbsd.h: Update copyright years.
10287         (HAVE_SSE_REGS): Define.
10288         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10289         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10290         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10291         (SIGCONTEXT_PC_OFFSET): Remove.
10292         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10293
10294 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10295
10296         * configure.tgt: Remove powerpc-*-macos* target.
10297         * config/m68k/xm-mpw.h: Delete file.
10298         * config/xm-mpw.h: Delete file.
10299         * ser-mac.c: Delete file.
10300         * mpw-make.sed: Delete file.
10301         * mpw-config.in: Delete file.
10302         * mac-xdep.c: Delete file.
10303         * mac-gdb.r: Delete file.
10304         * mac-defs.h: Delete file.
10305         * mac-nat.c: Delete file.
10306         * config/powerpc/macos.mh: Delete file.
10307         * config/powerpc/macos.mt: Delete file.
10308         * config/powerpc/nm-macos.h: Delete file.
10309         * config/powerpc/tm-macos.h: Delete file.
10310         * source.c (openp, open_source_file): Remove obsolete code.
10311         * top.c (gdb_readline): Ditto.
10312         * utils.c (query): Ditto.
10313         * event-top.c (display_gdb_prompt): Ditto.
10314         * Makefile.in (ser-mac.o): Delete obsolete target.
10315         * NEWS: Update.
10316
10317 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10318
10319         * defs.h (BIG_ENDIAN): Delete macro definition.
10320         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10321         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10322         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10323         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10324         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10325         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10326         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10327         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10328         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10329         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10330         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10331         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10332         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10333         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10334         * gdbarch.c: Re-generate.
10335
10336 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10337
10338         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10339         for core files.
10340
10341 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10342
10343         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10344
10345 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10346
10347         * value.h (value_ptr): Delete typedef.
10348
10349 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10350
10351         * i386nbsd-nat.c: Update copyright years.
10352         Include i386-tdep.h.
10353
10354 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
10355
10356         * stabsread.c: Update copyright years.
10357
10358         From Debashis Mahata <debashis.mahata@wipro.com>:
10359         (read_struct_fields): Deal with Sun C compiler erroneous stab
10360         output for structs and unions.
10361         Fix PR gdb/269.
10362
10363 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10364
10365         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10366         prototype.
10367
10368 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10369
10370         * cp-abi.c: Fix whitespace.
10371         (baseclass_offset): New wrapper function.
10372         * cp-abi.h (baseclass_offset): Add prototype.
10373         (struct cp_abi_ops): Add baseclass_offset pointer.
10374
10375         * valops.c (vb_match): Move to...
10376         * gnu-v2-abi.c (vb_match): here.
10377         * valops.c (baseclass_offset): Move to...
10378         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10379
10380         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10381
10382         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10383         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10384         * hpacc-abi.c (init_hpacc_ops): Likewise.
10385
10386 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10387
10388         * valops.c (find_overload_match): Accept obj as a
10389         reference parameter.  Update it before returning.
10390         * value.h (find_overload_match): Update prototype.
10391         * eval.c (evaluate_subexp_standard): Pass object to
10392         find_overload_match by reference.
10393
10394 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
10395
10396         * valarith.c: Replace value_ptr with struct value pointer.  Remove
10397         register attribute from value declarations.
10398         * valops.c: Ditto.
10399         * value.h: Ditto.
10400         * scm-lang.c (scm_lookup_name): Ditto.
10401
10402 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10403
10404         Abstract the functionality of iterating over mapped memory
10405         regions into a general purpose iterator function.
10406         * procfs.c (iterate_over_mappings): New function, general purpose
10407         iterator for memory sections.
10408         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10409         (solib_mappings_callback): New function, callback for above.
10410         (info_proc_mappings): Reimpliment using iterate_over_mappings.
10411         (info_mappings_callback): New function, callback for above.
10412
10413         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10414
10415 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
10416
10417         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10418         * i386-tdep.c: Include "elf-bfd.h".
10419         (process_note_abi_tag_sections): New function.
10420         (i386_gdbarch_init): Add code to recognize various OS/ABI
10421         combinations.
10422
10423         * maint.c (_initialize_maint_cmds): Add missing \ in
10424         string-literal.
10425
10426 For older changes see ChangeLog-2001
10427 \f
10428 Local Variables:
10429 mode: change-log
10430 left-margin: 8
10431 fill-column: 74
10432 version-control: never
10433 End: