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