2003-06-13 Andrew Cagney <cagney@redhat.com>
[external/binutils.git] / gdb / ChangeLog
1 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2
3         * gdbarch.sh: Update comments on registers.
4         (deprecated_register_byte): Rename register_byte.
5         (deprecated_register_raw_size): Rename register_raw_size.
6         (deprecated_register_virtual_size): Rename register_virtual_size.
7         (deprecated_register_virtual_type): Rename register_virtual_type.
8         * gdbarch.h, gdbarch.c: Re-generate.
9         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10         * vax-tdep.c (vax_gdbarch_init): Update.
11         * v850-tdep.c (v850_gdbarch_init): Update.
12         * sparc-tdep.c (sparc_gdbarch_init): Update.
13         * sh-tdep.c (sh_gdbarch_init): Update.
14         * s390-tdep.c (s390_gdbarch_init): Update.
15         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
16         * ns32k-tdep.c: Update.
17         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
18         * mips-tdep.c (mips_gdbarch_init): Update.
19         * mcore-tdep.c (mcore_gdbarch_init): Update.
20         * m68k-tdep.c (m68k_gdbarch_init): Update.
21         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
22         * ia64-tdep.c (ia64_gdbarch_init): Update.
23         * hppa-tdep.c (hppa_gdbarch_init): Update.
24         * h8300-tdep.c (h8300_gdbarch_init): Update.
25         * frv-tdep.c (frv_gdbarch_init): Update.
26         * cris-tdep.c (cris_gdbarch_init): Update.
27         * avr-tdep.c (avr_gdbarch_init): Update.
28         * alpha-tdep.c (alpha_gdbarch_init): Update.
29         * arm-tdep.c (arm_gdbarch_init): Update.
30
31 2003-06-13  Andrew Cagney  <cagney@redhat.com>
32
33         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
34         mips_o32_use_struct_convention with always_use_struct_convention.
35
36 2003-06-12  David Carlton  <carlton@kealia.com>
37
38         * cp-namespace.c (cp_set_block_scope): Comment out
39         processing_has_namespace_info branch.
40
41 2003-06-12  Jim Blandy  <jimb@redhat.com>
42
43         Recognize and skip 64-bit PowerPC Linux linkage functions.
44         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
45         insn_pattern, insns_match_pattern, d_field, ds_field): New
46         functions, macros, and types for working with PPC instructions.
47         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
48         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
49         ppc64_skip_trampoline_code): New functions, variables, and macros
50         for recognizing and skipping linkage functions.
51         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
52         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
53
54         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
55         register offsets for both the 32- and 64-bit interfaces.
56
57         Actually finish the job started by my change of 2003-05-29.
58         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
59         other #definition of this.
60         (ppc_linux_skip_trampoline_code): Remove declaration.
61         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
62         static.
63         (ppc_linux_init_abi): Register it as the skip_trampoline_code
64         method for GDBARCH.
65
66         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
67         'long' on ppc64-*-linux*.
68
69         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
70         isn't #defined, assume the register doesn't exist: act as if
71         tdep->ppc_mq_regnum were -1.
72
73         * configure.host, configure.tgt: Add entries for
74         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
75         powerpc/linux.mt.
76         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
77         New files.
78
79         * arch-utils.c (always_use_struct_convention): New function.
80         * arch-utils.h (always_use_struct_convention): New prototype.
81         * alpha-tdep.c (alpha_use_struct_convention): Delete.
82         (alpha_gdbarch_init): Register always_use_struct_convention,
83         instead of alpha_use_struct_convention.
84         * cris-tdep.c (cris_use_struct_convention): Delete.
85         (cris_gdbarch_init): Register always_use_struct_convention,
86         instead of cris_use_struct_convention.
87         * frv-tdep.c (frv_use_struct_convention): Delete.
88         (frv_gdbarch_init): Register always_use_struct_convention,
89         instead of frv_use_struct_convention.
90         * h8300-tdep.c (h8300_use_struct_convention): Delete.
91         (h8300_gdbarch_init): Register always_use_struct_convention,
92         instead of h8300_use_struct_convention.
93         * mips_o32-tdep.c (mips_o32_use_struct_convention): Delete.
94         (mips_o32_gdbarch_init): Register always_use_struct_convention,
95         instead of mips_o32_use_struct_convention.
96
97 2003-06-12  Andrew Cagney  <cagney@redhat.com>
98
99         * wince.c: Include "mips-tdep.h".
100         * mips-tdep.h (mips_next_pc): Declare.
101         * mcore-tdep.c: Make more local functions static.
102         * Makefile.in (wince.o): Update dependencies.
103
104 2003-06-12  David Carlton  <carlton@kealia.com>
105
106         * symtab.c (lookup_symbol_aux_minsyms): Replace
107         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
108         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
109         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
110         SYMBOL_NATURAL_NAME.
111
112 2003-06-12  Andreas Schwab  <schwab@suse.de>
113
114         * Makefile.in (tuiDisassem.o): Update dependencies.
115
116 2003-06-12  David Carlton  <carlton@bactrian.org>
117
118         * symtab.h: Delete declaration of make_symbol_overload_list.
119         Add declaration of lookup_partial_symbol.
120         * symtab.c (remove_params): Move to cp-support.c.
121         (overload_list_add_symbol, make_symbol_overload_list)
122         (sym_return_val_size, sym_return_val_index): Ditto.
123         (lookup_partial_symbol): Make extern.
124         * cp-support.h: Add declaration of make_symbol_overload_list.
125         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
126         symtab.h, and block.h.
127         (remove_params): Move here from symtab.c.
128         (overload_list_add_symbol, make_symbol_overload_list)
129         (sym_return_val_size, sym_return_val_index): Ditto.
130         * valops.c: Include cp-support.h.
131         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
132         frame_h, and block_h.
133         (valops.o): Depend on cp_support_h.
134
135 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
136
137         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
138         substitute by NUM_REGS throughout.
139         (h8300_register_name): Only care for H8/300 and H8/300H registers.
140         (h8300s_register_name): New function for H8S registers.
141         (h8300sx_register_name): Ditto for H8SX registers.
142         (h8300_print_register): Revise register printing, avoid depending
143         on 32 bit long.
144         (h8300_register_byte); Only care for H8/300 registers.
145         (h8300h_register_byte): New function for any other architecture.
146         (h8300_register_raw_size): Remove.
147         (h8300_register_virtual_type): Revise to return actually useful
148         type.
149         (h8300_extract_struct_value_address): Only care for H8/300 registers.
150         (h8300h_extract_struct_value_address): New function for any other
151         architecture.
152         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
153         set_gdbarch_register_name, set_gdbarch_register_byte,
154         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
155         Remove calls to set_gdbarch_deprecated_register_size,
156         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
157         set_gdbarch_deprecated_max_register_raw_size,
158         set_gdbarch_register_virtual_size and
159         set_gdbarch_deprecated_max_register_virtual_size entirely.
160         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
161         set_gdbarch_long_double_bit.
162
163 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
164
165         * doublest.c (convert_doublest_to_floatformat): When dealing 
166         with the implied integer bit, only alter mant_bits if we are 
167         processing a full 32 bits of mantissa.
168
169 2003-06-11  David Carlton  <carlton@bactrian.org>
170
171         * dictionary.h: New.
172         * dictionary.c: New.
173         * block.h: Add opaque declaration for struct dictionary.
174         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
175         'sym' members.
176         (BLOCK_DICT): New macro.
177         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
178         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
179         BLOCK_SHOULD_SORT.
180         (ALL_BLOCK_SYMBOLS): Update definition.
181         * Makefile.in (SFILES): Add dictionary.c.
182         (dictionary_h): New.
183         (COMMON_OBS): Add dictionary.o.
184         (dictionary.o): New.
185         (ada-lang.o): Depend on dictionary_h.
186         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
187         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
188         (mi-cmd-stack.o): Ditto.
189         (gdbtk-cmds.o): Update dependencies.
190         (gdbtk-stack.o): Ditto.
191         * ada-lang.c: Include dictionary.h.
192         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
193         (fill_in_ada_prototype, debug_print_block): Ditto.
194         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
195         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
196         'is_sorted'.
197         * mdebugread.c: Include dictionary.h.
198         (struct parse_stack): Delete 'maxsyms' member.
199         (parse_symbol): Update calls to new_block.  Delete calls to
200         shrink_block.  Use dictionary methods.
201         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
202         Update calls to new_symtab.  Don't maintain maxsyms data.
203         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
204         (add_symbol): Just call dict_add_symbol.
205         (new_symtab): Delete 'maxsyms' argument.
206         (new_symtab): Update calls to new_block.
207         (new_block): Delete 'maxsyms' argument; add 'function' argument.
208         (shrink_block): Delete function.
209         (fixup_sigtramp): Update call to new_block.  Add symbol via
210         dict_add_symbol.
211         * jv-lang.c: Include dictionary.h.
212         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
213         appropriately.  Set class_symtab->free_func.  Make sure the
214         blockvector is big enough to hold two blocks.
215         (add_class_symtab_symbol): Use dictionary methods.
216         (free_class_block): New function.
217         (type_from_class): Replace explicit iteration by
218         ALL_BLOCK_SYMBOLS.
219         * symtab.h (struct symtab): Replace 'free_ptr' method by
220         'free_func'.
221         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
222         sort_symtab_syms.
223         * dwarfread.c (psymtab_to_symtab_1): Delete call to
224         sort_symtab_syms.
225         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
226         Include dictionary.h.
227         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
228         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
229         sort_symtab_syms.
230         * objfiles.c: Include dictionary.h.
231         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
232         * buildsym.c: Include dictionary.h.
233         (finish_block): Use dictionary methods.
234         (end_symtab): Set free_func to NULL, not free_ptr.
235         * tracepoint.c: Include dictionary.h.
236         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
237         (scope_info): Ditto.
238         * stack.c: Include dictionary.h.
239         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
240         (print_block_frame_labels, print_frame_arg_vars)
241         (print_frame_args): Ditto.
242         * symmisc.c (free_symtab_block): Use dictionary methods.
243         (dump_symtab): Ditto.
244         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
245         Include dictionary.h.
246         * symfile.h: Delete declarations of sort_block_syms,
247         sort_symtab_syms.
248         * symfile.c (sort_block_syms): Delete.
249         (sort_symtab_syms): Delete.
250         * symtab.c: Include dictionary.h.
251         (lookup_block_symbol): Use dictionary iterators.
252         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
253         (search_symbols, make_symbol_completion_list): Ditto.
254         (make_symbol_overload_list): Ditto.
255         * valops.c (value_of_local): Use dict_empty.
256         Include dictionary.h.
257
258 2003-06-11  J. Brobecker  <brobecker@gnat.com>
259
260         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
261
262 2003-06-11  David Carlton  <carlton@bactrian.org>
263
264         * block.h (BLOCK_SHOULD_SORT): Delete.
265         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
266         blocks.
267         * ada-lang.c (ada_add_block_symbols): Ditto.
268         * symfile.c (sort_block_syms): Delete.
269         (sort_symtab_syms): Ditto.
270         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
271         declarations.
272         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
273         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
274         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
275         * dwarfread.c (psymtab_to_symtab_1): Ditto.
276         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
277         * mdebugread.c (psymtab_to_symtab_1): Ditto.
278         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
279
280 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
281
282         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double 
283         bits to 128.
284
285 2003-06-11  Andrew Cagney  <cagney@redhat.com>
286
287         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
288         REGISTER_CONVERTIBLE.
289         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
290         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
291         * gdbarch.h, gdbarch.c: Re-generate.
292         * arch-utils.h (deprecated_register_convertible_not): Rename
293         generic_register_convertible_not.
294         * arch-utils.c (deprecated_register_convertible_not): Rename
295         generic_register_convertible.
296         (legacy_convert_register_p, legacy_register_to_value): Update.
297         * sh-tdep.c (sh64_push_arguments): Update.
298         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
299         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
300         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
301         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
302         * arch-utils.c (legacy_value_to_register): Update.
303         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
304         (rs6000_register_convert_to_raw): Make parameter "from" const.
305         * mips-tdep.c (mips_gdbarch_init): Update.
306         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
307         * infcmd.c (default_print_registers_info): Update.
308         * ia64-tdep.c (ia64_gdbarch_init): Update.
309         (ia64_register_convert_to_raw): Make parameter "from" const.
310         * i386-tdep.c (i386_gdbarch_init): Update.
311         (i386_register_convert_to_raw): Update.
312
313 2003-06-11  Andrew Cagney  <cagney@redhat.com>
314
315         * remote-fileio.c: Include "remote-fileio.h".
316         * Makefile.in (remote-fileio.o): Update dependencies.
317         (remote_fileio_h): Fix typo.
318
319 2003-06-11  Andrew Cagney  <cagney@redhat.com>
320
321         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
322         (xstormy16_save_dummy_frame_tos): Make static.
323         (_initialize_xstormy16_tdep): Add declaration.
324         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
325         * v850-tdep.c: Make local functions static.
326         (_initialize_v850_tdep): Add declaration.
327         * sparc-tdep.c: Make local functions static.
328         (_initialize_sparc_tdep): Add declaration.
329         * sh-tdep.c: Make local functions static.
330         (_initialize_sh_tdep): Add declaration.
331         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
332         * s390-tdep.c: Make local functions static.
333         (_initialize_s390_tdep): Add declaration.
334         * dbxread.c (find_stab_function_addr): Make static.
335         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
336         * ocd.c (_initialize_remote_ocd): Add declaration.
337         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
338         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
339         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
340         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
341         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
342         * remote-array.c (_initialize_array): Add declaration.
343         (_initialize_remote_monitors): Add declaration.
344         * remote-mips.c: Make local functions static.
345         (_initialize_remote_mips): Add declaration.
346         * mcore-tdep.c: Make all local functions static.
347         (_initialize_mcore_tdep): Add declaration.
348         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
349         * abug-rom.c (_initialize_abug_rom): Add declaration.
350         * rom68k-rom.c (_initialize_rom68k): Add declaration.
351         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
352         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
353         * remote-est.c (_initialize_est): Add declaration.
354         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
355         (m68hc11_call_dummy_address): Make static.
356         * ia64-tdep.c: Make local functions static.
357         (_initialize_ia64_tdep): Add declaration.
358         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
359         * monitor.c (monitor_wait_filter): Make static.
360         (_initialize_remote_monitors): Add declaration.
361         * remote-hms.c (_initialize_remote_hms): Add declaration.
362         * remote-e7000.c (fetch_regs_from_dump): Make static.
363         (expect_n): Make static.
364         (_initialize_remote_e7000): Add declaration.
365         * ser-e7kpc.c: Always include "defs.h".
366         (_initialize_ser_e7000pc): Add declaration.
367         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
368         * cris-tdep.c: Make all but one function static.
369         (_initialize_cris_tdep): Add declaration.
370         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
371         * solib.c (update_solib_list): Make static.
372         (_initialize_solib): Add declaration.
373         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
374         (_initialize_avr_tdep): Add declaration.
375         * remote-rdi.c (voiddummy): Make static.
376         (_initialize_remote_rdi): Add declaration.
377         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
378         * remote-rdp.c (send_rdp): Make static.
379         (_initialize_remote_rdp): Add declaration.
380         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
381
382 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
383
384         * remote-fileio.c: Make ari happy.
385
386 2003-06-10  J. Brobecker  <brobecker@gnat.com>
387
388         * rs6000-nat.c (child_xfer_memory): Compute the right address when
389         fetching the trailing bytes of the buffer we are about to write.
390
391 2003-06-10  Andrew Cagney  <cagney@redhat.com>
392
393         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
394         * Makefile.in (remote-fileio.o): Update dependencies.
395         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
396         include <setjmp.h>, or <sys/types.h> conditional on USG.
397         (remote_fio_jmp_buf): Delete global variable.
398
399 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
400             Martin M. Hunt  <hunt@redhat.com>
401
402         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
403         (SFILES): Add remote-fileio.c.
404         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
405         dependencies for building remote.o.
406         * remote-fileio.c: New file implementing the remote File-I/O protocol.
407         * remote-fileio.h: New header file defining remote File-I/O interface.
408         * remote.c (remote_write_bytes, remote_read_bytes): Remove  
409         static storage class.
410         (remote_wait, remote_async_wait): Call remote_fileio_request() on
411         'F' packet.
412         (_initialize_remote): Call initialize_remote_fileio().
413         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
414         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
415         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
416         (captured_main): Initialize new ui_files.
417         * ui-file.c: Add read and fgets input functions.
418         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
419         (null_file_read): New function.
420         (ui_file_read): New function.
421         (set_ui_file_read): New function.
422         (stdio_file_read): New function.
423         * ui-file.h: New type ui_file_read_ftype.
424         (set_ui_file_read): Declare.
425         (ui_file_read): Declare.
426
427 2003-06-09  Andrew Cagney  <cagney@redhat.com>
428
429         * frame.h (deprecated_unwind_get_saved_register): Rename
430         generic_unwind_get_saved_register, update comments.
431         * mips-tdep.c (mips_get_saved_register): Update.
432         * frame.c (deprecated_unwind_get_saved_register): Update.
433
434 2003-06-09  Andrew Cagney  <cagney@redhat.com>
435
436         * vax-tdep.c (vax_frame_locals_address): Delete function.
437         (vax_gdbarch_init): Do not set frame_locals_address.
438         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
439         (m68hc11_gdbarch_init): Do not set frame_locals_address.
440         * s390-tdep.c (s390_frame_args_address): Delete function.
441         (s390_gdbarch_init): Do not set frame_args_address or
442         frame_locals_address.
443         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
444         (ns32k_gdbarch_init): Do not set frame_locals_address.
445         * hppa-tdep.c (hppa_frame_args_address): Delete function.
446         (hppa_frame_locals_address): Delete function.
447         (hppa_gdbarch_init): Do not set frame_args_address, or
448         frame_locals_address.
449         * arm-tdep.c (arm_frame_args_address): Delete.
450         (arm_frame_locals_address): Delete.
451         (arm_gdbarch_init): Do not set frame_args_address, or
452         frame_locals_address.
453
454 2003-06-09  Andrew Cagney  <cagney@redhat.com>
455
456         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
457         * gdbarch.h, gdbarch.c: Re-generate.
458         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
459         * arch-utils.c (frame_num_args_unknown): Delete function.
460         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
461         (frame_info): Use FRAME_NUM_ARGS_P.
462         * arm-tdep.c (arm_frame_num_args): Delete function.
463         (arm_gdbarch_init): Do not set frame_num_args.
464         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
465         * hppa-tdep.c (hppa_frame_num_args): Delete function.
466         (hppa_gdbarch_init): Do not set frame_num_args.
467         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
468         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
469         frame_num_args to default frame_num_args_unknown.
470         * v850-tdep.c (v850_gdbarch_init): Ditto.
471         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
472         * sh-tdep.c (sh_gdbarch_init): Ditto.
473         * s390-tdep.c (s390_gdbarch_init): Ditto.
474         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
475         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
476         * mips-tdep.c (mips_gdbarch_init): Ditto.
477         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
478         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
479         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
480         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
481         * i386-tdep.c (i386_gdbarch_init): Ditto.
482         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
483         * frv-tdep.c (frv_gdbarch_init): Ditto.
484         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
485         * cris-tdep.c (cris_gdbarch_init): Ditto.
486         * avr-tdep.c (avr_gdbarch_init): Ditto.
487         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
488
489 2003-06-09  Andrew Cagney  <cagney@redhat.com>
490
491         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
492         (print_frame_args): Moved to "stack.c".
493         * stack.c: Include "gdb_assert.h".
494         (print_frame_nameless_args): Moved from "printcmd.c", made static.
495         (print_frame_args): Moved from "printcmd.c".
496         * frame.h (print_frame_args): Delete declaration.
497         * Makefile.in (stack.o): Update dependencies.
498
499 2003-06-08  Andrew Cagney  <cagney@redhat.com>
500
501         * frame.c (get_prev_frame): Remove reference to
502         frame_args_address_correct in comments.
503         * frame-base.c (default_frame_args_address): Delete code
504         conditional on FRAME_ARGS_ADDRESS_CORRECT.
505         * vax-tdep.c (vax_frame_args_address_correct): Delete.
506         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
507         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
508         (vax_frame_args_address_correct): Delete declaration.
509
510 2003-06-08  Andrew Cagney  <cagney@redhat.com>
511
512         * gdbarch.sh (UNWIND_SP): Add.
513         * gdbarch.h, gdbarch.c: Re-generate.
514         * frame.c (frame_sp_unwind): New function.
515         (get_frame_sp): New function.
516         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
517         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
518         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
519         value.
520         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
521         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
522
523 2003-06-08  Andrew Cagney  <cagney@redhat.com>
524
525         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
526         REMOTE_BREAKPOINT.
527         * remote.c: Update.
528         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
529         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
530         * config/m68k/tm-sun3.h: Update.
531         * config/m68k/tm-m68klynx.h: Update.
532         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
533
534         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
535         trad_frame".  Update comments.
536         * d10v-tdep.c (struct d10v_unwind_cache): Update.
537         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
538         (trad_frame_register_value, trad_frame_prev_register): Update.
539
540 2003-06-08  Andrew Cagney  <cagney@redhat.com>
541
542         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
543         from GCC's acinclude.m4.
544         * configure.in: Check for getopt's delcaration.
545         * aclocal.m4, config.in, configure: Re-generate.        
546         * main.c (error_init): Delete declaration.
547         * defs.h (error_init): Declare.
548         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
549         (rs6000_convert_from_func_ptr_addr): Make static.
550         (_initialize_rs6000_tdep): Add declaration.
551         * cli/cli-cmds.c (dont_repeat): Delete declaration.
552         (show_commands, set_verbose, show_history): Delete declaration.
553         * top.h (set_verbose): Add declaration.
554         (show_history, set_history, show_commands): Add declaration.
555         (do_restore_instream_cleanup): Add declaration.
556         * objc-lang.c (specialcmp): Make static.
557         (print_object_command): Make static.
558         (find_objc_msgsend): Make static.
559         (find_objc_msgcall_submethod_helper): Make static.
560         (find_objc_msgcall_submethod): Make static.
561         (_initialize_objc_language): Add declaration.
562         (find_implementation_from_class): Make static.
563         (find_implementation): Make static.
564         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
565         * objc-lang.h (lookup_struct_typedef): Add declaration.
566         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
567         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
568         (do_restore_user_call_depth): Make static.
569         (do_restore_instream_cleanup): Delete declaration.
570         (dont_repeat): Delete declaration.
571         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
572         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
573         * reggroups.c (_initialize_reggroup): Add declaration.
574         * cp-support.c (_initialize_cp_support): Add declaration.
575         * cp-abi.c (_initialize_cp_abi): Add declaration.
576         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
577         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
578         (_initialize_gnu_v3_abi): Add declaration.
579         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
580         (_initialize_gnu_v2_abi): Add declaration.
581         * frame-base.c (_initialize_frame_base): Add declaration.
582         * doublest.c (floatformat_from_length): Make static.
583         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
584         * frame.c (create_sentinel_frame): Make static.
585         (_initialize_frame): Add declaration.
586         * top.c (do_catch_errors): Make static.
587         (gdb_rl_operate_and_get_next_completion): Make static.
588         * typeprint.c: Include "typeprint.h".
589         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
590         (sentinel_frame_this_id): Make static.
591         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
592         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
593         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
594         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
595         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
596         * maint.c (maintenance_print_architecture): Make static.
597         * signals/signals.c (_initialize_signals): Add declaration.
598         * std-regs.c (_initialize_frame_reg): Add declaration.
599         * jv-exp.y (push_variable): ISO C definition.
600         (push_qualified_expression_name): Ditto.
601         * memattr.c (_initialize_mem): Add declaration.
602         * remote.c (remote_check_watch_resources): Make static.
603         (remote_stopped_by_watchpoint): Make static.
604         (remote_stopped_data_address): Make static.
605         * d10v-tdep.c (nr_dmap_regs): Make static.
606         (a0_regnum): Make static.
607         (d10v_frame_unwind_cache): Make static.
608         (d10v_frame_p): Make static.
609         * osabi.c (show_osabi): Make static.
610         (_initialize_gdb_osabi): Add extern declaration.
611         * gdbtypes.c (make_qualified_type): Make static.
612         (safe_parse_type): Make static.
613         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
614         * macrotab.c (macro_bcache_free): Make static.
615         * interps.c (interp_set_quiet): Make static.
616         (interpreter_exec_cmd): Make static.
617         * stack.h (select_frame_command): New file.
618         * stack.c: Include "stack.h".
619         (select_frame_command_wrapper): Delete function.
620         (select_frame_command): Make global.
621         * infcall.c: Include "infcall.h".
622         * linespec.c: Include "linespec.h".
623         * symfile.c (sections_overlap): Make static.
624         * cp-support.h (cp_initialize_namespace): ISO C declaration.
625         * charset.c (_initialize_charset): Add missing prototype.
626         * regcache.c (init_legacy_regcache_descr): Make static.
627         (do_regcache_xfree): Make static.
628         (regcache_xfer_part): Make static.
629         (_initialize_regcache): Add missing prototype.
630         * breakpoint.c (parse_breakpoint_sals): Make static.
631         (breakpoint_sals_to_pc): Make static.
632         * interps.h (clear_interpreter_hooks): ISO C declaration.
633         * Makefile.in (stack_h): Define.
634         (stack.o, typeprint.o, mi-main.o): Update dependencies.
635         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
636
637 2003-06-08  Andrew Cagney  <cagney@redhat.com>
638
639         * Makefile.in (d10v-tdep.o): Update dependencies.
640         (SFILES): Add trad-frame.c.
641         (trad_frame_h): Define.
642         (COMMON_OBS): Add trad-frame.o.
643         (trad-frame.o): Specify dependencies.
644         * d10v-tdep.c: Include "trad-frame.h".
645         (saved_regs_unwinder): Delete function.
646         (d10v_frame_prev_register): Use trad_frame_prev_register.
647         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
648         trad_frame", delete "regs" and "prev_sp".
649         (prologue_find_regs): Use trad-frame.
650         * trad-frame.h, trad-frame.c: New files.
651
652 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
653
654         * dwarf2cfi.c, dwarf2cfi.h: Remove.
655
656 2003-06-07  Adam Fedor  <fedor@gnu.org>
657
658         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
659         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
660         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
661         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
662         resolve_msgsend_super, resolve_msgsend_super_stret): 
663         Use it.
664
665 2003-06-07  Andrew Cagney  <cagney@redhat.com>
666
667         * symfile.h: Re-indent, clean up comments.
668
669 2003-06-07  Andrew Cagney  <cagney@redhat.com>
670
671         * inferior.h (deprecated_write_sp): Replace
672         generic_target_write_sp.
673         * regcache.c (deprecated_write_sp): Replace
674         generic_target_write_sp.
675         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
676         * vax-tdep.c (vax_gdbarch_init): Update.
677         * v850-tdep.c (v850_gdbarch_init): Update.
678         * sparc-tdep.c (sparc_gdbarch_init): Update.
679         * sh-tdep.c (sh_gdbarch_init): Update.
680         * s390-tdep.c (s390_gdbarch_init): Update.
681         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
682         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
683         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
684         * mcore-tdep.c (mcore_gdbarch_init): Update.
685         * m68k-tdep.c (m68k_gdbarch_init): Update.
686         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
687         * ia64-tdep.c (ia64_gdbarch_init): Update.
688         * h8300-tdep.c (h8300_gdbarch_init): Update.
689         * frv-tdep.c (frv_gdbarch_init): Update.
690         * cris-tdep.c (cris_gdbarch_init): Update.
691         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
692
693 2003-06-07  Andrew Cagney  <cagney@redhat.com>
694
695         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
696         Assert that PC_REGNUM is valid.
697         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
698
699 2003-06-07  Andrew Cagney  <cagney@redhat.com>
700
701         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
702         * gdbarch.h, gdbarch.c: Regenerate.
703         * mn10300-tdep.c: Include "gdb_assert.h".
704         (mn10300_read_fp): New function.
705         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
706         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
707         * ia64-tdep.c: Include "gdb_assert.h".
708         (ia64_read_fp): New function.
709         (ia64_gdbarch_init): Set deprecated_target_read_fp to
710         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
711         * regcache.c (generic_target_read_sp): Delete function.
712         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
713         * inferior.h (generic_target_read_sp): Delete declaration.
714         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
715         generic_target_read_sp.
716         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
717         * sparc-tdep.c (sparc_gdbarch_init): Ditto
718         * sh-tdep.c (sh_gdbarch_init): Ditto.
719         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
720         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
721
722 2003-06-07  Andrew Cagney  <cagney@redhat.com>
723
724         * gdbarch.sh: Comment each field of startup_gdbarch.
725         * gdbarch.h, gdbarch.c: Re-generate.
726
727 2003-06-07  Andrew Cagney  <cagney@redhat.com>
728
729         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
730         * gdbarch.h, gdbarch.c: Re-generate.
731         * regcache.c: Update comments on read_pc et.al.
732         (generic_target_read_pc): Delete function.
733         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
734         * inferior.h (generic_target_read_pc): Delete declaration.
735         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
736         generic_target_read_pc.
737         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
738         * sh-tdep.c (sh_gdbarch_init): Ditto.
739         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
740         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
741         
742 2003-06-07  Andrew Cagney  <cagney@redhat.com>
743
744         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
745         "index" with "special_local_sect".  Use strcmp instead of STREQ.
746         Append period to coments.
747
748 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
749
750         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
751         (elfstab_offset_sections): Likewise.
752         * gdb-stabs.h (stab_section_info): Likewise.
753         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
754         * objfiles.c (objfile_relocate): Likewise.
755         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
756         * remote.c (get_offsets): Likewise.
757         (remote_cisco_objfile_relocate): Likewise.
758         * somread.c (som_symfile_offsets): Likewise.
759         * symfile.c (alloc_section_addr_info): New function.
760         (build_section_addr_info_from_section_tab): Use it.
761         (free_section_addr_info): Adjust.
762         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
763         (syms_from_objfile): Allocate local_addr dynamically.
764         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
765         dynamically.
766         (add_symbol_file_command): Allocate sect_opts dynamically.
767         (reread_symbols): Avoid use of SECT_OFF_MAX.
768         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
769         (alloc_section_addr_info): Declare it.
770         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
771         * win32-nat.c (solib_symbols_add): Allocate section_addrs
772         dynamically.
773         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
774         
775 2003-06-06  Andrew Cagney  <cagney@redhat.com>
776
777         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
778         (d10v_frame_unwind_cache): Do not set "return_pc".
779
780 2003-06-06  Michael Snyder  <msnyder@redhat.com>
781
782         * h8300-tdep.c: Make tidy (long lines).
783
784 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
785
786         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums 
787         to regcache_collect().
788
789 2003-06-05  J. Brobecker  <brobecker@gnat.com>
790
791         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
792         pc_in_sigtramp multiarch method.
793         (hppa_hpux_som_init_abi): Use it.
794         (hppa_hpux_elf_init_abi): Likewise.
795         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
796         macro has been multiarched.
797         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
798         macro here, as hppa64 isn't multiarched yet.
799
800 2003-06-05  Andrew Cagney  <cagney@redhat.com>
801
802         * Makefile.in (value_h): Add $(frame_h).
803         * value.h: Include "frame.h".
804         (struct value): Replace "frame_addr" with "frame_id".
805         (VALUE_FRAME_ID): Replace VALUE_FRAME.
806         * values.c (allocate_value): Use VALUE_FRAME_ID.
807         (value_copy): Use VALUE_FRAME_ID.
808         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
809         * valops.c (value_assign): Update.  Use frame_find_by_id.
810
811 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
812
813         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
814         in each pass.
815
816 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
817
818         * thread-db.c (check_event): For create/death event breakpoints,
819         loop through all messages to ensure that we read the message
820         corresponding to the breakpoint we are at.
821
822 2003-06-04  Michael Snyder  <msnyder@redhat.com>
823
824         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
825
826 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
827
828         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
829         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
830         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
831         when handling .eh_frame sections.
832
833 2003-06-04  J. Brobecker  <brobecker@gnat.com>
834
835         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
836         prepare_to_proceed procedure instead of the hppa-specific one.
837         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
838
839 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
840  
841         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
842         * config.in: Regenerated.
843         * configure.in: Add test for syscall function and check for
844         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
845         * configure: Regenerated.
846         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
847         <sys/syscall.h>.
848         (kill_lwp): New function that uses tkill syscall or
849         uses kill, depending on whether threading model is nptl or not.
850         All callers of kill() changed to use kill_lwp().
851         (lin_lwp_wait): Make special check when WIFEXITED occurs to
852         see if all threads have already exited in the nptl model.
853         (stop_and_resume_callback): New callback function used by the
854         lin_lwp_wait thread exit handling code.
855         (stop_wait_callback): Check for threads already having exited and
856         delete such threads fromt the lwp list when discovered.
857         (stop_callback): Don't assert retcode of kill call.
858  
859         Roland McGrath  <roland@redhat.com>
860         * i386-linux-nat.c (ps_get_thread_area): New function needed by
861         nptl libthread_db.
862
863 2003-06-03  Richard Henderson  <rth@redhat.com>
864
865         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
866         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
867         (alpha_sigtramp_frame_prev_register): Likewise.
868         (alpha_heuristic_frame_prev_register): Likewise.
869         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
870
871         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use 
872         alpha-specific register id names.
873         (alpha_mdebug_frame_unwind_cache): Likewise.
874         (alpha_mdebug_frame_prev_register): Likewise.
875
876 2003-06-03  Richard Henderson  <rth@redhat.com>
877
878         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
879         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
880         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
881         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
882         unwind routines.
883         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
884         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
885         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
886
887         * alpha-linux-tdep.c: Remove unnecessary includes.
888         * Makefile.in (alpha-linux-tdep.o): Update.
889
890 2003-06-03  Richard Henderson  <rth@redhat.com>
891
892         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
893         (alphabsd_fill_fpreg): Likewise.
894
895 2003-06-03  J. Brobecker  <brobecker@gnat.com>
896
897         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
898         references to struct frame_info fields by calls to the equivalent
899         accessors. Necessary now that frame_info is opaque.
900
901 2003-06-03  J. Brobecker  <brobecker@gnat.com>
902
903         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
904         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
905         structure, field no longer exists.
906
907 2003-06-03  J. Brobecker  <brobecker@gnat.com>
908
909         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
910         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
911
912 2003-06-03  J. Brobecker  <brobecker@gnat.com>
913
914         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
915         references to struct frame_info fields by calls to the equivalent
916         accessors. Necessary now that frame_info is opaque.
917
918 2003-06-03  J. Brobecker  <brobecker@gnat.com>
919
920         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
921         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
922         structure, field no longer exists.
923
924 2003-06-03  Theodore A. Roth  <troth@openavr.org>
925
926         * remote.c (init_remote_state): Compute sizeof_g_packet by 
927         accumulation of the size of all registers instead of blindly using
928         DEPRECATED_REGISTER_BYTES.
929
930 2003-06-03  Michael Snyder  <msnyder@redhat.com>
931
932         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
933         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
934         for h8300sx.
935
936 2003-06-03  J. Brobecker  <brobecker@gnat.com>
937
938         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
939         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
940
941 2003-06-03  Andrew Cagney  <cagney@redhat.com>
942
943         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
944         (sparc_convert_to_raw): Delete function.
945         (sparc_gdbarch_init): Do not set register_convert_to_raw or
946         register_convert_to_virtual.
947
948 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
949
950         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
951         layer if not dealing with a statically-linked threaded program.
952
953 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
954
955         * solib.c (solib_open): Update comment to reflect actual search order.
956
957 2003-06-03  Andrew Cagney  <cagney@redhat.com>
958
959         * frame.c (get_frame_memory_signed): New function.
960         (get_frame_memory, get_frame_memory_unsigned): New function.
961         (get_frame_arch): New function.
962         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
963         (get_frame_memory, get_frame_unsigned_memory): Declare.
964         * d10v-tdep.c (d10v_frame_unwind_cache): Use
965         get_frame_memory_unsigned and get_frame_arch.
966         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
967
968 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
969
970         * MAINTAINERS (write after approval): Add myself.
971
972 2003-06-03  Jim Blandy  <jimb@redhat.com>
973
974         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
975         elements of gregset_t are 64 bits each, but access registers
976         are still 32 bits, so they're packed two per gregset_t
977         element.  Unpack/pack them properly.
978
979 2003-06-02  David Carlton  <carlton@bactrian.org>
980
981         * linespec.c (find_methods): Break out code into
982         add_matching_methods and add_constructors.
983         (add_matching_methods): New.
984         (add_constructors): Ditto.
985
986 2003-06-02  Andrew Cagney  <cagney@redhat.com>
987
988         * sparc-tdep.c (sparc_print_registers): Delete call to
989         REGISTER_CONVERTIBLE.
990         (sparc_gdbarch_init): Do not set register_convertible.
991         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
992         * frv-tdep.c (frv_gdbarch_init): Ditto.
993         * cris-tdep.c (cris_gdbarch_init): Ditto.
994
995 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
996
997         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro. 
998         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
999         (syms_from_objfile): Ditto.
1000
1001 2003-06-03  Andreas Schwab  <schwab@suse.de>
1002
1003         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
1004         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
1005
1006 2003-06-02  Richard Henderson  <rth@redhat.com>
1007
1008         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
1009         a member of all_reggroup.
1010
1011 2003-06-02  Richard Henderson  <rth@redhat.com>
1012
1013         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
1014         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
1015         (alpha_lds, alpha_sts): New.
1016         (alpha_convert_register_p): Change from _register_convertible.
1017         (alpha_register_to_value): Change from _convert_to_virtual; 
1018         restructure and fail for type sizes other than 4 or 8.
1019         (alpha_value_to_register): Similarly.
1020         (alpha_extract_return_value): Use alpha_sts.
1021         (alpha_store_return_value): Use alpha_lds.
1022         (alpha_gdbarch_init): Update hooks.
1023
1024 2003-06-02  Richard Henderson  <rth@redhat.com>
1025
1026         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
1027         regnum identifiers.
1028         (alpha_sigtramp_register_address): Likewise.
1029
1030 2003-06-02  Richard Henderson  <rth@redhat.com>
1031
1032         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
1033         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
1034         * alpha-tdep.h: Declare them.
1035
1036         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
1037         Remove zerobuf.  Don't error on UNIQUE.
1038         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
1039         (ALPHA_REGSET_UNIQUE): Provide default.
1040         (supply_gregset): Use alpha_supply_int_regs.
1041         (fill_gregset): Use alpha_fill_int_regs.
1042         (supply_fpregset): Use alpha_supply_fp_regs.
1043         (fill_fpregset): Use alpha_fill_fp_regs.
1044         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
1045         (alphabsd_supply_reg): Use alpha_supply_int_regs.
1046         (alphabsd_fill_reg): Use alpha_fill_int_regs.
1047         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
1048         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
1049         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
1050
1051 2003-06-02  Richard Henderson  <rth@redhat.com>
1052
1053         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
1054
1055         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
1056         (alpha_store_return_value): Likewise.
1057
1058 2003-06-02  David Carlton  <carlton@math.stanford.edu>
1059
1060         * block.c (contained_in): Add 'const' to arguments.
1061         (block_function): Ditto.
1062         * block.h: Update declarations for block_function and
1063         contained_in.
1064
1065 2003-06-02  David Carlton  <carlton@math.stanford.edu>
1066
1067         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
1068         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
1069         * p-valprint.c (pascal_val_print): Ditto.
1070         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
1071
1072 2003-06-02  Richard Henderson  <rth@redhat.com>
1073
1074         * alpha-tdep.c (alpha_push_dummy_call): Use
1075         builtin_type_ieee_double_little instead of builtin_type_double.
1076
1077         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated 
1078         sign-extension of 32-bit values.
1079         (alpha_store_return_value): Similarly.
1080
1081         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
1082         (alpha_extract_return_value): Likewise.
1083         (alpha_store_return_value): Likewise.
1084
1085         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
1086         (alpha_store_return_value): Error on IEEE Quad floats.
1087
1088         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
1089         (alpha_extract_struct_value_address): Likewise.
1090         (alpha_store_return_value): Likewise.
1091         (alpha_store_struct_return): Remove.
1092         (alpha_gdbarch_init): Update hook registration to match.
1093
1094         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
1095         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
1096         macros where appropriate.
1097         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
1098         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
1099
1100         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
1101         for SP, GP; void_func_ptr for PC; non-language-specific types
1102         for all others.
1103         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
1104
1105 2003-06-02  Richard Henderson  <rth@redhat.com>
1106
1107         * top.h (lim_at_start): Declare.
1108         * main.c (captured_main): Set it.
1109         * top.c (lim_at_start): Define.
1110         (command_loop): Use it instead of &environ.
1111         * event-top.c (command_handler): Likewise.
1112
1113 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
1114
1115         * mipsnbsd-tdep.c: Update copyright years.
1116         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
1117
1118 2003-06-01  Richard Henderson  <rth@redhat.com>
1119
1120         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
1121         (alpha-linux-tdep.o): Update dependencies.
1122         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
1123         * alpha-mdebug-tdep.c: Remove unneeded includes.
1124
1125 2003-06-01  Richard Henderson  <rth@redhat.com>
1126
1127         * alpha-tdep.c (alpha_register_reggroup_p): New.
1128         (alpha_gdbarch_init): Register it.
1129
1130 2003-06-02  Andrew Cagney  <cagney@redhat.com>
1131
1132         * dwarfread.c: Eliminate "register"
1133         (decode_die_type): Eliminate assignment within "if".
1134         (struct_type, decode_array_element_type): Ditto.
1135         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
1136         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
1137         (decode_modified_type, completedieinfo): Ditto.
1138         * block.c: Eliminate "register".
1139         (blockvector_for_pc_sect): Eliminate assignment within "if".
1140         * cp-support.h (struct symbol): Opaque declaration.
1141         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
1142
1143 2003-06-01  Richard Henderson  <rth@redhat.com>
1144
1145         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
1146         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
1147
1148 2003-06-01  Adam Fedor  <fedor@gnu.org>
1149
1150         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
1151         * gdbarch.[ch]: Regenerate.
1152         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
1153         (hppa_gdbarch_init): Set it in the gdbarch vector.
1154         * i386-tdep.c (i386_fetch_pointer_argument): New
1155         (i386_gdbarch_init): Set it into gdbarch.
1156         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
1157         (rs6000_gdbarch_init): Set it in gdbarch.
1158         * sparc-tdep.c (sparc_fetch_pointer_argument): New
1159         (sparc_gdbarch_init): Set it in gdbarch.
1160
1161 2003-06-01  Andrew Cagney  <cagney@redhat.com>
1162
1163         * defs.h (extract_address): Delete declaration.
1164         * findvar.c (extract_address): Delete function.
1165         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
1166         extract_address with the inline equivalent,
1167         extract_unsigned_integer.
1168         (xstormy16_extract_struct_value_address): Ditto.
1169         (xstormy16_pointer_to_address): Ditto.
1170         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
1171         * v850-tdep.c (v850_push_arguments): Ditto.
1172         (v850_extract_return_value): Ditto.
1173         (v850_extract_struct_value_address): Ditto.
1174         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
1175         (sparcnbsd_get_longjmp_target_64): Ditto.
1176         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
1177         (get_longjmp_target): Ditto.
1178         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
1179         (sh64_extract_struct_value_address): Ditto.
1180         (sh_push_arguments): Ditto.
1181         (sh64_push_arguments): Ditto.
1182         * remote-vxsparc.c (vx_read_register): Ditto.
1183         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
1184         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
1185         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
1186         * mipsv4-nat.c (get_longjmp_target): Ditto.
1187         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
1188         * mips-nat.c (get_longjmp_target): Ditto.
1189         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
1190         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
1191         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
1192         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
1193         * irix5-nat.c (get_longjmp_target): Ditto.
1194         * irix4-nat.c (get_longjmp_target): Ditto.
1195         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
1196         (ia64_push_arguments): Ditto.
1197         * hpux-thread.c (hpux_thread_store_registers): Ditto.
1198         * h8300-tdep.c (h8300_push_arguments): Ditto.
1199         (h8300_store_return_value): Ditto.
1200         (h8300_extract_struct_value_address): Ditto.
1201         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
1202         (frv_push_arguments): Ditto.
1203         * avr-tdep.c (avr_pointer_to_address): Ditto.
1204         (avr_push_arguments): Ditto.
1205         * arm-tdep.c (arm_push_dummy_call): Ditto.
1206         (arm_get_longjmp_target): Ditto.
1207         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
1208         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
1209         (alpha_get_longjmp_target): Ditto.
1210
1211         * solib-irix.c (extract_mips_address): Inline extract_address,
1212         replacing it with extract_signed_integer.
1213         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
1214         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
1215         (first_link_map_member, open_symbol_file_object): Ditto.
1216         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
1217         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
1218         (LM_NEXT, LM_NAME): Ditto.
1219
1220 2003-06-01  Richard Henderson  <rth@redhat.com>
1221
1222         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
1223         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
1224         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
1225         (alpha_cannot_store_register): Likewise.
1226         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
1227         * alpha-nat.c (supply_gregset): Likewise.
1228         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
1229
1230 2003-06-01  Andrew Cagney  <cagney@redhat.com>
1231
1232         * infcall.c (call_function_by_hand): Update comment on
1233         DEPRECATED_DUMMY_WRITE_SP.
1234
1235         * mips-tdep.c (mips_gdbarch_init): Do not set
1236         deprecated_dummy_write_sp.
1237         (mips_eabi_push_dummy_call): Set the SP register.
1238         (mips_o64_push_dummy_call): Set the SP register.
1239         (mips_o32_push_dummy_call): Set the SP register.
1240         (mips_n32n64_push_dummy_call): Set the SP register.
1241
1242 2003-06-01  Richard Henderson  <rth@redhat.com>
1243
1244         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
1245         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
1246         (supply_gregset): Likewise.
1247         * alpha-tdep.c (alpha_store_return_value): Likewise.
1248         (alpha_get_longjmp_target): Likewise.
1249         (alpha_register_name): Constify array.
1250         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
1251         deprecated_register_size, deprecated_register_bytes,
1252         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
1253         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
1254         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
1255
1256 2003-06-01  Richard Henderson  <rth@redhat.com>
1257
1258         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
1259         from arg_reg_buffer to regcache to avoid double conversion.
1260
1261 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
1262
1263         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
1264         SP_REGNUM.
1265         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
1266         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
1267
1268 2003-06-01  Richard Henderson  <rth@redhat.com>
1269
1270         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
1271         (decode_frame_entry): Set it.  Skip FDE augmentation.
1272
1273 2003-06-01  Richard Henderson  <rth@redhat.com>
1274
1275         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
1276         not overlapping PC_REGNUM.
1277
1278 2003-06-01  Richard Henderson  <rth@redhat.com>
1279
1280         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
1281         alpha_push_arguments.  Don't dump argument register data to
1282         the target stack.  Fix float and 128-bit long double semantics.
1283         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
1284         (alpha_fix_call_dummy): Remove.
1285         (alpha_call_dummy_words): Remove.
1286         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
1287
1288 2003-06-01  Richard Henderson  <rth@redhat.com>
1289
1290         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
1291
1292 2003-06-01  Andrew Cagney  <cagney@redhat.com>
1293
1294         * mips-tdep.c (is_mips16_addr): New function.
1295         (make_mips16_addr, unmake_mips16_addr): New functions.
1296         (pc_is_mips16, mips_fetch_instruction): Use.
1297         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
1298         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
1299         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
1300         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
1301         TARGET_MIPS.
1302         * config/mips/tm-mips.h: Update copyright.
1303         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
1304         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
1305         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
1306         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
1307         (TM_PRINT_INSN_MACH): Delete.
1308         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
1309
1310         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
1311         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
1312         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
1313         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
1314         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
1315         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
1316         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
1317         mips*-*-riscos* and mips*-*-sysv* onto mips.
1318         * config/mips/mips64.mt: New file.
1319         * config/mips/mips.mt: New file.
1320         * config/mips/littlemips.mt: Delete file.
1321         * config/mips/decstation.mt: Delete file.
1322         * config/mips/vr4300el.mt: Delete file.
1323         * config/mips/vr5000el.mt: Delete file.
1324         * config/mips/vr5000.mt: Delete file.
1325         * config/mips/vr4100.mt: Delete file.
1326         * config/mips/vr4xxxel.mt: Delete file.
1327         * config/mips/vr4300.mt: Delete file.
1328         * config/mips/vr4xxx.mt: Delete file.
1329         * config/mips/bigmips.mt: Delete file.
1330         * config/mips/bigmips64.mt: Delete file.
1331         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
1332         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
1333         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
1334         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
1335         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
1336         "tm-bigmips.h".
1337         * config/mips/tm-irix3.h: Ditto.
1338         * config/mips/tm-mipsv4.h: Ditto.
1339         * config/mips/tm-embed.h: Ditto.
1340         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
1341         "tm-bigmips64.h".
1342         * config/mips/tm-vr5000el.h: Delete file.
1343         * config/mips/tm-tx39l.h: Delete file.
1344         * config/mips/tm-vr4300el.h: Delete file.
1345         * config/mips/tm-vr4xxxel.h: Delete file.
1346         * config/mips/tm-vr4300.h: Delete file.
1347         * config/mips/tm-vr4100.h: Delete file.
1348         * config/mips/tm-vr4xxx.h: Delete file.
1349         * config/mips/tm-vr5000.h: Delete file.
1350         * config/mips/tm-embedl64.h: Delete file.
1351         * config/mips/tm-embedl.h: Delete file.
1352         * config/mips/tm-embed64.h: Delete file.
1353         * config/mips/tm-bigmips64.h: Delete file.
1354         * config/mips/tm-bigmips.h: Delete file.
1355
1356 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
1357
1358         Fix gdb/1216.
1359         * shnbsd-nat.c: Include "sh-tdep.h".
1360
1361         From Richard Henderson  <rth@redhat.com>:
1362         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
1363
1364 2003-05-31  Andrew Cagney  <cagney@redhat.com>
1365
1366         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
1367         forward declaration.
1368         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
1369         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
1370         (mips_find_saved_regs): Use set_reg_offset.
1371         (mips_frame_init_saved_regs): Delete function.
1372         (mips_pop_frame): Call mips_find_saved_regs instead of
1373         DEPRECATED_FRAME_INIT_SAVED_REGS.
1374
1375 2003-05-31  Andrew Cagney  <cagney@redhat.com>
1376
1377         * mips-tdep.c (mips_gdbarch_init): Do not set
1378         deprecated_max_register_raw_size, register_virtual_size, and
1379         deprecated_max_register_virtual_size.
1380
1381 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
1382
1383         * i386-tdep.c: Include "dwarf2-frame.h".
1384         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
1385         * Makefile.in (i386-tdep.o): Update dependencies.
1386
1387         * dwarf2-frame.c, dwarf2-frame.h: New files.
1388         * Makefile.in (SFILES): Add dwarf2-frame.c.
1389         (dwarf2_frame_h): Define.
1390         (COMMON_OBS): Add dwarf2-frame.o.
1391         (dwarf2-frame.o): Add dependencies.
1392
1393 2003-05-31  Andreas Jaeger  <aj@suse.de>
1394
1395         * x86-64-linux-nat.c: Fix comment.
1396
1397 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
1398
1399         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
1400         function signature.
1401
1402         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
1403         have a sigcontext_addr handler.
1404         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
1405         sigcontext_addr handler.
1406
1407 2003-05-31  Andrew Cagney  <cagney@redhat.com>
1408
1409         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
1410         (print_fp_register_row): Replace do_fp_register_row.
1411         (mips_print_fp_register): Add "file" and "frame" parameters.
1412         (mips_print_register): Add "file" and "frame" parameters.
1413         (mips_print_registers_info): Replace mips_do_registers_info.
1414         (mips_gdbarch_init): Set print_registers_info instead of
1415         deprecated_do_registers_info.
1416         (mips_read_fp_register_single): Add "frame" parameter.
1417         (mips_read_fp_register_double): Add "frame" parameter.
1418
1419 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
1420
1421         * i386-tdep.c (i386_register_name): Check for MMX registers first.
1422         Fixes a bug where GDB would print the wrong register names for
1423         targets without SSE.
1424
1425         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
1426         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
1427         registers.
1428
1429         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
1430         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
1431         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
1432         TDEP->sc_sp_offset.
1433
1434         From Michal Ludvig  <mludvig@suse.cz>:
1435         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
1436         and `sc_num_regs'.
1437         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1438         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
1439         I386_ST0_REGNUM): Move here from...
1440         * i386-tdep.c: ... here.
1441         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
1442         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
1443         registers if possible.
1444         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
1445         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
1446         Remove variables.
1447         (i386bsd_sc_reg_offset): New variable.
1448         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
1449         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
1450         TDEP->sc_sp_offset.
1451         (i386fbsd_sc_reg_offset): New variable.
1452         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
1453         TDEP->sc_num_regs.
1454         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
1455         variables.
1456         (i386fbsd4_sc_reg_offset): New variable.
1457         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
1458         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
1459         TDEP->sc_sp_offset.
1460         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
1461         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
1462         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
1463         Remove variables.
1464         (i386nbsd_sc_reg_offset): New variable.
1465         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
1466         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
1467         TDEP->sc_sp_offset.
1468         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
1469         Remove variables.
1470         (i386obsd_sc_reg_offset): New variable.
1471         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
1472         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
1473         TDEP->sc_sp_offset.
1474         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
1475         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
1476         for frame pointer offset in `struct sigcontext'.
1477
1478 2003-05-31  Andrew Cagney  <cagney@redhat.com>
1479
1480         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
1481         architecture methods call_dummy_words, sizeof_call_dummy_words,
1482         push_return_address, store_struct_return, and fix_call_dummy.  Set
1483         push_dummy_call instead of deprecated_push_arguments.
1484         (mips_store_struct_return): Delete function.
1485         (mips_fix_call_dummy): Delete function.
1486         (mips_push_return_address): Delete function.
1487         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
1488         RA_REGNUM and T9_REGNUM.
1489         (mips_n32n64_push_dummy_call): Ditto for
1490         mips_n32n64_push_arguments.
1491         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
1492         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
1493
1494 2003-05-31  Andrew Cagney  <cagney@redhat.com>
1495
1496         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
1497         "dummy_addr" to "bp_addr".
1498         * infcall.c (call_function_by_hand): Pass "funaddr" to
1499         gdbarch_push_dummy_call.
1500         * gdbarch.h, gdbarch.c: Re-generate.
1501         * i386-tdep.c (i386_push_dummy_call): Update.
1502         * arm-tdep.c (arm_push_dummy_call): Update.
1503         * d10v-tdep.c (d10v_push_dummy_call): Update.
1504
1505 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
1506
1507         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
1508         variable declarations.
1509         (x86_64_register_number, x86_64_register_name): Remove prototypes.
1510         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
1511         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
1512         x86_64_init_frame_pc, x86_64_init_frame_pc,
1513         x86_64_function_has_prologue): Remove prototypes.
1514         (X86_64_NUM_GREGS): New define.
1515         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
1516         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
1517         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
1518         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
1519         XMM1_REGNUM): Remove defines.
1520         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
1521         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
1522         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
1523         X86_64_XMM1_REGNUM): New defines.
1524         (struct x86_64_register_info): Renamed from `struct
1525         register_info'.  Remove `size' member.
1526         (x86_64_register_info_table): Remove variable.
1527         (x86_64_register_info): New variable.
1528         (X86_64_NUM_REGS): New define.
1529         (X86_64_NUM_GREGS): Remove define.
1530         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
1531         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
1532         Remove variables.
1533         (x86_54_dwarf2_reg_to_regnum): Remove function.
1534         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
1535         (x86_64_dwarf_reg_to_regnum): New function.
1536         (x86_64_register_name): Rewrite.
1537         (x86_64_register_raw_size): Remove function.
1538         (x86_64_register_byte_table): Remove variable.
1539         (x86_64_register_byte): Remove function.
1540         (x86_64_register_virtual_type): Remove function.
1541         (x86_64_register_type): New function.
1542         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
1543         x86_64_register_convert_to_raw): Remove functions.
1544         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
1545         (x86_64_use_struct_convention): Make static.  Adjust for renamed
1546         defines.
1547         (x86_64_frame_init_saved_regs): Remove function.
1548         (x86_64_push_arguments): Make static.  Change to accept a regcache
1549         as argument.
1550         (x86_64_store_return_value, x86_64_extract_return_value): Make
1551         static.  Rewrite based on i386 counterparts.
1552         (x86_64_push_dummy_call): New function.
1553         (X86_64_NUM_SAVED_REGS): New define.
1554         (x86_64_register_number): Remove function.
1555         (x86_64_store_struct_return): Remove function.
1556         (x86_64_frameless_function_invocation,
1557         x86_64_function_has_prologue): Remove functions.
1558         (PROLOG_BUFSIZE): Remove define.
1559         (struct x86_64_frame_cache): New structure.
1560         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
1561         x86_64_frame_cache, x86_64_frame_this_id,
1562         x86_64_frame_prev_register, x86_64_frame_p,
1563         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
1564         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
1565         functions.
1566         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
1567         variables.
1568         (x86_64_skip_prologue): Rewrite in terms of
1569         x86_64_analyze_prologue.
1570         (x86_64_frame_base_address): New function.
1571         (x86_64_frame_base): New variable.
1572         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
1573         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
1574         set deprecated_fp_regnum, deprecated_register_size,
1575         deprecated_register_bytes, register_raw_size, register_byte,
1576         register_virtual_type, register_convertiable,
1577         register_convert_to_virtual, convert_to_raw,
1578         deprecated_get_saved_register, deprecated_target_read_fp,
1579         deprecated_push_arguments, deprecated_push_return_address,
1580         deprecated_pop_frame, deprecated_store_struct_return,
1581         deprecated_frame_init_saved_regs, deprecated_frame_chain,
1582         frameless_function_invocation, deprecated_frame_saved_pc,
1583         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
1584         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
1585         deprecated_init_frame_pc and virtual_frame_pointer.  Call
1586         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
1587         and x86_64_frame_p.  Call frame_base_set_default to register
1588         x86_64_frame_base.
1589         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
1590         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
1591         (_initialize_x86_64_tdep): Remove function.
1592         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
1593         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
1594         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
1595         define.
1596         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
1597         (x86_64_linux_sigcontext_addr): Rewrite.
1598         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
1599         x86_64_linux_frame_saved_pc): Remove functions.
1600         (x86_64_linux_pc_in_sigtramp): Renamed from
1601         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
1602         trampoline.
1603         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
1604         Remove_functions.
1605         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
1606         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
1607         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
1608         (x86_64_regmap): Rename to regmap.
1609         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
1610         x86_64_num_gregs.
1611         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
1612         x86_64_regmap.
1613         (x86_64_fxsave_offset): Remove function.
1614         (supply_fpregset): Simply call x86_64_supply_fxsave.
1615         (fill_fpregset): Simply call x86_64_fill_fxsave.
1616         (fetch_inferior_registers, store_inferior_registers): Avoid
1617         asignment in if-statement.
1618         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
1619         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
1620         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
1621         (fetch_core_registers): Remove function.
1622         (linux_elf_core_fns): Remove.
1623         (offsetoff): Don't define.
1624         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
1625         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
1626         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
1627         add core-regset.o.
1628         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
1629         protection against multiple includes instead of NM_X86_64_h.  Add
1630         various comments.  Include "config/nm-linux.h".  Don't include
1631         <signal.h>.
1632         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
1633         GET_THREAD_SIGNALS): Remove defines.
1634         (x86_64_register_u_addr, kernel_u_size,
1635         lin_thread_get_thread_signals): Remove prototypes.
1636         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
1637         [HAVE_LINK_H]: Don't include "solib.h".
1638         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
1639         * config/i386/tm-x86-64linux.h: Fix comments.
1640         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
1641         x86-64-tdep.o): Update dependencies.
1642
1643 2003-05-30  Andrew Cagney  <cagney@redhat.com>
1644
1645         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
1646         Change parameter type to a "struct regcache *".
1647
1648         * gdbarch.sh: Regardless of the multi-arch level, always define
1649         the macro when not already defined.
1650         * gdbarch.h, gdbarch.c: Re-generate.
1651
1652 2003-05-30  Richard Henderson  <rth@redhat.com>
1653
1654         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
1655         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
1656         (alpha_mdebug_frame_this_id): Likewise.
1657         (alpha_mdebug_frame_prev_register): Likewise.
1658         (alpha_mdebug_frame_base_address): Likewise.
1659         (alpha_mdebug_frame_locals_address): Likewise.
1660         (alpha_mdebug_frame_args_address): Likewise.
1661         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
1662         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
1663         (alpha_heuristic_frame_unwind_cache): Make static; add missing
1664         loop increment.
1665         (alpha_heuristic_frame_this_id): Make static.
1666         (alpha_heuristic_frame_prev_register): Likewise.
1667         (alpha_heuristic_frame_base_address): Likewise.
1668         * alpha-tdep.h: Update.
1669
1670 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
1671
1672         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
1673         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
1674         defenitions.
1675         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
1676         * i386-tdep.c: Mark functions that are 64-bit safe as such.
1677         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1678         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
1679         I386_ST0_REGNUM): New defines.
1680         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
1681         codestream_get): Remove define.
1682         (codestream_next_addr, condestream_addr, condestream_buf,
1683         codestream_off, codestream_cnt): Remove variables.
1684         (codestream_fill, codestream_seek, codestream_read): Remove
1685         functions.
1686         (i386_follow_jump): Rewrite to avoid usage of removed codestream
1687         functionality.
1688         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
1689         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
1690         i386_frame_saved_pc, i386_saved_pc_after_call,
1691         i386_frame_num_args, i386_frame_init_saved_regs,
1692         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
1693         i386_push_arguments): Remove functions.
1694         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
1695         functionality.  Use i386_analyze_prologue instead of
1696         i386_get_frame_setup.
1697         (I386_NUM_SAVED_REGS): New define.
1698         (struct i386_frame_cache): New structure.
1699         (i386_alloc_frame_cache, i386_analyze_struct_return,
1700         i386_skip_probe, i386_analyze_frame_setup,
1701         i386_analyze_register_saves, i386_analyze_prologue,
1702         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
1703         i386_frame_prev_register, i386_sigtramp_frame_cache,
1704         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
1705         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
1706         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
1707         New functions.
1708         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
1709         New variables.
1710         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
1711         I386_EAX_REGNUM and I386_EDX_REGNUM.
1712         (i386_extract_return_value, i386_store_return_value): Use
1713         I386_ST0_REGNUM where appropriate.
1714         (i386_extract_struct_value_address): Rewrite to use extract_address.
1715         (i386_svr4_pc_in_sigtramp): Add comment.
1716         (i386_svr4_sigcontext_addr): Rewrite.
1717         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
1718         TDEP->sc_sp_offset.
1719         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
1720         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
1721         of new defines.  Set push_dummy_call, don't set
1722         deprecated_push_arguments, deprecated_push_return_address,
1723         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
1724         deprecated_frame_chain, deprecated_frame_saved_pc,
1725         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
1726         save_dummy_frame_tos, unwind_pc.  Call
1727         frame_unwind_append_predicate and frame_base_set_default.  Don't
1728         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
1729         Don't set frameless_function_invocation.  Don't set
1730         deprecated_register_bytes, deprecated_register_size,
1731         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
1732         * i386-linux-tdep.c: Fix formatting in some comments.
1733         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
1734         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
1735         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
1736         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
1737         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
1738         redundant parentheses.
1739         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
1740         (i386_linux_sigcontext_addr): Use it.  Rewrite.
1741         (find_minsym_and_objfile): Change name of second argument.
1742         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
1743         changed.  Use frame_pc_unwind instead of
1744         DEPRECATED_SAVED_PC_AFTER_CALL.
1745         (i386_linux_init_abi): Don't set deprecated_register_bytes.
1746         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
1747         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
1748         unwinder.
1749         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
1750         "dummy-frame.h".
1751         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
1752         (_initialize_i386_cygwin_tdep): New prototype.
1753         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
1754         deprecated_frame_chain_valid.
1755         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
1756         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
1757         Rely on the SVR4 defaults.
1758         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
1759         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
1760
1761 2003-05-30  Andrew Cagney  <cagney@redhat.com>
1762
1763         * infcall.c (call_function_by_hand): Always call
1764         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
1765
1766 2003-05-30  Richard Henderson  <rth@redhat.com>
1767
1768         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
1769         increment.
1770
1771 2003-05-29  Jim Blandy  <jimb@redhat.com>
1772
1773         Use gdbarch methods for solib stuff on PowerPC Linux.
1774         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
1775         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
1776         show through.
1777         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1778         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
1779         giving the same effect as the #definitions above.
1780
1781 2003-05-29  Adam Fedor  <fedor@gnu.org>
1782
1783         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
1784         (find_implementation_from_class): Replace it with the standard
1785         case i.e. do nothing.
1786
1787 2003-05-29  Richard Henderson  <rth@redhat.com>
1788
1789         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
1790         (alpha_linux_sigtramp_offset): Use it.  Make static.
1791         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
1792         update for new frame model.
1793         * alpha-mdebug-tdep.c: New file.
1794         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
1795         (alpha_osf1_init_abi): Install it.
1796         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
1797         (linked_proc_desc_table): Remove.
1798         (alpha_frame_past_sigtramp_frame): Remove.
1799         (alpha_dynamic_sigtramp_offset): Remove.
1800         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
1801         (alpha_proc_desc_is_dyn_sigtramp): Remove.
1802         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
1803         (push_sigtramp_desc): Remove.
1804         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
1805         (alpha_cannot_store_register): Likewise.
1806         (alpha_sigcontext_addr): Remove.
1807         (alpha_find_saved_regs): Remove.
1808         (alpha_frame_init_saved_regs): Remove.
1809         (alpha_init_frame_pc_first): Remove.
1810         (read_next_frame_reg): Remove.
1811         (alpha_frame_saved_pc): Remove.
1812         (alpha_saved_pc_after_call): Remove.
1813         (temp_proc_desc, temp_saved_regs): Remove.
1814         (alpha_about_to_return): Remove.
1815         (cached_proc_desc): Remove.
1816         (alpha_frame_chain): Remove.
1817         (alpha_print_extra_frame_info): Remove.
1818         (alpha_init_extra_frame_info): Remove.
1819         (alpha_frame_locals_address): Remove.
1820         (alpha_frame_args_address): Remove.
1821         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
1822         (alpha_push_dummy_frame): Remove.
1823         (alpha_pop_frame): Remove.
1824         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
1825         (alpha_read_insn): New.
1826         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
1827         for different insn encodings.
1828         (alpha_in_lenient_prologue): Remove.
1829         (struct alpha_sigtramp_unwind_cache): New.
1830         (alpha_sigtramp_frame_unwind_cache): New.
1831         (alpha_sigtramp_register_address): New.
1832         (alpha_sigtramp_frame_this_id): New.
1833         (alpha_sigtramp_frame_prev_register): New.
1834         (alpha_sigtramp_frame_unwind): New.
1835         (alpha_sigtramp_frame_p): New.
1836         (struct alpha_heuristic_unwind_cache): New.
1837         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
1838         don't count nop insns that occur between functions.
1839         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
1840         heuristic_proc_desc, but without the mdebug wrapping.
1841         (alpha_heuristic_frame_this_id): New.
1842         (alpha_heuristic_frame_prev_register): New.
1843         (alpha_heuristic_frame_unwind): New.
1844         (alpha_heuristic_frame_p): New.
1845         (alpha_heuristic_frame_base_address): New.
1846         (alpha_heuristic_frame_base): New.
1847         (alpha_unwind_dummy_id): New.
1848         (alpha_unwind_pc): New.
1849         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
1850         frame related deprecated initializations; install replacements.
1851         (alpha_dump_tdep): Remove.
1852         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
1853         (alpha_read_insn, alpha_after_prologue,
1854         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
1855         alpha_heuristic_frame_prev_register,
1856         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
1857         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1858         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
1859         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
1860
1861 2003-05-29  Andrew Cagney  <cagney@redhat.com>
1862
1863         * gdb_assert.h (gdb_assert_fail): Provide different definitions
1864         dependant on the availability of ASSERT_FUNCTION.
1865         (ASSERT_FUNCTION): Do not define when there is no function name.
1866
1867 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
1868
1869         From Jimi X <jimix@watson.ibm.com>:
1870         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
1871
1872 2003-05-28  Jim Blandy  <jimb@redhat.com>
1873
1874         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
1875         argument to ptrace to int; the system headers should give it the
1876         right type, and pointers don't fit in ints on powerpc64-*-*.
1877
1878 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
1879
1880         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
1881         DW_TAG_catch_block.
1882
1883 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
1884
1885         * stabsread.c (dbx_lookup_type): Make static.
1886         (read_type): Ditto.
1887         (add_undefined_type): Ditto.
1888         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
1889         not export.
1890
1891 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
1892
1893         * hpread.c (hpread_has_name): Make static.
1894         (hpread_psymtab_to_symtab): Ditto.
1895         (file_exists): Ditto.
1896         (hpread_call_pxdb): Ditto.
1897         (hpread_pxdb_needed): Ditto.
1898         (hpread_quick_traverse): Ditto.
1899         (hpread_get_header): Ditto.
1900         (hpread_get_lntt): Ditto.
1901         (hpread_get_slt): Ditto.
1902         (class_of): Ditto.
1903
1904 2003-05-25  Andreas Schwab  <schwab@suse.de>
1905
1906         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
1907         stack_align and deprecated_extra_stack_alignment_needed.
1908         (m68k_stack_align): Delete.
1909
1910         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
1911         (m68k_register_virtual_size): Likewise.
1912         (altos_skip_prologue): Remove obsolete function.
1913         (isi_frame_num_args): Likewise.
1914         (news_frame_num_args): Likewise.
1915         (m68k_fix_call_dummy): Make static.
1916         (m68k_push_dummy_frame): Likewise.
1917         (m68k_pop_frame): Likewise.
1918         (m68k_skip_prologue): Likewise.
1919         (m68k_frame_init_saved_regs): Likewise.
1920         (m68k_saved_pc_after_call): Likewise.
1921         (m68k_get_longjmp_target): Make multi-arch.
1922         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
1923         structure.  Register m68k_get_longjmp_target if enabled.
1924         * m68k-tdep.h (struct gdbarch_tdep): Define.
1925         * config/m68k/tm-m68k.h: Don't include "regcache.h".
1926
1927         * Makefile.in (config.status): Also depend on configure.tgt
1928         and configure.host.
1929         (m68klinux-tdep.o): Update dependencies.
1930         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
1931         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
1932         (M68K_LINUX_JB_PC): Define.
1933         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
1934         and take additional parameter.
1935         (m68k_linux_sigtramp_saved_pc): Update.
1936         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
1937         m68k_linux_pc_in_sigtramp, in_plt_section,
1938         find_solib_trampoline_target.
1939         * config/m68k/tm-linux.h: Don't include any tm headers.
1940         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
1941         (JB_ELEMENT_SIZE): Likewise.
1942         (JB_PC): Likewise.
1943         (GET_LONGJMP_TARGET): Likewise.
1944         (IN_SIGTRAMP): Likewise.
1945         (SVR4_SHARED_LIBS): Define this and include "solib.h".
1946
1947 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
1948
1949         * sparc-tdep.c (sparc32_do_push_arguments): New function.
1950         (sparc32_push_arguments): Re-implement by calling
1951         sparc32_do_push_arguments.
1952
1953 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
1954
1955         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
1956         SPARC_O1_REGNUM): New defines.
1957         (sparc32_extract_return_value): Rewrite to operate on a regcache.
1958         (sparc32_store_return_value): New function.
1959         (sparc_extract_struct_value_address): Rewrite to operate on a
1960         regcache.
1961         (sparc_gdbarch_init): Don't set
1962         deprecated_extract_struct_value_address.  Set
1963         extract_struct_value_address instead. Don't set
1964         deprecated_extract_return_value and deprecated_store_return_value
1965         for 32-bit targets.  Set extract_return_value and
1966         store_return_value instead.
1967         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
1968         DEPRECTAED_EXTRACT_RETURN_VALUE,
1969         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
1970         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1971         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
1972         (sparc_store_return_value): Remove prototype.
1973         (sparc32_store_return_value): New prototype.
1974         (sparc32_extract_return_value, sparc_extract_struct_value_address):
1975         Adjust prototypes.
1976
1977 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
1978
1979         * sparcnbsd-tdep.c: Include "gdb_string.h".
1980
1981 2003-05-23  Andrew Cagney  <cagney@redhat.com>
1982
1983         * p-valprint.c (pascal_val_print): Replace extract_address with
1984         the inline equivalent extract_unsigned_integer.
1985         * jv-valprint.c (java_value_print): Ditto.
1986         * ada-valprint.c (ada_val_print_1): Ditto.
1987         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
1988
1989 2003-05-23  Theodore A. Roth  <troth@openavr.org>
1990
1991         * blockframe.c (frameless_look_for_prologue): Remove unused
1992         after_prologue variable.
1993
1994 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
1995
1996         * blockframe.c (get_pc_function_start): Rewrite to avoid
1997         asignments in if-statements.
1998
1999 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
2000
2001         Committed by Elena Zannoni  <ezannoni@redhat.com>.
2002         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
2003         files, don't relocate absolute symbols (and do use mst_abs).
2004
2005 2003-05-23  Andrew Cagney  <cagney@redhat.com>
2006
2007         * objc-lang.c: Include "gdb_assert.h".
2008         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
2009         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
2010         (gdb_check, gdb_check_fatal): Delete functions.
2011         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
2012         gdb_assert.
2013         (parse_selector, parse_method, find_methods, find_imps): Ditto.
2014         * Makefile.in (objc-lang.o): Update dependencies.
2015
2016 2003-05-22  Ian Lance Taylor  <ian@airs.com>
2017
2018         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
2019         with fprintf_filtered, not fprintf_unfiltered.
2020
2021 2003-05-22  Andrew Cagney  <cagney@redhat.com>
2022
2023         * stack.c (frame_info): Inline extract_address, replacing it with
2024         extract_unsigned_integer.
2025         * findvar.c (unsigned_pointer_to_address): Ditto.
2026         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
2027         * dwarf2expr.c (dwarf2_read_address): Ditto.
2028         * frame.c (frame_pc_unwind): Update comment.
2029         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
2030
2031 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
2032
2033         * infptrace.c (detach): Call print_sys_errmsg rather than
2034         perror_with_name to issue warning message when errno is non-zero
2035         after calling ptrace detach.
2036
2037 2003-05-21  J. Brobecker  <brobecker@gnat.com>
2038
2039         * config/pa/tm-hppa.h: Delete some unused macros. Move some
2040         macro definitions from here...
2041         * hppa-tdep.c: ...to there.
2042
2043 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
2044
2045         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
2046         register_ptrace_addr().  Fix all callers.
2047
2048 2003-05-21  Andreas Schwab  <schwab@suse.de>
2049
2050         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2051         dependencies.
2052         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
2053         end.
2054         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
2055         (_initialize_m68k_linux_tdep): New function.
2056         (m68k_linux_frame_saved_pc): Make static.
2057         (m68k_linux_extract_return_value): Likewise.
2058         (m68k_linux_store_return_value): Likewise.
2059         (m68k_linux_extract_struct_value_address): Likewise.
2060         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
2061         Remove.
2062         (DEPRECATED_STORE_RETURN_VALUE): Remove.
2063         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2064         (DEPRECATED_FRAME_SAVED_PC): Remove.
2065
2066 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
2067
2068         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
2069         regset numbering rather than our own.
2070
2071 2003-05-19  David Carlton  <carlton@bactrian.org>
2072
2073         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
2074
2075 2003-05-19  David Carlton  <carlton@bactrian.org>
2076
2077         Partial fix for PR c++/827.
2078         * cp-support.h: Include symtab.h.
2079         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
2080         * cp-namespace.c: Update contributors.
2081         (cp_lookup_symbol_nonlocal): New.
2082         (lookup_namespace_scope, cp_lookup_symbol_namespace)
2083         (lookup_symbol_file): Ditto.
2084         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
2085         * block.h: Declare block_scope, block_using, block_global_block.
2086         * block.c (block_scope): New.
2087         (block_using, block_global_block): Ditto.
2088         * Makefile.in (cp_support_h): Depend on symtab_h.
2089         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
2090
2091 2003-05-19  David Carlton  <carlton@bactrian.org>
2092
2093         * language.h (struct language_defn): Add 'la_value_of_this'
2094         and 'la_lookup_symbol_nonlocal' members.
2095         * symtab.h: Declare basic_lookup_symbol_nonlocal,
2096         lookup_symbol_static, lookup_symbol_global,
2097         lookup_symbol_aux_block.
2098         * symtab.c (lookup_symbol_aux): Call language hooks to determine
2099         if we should search fields of this and how to do static/global
2100         lookup.
2101         (lookup_symbol_aux_block): Make extern.
2102         (basic_lookup_symbol_nonlocal): New.
2103         (lookup_symbol_static, lookup_symbol_global): Ditto.
2104         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
2105         'la_lookup_symbol_nonlocal' members.
2106         * c-lang.c (c_language_defn, cplus_language_defn)
2107         (asm_language_defn, minimal_language_defn): Ditto.
2108         * jv-lang.c (java_language_defn): Ditto.
2109         * language.c (unknown_language_defn, auto_language_defn)
2110         (local_language_defn): Ditto.
2111         * m2-lang.c (m2_language_defn): Ditto.
2112         * objc-lang.c (objc_language_defn): Ditto.
2113         * scm-lang.c (scm_language_defn): Ditto.
2114         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
2115         * p-lang.c (pascal_language_defn): Ditto for both.
2116         * Makefile.in (f-lang.o): Depend on value_h.
2117         (p-lang.o): Ditto.
2118
2119 2003-05-19  David Carlton  <carlton@bactrian.org>
2120
2121         * block.h: Declare block_static_block.
2122         * block.c (block_static_block): New.
2123         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
2124         lookup_symbol_aux_local, calling block_static_block instead.
2125         (lookup_symbol_aux_local): Delete 'static_block' argument.
2126
2127 2003-05-19  David Carlton  <carlton@bactrian.org>
2128
2129         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
2130
2131 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
2132
2133         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
2134         register numbers mapping.
2135
2136 2003-05-18  Adam Fedor  <fedor@gnu.org>
2137
2138         * symtab.c (completion_list_objc_symbol): New function.
2139         (make_symbol_completion_list): Use it to add ObjC symbols
2140         when looking though the list.
2141         (language_search_unquoted_string): New function.
2142         (make_file_symbol_completion_list): Use it.
2143
2144 2003-05-18  Andreas Schwab  <schwab@suse.de>
2145
2146         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
2147         dependencies.
2148         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
2149         as m68k_linux_extract_return_value.
2150         (DEPRECATED_STORE_RETURN_VALUE): Define as
2151         m68k_linux_store_return_value.
2152         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
2153         m68k_linux_extract_struct_value_address.
2154         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
2155         get_next_frame, get_frame_base, get_frame_pc.
2156         (m68k_linux_frame_saved_pc): Use get_frame_base.
2157         (m68k_linux_extract_return_value): New function.
2158         (m68k_linux_store_return_value): New function.
2159         (m68k_linux_extract_struct_value_address): New function.
2160         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
2161
2162         * c-exp.y (typebase): Remove duplicate occurence of
2163         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
2164         of lookup_signed_typename. 
2165
2166 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
2167
2168         * dwarf2loc.c (find_location_expression): Change type of second
2169         argument to `size_t *'.
2170         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
2171         for size variable.
2172
2173 2003-05-18  David Carlton  <carlton@bactrian.org>
2174
2175         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
2176         'linkage_name'.  Add comment.
2177         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
2178         'linkage_name'.
2179         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
2180         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
2181         (lookup_block_symbol): Ditto.
2182
2183 2003-05-16  Andrew Cagney  <cagney@redhat.com>
2184
2185         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
2186         * gdbarch.h, gdbarch.c: Re-generate.
2187         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
2188         * TODO (REGISTER_BYTES): Delete reference.
2189         * alpha-tdep.c (alpha_gdbarch_init): Update.
2190         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2191         * x86-64-tdep.c (x86_64_init_abi): Update.
2192         * vax-tdep.c (vax_gdbarch_init): Update.
2193         * v850-tdep.c (v850_gdbarch_init): Update.
2194         * sparc-tdep.c (sparc_gdbarch_init): Update.
2195         * sh-tdep.c (sh_gdbarch_init): Update.
2196         * s390-tdep.c (s390_gdbarch_init): Update.
2197         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2198         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2199         (ns32k_gdbarch_init_32382): Update.
2200         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2201         * mcore-tdep.c (mcore_gdbarch_init): Update.
2202         * m68k-tdep.c (m68k_gdbarch_init): Update.
2203         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2204         * ia64-tdep.c (ia64_gdbarch_init): Update.
2205         * i386-tdep.c (i386_gdbarch_init): Update.
2206         * i386-linux-tdep.c (i386_linux_init_abi): Update.
2207         * hppa-tdep.c (hppa_gdbarch_init): Update.
2208         * h8300-tdep.c (h8300_gdbarch_init): Update.
2209         * frv-tdep.c (frv_gdbarch_init): Update.
2210         * cris-tdep.c (cris_gdbarch_init): Update.
2211         * avr-tdep.c (avr_gdbarch_init): Update.
2212         * arm-tdep.c (arm_gdbarch_init): Update.
2213         * sparc-tdep.c (sparc_pop_frame): Update.
2214         * rs6000-tdep.c (rs6000_pop_frame): Update.
2215         * remote.c (init_remote_state): Update.
2216         (remote_prepare_to_store): Update.
2217         * remote-vx.c (vx_prepare_to_store): Update.
2218         * remote-sds.c (sds_fetch_registers): Update.
2219         (sds_prepare_to_store): Update.
2220         * remote-array.c: Update.
2221         * regcache.c (init_legacy_regcache_descr): Update.
2222         (init_regcache_descr): Update.
2223         * mips-tdep.c (mips_eabi_extract_return_value): Update.
2224         (mips_o64_extract_return_value): Update.
2225         * irix5-nat.c (fetch_core_registers): Update.
2226         * irix4-nat.c (fetch_core_registers): Update.
2227         * i386-tdep.h: Update.
2228         * hppa-tdep.c (pa_do_registers_info): Update.
2229         (pa_do_strcat_registers_info): Update.
2230         * cris-tdep.c (cris_register_bytes_ok): Update.
2231         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2232         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
2233         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
2234         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
2235         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
2236         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
2237         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
2238         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
2239         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
2240         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
2241         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
2242         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
2243         (REGISTER_BYTES_OK): Update.
2244         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
2245         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
2246
2247 2003-05-16  Ian Lance Taylor  <ian@airs.com>
2248
2249         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
2250         (vax_print_insn, print_insn_arg): Remove static functions.
2251         (vax_gdbarch_init): Call set_gdbarch_print_insn with
2252         print_insn_vax from opcodes library.
2253         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
2254
2255 2003-05-15  Andrew Cagney  <cagney@redhat.com>
2256
2257         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
2258         * target.h (memory_breakpoint_from_pc): Delete declaration.
2259         * mem-break.c (memory_breakpoint_from_pc): Delete function.
2260         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
2261         * monitor.c (monitor_insert_breakpoint): Use
2262         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
2263         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
2264         * gdbarch.h, gdbarch.c: Re-generate.
2265         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
2266         (sparc_gdbarch_init): Set breakpoint_from_pc to
2267         sparc_breakpoint_from_pc.
2268         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
2269         (BREAKPOINT_FROM_PC): Define.
2270         (sparc_breakpoint_from_pc): Declare.
2271         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
2272         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
2273         (BREAKPOINT_FROM_PC): Define.
2274         (BREAKPOINT): Delete macro.
2275         * target.h: Update comment.
2276         * s390-tdep.c (s390_gdbarch_init): Update comments.
2277         * remote.c: Update comments.
2278         * remote-mips.c: Update comments.
2279         * proc-api.c (write_with_trace): Do not check for a breakpoint.
2280         * mem-break.c: Update comment.
2281         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
2282         (ia64_memory_insert_breakpoint): Update.
2283         * config/sparc/tm-sparc.h: Update comment.
2284         * config/pa/tm-hppa64.h: Update comment.
2285         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
2286         (rs6000_breakpoint_from_pc): Update.
2287         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
2288         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
2289         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
2290         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
2291         (mips_breakpoint_from_pc): Update.
2292         (mips_dump_tdep): Update.
2293
2294         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
2295         * minsyms.c (lookup_minimal_symbol): Inline
2296         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
2297
2298         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
2299         * p-valprint.c (pascal_object_print_value_fields): Ditto.
2300         * p-lang.c (pascal_printstr): Ditto.
2301         * objc-lang.c (objc_printstr): Ditto.
2302         * m2-lang.c (m2_printstr): Ditto.
2303         * jv-valprint.c (java_print_value_fields): Ditto.
2304         * f-lang.c (f_printstr): Ditto.
2305         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
2306         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
2307         for repeat_count_threshold.
2308         * Makefile.in (cp-valprint.o): Update dependencies.
2309
2310 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
2311  
2312         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
2313         (examine_prologue): Support looking through leaf functions, knowing
2314         they start with mov r2,r12.  Support skipping over indirect stores 
2315         of the input registers.  Upon hitting a non-nop branch instruction 
2316         or predicated instruction, bail out by setting lim_pc to the current 
2317         pc value in the loop.  At the end, if the lim_pc value is still 
2318         beyond our calculated value and we have trust_limit set,
2319         use the lim_pc value.
2320
2321 2003-05-15  Andrew Cagney  <cagney@redhat.com>
2322
2323         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
2324         generic_find_dummy_frame.
2325         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
2326         (deprecated_generic_find_dummy_frame): Update.
2327         (deprecated_read_register_dummy): Update.
2328         * frame.c (deprecated_generic_get_saved_register): Update.
2329
2330 2003-05-15  Theodore A. Roth  <troth@openavr.org>
2331
2332         * avr-tdep.c (avr_breakpoint_from_pc): New function.
2333         (avr_gdbarch_init): Set breakpoint_from_pc method.
2334
2335 2003-05-15  Andrew Cagney  <cagney@redhat.com>
2336
2337         * regcache.c (build_regcache): Set deprecated_register_valid
2338         directly.
2339         (deprecated_grub_regcache_for_register_valid): Delete function.
2340         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
2341         declaration.
2342
2343 2003-05-15  David Carlton  <carlton@bactrian.org>
2344         
2345         Committed by Elena Zannoni <ezannoni@redhat.com>    
2346         * symtab.c (lookup_symbol_aux): Delete calls to
2347         lookup_symbol_aux_minsyms.
2348         (lookup_symbol_aux_minsyms): Comment out function and
2349         prototype. Delete lookup by mangled name.
2350
2351 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
2352
2353         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
2354         correctly indicate an empty stack and ``stack_allocated'' to the
2355         indicate the number of elements initially allocated.
2356         (dwarf_expr_grow_stack): Simplify method for computing new
2357         stack size.  Don't loop infinitely if ``stack_len'' is zero.
2358         (execute_stack_op): Move ``ctx->in_reg'' initialization
2359         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
2360         be used in conjuction with DW_OP_piece.  Revise error message
2361         accordingly.
2362
2363 2003-05-14  Theodore A. Roth  <troth@openavr.org>
2364
2365         * MAINTAINERS: Update my email address.
2366         * avr-tdep.c: Ditto.
2367
2368 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
2369
2370         * symtab.h (enum domain_enum): Rename from namespace_enum.
2371         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
2372         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
2373         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
2374         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
2375         TYPES_NAMESPACE, METHODS_NAMESPACE.
2376         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
2377         (struct symbol, struct partial_symbol): Rename field
2378         'namespace_enum namespace' to 'domain_enum domain'.
2379         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
2380         Delete old define kludge for namespace.
2381
2382         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
2383         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
2384         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
2385         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
2386         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
2387         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
2388         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
2389         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
2390         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
2391         occurrences of the above.
2392
2393 2003-05-14  Ian Lance Taylor  <ian@airs.com>
2394
2395         * Makefile.in (install-only): Use $(SHELL) when running
2396         mkinstalldirs.
2397
2398 2003-05-13  Ian Lance Taylor  <ian@airs.com>
2399
2400         * MAINTAINERS (write after approval): Add myself.
2401
2402         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
2403         second and third arguments.
2404         * ser-tcp.c (_initialize_ser_tcp): Likewise.
2405         * ser-unix.c (_initialize_ser_hardwire): Likewise.
2406
2407 2003-05-13  Andrew Cagney  <cagney@redhat.com>
2408
2409         * defs.h (store_address): Delete declaration.
2410         findvar.c (store_address): Delete function.
2411         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
2412         store_unsigned_integer.
2413         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
2414         * v850-tdep.c (v850_push_arguments): Ditto.
2415         * sparc-tdep.c (sparc_get_saved_register): Ditto.
2416         * sh-tdep.c (sh64_get_saved_register): Ditto.
2417         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
2418         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
2419         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
2420         (mips_get_saved_register): Ditto.
2421         * ia64-tdep.c (ia64_get_saved_register): Ditto.
2422         (find_func_descr, ia64_push_arguments): Ditto.
2423         * i386-tdep.c (i386_push_arguments): Ditto.
2424         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2425         * frv-tdep.c (frv_push_arguments): Ditto.
2426         * frame.c (legacy_saved_regs_prev_register): Ditto.
2427         (deprecated_generic_get_saved_register): Ditto.
2428         * findvar.c (unsigned_address_to_pointer): Ditto.
2429         * dwarf2read.c (dwarf2_const_value): Ditto.
2430         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
2431         * alpha-tdep.c (alpha_push_arguments): Ditto.
2432
2433 2003-05-12  J. Brobecker  <brobecker@gnat.com>
2434
2435         * NEWS: Mention that the hppa-hpux port has been partially
2436         multiarched (32bit ABIT only, so far).
2437
2438 2003-05-11  Andrew Cagney  <cagney@redhat.com>
2439
2440         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
2441         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
2442         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
2443         sim/testsuite/sim/arm/misaligned2.ms, and
2444         sim/testsuite/sim/arm/misaligned3.ms.
2445         * disasm.h (struct ui_file): Add opaque struct declaration.
2446         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
2447         * frame.h (struct ui_file): Ditto.
2448
2449 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
2450
2451         * value.h: Pretty print.
2452
2453 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
2454
2455         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
2456
2457 2003-05-08  Andrew Cagney  <cagney@redhat.com>
2458
2459         * regcache.h (max_register_size): Delete declaration.
2460         * regcache.c (max_register_size): Delete function.
2461         (struct regcache_descr): Delete field "max_register_size".
2462         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
2463         registers fit in MAX_REGISTER_SIZE.
2464         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
2465         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
2466         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
2467         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
2468         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
2469         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
2470         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
2471         * dve3900-rom.c, hppa-tdep.c: Ditto.
2472
2473 2003-05-08  David Carlton  <carlton@math.stanford.edu>
2474
2475         * valops.c (push_word): Fix typo.
2476
2477 2003-05-08  Andrew Cagney  <cagney@redhat.com>
2478
2479         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
2480         * gdbarch.h: Re-generate.
2481         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
2482         (legacy_max_register_raw_size): Delete declaration.
2483         * regcache.c (legacy_max_register_raw_size): Delete function.
2484         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
2485         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
2486         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
2487         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
2488         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
2489         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
2490         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
2491         * findvar.c, dwarf2cfi.c: Ditto.
2492
2493 2003-05-08  Andrew Cagney  <cagney@redhat.com>
2494
2495         * mips-tdep.c (read_signed_register): New function, moved to here
2496         from "regcache.c".
2497         (read_signed_register_pid): Ditto.
2498         * regcache.c (read_signed_register_pid): Delete function, moved to
2499         "mips-tdep.c".
2500         (read_signed_register): Ditto.
2501         * regcache.h (read_signed_register): Delete declaration.
2502         (read_signed_register_pid): Delete declaration.
2503
2504 2003-05-08  Andrew Cagney  <cagney@redhat.com>
2505
2506         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
2507         * gdbarch.h: Re-generate.
2508         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
2509         (legacy_max_register_virtual_size): Delete declaration.
2510         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
2511         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2512         * tracepoint.c (memrange_sortmerge): Ditto.
2513         * sparc-tdep.c (sparc_print_registers): Ditto.
2514         * regcache.c (legacy_max_register_virtual_size): Delete function.
2515
2516 2002-05-08  J. Brobecker  <brobecker@gnat.com>
2517
2518         * fork-child.c (escape_bang_in_quoted_argument): New function.
2519         (fork_inferior): Escape '!' characters in quoted arguments
2520         only when needed.
2521
2522 2003-05-08  J. Brobecker  <brobecker@gnat.com>
2523
2524         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
2525         the language of the CU is not currently supported by GDB.
2526
2527 2003-05-08  J. Brobecker  <brobecker@gnat.com>
2528
2529         * defs.h (language): Add language_minimal enum value.
2530         * c-lang.c (minimal_language_defn): New language definition.
2531         (_initialize_c_language): Add the new minimal language to the list
2532         of languages known to GDB.
2533
2534 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
2535
2536         * frame.c (get_frame_type): Don't attempt to lazily initialize
2537         frame's unwinder for legacy frames.
2538
2539 2003-05-07  Andrew Cagney  <cagney@redhat.com>
2540
2541         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
2542         and "regcache" parameters.
2543         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
2544
2545 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
2546  
2547         * dwarf2read.c (dwarf_decode_lines): Only use output of 
2548         check_cu_functions() when calling record_line().  Do not update 
2549         the current address.
2550
2551 2003-05-07  Andrew Cagney  <cagney@redhat.com>
2552
2553         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
2554         code.
2555
2556 2003-05-07  Jim Blandy  <jimb@redhat.com>
2557
2558         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
2559         'maint info symtabs' and 'maint info psymtabs'.
2560         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
2561         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
2562         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
2563         Declarations updated.
2564         * maint.c (maintenance_list_command): Delete.
2565         (_initialize_maint_cmds): Update calls to add_cmd.
2566         * gdbcmd.h (maintenancelistlist): Delete declaration.
2567         * cli/cli-cmds.c (maintenancelistlist): Delete.
2568         (init_cmd_lists): Don't initialize it.
2569         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
2570
2571 2003-05-07  Andrew Cagney  <cagney@redhat.com>
2572
2573         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
2574         "regcache".
2575         (d10v_print_registers_info): Update.
2576         (d10v_dmap_register, d10v_imap_register): Delete functions.
2577         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
2578         and "imap_register".
2579         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
2580         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
2581         * arch-utils.c (generic_remote_translate_xfer_address): Add
2582         "regcache" and "gdbarch" parameters.
2583         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
2584         parameter.  Change class to multi-arch.
2585         * gdbarch.h, gdbarch.c: Re-generate.
2586         * remote.c (remote_xfer_memory): Use
2587         gdbarch_remote_translate_xfer_address.
2588         
2589 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
2590
2591         * infrun.c (prev_pc): Move declaration ahead of proceed().
2592         (proceed): Refresh prev_pc value before resuming.
2593         (stop_stepping): Remove code to refresh prev_pc.
2594
2595 2003-05-06  Kris Warkentin <kewarken@qnx.com>
2596
2597         * nto-tdep.c: Removed stray comment.
2598
2599 2003-05-06  Kris Warkentin <kewarken@qnx.com>
2600
2601         * i386-nto-tdep.c: Fix old K&R function definitions.
2602         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
2603         Also change add_show_from_set() call to add_setshow_cmd().
2604         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
2605
2606 2003-05-05  Andrew Cagney  <cagney@redhat.com>
2607
2608         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
2609         (fprint_dummy_frames): New function.
2610         (maintenance_print_dummy_frames): New function.
2611         (_initialize_dummy_frame): Add command "maint print dummy-frames".
2612         * frame.c (fprint_frame_id): Make global.
2613         * frame.h (fprint_frame_id): Declare.
2614         * Makefile.in (dummy-frame.o): Update dependencies.
2615
2616 2003-05-05  Andrew Cagney  <cagney@redhat.com>
2617
2618         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
2619         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
2620         SIZEOF_CALL_DUMMY_WORDS.
2621         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
2622         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
2623         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
2624         CALL_DUMMY_BREAKPOINT_OFFSET.
2625         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
2626         CALL_DUMMY_START_OFFSET.
2627         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
2628         * gdbarch.h, gdbarch.c: Re-generate.
2629         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
2630         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
2631         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
2632         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
2633         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
2634         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
2635         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2636         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
2637         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
2638         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
2639         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
2640         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
2641         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
2642         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
2643         * config/sparc/tm-sparc.h: Update.
2644
2645 2003-05-05  Kris Warkentin <kewarken@qnx.com>
2646
2647         * configure.tgt: Add i[3456]86-*-nto*.
2648         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
2649         * nto-tdep.c: New file. Neutrino target support routines.
2650         * nto-tdep.h: New file. Neutrino target header.
2651         * config/tm-qnxnto.h: New file.
2652         * config/i386/i386nto.mt: New file.
2653         * config/i386/tm-i386nto.h: New file.
2654         
2655 2003-05-04  Andrew Cagney  <cagney@redhat.com>
2656
2657         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
2658         (load_infrun_state): Ditto.
2659         (struct thread_info): Drop "prev_func_name" field.
2660         * thread.c (load_infrun_state): Update.
2661         (save_infrun_state): Update.
2662         * infrun.c (prev_func_name): Delete variable.
2663         (init_wait_for_inferior): Do not clear prev_func_name.
2664         (stop_stepping, keep_going, context_switch): Do not swap
2665         prev_func_name.
2666         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
2667         instead of PC_IN_SIGTRAMP.
2668
2669 2003-05-04  Andrew Cagney  <cagney@redhat.com>
2670
2671         * sentinel-frame.c (sentinel_frame_prev_register): Replace
2672         REGISTER_BYTE with register_offset_hack.
2673         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
2674         that REGISTER_BYTE is consistent with the regcache.
2675         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
2676         * gdbarch.h, gdbarch.c: Regenerate.
2677         
2678 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
2679
2680         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
2681         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
2682
2683         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
2684
2685 2003-05-03  J. Brobecker  <brobecker@gnat.com>
2686
2687         From Thierry Schneider <tpschneider1@yahoo.com>
2688         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
2689         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
2690         (mi-cmd-symbol.o): Add rule.
2691
2692 2003-05-03  Andrew Cagney  <cagney@redhat.com>
2693
2694         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
2695         comments noteing that it replaces the old FIX_CALL_DUMMY code.
2696         * gdbarch.h, gdbarch.c: Re-generate.
2697         * d10v-tdep.c (d10v_push_dummy_code): New function.
2698         (d10v_gdbarch_init): Set push_dummy_code.
2699         * infcall.c (legacy_push_dummy_code): New function.
2700         (generic_push_dummy_code): New function.
2701         (push_dummy_code): New function.
2702         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
2703         instead of dummy_addr, to push_dummy_call.  Move call to
2704         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
2705         switch.
2706         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
2707
2708 2003-05-03  Andrew Cagney  <cagney@redhat.com>
2709
2710         * disasm.h (print_insn): Declare.
2711         * disasm.c (init_gdb_disassemble_info): New function.
2712         (gdb_disassembly): Call init_gdb_disassemble_info.
2713         (gdb_print_insn): New function.
2714         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
2715         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
2716         * mcore-tdep.c: Include "disasm.h"
2717         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
2718         * d10v-tdep.c: Include "disasm.h".
2719         (display_trace): Call gdb_print_insn, instead of print_insn.
2720         (print_insn): Delete function.
2721         * printcmd.c: Include "disasm.h".
2722         (print_insn): Delete function.
2723         (print_formatted): Call gdb_print_insn, instead of print_insn.
2724         * Makefile.in (printcmd.o): Update dependencies.
2725         (mcore-tdep.o, d10v-tdep.o): Ditto.
2726         
2727 2003-05-02  Andrew Cagney  <cagney@redhat.com>
2728
2729         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
2730         PC_REGNUM, re-indent.
2731         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
2732         PC_REGNUM isn't set.
2733
2734         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
2735         * gdbarch.h, gdbarch.c: Re-generate.
2736         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
2737         register_virtual_size, pc_regnum, or register_bytes.
2738         (D10V_PC_REGNUM): Rename _PC_REGNUM.
2739         (d10v_register_type): Use D10V_PC_REGNUM.
2740         (d10v_print_registers_info, d10v_read_pc): Ditto.
2741         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
2742         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
2743
2744 2003-05-02  David Carlton  <carlton@bactrian.org>
2745
2746         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
2747         the name with mstrsave.
2748
2749 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
2750
2751         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
2752         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
2753         (host_charset_name, target_charset_name): New vars for use by
2754         set/show commands.
2755         (host_charset_enum, target_charset_enum): New enums for set/show
2756         commands.
2757         (set_charset_sfunc, set_host_charset_sfunc,
2758         set_target_charset_sfunc): New functions.
2759         (set_host_charset, set_target_charset): Make static.
2760         (list_charsets, set_host_charset_command,
2761         set_target_charset_command): Delete functions.
2762         (show_charset_command): Rewrite as....
2763         (show_charset): Hook this up with the set/show command mechanism.
2764         (_initialize_charset): Change names of charsets to match the
2765         set/show enums. Use host_charset_name and target_charset_name.
2766         Use set/show mechanism for charset, host-charset, target-charset
2767         commands. Do not make 'show host-charset' and 'show
2768         target-charset' be aliases of 'show charset'.
2769
2770         * charset.h (set_host_charset, set_target_charset): Don't export,
2771         they are not used outside the file.
2772
2773 2003-05-01  Andrew Cagney  <cagney@redhat.com>
2774
2775         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
2776         (gdb_disassembly): Make "di" non static, always initialize and
2777         cleanup.  Always use dis_asm_read_memory.
2778         (gdb_dis_asm_read_memory): Delete function.
2779
2780 2003-05-01  Andrew Cagney  <cagney@redhat.com>
2781
2782         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
2783         (d10v_gdbarch_init): Set frame_align instead of stack_align.
2784
2785 2003-04-30  Andrew Cagney  <cagney@redhat.com>
2786
2787         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
2788         "tm_print_insn_info".
2789         (TARGET_PRINT_INSN_INFO): Delete macro.
2790         (dis_asm_read_memory): Delete function declaration.
2791         (dis_asm_memory_error, dis_asm_print_address): Ditto.
2792         (tm_print_insn_info): Delete variable definition.
2793         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
2794         * gdbarch.h, gdbarch.c: Re-generate.
2795         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
2796         "deprecated_tm_print_insn_info".
2797         * mcore-tdep.c (mcore_dump_insn): Ditto.
2798         * mips-tdep.c (mips_gdbarch_init): Ditto.
2799         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
2800         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
2801         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
2802         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
2803         instead of TARGET_PRINT_INSN_INFO, add comment.
2804         * s390-tdep.c (s390_get_frame_info): Instead of
2805         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
2806         (s390_check_function_end, s390_is_sigreturn): Ditto.
2807         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
2808         (dis_asm_memory_error, dis_asm_print_address): Ditto.
2809         * disasm.c: Include "gdbcore.h".
2810         (_initialize_disasm): New function, initialize
2811         "deprecated_tm_print_insn_info".
2812         (deprecated_tm_print_insn_info): New variable.
2813         (dis_asm_read_memory): Moved from "corefile.c", made static.
2814         (dis_asm_print_address, dis_asm_memory_error): Ditto.
2815         * Makefile.in (disasm.o): Update dependencies.
2816
2817 2003-04-30  Andrew Cagney  <cagney@redhat.com>
2818
2819         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
2820
2821 2003-04-29  Adam Fedor  <fedor@gnu.org>
2822
2823         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
2824         * infcall.c (find_function_addr): Make non-static.
2825         * infcall.h (find_function_addr): Declare.
2826         * Makefile.in (eval.o): Update dependencies.
2827
2828 2003-04-28  Adam Fedor  <fedor@gnu.org>
2829
2830         * symtab.c (symbol_find_demangled_name): Check for and demangle
2831         ObjC symbols.
2832         (symbol_init_demangled_name): Init for language_objc as well.
2833
2834 2003-04-28  Andrew Cagney  <cagney@redhat.com>
2835
2836         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
2837         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
2838         * gdbarch.h, gdbarch.c: Re-generate.
2839         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
2840         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
2841         * inferior.h (deprecated_read_fp): Rename read_fp.
2842         (generic_target_read_fp): Delete declaration.
2843         * regcache.c (generic_target_read_fp): Delete function.
2844         (deprecated_read_fp): Replace read_fp, use
2845         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
2846         * d10v-tdep.c (d10v_read_fp): Delete function.
2847         (d10v_gdbarch_init): Do not set deprecated_read_fp.
2848
2849         * sparc-tdep.c (sparc_gdbarch_init): Do not set
2850         deprecated_target_read_fp to generic_target_read_fp.
2851         * sh-tdep.c (sh_gdbarch_init): Ditto.
2852         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2853         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2854         * frv-tdep.c (frv_gdbarch_init): Ditto.
2855
2856         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
2857         deprecated_fp_regnum.
2858         * x86-64-tdep.c (x86_64_init_abi): Ditto.
2859         * vax-tdep.c (vax_gdbarch_init): Ditto.
2860         * v850-tdep.c (v850_gdbarch_init): Ditto.
2861         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2862         * sh-tdep.c (sh_gdbarch_init): Ditto.
2863         * s390-tdep.c (s390_gdbarch_init): Ditto.
2864         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2865         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2866         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2867         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2868         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2869         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2870         * i386-tdep.c (i386_gdbarch_init): Ditto.
2871         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2872         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2873         * frv-tdep.c (frv_gdbarch_init): Ditto.
2874         * cris-tdep.c (cris_gdbarch_init): Ditto.
2875         * avr-tdep.c (avr_gdbarch_init): Ditto.
2876         * arm-tdep.c (arm_gdbarch_init): Ditto.
2877         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2878
2879         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
2880         * v850-tdep.c (v850_gdbarch_init): Ditto.
2881         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2882         * sh-tdep.c (sh_gdbarch_init): Ditto.
2883         * s390-tdep.c (s390_gdbarch_init): Ditto.
2884         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2885         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2886         * mips-tdep.c (mips_gdbarch_init): Ditto.
2887         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2888         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2889         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2890         * frv-tdep.c (frv_gdbarch_init): Ditto.
2891         * avr-tdep.c (avr_gdbarch_init): Ditto.
2892         * arm-tdep.c (arm_gdbarch_init): Ditto.
2893
2894         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
2895         DEPRECATED_FP_REGNUM.
2896         (vax_push_dummy_frame, vax_pop_frame): Ditto.
2897         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
2898         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2899         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
2900         (sparc32_register_virtual_type): Ditto.
2901         * sh-tdep.c (sh64_frame_chain): Ditto.
2902         (sh64_get_saved_register, sh64_pop_frame): Ditto.
2903         (sh_nofp_frame_init_saved_regs): Ditto.
2904         (sh64_nofp_frame_init_saved_regs): Ditto.
2905         (sh_fp_frame_init_saved_regs): Ditto.
2906         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2907         * remote-e7000.c (fetch_regs_from_dump): Ditto.
2908         * procfs.c (procfs_fetch_registers): Ditto.
2909         (procfs_store_registers): Ditto.
2910         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
2911         (store_inferior_registers, fetch_core_registers): Ditto.
2912         (fetch_kcore_registers, clear_regs): Ditto.
2913         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
2914         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
2915         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
2916         * nlm/i386.c (do_status): Ditto.
2917         * mipsv4-nat.c (supply_gregset): Ditto.
2918         * mips-tdep.c: Ditto for comments.
2919         * mips-nat.c (fetch_inferior_registers): Ditto.
2920         (store_inferior_registers, fetch_core_registers): Ditto.
2921         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
2922         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
2923         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
2924         (i386_do_pop_frame, i386_register_type): Ditto.
2925         * hppa-tdep.c (hppa_frame_chain): Ditto.
2926         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
2927         (hppa_pop_frame, hppa_read_fp): Ditto.
2928         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
2929         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
2930         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
2931         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
2932         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
2933         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
2934         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
2935         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
2936         * blockframe.c: Ditto for comments.
2937         * arch-utils.h: Ditto for comments.
2938         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
2939         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
2940         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
2941         * alpha-tdep.h: Ditto for comments.
2942         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
2943         (alpha_cannot_store_register): Ditto.
2944         (alpha_push_dummy_frame): Ditto.
2945         * alpha-nat.c (supply_gregset): Ditto.
2946
2947         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
2948         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
2949         * config/sparc/tm-sparc.h: Update comment.
2950
2951         * hppa-tdep.c (hppa_init_extra_frame_info): Use
2952         deprecated_read_fp instead of TARGET_READ_FP.
2953         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
2954         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
2955         * sparc-tdep.c (sparc_init_extra_frame_info): Use
2956         deprecated_read_fp instead of read_fp.
2957         * s390-tdep.c (s390_push_arguments): Ditto.
2958         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2959         * frame.h: Ditto in comments.
2960         * frame.c (legacy_get_prev_frame): Ditto.
2961         * dummy-frame.c (dummy_frame_this_id): Ditto.
2962         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2963
2964 2003-04-28  Andrew Cagney  <cagney@redhat.com>
2965
2966         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
2967         * gdbarch.h, gdbarch.c: Re-generate.
2968         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
2969         * vax-tdep.c (_initialize_vax_tdep): Update.
2970         * v850-tdep.c (_initialize_v850_tdep): Update.
2971         * sparc-tdep.c (_initialize_sparc_tdep): Update.
2972         * s390-tdep.c (_initialize_s390_tdep): Update.
2973         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
2974         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
2975         * mips-tdep.c (_initialize_mips_tdep): Update.
2976         * mcore-tdep.c (_initialize_mcore_tdep): Update.
2977         * m68k-tdep.c (_initialize_m68k_tdep): Update.
2978         * ia64-tdep.c (_initialize_ia64_tdep): Update.
2979         * hppa-tdep.c (_initialize_hppa_tdep): Update.
2980         * h8300-tdep.c (_initialize_h8300_tdep): Update.
2981         * frv-tdep.c (_initialize_frv_tdep): Update.
2982         * cris-tdep.c (cris_delayed_get_disassembler): Update.
2983         (_initialize_cris_tdep): Update.
2984         * arch-utils.c (legacy_print_insn): Update.
2985         * alpha-tdep.c (_initialize_alpha_tdep): Update.
2986
2987 2003-04-26  Adam Fedor  <fedor@gnu.org>
2988
2989         * linespec.c (decode_objc): New function to decode ObjC calls
2990         (decode_line_1): Check for ObjC calls (using decode_objc)
2991         * Makefile (linespec.o): Update dependencies.
2992
2993 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
2994
2995         * breakpoint.h (struct breakpoint_ops): New.
2996         (struct breakpoint): Add ops member.
2997
2998         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
2999         (mention): Use new breakpoint ops member.
3000         (set_raw_breakpoint): Initialize ops field to NULL.
3001         (print_exception_catchpoint, print_one_exception_catchpoint)
3002         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
3003         (gnu_v3_exception_catchpoint_ops): New.
3004         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
3005
3006 2003-04-25  Adam Fedor  <fedor@gnu.org>
3007
3008         * Makefile.in (COMMON_OBS): Add objc-lang.o
3009
3010 2003-04-25  Andrew Cagney  <cagney@redhat.com>
3011
3012         * d10v-tdep.c (print_insn): Delete function.
3013         (display_trace): Use TARGET_PRINT_INSN.
3014         (_initialize_d10v_tdep): Do not set tm_print_insn.
3015         (d10v_gdbarch_init): Set print_insn.
3016
3017 2003-04-25  Andrew Cagney  <cagney@redhat.com>
3018
3019         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
3020         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
3021         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
3022         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
3023         (nr_dmap_regs, a0_regnum): ... new functions.
3024         (d10v_print_registers_info): Use a0_regnum, use register_size.
3025         (d10v_register_byte): Delete function.
3026         (d10v_register_raw_size): Delete function.
3027         (d10v_register_type): Use a0_regnum.
3028         (d10v_print_registers_info): Use a0_regnum.
3029         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
3030         (d10v_gdbarch_init): Do not set register_byte or
3031         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
3032         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
3033         extract_address.
3034         (trace_command): Use XCALLOC.
3035         (print_insn): Delete reference to tm_print_insn.
3036         (saved_regs_unwinder): Use store_unsigned_integer instead of
3037         store_address.
3038         * frame.h (FRAME_OBSTACK_CALLOC): Define
3039
3040 2003-04-25  David Carlton  <carlton@bactrian.org>
3041
3042         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
3043
3044 2003-04-24  Adam Fedor  <fedor@gnu.org>
3045
3046         * objc-lang.c: Include "valprint.h"
3047         * Makefile.in (objc-lang.o): Update dependencies.
3048
3049 2003-04-24  Adam Fedor  <fedor@gnu.org>
3050
3051         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove 
3052         architecture dependant compilation and mark as unimplemented
3053         (until they get put in the gdbarch vector).
3054
3055 2003-04-23  David Carlton  <carlton@bactrian.org>
3056
3057         * cp-support.c (cp_find_first_component): Accept 'operator' in
3058         more locations.
3059
3060 2003-04-23  Andrew Cagney  <cagney@redhat.com>
3061
3062         * infcall.c (call_function_by_hand): Eliminate redundant
3063         indentation.  Move "saved_async" and "old_cleanups" to where they
3064         are needed.
3065         
3066 2003-04-23  Andrew Cagney  <cagney@redhat.com>
3067
3068         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
3069         and "buffer".  Move the "name" code to where it is needed.
3070
3071 2003-04-23  Andrew Cagney  <cagney@redhat.com>
3072
3073         * infcall.c (call_function_by_hand): Move variables "start_sp",
3074         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
3075         code to ON_STACK switch branch.
3076         
3077 2003-04-23  Andrew Cagney  <cagney@redhat.com>
3078
3079         * infcall.c (call_function_by_hand): Make declaration of "i",
3080         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
3081         lint.
3082
3083 2003-04-23  Andrew Cagney  <cagney@redhat.com>
3084
3085         * infcall.c (call_function_by_hand): Delete variable
3086         "n_method_args".  Localize "param_type"'s declaration to the loop
3087         that it is used.  Reinstate code assigning to said variable -
3088         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
3089         Rationalize code using "param_type".
3090
3091 2003-04-22  Andrew Cagney  <cagney@redhat.com>
3092
3093         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
3094         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
3095         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
3096         to DEPRECATED_PUSH_RETURN_ADDRESS.
3097
3098 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
3099
3100         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
3101         on the DWARF2 register number prior to fetching a register.
3102
3103 2003-04-22  J. Brobecker  <brobecker@gnat.com>
3104
3105         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
3106         Update all the tests using SOFT_FLOAT considering the fact that
3107         this macro was always set to 0. 
3108         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
3109         considering the fact that this macro was always set to 0.
3110         * hppa-tdep.h (hppa_store_return_value): Likewise.
3111         (hppa_extract_return_value): Likewise.
3112
3113 2003-04-22  J. Brobecker  <brobecker@gnat.com>
3114
3115         * config/pa/tm-hppa.h: Remove obsolete code, was used by
3116         the hppa-pro target only.
3117
3118 2003-04-21  J. Brobecker  <brobecker@gnat.com>
3119
3120         Ongoing multi-arch conversion effort for HP/UX:
3121         * config/pa/tm-hppa.h: Move all macro that are no longer
3122         defined now that GDB_MULTI_ARCH is now set to 1 from here...
3123         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
3124
3125 2003-04-21  J. Brobecker  <brobecker@gnat.com>
3126
3127         * config/pa/tm-hppa.h: Obsolete a section that was only used
3128         for hppa-pro.
3129
3130 2003-04-21  J. Brobecker  <brobecker@gnat.com>
3131
3132         Ongoing multi-arch conversion for HP/UX.
3133         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
3134         if already defined (allows hppa64 to stay non-multiarched for now).
3135         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
3136
3137 2003-04-21  Andrew Cagney  <cagney@redhat.com>
3138
3139         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
3140
3141 2003-04-21  Andrew Cagney  <cagney@redhat.com>
3142
3143         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
3144         "i386_num_mmx_regs".
3145
3146 2003-04-21  Andrew Cagney  <cagney@redhat.com>
3147
3148         * infcall.c: New file.
3149         * infcall.h: New file.
3150         * valarith.c: Include "infcall.h".
3151         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
3152         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
3153         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
3154         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
3155         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
3156         (SFILES): Add "infcall.c"
3157         (COMMON_OBS): Add "infcall.o".
3158         (infcall.o): Specify dependencies.
3159         * value.h (call_function_by_hand): Delete declaration.
3160         * inferior.h (run_stack_dummy): Delete declaration.
3161         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
3162         (run_stack_dummy): Move to "infcall.c", merged into
3163         call_function_by_hand.
3164         * valops.c (call_function_by_hand): Moved to "infcall.c".
3165         (find_function_addr, value_arg_coerce): Ditto.
3166         (unwindonsignal_p, coerce_float_to_double): Ditto.
3167         (_initialize_valops): Move "set/show coerce-float-to-double", and
3168         "set/show unwindonsignal" commands to "infcall.c".
3169         * v850-tdep.c, target.h: Update comments.
3170         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
3171         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
3172         (sh64_init_extra_frame_info): Update comments.
3173         * mn10300-tdep.c: Update comments.
3174         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
3175         * config/sparc/tm-sparc.h: Update comments.
3176         * breakpoint.h: Update comments.
3177         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
3178         * arm-tdep.c: Update comment.
3179
3180 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
3181
3182         * i386-tdep.c (i386_num_register_names): New variable.
3183         (i386_num_mmx_regs): Renamed from mmx_num_regs.
3184         (MM0_REGNUM): Remove redundant parentheses in define.
3185         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
3186         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
3187         i386_mxcsr_regnum_p): Remove redundant parentheses.
3188         (i386_register_name): Use i386_num_register_names.
3189         
3190         * i386-tdep.c (i386_extract_return_value,
3191         i386_store_return_value): Correct check for availability of
3192         floating-point registers.
3193
3194         * i386-tdep.c (i386_frame_num_args): Remove function.
3195         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
3196
3197         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
3198         mmx_regnum_to_fp_regnum.  Adjust all callers.
3199
3200         * i386-tdep.c (i386_get_longjmp_target): Use
3201         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
3202         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
3203         extract_address.
3204
3205 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
3206
3207         * core-regset.c: Update comments to reflect reality.  Re-order
3208         includes.
3209         (fetch_core_registers): Use switch instead of if.  Remove
3210         redundant prototype.
3211
3212 2003-04-18  Jim Blandy  <jimb@redhat.com>
3213
3214         * s390-tdep.c (s390_frame_align): New function.
3215         (s390_gdbarch_init): Register it with the gdbarch object.
3216
3217 2003-04-17  Richard Henderson  <rth@redhat.com>
3218
3219         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
3220
3221 2003-04-17  Michael Snyder  <msnyder@redhat.com>
3222             Karen Bennet  <bennet@redhat.com>
3223
3224         Committed by Elena Zannoni  <ezannoni@redhat.com>
3225         * gdb_gcore.sh: New script to create a core dump of a process.
3226         
3227 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
3228
3229         * values.c (value_being_returned): Don't fetch the return
3230         value if the return type is void.
3231
3232 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
3233
3234         * thread-db.c: Reindented.
3235  
3236 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
3237  
3238         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t, 
3239         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
3240         as types.
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265         
3266 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
3267
3268         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
3269         the size of ``long double'' to 16, instead of 8.
3270
3271 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
3272
3273         * i386-linux-nat.c: Add some whitespace to make things more
3274         readable.
3275         (fetch_register, store_register, fetch_inferior_registers,
3276         store_inferior_registers): Get rid of assignment in if-statement.
3277         (store_register): Fix typo in error message.
3278
3279 2003-04-16  Andrew Cagney  <cagney@redhat.com>
3280
3281         * utils.c (xmmalloc): Always allocate something, matches
3282         libiberty/xmalloc's semantics.
3283         (xmrealloc, xmcalloc): Ditto.
3284
3285 2003-04-16  Andrew Cagney  <cagney@redhat.com>
3286
3287         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
3288         update comments.
3289         (get_frame_type): Initialize unwind and type when needed.
3290         (get_frame_id, frame_register_unwind): Ditto.
3291
3292 2003-04-16  Andrew Cagney  <cagney@redhat.com>
3293
3294         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
3295         obsolete.
3296         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
3297         * sparcl-stub.c: Obsolete file.
3298         * config/sparc/tm-sparclet.h: Obsolete file.
3299         * sparclet-stub.c: Obsolete file.
3300         * sparclet-rom.c: Obsolete file.
3301         * sparcl-tdep.c: Obsolete file.
3302         * config/sparc/tm-sparclite.h: Obsolete file.
3303         * config/sparc/sparclite.mt: Obsolete file.
3304         * config/sparc/sparclet.mt: Obsolete file.
3305         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
3306         sparc86x-*-* obsolete.
3307
3308 2003-04-15  David Carlton  <carlton@math.stanford.edu>
3309
3310         * Makefile.in (SFILES): Add cp-namespace.c.
3311         (COMMON_OBS): Add cp-namespace.o.
3312         (block.o): Depend on gdb_obstack_h and cp_support_h.
3313         (buildsym.o): Depend on cp_support_h.
3314         (cp-namespace.o): New.
3315         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
3316         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
3317         (dwarf2read.o): Depend on cp_support_h.
3318         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
3319         * dwarf2read.c (process_die): Set processing_has_namespace_info,
3320         processing_current_namespace.
3321         (read_namespace): Update processing_current_namespace; check for
3322         anonymous namespaces.
3323         (dwarf2_name): New function.
3324         (dwarf2_extension): Ditto.
3325         * cp-support.h: Update copyright, contributors.
3326         Add inclusion guards.
3327         Add opaque declaration for structs obstack, block, symbol.
3328         (struct using_direct): New struct.
3329         Add declarations for cp_find_first_component,
3330         cp_entire_prefix_len, processing_has_namespace_info,
3331         processing_current_namespace, cp_is_anonymous,
3332         cp_add_using_directive, cp_initialize_namespace,
3333         cp_finalize_namespace, cp_set_block_scope,
3334         cp_scan_for_anonymous_namespaces.
3335         * cp-namespace.c: New file.
3336         * cp-support.c: Update copyright.
3337         Include ctype.h, gdb_assert.h, gdbcmd.h.
3338         New variable maint_cplus_cmd_list.
3339         (cp_find_first_component): New function.
3340         (cp_entire_prefix_len, maint_cplus_command)
3341         (first_component_command, _initialize_cp_support): Ditto.
3342         * buildsym.c: Include cp-support.h.
3343         New variable using_list.
3344         (add_symbol_to_list): Check for anonymous namespaces.
3345         (finish_block): Set block's scope.
3346         (start_symtab): Initialize C++ namespace support.
3347         (end_symtab): Finalize C++ namespace support.
3348         * block.h: Add opaque declarations for structs
3349         block_namespace_info, using_direct, and obstack.
3350         Add declarations for block_set_scope and block_set_using.
3351         (struct block): Add 'language_specific' member.
3352         (BLOCK_NAMESPACE): New macro.
3353         * block.c: Include gdb_obstack.h and cp-support.h.
3354         (struct block_namespace_info): New struct.
3355         (block_set_scope): New function.
3356         (block_set_using, block_initialize_namespace): Ditto.
3357
3358 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
3359
3360         * solib-svr4.c (svr4_have_link_map_offsets): New function.
3361         (locate_base): Return early if there aren't any link map offsets.
3362         (svr4_solib_create_inferior_hook): Warn if shared library support
3363         is unavailable.
3364
3365 2003-04-14  David Carlton  <carlton@math.stanford.edu>
3366
3367         * symtab.c (symbol_set_names): Add prefix when storing Java names
3368         in hash table.  Fix for PR java/1039.
3369
3370 2003-04-14  David Carlton  <carlton@math.stanford.edu>
3371
3372         * symtab.c (symbol_set_names): Rename 'name' arg to
3373         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
3374         * symtab.h: Change 'name' argument in declaration of
3375         symbol_set_names to 'linkage_name'.
3376         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
3377
3378 2003-04-14  Andrew Cagney  <cagney@redhat.com>
3379
3380         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
3381         return the fully sign-extended register value.
3382         (get_frame_pointer): Ditto.
3383         (mips_pop_frame): Initialize "proc_desc" after checking for a
3384         dummy frame.
3385
3386 2003-04-14  Andrew Cagney  <cagney@redhat.com>
3387
3388         * mips-tdep.c (mips_push_dummy_frame): Delete function.
3389         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
3390         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
3391         (mips_push_register): Delete function.
3392         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
3393         PUSH_FP_REGNUM.
3394
3395 2003-04-14  Jim Blandy  <jimb@redhat.com>
3396
3397         * symmisc.c: #include "gdb_regex.h".
3398         (maintenance_list_symtabs, maintenance_list_psymtabs): New
3399         functions.
3400         * maint.c (maintenance_list_command): New function.
3401         (_initialize_maint_cmds): Register the above as commands.
3402         * symtab.h (maintenance_list_symtabs,
3403         maintenance_list_psymtabs): New declarations.
3404         * cli/cli-cmds.c (maintenancelistlist): New variable.
3405         (init_cmd_lists): Initialize it.
3406         * cli/cli-cmds.h (maintenancelistlist): New declaration.
3407         * gdbcmd.h (maintenancelistlist): New declaration.
3408         * Makefile.in (symmisc.o): Update dependencies.
3409
3410 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
3411
3412         * s390-nat.c: Include asm/types.h for addr_t.
3413
3414 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
3415
3416         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
3417         actually incoming type.
3418
3419 2003-04-13  Andrew Cagney  <cagney@redhat.com>
3420
3421         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
3422         get_next_frame and get_frame_saved_regs.
3423
3424 2003-04-13  Andrew Cagney  <cagney@redhat.com>
3425
3426         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
3427         of gdbarch_num_regs.
3428
3429 2003-04-13  Andrew Cagney  <cagney@redhat.com>
3430
3431         * frame.h: Mention what replaced what in "struct frame_info".
3432         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
3433         deprecated_update_frame_base_hack and
3434         deprecated_update_frame_pc_hack.
3435         * hppa-tdep.c: Ditto.
3436
3437 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
3438
3439         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
3440         to read_reg and update its comment.  Remove regnum member.
3441         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
3442         Don't call read_reg when setting in_reg.  Call read_reg to get
3443         the frame base if it's in a register.  Return the register number
3444         on the stack instead of in the context.  Remove extra arguments
3445         to read_reg.
3446         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
3447         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
3448         the register number on the expression stack.
3449         (needs_frame_read_reg): Remove extra arguments.
3450
3451 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
3452
3453         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
3454         made non-static.
3455         (execute_stack_op): All callers updated.
3456         * dwarf2expr.h: Add prototype for dwarf2_read_address.
3457         * dwarf2loc.c (find_location_expression): New function.
3458         (dwarf_expr_frame_base): Call it.
3459         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
3460         (dwarf2_tracepoint_var_ref): New function, broken out from
3461         locexpr_tracepoint_var_ref.
3462         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
3463         Make static.
3464         (loclist_read_variable, loclist_read_needs_frame): New functions.
3465         (loclist_describe_location, loclist_tracepoint_var_ref): New
3466         functions.
3467         (dwarf2_loclist_funcs): New struct location_funcs.
3468         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
3469         (struct dwarf2_locexpr_baton): Add comments.
3470         (dwarf2_loclist_funcs): New extern.
3471         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
3472         base_address and base_known.
3473         (dwarf_loc_buffer): New variable.
3474         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
3475         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
3476         (dwarf2_has_info): Initialize dwarf_loc_offset.
3477         (dwarf2_build_psymtabs): Read in .debug_loc.
3478         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
3479         DWARF_LOC_SIZE.
3480         (psymtab_to_symtab_1): Likewise.  Move base address calculation
3481         here, from...
3482         (dwarf2_get_pc_bounds): ... here.  Use the base address from
3483         cu_header.
3484         (dwarf2_symbol_mark_computed): Handle location lists.
3485
3486 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
3487
3488         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
3489         if the linkage name demangled successfully.
3490
3491 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
3492
3493         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
3494         disassmbly_flavour): Removed.
3495
3496         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
3497
3498 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
3499
3500         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
3501
3502 2003-04-12  Andrew Cagney  <cagney@redhat.com>
3503
3504         * frame.h (struct frame_info): Move definition from here ...
3505         * frame.c (struct frame_info): ... to here.
3506
3507 2003-04-12  Andrew Cagney  <cagney@redhat.com>
3508
3509         * gdbthread.h (save_infrun_state): Delete parameter
3510         "prev_func_start".
3511         (struct thread_info): Delete field "prev_func_start".
3512         (load_infrun_state): Ditto.
3513         * thread.c (load_infrun_state, save_infrun_state): Update.
3514         * infrun.c (prev_func_start): Delete variable.
3515         (context_switch, init_wait_for_inferior): Update.
3516         (stop_stepping, keep_going): Update.
3517
3518 2003-04-12  Andrew Cagney  <cagney@redhat.com>
3519
3520         * gdbarch.sh: Add missing opaque declarations.
3521         * gdbarch.h: Regnerate.
3522         * symtab.h: Add missing opaque declarations.
3523         * value.h, target.h, symfile.h, stabsread.h: Ditto.
3524         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
3525         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
3526         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
3527         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
3528         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
3529         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
3530         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
3531         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
3532         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
3533         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
3534         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
3535         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
3536
3537 2003-04-11  Andrew Cagney  <cagney@redhat.com>
3538
3539         * frame.c (get_frame_id): Return this frame's "id".
3540         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
3541         function start.
3542         (legacy_saved_regs_this_id): Replace function body with
3543         internal-error.
3544         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
3545         FRAME_OBSTACK_ZALLOC.
3546         (create_new_frame): Mark the frame ID as valid.
3547
3548 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
3549
3550         * Makefile.in (libbfd_h): Added missing setting.
3551         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
3552         according to the selected ABI.
3553
3554 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
3555
3556         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
3557
3558 2003-04-11  Andrew Cagney  <cagney@redhat.com>
3559
3560         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
3561         SAVED_PC_AFTER_CALL.
3562         * gdbarch.h, gdbarch.c: Regenerate.
3563         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3564         * x86-64-tdep.c (x86_64_init_abi): Update.
3565         * vax-tdep.c (vax_gdbarch_init): Update.
3566         * v850-tdep.c (v850_gdbarch_init): Update.
3567         * sparc-tdep.c (sparc_gdbarch_init): Update.
3568         * sh-tdep.c (sh_gdbarch_init): Update.
3569         * s390-tdep.c (s390_gdbarch_init): Update.
3570         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3571         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3572         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3573         * mips-tdep.c (mips_gdbarch_init): Update.
3574         * mcore-tdep.c (mcore_gdbarch_init): Update.
3575         * m68k-tdep.c (m68k_gdbarch_init): Update.
3576         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3577         * ia64-tdep.c (ia64_gdbarch_init): Update.
3578         (ia64_saved_pc_after_call): Update declaration.
3579         * i386ly-tdep.c (i386lynx_init_abi): Update.
3580         * i386-tdep.c (i386_gdbarch_init): Update.
3581         * hppa-tdep.c (hppa_gdbarch_init): Update.
3582         * h8300-tdep.c (h8300_gdbarch_init): Update.
3583         * frv-tdep.c (frv_gdbarch_init): Update.
3584         * cris-tdep.c (cris_gdbarch_init): Update.
3585         * avr-tdep.c (avr_gdbarch_init): Update.
3586         * arm-tdep.c (arm_gdbarch_init): Update.
3587         * alpha-tdep.c (alpha_gdbarch_init): Update.
3588         * ns32knbsd-nat.c (frame_num_args): Update.
3589         * ns32k-tdep.c (umax_frame_num_args): Update.
3590         * mips-tdep.c (mips_init_frame_pc_first): Update.
3591         * infrun.c (step_over_function): Update.
3592         * i386-linux-tdep.c (skip_hurd_resolver): Update.
3593         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
3594         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
3595         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3596         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3597         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
3598         * arm-linux-tdep.c (skip_hurd_resolver): Update.
3599         * arch-utils.c (init_frame_pc_default): Update.
3600         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3601         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
3602         declaration.
3603         
3604 2003-04-11  Andrew Cagney  <cagney@redhat.com>
3605
3606         * i387-tdep.c: Update copyright.
3607         (i387_to_double): Delete function.
3608         (double_to_i387): Delete function.
3609
3610 2003-04-10  Andrew Cagney  <cagney@redhat.com>
3611
3612         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
3613         frame's function's address.  Simplify.
3614         (d10v_frame_unwind_cache): Check that the frame's function is
3615         non-zero.
3616
3617 2003-04-10  Jim Blandy  <jimb@redhat.com>
3618
3619         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
3620         call to set_gdbarch_deprecated_push_arguments.
3621
3622 2003-04-10  Andrew Cagney  <cagney@redhat.com>
3623
3624         * frame.c (fprint_frame_id): New function.
3625         (fprint_frame_type, fprint_frame): New function.
3626         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
3627         (create_sentinel_frame, get_frame_id): Ditto.
3628         (frame_id_p, frame_id_eq): Ditto.
3629         (frame_id_inner, create_new_frame): Ditto.
3630         (legacy_get_prev_frame, get_prev_frame): Ditto.
3631         (deprecated_update_frame_pc_hack): Ditto.
3632         (frame_register_unwind): Ditto.
3633         (deprecated_update_frame_base_hack): Ditto.
3634
3635 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
3636
3637         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
3638         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
3639         frame_chain function.
3640         * Makefile.in: Add dependencies due to above change.
3641
3642 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
3643
3644         * blockframe.c (legacy_frame_chain_valid): Move call to
3645         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
3646         inside_entry_file.
3647
3648 2003-04-09  Andrew Cagney  <cagney@redhat.com>
3649
3650         * frame.h (struct frame_id): Replace "pc" and "base" with
3651         "stack_addr" and "code_addr".  Update comments.
3652         (frame_id_build): Update parameter names and comment.
3653         (struct frame_info): Replace "id_p" and "id" with "this_id".
3654         * dummy-frame.c (dummy_frame_this_id): Update.
3655         * breakpoint.c (print_one_breakpoint): Update.
3656         * frame.c (get_frame_id): Update.
3657         (get_frame_base, frame_id_build): Update.
3658         (create_sentinel_frame, legacy_get_prev_frame): Update.
3659         (deprecated_update_frame_base_hack): Update.
3660         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
3661         (frame_id_inner): Ditto.
3662
3663 2003-04-09  Andrew Cagney  <cagney@redhat.com>
3664
3665         * defs.h (gdb_print_host_address): Make "addr" parameter a
3666         pointer constant.
3667         * utils.c (gdb_print_host_address): Update.
3668
3669 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
3670
3671         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
3672         register number for R0 is 0.
3673
3674 2003-04-09  J. Brobecker  <brobecker@gnat.com>
3675
3676         * frame.h (struct gdbarch): Add opaque structure definition
3677         to avoid a compilation warning on LynxOS 4.0.
3678
3679 2003-04-09  Andrew Cagney  <cagney@redhat.com>
3680
3681         * frame.h (struct frame_info): Delete field "pc".  Replace
3682         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
3683         structure.
3684         * frame.c (frame_pc_unwind): Update.
3685         (create_sentinel_frame): Do not set "pc".
3686         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
3687         (get_frame_pc): Call frame_pc_unwind.
3688         (deprecated_update_frame_pc_hack): Update.
3689         (create_new_frame): Use "pc" not "->pc".
3690
3691 2003-04-09  Andrew Cagney  <cagney@redhat.com>
3692
3693         * frame.c (get_frame_id): Eliminate code updating "frame".
3694         (legacy_get_prev_frame): Ditto.
3695         (get_frame_base): Return id.base directly.
3696         (deprecated_update_frame_base_hack): Update "id.base".
3697         * frame.h (struct frame_info): Delete field "frame".
3698
3699 2003-04-09  Andrew Cagney  <cagney@redhat.com>
3700
3701         * NEWS: Mention that the "Sequent family" is obsolete.
3702         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
3703         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
3704         * configure.host: Obsolete i[3456]86-sequent-bsd*,
3705         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
3706         * config/i386/tm-ptx4.h: Obsolete file.
3707         * config/i386/tm-ptx.h: Obsolete file.
3708         * symm-tdep.c: Obsolete file.
3709         * config/i386/symmetry.mt: Obsolete file.
3710         * config/i386/tm-symmetry.h: Obsolete file.
3711         * symm-nat.c: Obsolete file.
3712         * config/i386/nm-symmetry.h: Obsolete file.
3713         * config/i386/xm-symmetry.h: Obsolete file.
3714         * config/i386/symmetry.mh: Obsolete file.
3715         * config/i386/nm-ptx4.h: Obsolete file.
3716         * config/i386/ptx4.mh: Obsolete file.
3717         * config/i386/ptx.mt: Obsolete file.
3718         * config/i386/ptx.mh: Obsolete file.
3719         * config/i386/xm-ptx4.h: Obsolete file.
3720         * config/i386/xm-ptx.h: Obsolete file.
3721
3722 2003-04-09  Andrew Cagney  <cagney@redhat.com>
3723
3724         Obsolete mips*-*-mach3*.
3725         * NEWS: Mention that mips*-*-mach3* is obsolete.
3726         * m3-nat.c: Obsolete file.
3727         * config/nm-m3.h: Obsolete file.
3728         * config/mips/tm-mipsm3.h: Obsolete file.
3729         * config/mips/mipsm3.mt: Obsolete file.
3730         * config/mips/mipsm3.mh: Obsolete file.
3731         * config/mips/xm-mipsm3.h: Obsolete file.
3732         * mipsm3-nat.c: Obsolete file.
3733         * configure.host: Obsolete mips-dec-mach3*.
3734         * configure.tgt: Obsolete mips*-*-mach3*.
3735
3736 2003-04-09  Andrew Cagney  <cagney@redhat.com>
3737
3738         * doublest.h: Update copyright.
3739         (deprecated_store_floating, deprecated_extract_floating): Rename
3740         store_floating and extract_floating.  Update comments.
3741         * doublest.c: Update copyright.
3742         (extract_floating_by_length): Replace extract_floating.
3743         (store_floating_by_length): Replace store_floating.
3744         (deprecated_extract_floating): New function.
3745         (deprecated_store_floating): New function.
3746         (extract_typed_floating): Call extract_floating_by_length.
3747         (store_typed_floating): Call store_floating_by_length.
3748         * x86-64-tdep.c (x86_64_store_return_value): Update.
3749         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
3750         (sh64_extract_return_value): Update.
3751         (sh_sh4_register_convert_to_virtual): Update.
3752         (sh_sh64_register_convert_to_virtual): Update.
3753         (sh_sh4_register_convert_to_raw): Update.
3754         (sh_sh64_register_convert_to_raw): Update.
3755         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
3756         (rs6000_register_convert_to_raw): Update.
3757         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
3758         (ia64_register_convert_to_raw): Update.
3759         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
3760         (REGISTER_CONVERT_TO_VIRTUAL): Update.
3761         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
3762         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
3763         (alpha_register_convert_to_raw): Update.
3764
3765 2003-04-08  Andrew Cagney  <cagney@redhat.com>
3766
3767         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
3768         * gdbarch.h, gdbarch.c: Re-generate.
3769         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
3770         (d10v_gdbarch_init): Do not set saved_pc_after_call.
3771         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
3772         conditionally, use frame_pc_unwind as an alternative.  Add
3773         comments.
3774         * arch-utils.c (init_frame_pc_default): Only call
3775         SAVED_PC_AFTER_CALL when available.
3776
3777 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
3778
3779         * infrun.c (stop_soon): Rename from stop_soon_quietly.
3780         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
3781         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
3782         (start_remote): Ditto.
3783         (handle_inferior_event): Ditto.
3784         (save_inferior_status): Ditto.
3785         (restore_inferior_status): Ditto.
3786         * infcmd.c (attach_command): Ditto.
3787         * fork-child.c (startup_inferior): Ditto.
3788         * inferior.h (stop_soon): Rename from stop_soon_quietly.
3789         * alpha-tdep.c (heuristic_proc_start): Ditto.
3790         * mips-tdep.c (heuristic_proc_start): Ditto.
3791         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
3792         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
3793         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
3794         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
3795         * remote-vx.c (vx_create_inferior): Ditto.
3796
3797 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
3798
3799         * infrun.c (stop_soon_quietly): Make it an enum, to better
3800         override the default behavior of handle_inferior_event.
3801         (clear_proceed_status): Update uses of stop_soon_quietly to
3802         reflect that it is now an enum.
3803         (start_remote): Ditto.
3804         (handle_inferior_event): Change logic a bit if stop_soon_quietly
3805         is set to handle the new GNU/Linux kernel behavior for
3806         attach/sigstop.  Update uses of stop_soon_quietly.
3807         * inferior.h (enum stop_kind): New enum.
3808         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
3809         Reset normal handle_inferior_event behavior, afterwards.
3810         * fork-child.c (startup_inferior): Update.
3811         * alpha-tdep.c (heuristic_proc_start): Update.
3812         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3813         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
3814         * solib-osf.c (osf_solib_create_inferior_hook): Update.
3815         * solib-irix.c (irix_solib_create_inferior_hook): Update.
3816         * remote-vx.c (vx_create_inferior): Update.
3817         * mips-tdep.c (heuristic_proc_start): Update.
3818
3819 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
3820
3821         * disasm.c (dump_insns):  Move variables inside loop, or they will
3822         be freed more than once, causing wild memory corruptions.
3823         (gdb_disassembly): Look for the substring "-thread",
3824         instead of "-threads" in the target name, to make sure to find
3825         the 'multi-thread' target.  Also, make sure we do the right thing 
3826         with the "core" target.
3827
3828 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
3829
3830         * mips-tdep.c (mips_print_fp_register): New function, created from
3831         do_fp_register_row().  Registers are now (also) printed as hex.
3832         Only one register is printed per row.
3833         (mips_print_register, do_fp_register_row): Print floating point
3834         registers with mips_print_fp_register().
3835
3836 2003-04-06  Andrew Cagney  <cagney@redhat.com>
3837
3838         * valprint.h (inspect_it): Add extern declaration.
3839         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
3840         (selectors_info, classes_info): Ditto.
3841         (find_objc_msgcall): Fix indentation.
3842         (objc_printstr): Delete extern declarations.
3843
3844         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
3845
3846 2003-04-06  Andrew Cagney  <cagney@redhat.com>
3847
3848         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
3849         Update comment.
3850         * frame.c (legacy_saved_regs_this_id): Update.
3851         (legacy_get_prev_frame): Update.
3852         * xstormy16-tdep.c: Update comment.
3853         * sparc-tdep.c (sparc_frame_chain): Update comment.
3854         * blockframe.c (legacy_frame_chain_valid): Update.
3855
3856 2003-04-06  Andrew Cagney  <cagney@redhat.com>
3857
3858         * valprint.c (val_print_type_code_int): Delete #ifdef
3859         PRINT_TYPELESS_INTEGER code.
3860
3861         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
3862         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
3863         multi-arch definition.
3864         * gdbarch.h: Re-generate.
3865
3866 2003-04-05  Andrew Cagney  <cagney@redhat.com>
3867
3868         Eliminate FRAME_FIND_SAVED_REGS.
3869         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
3870         Change FSR parameter to a pointer.
3871         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
3872         Assume FSR parameter is a pointer.
3873         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
3874         Make fsr a pointer.
3875         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
3876         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
3877         saved_regs a pointer.
3878         (hppa_frame_saved_pc): Ditto.
3879         (find_dummy_frame_regs): Make frame_saved_regs a pointer
3880         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
3881         pointer.
3882         (restore_pc_queue): Make fsr a pointer.
3883         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
3884         (hppa_frame_chain): Make saved_regs a pointer, call
3885         hppa_frame_init_saved_regs.
3886         * sparc-tdep.c: Include "gdb_assert.h".
3887         (sparc_frame_find_saved_regs): Replace internal_error with
3888         gdb_assert.
3889         * remote-vxsparc.c (vx_read_register): Delete reference to
3890         FRAME_FIND_SAVED_REGS.
3891         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
3892         * gdbarch.h: Regenerate.
3893         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
3894         (deprecated_get_frame_saved_regs): Delete declaration.
3895         (struct frame_saved_regs): Delete definition.
3896         * frame.c (deprecated_get_frame_saved_regs): Delete function.
3897         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
3898         (hppa_frame_find_saved_regs): Delete declaration.
3899         (FRAME_FIND_SAVED_REGS): Delete macro.
3900         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
3901         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
3902         FRAME_FIND_SAVED_REGS in comment.
3903
3904 2003-04-05  Andrew Cagney  <cagney@redhat.com>
3905
3906         * frame.c (frame_func_unwind, get_frame_func): New functions.
3907         * frame.h (get_frame_func, frame_func_unwind): Declare.
3908         (struct frame_info): Add field "prev_func" for caching the
3909         previous frame's function address.
3910         * arm-tdep.c (arm_frameless_function_invocation): Combine
3911         get_pc_function_start and get_frame_pc into get_frame_func.
3912         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3913         (sh64_nofp_frame_init_saved_regs): Ditto.
3914         * s390-tdep.c (s390_function_start): Ditto.
3915         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
3916         (rs6000_frameless_function_invocation): Ditto.
3917         (rs6000_frame_saved_pc): Ditto.
3918         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
3919         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
3920         * i386-tdep.c (i386_frameless_signal_p): Ditto.
3921         (i386_frame_init_saved_regs): Ditto.
3922         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
3923         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
3924         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
3925         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3926         * blockframe.c (frameless_look_for_prologue): Ditto.
3927
3928 2003-04-05  Andrew Cagney  <cagney@redhat.com>
3929
3930         * frame.c (legacy_get_prev_frame): Link prev to next at the
3931         function start.  Update comments.
3932
3933 2003-04-05  Andrew Cagney  <cagney@redhat.com>
3934
3935         * frame.c (get_frame_id): Update comment.
3936         (legacy_get_prev_frame): Update comment.
3937         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
3938         * gdbarch.h: Regenerate.
3939         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
3940         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
3941
3942 2003-04-05  Andrew Cagney  <cagney@redhat.com>
3943
3944         * stack.c (print_frame_info): Use get_frame_pc.
3945
3946 2003-04-04  Andrew Cagney  <cagney@redhat.com>
3947
3948         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
3949         the frame's type from the unwinder.
3950         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
3951         (create_new_frame, legacy_get_prev_frame): When the unwinder's
3952         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
3953         (get_frame_base_address): Use get_frame_type.
3954         (get_frame_locals_address, get_frame_args_address): Ditto.
3955         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
3956         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
3957         (struct frame_info): Add comment explaining why the frame contains
3958         a "type" field.
3959         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
3960         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
3961         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
3962         NORMAL_FRAME.
3963         * frame-unwind.h: Include "frame.h".
3964         (struct frame_unwind): Add "type" field.
3965         * Makefile.in (frame_unwind_h): Add $(frame_h).
3966         
3967 2003-04-04  Andrew Cagney  <cagney@redhat.com>
3968
3969         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
3970         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
3971         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
3972         get_frame_base.
3973         (d10v_unwind_dummy_id): Use frame_id_build.
3974         * frame.c (find_frame_sal): Use get_frame_pc.
3975         (create_new_frame): Use deprecated_update_frame_pc_hack and
3976         deprecated_update_frame_base_hack.
3977         (create_sentinel_frame): Add comment about ->pc going away.
3978         (get_prev_frame): Add comment about ->pc going away.
3979         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
3980         frame_id_build, deprecated_update_frame_pc_hack and
3981         deprecated_update_frame_base_hack.
3982         (select_frame): Use get_frame_pc.
3983         (legacy_saved_regs_this_id): Use frame_id_build.
3984
3985 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
3986
3987         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
3988         signed integer case.
3989         (classify_argument): Handle enumerations and references.
3990
3991 2003-04-04  Andrew Cagney  <cagney@redhat.com>
3992
3993         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
3994         ID to NULL.
3995
3996 2003-04-01  Adam Fedor  <fedor@gnu.org>
3997
3998         * gdb/objc-lang.c (selectors_info): Replace calls to
3999         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
4000         SYMBOL_NATURAL_NAME.
4001         (classes_info, find_methods): Likewise.
4002
4003 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
4004
4005         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
4006         ``mach'' to the value determined by bfd_default_set_arch_mach().
4007
4008 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
4009
4010         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
4011         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
4012         (mi-cmd-file.o): Update dependencies.
4013
4014 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
4015
4016         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4017         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
4018
4019 2003-04-01  Adam Fedor  <fedor@gnu.org>
4020
4021         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
4022         * language.h (struct language_defn): Add la_demangle.
4023         (language_demangle): Declare.
4024         * language.c (language_demangle): New function.
4025         (unk_lang_demangle): Likewise.
4026         (unknown_language_defn, auto_language_defn, local_language_defn):
4027         Add ukn_lang_demangle.
4028         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
4029         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
4030         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
4031         (cplus_language_defn): Add cplus_demangle for la_demangle element.
4032         * jv-lang.c (java_demangle): New function
4033         (java_language_defn): Use it for la_demangle element.
4034         * objc-lang.c (objc_demangle): Add options argument
4035         (objc_language_defn): Use objc_demangle for la_demangle element.
4036         * maint.c (maintenance_demangle): Replace switch with
4037         call to language_demangle.
4038         * utils.c (fprintf_symbol_filtered): Likewise.
4039
4040 2003-04-01  Andrew Cagney  <cagney@redhat.com>
4041
4042         * printcmd.c (print_frame_nameless_args): Delete #ifdef
4043         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
4044         PRINT_TYPELESS_INTEGER.
4045         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
4046         PUSH_RETURN_ADDRESS.
4047
4048 2003-04-01  Andrew Cagney  <cagney@redhat.com>
4049
4050         * Makefile.in (d10v-tdep.o): Update dependencies.
4051         * d10v-tdep.c: Include "frame-base.h".
4052         (d10v_frame_unwind): Make constant.
4053         (d10v_frame_base_address): New function.
4054         (d10v_frame_base): New variable.
4055         (d10v_gdbarch_init): Set frame_base default.
4056         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
4057         comment for base.
4058         (d10v_frame_unwind_cache): Set and use "prev_sp".
4059         (d10v_frame_this_id): Use the previous frame's inner most stack
4060         address and this frame's func address for the frame ID.  Use
4061         frame_id_build.  Don't analyze beyond the current instruction.
4062         
4063 2003-04-01  Andrew Cagney  <cagney@redhat.com>
4064
4065         * frame.h (get_frame_locals_address, get_frame_args_address):
4066         Refer to the base address, instead of the address of the first
4067         local or parameter.
4068         
4069 2003-04-01  Andrew Cagney  <cagney@redhat.com>
4070
4071         Add frame debug info addresses:
4072         * frame-base.c: New file.
4073         * frame-base.h: New file.
4074         * frame.h (struct frame_base): Add opaque declaration.
4075         (get_frame_base): Update comment.
4076         (get_frame_base_address): Declare.
4077         (get_frame_locals_address): Declare.
4078         (get_frame_args_address): Declare.
4079         (struct frame_info): Add "base" and "base_cache".  Update
4080         comments on the unwinder.
4081         * frame.c: Include "frame-base.h".
4082         (get_frame_locals_address): New function.
4083         (get_frame_base_address): New function.
4084         (get_frame_args_address): New function.
4085         * findvar.c (read_var_value): Use get_frame_locals_address and
4086         get_frame_args_address.
4087         * stack.c (frame_info): Use get_frame_locals_address and
4088         get_frame_args_address.
4089         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
4090         moved to "frame-base.c".
4091         * printcmd.c (print_frame_nameless_args): Ditto.
4092         * symtab.h (address_class): Update comments.
4093         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
4094         get_frame_base_address.
4095         * dwarf2expr.c (execute_stack_op): Ditto.
4096         * Makefile.in (frame_base_h): Define.
4097         (frame.o): Update dependencies.
4098         (frame-base.o): Add dependencies.
4099         (SFILES): Add frame-base.c.
4100         (COMMON_OBS): Add frame-base.o.
4101
4102 2003-04-01  Andrew Cagney  <cagney@redhat.com>
4103
4104         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
4105         CALL_DUMMY_LENGTH): Ditto.
4106         * gdbarch.c: Re-generate.
4107         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
4108         (CALL_DUMMY_LENGTH): Delete macro.
4109         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
4110         * arm-tdep.c (arm_gdbarch_init): Ditto.
4111         * avr-tdep.c (avr_gdbarch_init): Ditto.
4112         * cris-tdep.c (cris_gdbarch_init): Ditto.
4113         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4114         * frv-tdep.c (frv_gdbarch_init): Ditto.
4115         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4116         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4117         * i386-tdep.c (i386_gdbarch_init): Ditto.
4118         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4119         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4120         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4121         * mips-tdep.c (mips_gdbarch_init): Ditto.
4122         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4123         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4124         * s390-tdep.c (s390_gdbarch_init): Ditto.
4125         * sh-tdep.c (sh_gdbarch_init): Ditto.
4126         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4127         * v850-tdep.c (v850_gdbarch_init): Ditto.
4128         * vax-tdep.c (vax_gdbarch_init): Ditto.
4129         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4130
4131 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
4132
4133         * frame.c (get_prev_frame): Disable call to inside_entry_file().
4134
4135 2003-04-01  Andrew Cagney  <cagney@redhat.com>
4136
4137         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
4138         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4139         * gdbarch.h, gdbarch.c: Re-generate.
4140         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4141         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4142         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4143         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
4144         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
4145         * infcmd.c (run_stack_dummy): Simplify assuming
4146         CALL_DUMMY_BREAKPOINT_OFFSET_P.
4147         * infrun.c (handle_inferior_event): Ditto.
4148         * alpha-tdep.c (alpha_gdbarch_init): Do not set
4149         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
4150         * arm-tdep.c (arm_gdbarch_init): Ditto.
4151         * avr-tdep.c (avr_gdbarch_init): Ditto.
4152         * cris-tdep.c (cris_gdbarch_init): Ditto.
4153         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4154         * frv-tdep.c (frv_gdbarch_init): Ditto.
4155         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4156         * i386-tdep.c (i386_gdbarch_init): Ditto.
4157         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4158         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4159         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4160         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4161         * mips-tdep.c (mips_gdbarch_init): Ditto.
4162         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4163         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4164         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4165         * s390-tdep.c (s390_gdbarch_init): Ditto.
4166         * sh-tdep.c (sh_gdbarch_init): Ditto.
4167         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4168         * v850-tdep.c (v850_gdbarch_init): Ditto.
4169         * vax-tdep.c (vax_gdbarch_init): Ditto.
4170         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4171
4172 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
4173
4174         * symfile.c (symfile_relocate_debug_section): Update call to
4175         bfd_simple_get_relocated_section_contents.
4176
4177 2003-03-31  Andrew Cagney  <cagney@redhat.com>
4178
4179         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
4180         * gdbarch.h, gdbarch.c: Regenerate.
4181         * inferior.h (FIX_CALL_DUMMY): Delete macro.
4182         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
4183         available.
4184         * frame.h (generic_fix_call_dummy): Delete declaration.
4185         * dummy-frame.h: Update comment.
4186         * dummy-frame.c (generic_fix_call_dummy): Delete function.
4187         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4188         fix_call_dummy.
4189         * sh-tdep.c (sh_gdbarch_init): Ditto.
4190         * s390-tdep.c (s390_gdbarch_init): Ditto.
4191         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4192         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4193         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4194         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4195         * i386-tdep.c (i386_gdbarch_init): Ditto.
4196         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4197         * frv-tdep.c (frv_gdbarch_init): Ditto.
4198         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4199         * cris-tdep.c (cris_gdbarch_init): Ditto.
4200         * avr-tdep.c (avr_gdbarch_init): Ditto.
4201         * arm-tdep.c (arm_gdbarch_init): Ditto.
4202
4203 2003-03-31  J. Brobecker  <brobecker@gnat.com>
4204
4205         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
4206         (INIT_FRAME_AP): Likewise.
4207         (EXTRA_FRAME_INFO): Likewise.
4208
4209 2003-03-31  Andrew Cagney  <cagney@redhat.com>
4210
4211         * gdbarch.sh: Include "symfile.h".
4212         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
4213         * gdbarch.h, gdbarch.c: Re-generate.
4214         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
4215         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4216         call_dummy_address, the default is at entry_point_address.
4217         * v850-tdep.c (v850_gdbarch_init): Ditto.
4218         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4219         * sh-tdep.c (sh_gdbarch_init): Ditto.
4220         * s390-tdep.c (s390_gdbarch_init): Ditto.
4221         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4222         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4223         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4224         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4225         * i386-tdep.c (i386_gdbarch_init): Ditto.
4226         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4227         * frv-tdep.c (frv_gdbarch_init): Ditto.
4228         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4229         * cris-tdep.c (cris_gdbarch_init): Ditto.
4230         * arm-tdep.c (arm_gdbarch_init): Ditto.
4231
4232 2003-03-31  Andrew Cagney  <cagney@redhat.com>
4233
4234         * gdbarch.sh (CALL_DUMMY_P): Delete.
4235         * gdbarch.h, gdbarch.c: Re-generate.
4236         * inferior.h (CALL_DUMMY_P): Delete macro.
4237         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4238         * vax-tdep.c (vax_gdbarch_init): Update.
4239         * v850-tdep.c (v850_gdbarch_init): Update.
4240         * sparc-tdep.c (sparc_gdbarch_init): Update.
4241         * sh-tdep.c (sh_gdbarch_init): Update.
4242         * s390-tdep.c (s390_gdbarch_init): Update.
4243         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4244         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4245         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4246         * mips-tdep.c (mips_gdbarch_init): Update.
4247         * mcore-tdep.c (mcore_gdbarch_init): Update.
4248         * m68k-tdep.c (m68k_gdbarch_init): Update.
4249         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4250         * ia64-tdep.c (ia64_gdbarch_init): Update.
4251         * i386-tdep.c (i386_gdbarch_init): Update.
4252         * h8300-tdep.c (h8300_gdbarch_init): Update.
4253         * frv-tdep.c (frv_gdbarch_init): Update.
4254         * d10v-tdep.c (d10v_gdbarch_init): Update.
4255         * cris-tdep.c (cris_gdbarch_init): Update.
4256         * breakpoint.c (deprecated_frame_in_dummy): Update.
4257         * avr-tdep.c (avr_gdbarch_init): Update.
4258         * alpha-tdep.c (alpha_gdbarch_init): Update.
4259         * arm-tdep.c (arm_gdbarch_init): Update.
4260         * dummy-frame.c (dummy_frame_this_id): Update comments.
4261         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
4262         * frame.c (legacy_get_prev_frame): Ditto.
4263         * valops.c (call_function_by_hand): Delete function.
4264         (hand_function_call): Rename to call_function_by_hand
4265
4266 2003-03-30  Andrew Cagney  <cagney@redhat.com>
4267
4268         2002-11-10 Klee Dienes <kdienes@apple.com>
4269         * value.h (struct value): Update comment.
4270
4271 2003-03-30  Andrew Cagney  <cagney@redhat.com>
4272
4273         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
4274         D10V_FP_REGNUM.
4275         (d10v_gdbarch_init): Do not set fp_regnum.
4276
4277         * frame.c (get_frame_base): Force ID initialization.
4278         (get_prev_frame): Move computation of the frame ID from here ...
4279         (get_frame_id): ... to here.
4280         (legacy_get_prev_frame): Mark the frame ID as valid.
4281         * frame.h (struct frame_info): Add field "id_p".
4282
4283 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
4284
4285         * i386-tdep.c (i386_store_struct_return): Removed.
4286         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
4287
4288 2003-03-30  Andrew Cagney  <cagney@redhat.com>
4289
4290         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
4291         * gdbarch.h, gdbarch.c: Regenerate.
4292         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
4293         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4294         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4295         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4296         * i386-tdep.c (i386_gdbarch_init): Ditto.
4297         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4298         * cris-tdep.c (cris_gdbarch_init): Ditto.
4299         * vax-tdep.c (vax_gdbarch_init): Ditto.
4300         * s390-tdep.c (s390_gdbarch_init): Ditto.
4301         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4302         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4303         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4304         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
4305         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4306         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
4307         * sparc-tdep.c (sparc_gdbarch_init): Update.
4308         * sh-tdep.c (sh_gdbarch_init): Update.
4309         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4310         * mips-tdep.c (mips_gdbarch_init): Update.
4311         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4312         * ia64-tdep.c (ia64_gdbarch_init): Update.
4313         * frv-tdep.c (frv_gdbarch_init): Update.
4314         * avr-tdep.c (avr_gdbarch_init): Update.
4315         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
4316         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
4317         instead of when push_dummy_call is not available.
4318         
4319 2003-03-30  Andrew Cagney  <cagney@redhat.com>
4320
4321         * infttrace.c: Include "gdbthread.h".
4322         (parent_attach_all): Fix function signature.
4323         (call_ptrace): Update call.
4324         * Makefile.in (infttrace.o): Update dependencies.
4325
4326 2003-03-30  Andrew Cagney  <cagney@redhat.com>
4327
4328         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
4329         PUSH_RETURN_ADDRESS.
4330         * gdbarch.h, gdbarch.c: Regenerate.
4331         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4332         * x86-64-tdep.c (x86_64_init_abi): Update.
4333         * v850-tdep.c (v850_gdbarch_init): Update.
4334         * sparc-tdep.c (sparc_gdbarch_init): Update.
4335         * sh-tdep.c (sh_gdbarch_init): Update.
4336         * s390-tdep.c (s390_gdbarch_init): Update.
4337         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4338         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4339         * mips-tdep.c (mips_gdbarch_init): Update.
4340         * mcore-tdep.c (mcore_gdbarch_init): Update.
4341         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4342         * ia64-tdep.c (ia64_gdbarch_init): Update.
4343         * i386-tdep.c (i386_gdbarch_init): Update.
4344         * h8300-tdep.c (h8300_gdbarch_init): Update.
4345         * frv-tdep.c (frv_gdbarch_init): Update.
4346         * cris-tdep.c (cris_gdbarch_init): Update.
4347         * avr-tdep.c (avr_gdbarch_init): Update.
4348         * arm-tdep.c (arm_gdbarch_init): Update.
4349         * valops.c (hand_function_call): Update.
4350
4351 2003-03-29  Andrew Cagney  <cagney@redhat.com>
4352
4353         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
4354         sizeof_call_dummy_words.
4355         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
4356         define.
4357         * gdbarch.h: Regenerate.
4358         
4359 2003-03-29  Andrew Cagney  <cagney@redhat.com>
4360
4361         * infttrace.h: New file.
4362         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
4363         (hpread_get_textlow): Detect an uninitialized dn_bufp.
4364         (hpread_read_doc_function_type): Detect an initialized type1.
4365         (hpread_quick_traverse): Initialize mod_name_string.
4366         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
4367         (som_solib_get_solib_by_pc): Declare.
4368         (so_lib_thread_start_addr): Declare.
4369         (no_shared_libraries): Declare.
4370         * somread.c (init_import_symbols): Make static.  Add forward
4371         declaration.
4372         * config/pa/nm-hppah.h: Include "infttrace.h" for
4373         parent_attach_all.
4374         (hppa_insert_hw_watchpoint): Declare.
4375         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
4376         * hppah-nat.c: Include "gdb_string.h".
4377         (parent_attach_all): Delete extern declaration, moved to
4378         "infttrace.h".
4379         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
4380         int.
4381         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
4382         * Makefile.in (infttrace_h): Define.
4383         (hpread.o): Update dependencies.
4384         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
4385         * hppa-hpux-tdep.c: Include "gdb_string.h".
4386         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
4387         * infrun.c (handle_inferior_event): Always initialize
4388         stepped_after_stopped_by_watchpoint.  Add default and remove
4389         fallthrough in switch statement.
4390         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
4391         parameter to int.
4392         (hppa_remove_hw_watchpoint): Ditto.
4393
4394 2003-03-29  Andrew Cagney  <cagney@redhat.com>
4395
4396         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
4397         offset.
4398
4399 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
4400
4401         * arm-tdep.c (arm_push_arguments): Delete.
4402         (struct stack_item): New type.
4403         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
4404         (arm_store_struct_return): Delte.
4405         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
4406         arm_push_arguments or arm_store_struct_return.
4407
4408 2003-03-28  Andrew Cagney  <cagney@redhat.com>
4409
4410         * Makefile.in (d10v-tdep.o): Update dependencies.
4411         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
4412         * d10v-tdep.c: Include "remote.h".
4413         (target_resume_hook): Delete extern declaration.
4414         (target_wait_loop_hook): Ditto.
4415         (tdisassemble_command): Eliminate assignment in "if" conditional.
4416         (d10v_ts2_register_sim_regno): Eliminate call to
4417         legacy_register_sim_regno.
4418         (d10v_ts3_register_sim_regno): Ditto.
4419
4420 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
4421
4422         * thread.c: Reindented.
4423         * lin-lwp.c: Ditto.
4424         * linux-proc.c: Ditto.
4425
4426 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
4427
4428         * MAINTAINERS (write after approval): Add myself.
4429
4430 2003-03-27  Theodore A. Roth  <troth@openavr.org>
4431
4432         * objc-exp.y: Add missing semi-colons.
4433
4434 2003-03-27  Andrew Cagney  <cagney@redhat.com>
4435
4436         * regcache.c (write_sp): Delete function and references.
4437         * inferior.h (write_sp): Delete declaration.
4438         * valops.c (hand_function_call): Replace write_sp with
4439         TARGET_WRITE_SP.
4440         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
4441         (sparc_pop_frame): Ditto.
4442         
4443 2003-03-27  Andrew Cagney  <cagney@redhat.com>
4444
4445         * NEWS: Mention removal of support for hppa*-*-bsd* and
4446         hppa*-*-osf* natives, and hppa*-*-pro* target.
4447         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
4448         * config/pa/xm-pa.h: Obsolete file.
4449         * config/pa/xm-hppab.h: Obsolete file.
4450         * config/pa/nm-hppab.h: Obsolete file.
4451         * config/pa/tm-hppab.h: Obsolete file.
4452         * config/pa/tm-hppao.h: Obsolete file.
4453         * config/pa/nm-hppao.h: Obsolete file.
4454         * config/pa/tm-pro.h: Obsolete file.
4455         * config/pa/hppaosf.mt: Obsolete file.
4456         * config/pa/hppaosf.mh: Obsolete file.
4457         * config/pa/hppapro.mt: Obsolete file.
4458         * config/pa/hppabsd.mt: Obsolete file.
4459         * config/pa/hppabsd.mh: Obsolete file.
4460         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
4461         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
4462         hppa*-*-osf*.
4463
4464 2003-03-27  Andrew Cagney  <cagney@redhat.com>
4465
4466         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
4467         push_arguments.  Don't set push_return_address or write_sp.
4468         (d10v_push_dummy_call): Replace d10v_push_arguments.
4469         (d10v_push_return_address, d10v_write_sp): Delete function,
4470         handled by push_dummy_call.
4471
4472 2003-03-26  Andrew Cagney  <cagney@redhat.com>
4473
4474         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
4475         (push_dummy_call): New pure multi-arch replacement with gdbarch,
4476         regcache and dummy_addr parameters.
4477         * gdbarch.h, gdbarch.c: Re-generate.
4478         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
4479         available; assume it will handle stack alignment and return
4480         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
4481         legacy_push_arguments.
4482         (legacy_push_arguments): Rename default_push_arguments.
4483         * value.h (legacy_push_arguments): Rename default_push_arguments.
4484         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
4485         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
4486         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
4487         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
4488         * config/i386/tm-symmetry.h: Update.
4489         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4490         * x86-64-tdep.c (x86_64_init_abi): Update.
4491         * v850-tdep.c (v850_gdbarch_init): Update.
4492         * sparc-tdep.c (sparc_gdbarch_init): Update.
4493         * sh-tdep.c (sh_gdbarch_init): Update.
4494         * s390-tdep.c (s390_gdbarch_init): Update.
4495         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4496         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4497         * mips-tdep.c (mips_gdbarch_init): Update.
4498         * mcore-tdep.c (mcore_gdbarch_init): Update.
4499         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4500         * ia64-tdep.c (ia64_gdbarch_init): Update.
4501         * i386-tdep.c (i386_gdbarch_init): Update.
4502         * hppa-tdep.c (hppa_gdbarch_init): Update.
4503         * h8300-tdep.c (h8300_gdbarch_init): Update.
4504         * frv-tdep.c (frv_gdbarch_init): Update.
4505         * d10v-tdep.c (d10v_gdbarch_init): Update.
4506         * cris-tdep.c (cris_gdbarch_init): Update.
4507         * avr-tdep.c (avr_gdbarch_init): Update.
4508         * arm-tdep.c (arm_gdbarch_init): Update.
4509         * arm-linux-tdep.c (arm_linux_init_abi): Update.
4510         * alpha-tdep.c (alpha_gdbarch_init): Update.
4511
4512 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
4513
4514         * signals/signals.c (do_target_signal_to_host): Correct realtime
4515         signal range test.
4516
4517 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
4518
4519         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
4520         (struct sal_chain, map_catch_names): Remove.
4521         (catch_exception_command_1): Don't call
4522         handle_gnu_4_16_catch_command.
4523
4524 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
4525
4526         From Mark Dettinger <dettinge@de.ibm.com>:
4527         * dwarf2cfi.c (read_2u): Increment pointer by two.
4528
4529 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
4530
4531         * signals/signals.c: Fix typos in last change.
4532
4533 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
4534
4535         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
4536         not already defined.  Use __SIGRTMIN if available.
4537         (target_signal_from_host): Remove SIGRTMIN block.
4538         (do_target_signal_to_host): Remove SIGRTMIN block; check that
4539         the signal is within the realtime range.
4540
4541 2003-03-25  Adam Fedor  <fedor@gnu.org>
4542
4543         * Makefile.in (infrun.o): Add $(language_h)
4544         * infrun.c (handle_inferior_event): Use skip_language_trampoline
4545         for language specific trampolines.
4546         * language.h (struct language_defn): Add skip_trampoline.
4547         (skip_language_trampoline): Declare.
4548         * language.c (unk_lang_trampoline, skip_language_trampoline):
4549         New functions.
4550         (unknown_language_defn, auto_language_defn, local_language_defn):
4551         Add ukn_lang_trampoline.
4552         * ada-lang.c (ada_language_defn): Add NULL for language
4553         specific skip_trampoline.
4554         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
4555         scm-lang.c: Likewise.
4556         * objc-lang.c (objc_skip_trampoline): New function.
4557         (objc_language_defn): Add objc_skip_trampoline.
4558
4559 2003-03-25  Andrew Cagney  <cagney@redhat.com>
4560
4561         * frame.c (get_prev_frame): Delay validating a frame's ID -
4562         non-NULL, didn't go backwards - until an attempt to unwind it to
4563         the previous frame.
4564
4565 2003-03-25  Andrew Cagney  <cagney@redhat.com>
4566
4567         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
4568         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
4569         * gdbarch.h, gdbarch.c: Re-generate.
4570         * config/sparc/tm-sparc.h
4571         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
4572         * sparc-tdep.c (sparc_gdbarch_init): Set
4573         deprecated_extra_stack_alignment_needed.
4574         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
4575         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
4576         extra_stack_alignment_needed.
4577         * v850-tdep.c (v850_gdbarch_init): Ditto.
4578         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4579         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4580         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4581         * cris-tdep.c (cris_gdbarch_init): Ditto.
4582         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4583         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4584         
4585 2003-03-25  Andrew Cagney  <cagney@redhat.com>
4586
4587         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
4588         STORE_STRUCT_RETURN.
4589         * gdbarch.h, gdbarch.c: Regenerate.
4590         * d10v-tdep.c (d10v_store_struct_return): Delete function.
4591         (d10v_push_arguments): Set the struct return register.
4592         (d10v_gdbarch_init): Update.
4593         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4594         * x86-64-tdep.c (x86_64_init_abi): Update.
4595         * vax-tdep.c (vax_gdbarch_init): Update.
4596         * v850-tdep.c (v850_gdbarch_init): Update.
4597         * sparc-tdep.c (sparc_gdbarch_init): Update.
4598         * sh-tdep.c (sh_gdbarch_init): Update.
4599         * s390-tdep.c (s390_gdbarch_init): Update.
4600         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4601         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4602         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4603         * mips-tdep.c (mips_gdbarch_init): Update.
4604         * mcore-tdep.c (mcore_gdbarch_init): Update.
4605         * m68k-tdep.c (m68k_gdbarch_init): Update.
4606         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4607         * ia64-tdep.c (ia64_gdbarch_init): Update.
4608         * i386-tdep.c (i386_gdbarch_init): Update.
4609         * hppa-tdep.c (hppa_gdbarch_init): Update.
4610         * h8300-tdep.c (h8300_gdbarch_init): Update.
4611         * frv-tdep.c (frv_gdbarch_init): Update.
4612         * cris-tdep.c (cris_gdbarch_init): Update.
4613         * avr-tdep.c (avr_gdbarch_init): Update.
4614         * arm-tdep.c (arm_gdbarch_init): Update.
4615         * alpha-tdep.c (alpha_gdbarch_init): Update.
4616         
4617 2003-03-25  Andrew Cagney  <cagney@redhat.com>
4618
4619         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
4620         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
4621         CALL_DUMMY_STACK_ADJUST with a predicate variable.
4622         * gdbarch.h, gdbarch.c: Regenerate.
4623         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4624         call_dummy_stack_adjust_p.
4625         * vax-tdep.c (vax_gdbarch_init): Ditto.
4626         * v850-tdep.c (v850_gdbarch_init): Ditto.
4627         * sh-tdep.c (sh_gdbarch_init): Ditto.
4628         * s390-tdep.c (s390_gdbarch_init): Ditto.
4629         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4630         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4631         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4632         * mips-tdep.c (mips_gdbarch_init): Ditto.
4633         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4634         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4635         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4636         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4637         * i386-tdep.c (i386_gdbarch_init): Ditto.
4638         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4639         * frv-tdep.c (frv_gdbarch_init): Ditto.
4640         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4641         * cris-tdep.c (cris_gdbarch_init): Ditto.
4642         * avr-tdep.c (avr_gdbarch_init): Ditto.
4643         * arm-tdep.c (arm_gdbarch_init): Ditto.
4644         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4645         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
4646         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
4647         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
4648         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
4649         call_dummy_stack_adjust_p.
4650         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
4651         (CALL_DUMMY_STACK_ADJUST): Delete macro.
4652         * sparc-tdep.c (sparc32_push_arguments): Update.
4653         * valops.c (hand_function_call): Update.
4654
4655 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
4656
4657         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
4658         set_gdbarch_char_signed.
4659
4660 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
4661
4662         PR cli/548
4663         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
4664
4665 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
4666
4667         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
4668         (_initialize_arm_tdep): Don't set tm_print_insn.
4669
4670 2003-03-24  Adam Fedor  <fedor@gnu.org>
4671
4672         * Makefile.in (YYOBJ): Add objc-exp.tab.o
4673         * objc-lang.h: Add multiple inclusion protection.
4674         (start_msglist, add_msglist, end_msglist): Additional declarations.
4675
4676 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
4677
4678         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
4679         value was renamed to ARM_FLOAT_SOFT_FPA.
4680
4681 2003-03-23  Andrew Cagney  <cagney@redhat.com>
4682
4683         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
4684         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
4685         * gdbarch.h, gdbarch.c: Regenerate.
4686         * valops.c (hand_function_call): Update.
4687         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
4688         * frame.c (legacy_saved_regs_this_id): Update.
4689         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
4690         * dummy-frame.h: Update.
4691         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
4692         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
4693         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
4694         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
4695         * config/m68k/tm-sun3.h: Update.
4696         * blockframe.c (inside_main_func, frame_chain_valid): Update.
4697         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4698         * x86-64-tdep.c (x86_64_init_abi): Update.
4699         * vax-tdep.c (vax_gdbarch_init): Update.
4700         * v850-tdep.c (v850_gdbarch_init): Update.
4701         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
4702         * sh-tdep.c (sh_gdbarch_init): Update.
4703         * s390-tdep.c (s390_gdbarch_init): Update.
4704         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4705         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
4706         (frame_get_saved_regs): Update.
4707         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4708         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4709         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4710         * mips-tdep.c (mips_gdbarch_init): Update.
4711         * mcore-tdep.c (mcore_gdbarch_init): Update.
4712         * m68k-tdep.c (m68k_gdbarch_init): Update.
4713         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4714         * ia64-tdep.c (ia64_gdbarch_init): Update.
4715         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
4716         * i386-interix-tdep.c (i386_interix_init_abi): Update.
4717         (i386_interix_back_one_frame): Update.
4718         * hppa-tdep.c (hppa_gdbarch_init): Update.
4719         (hppa_init_extra_frame_info): Update.
4720         * h8300-tdep.c (h8300_gdbarch_init): Update.
4721         * frv-tdep.c (frv_gdbarch_init): Update.
4722         * cris-tdep.c (cris_gdbarch_init): Update.
4723         * avr-tdep.c (avr_gdbarch_init): Update.
4724         * arm-tdep.c (arm_gdbarch_init): Update.
4725         * alpha-tdep.c (alpha_gdbarch_init): Update.
4726
4727 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
4728
4729         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
4730         (arm_get_fp_model): Declare.
4731         * arm-tdep.c (fp_model_strings): New string array.
4732         (arm_fp_model, current_fp_model): New variables.
4733         (arm_get_fp_model): New function.
4734         (arm_set_fp): New function.
4735         (set_fp_model_sfunc): New function.
4736         (show_fp_model): New function.
4737         (_initialize_arm_tdep): Add new command to set/show the FPU.
4738         (arm_extract_return_value): Use arm_get_fp_model.
4739         (arm_store_return_value): Likewise.
4740         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
4741         to initialize the floating-point data types.
4742         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
4743         model is FPA.
4744
4745 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
4746
4747         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
4748         the current setting of each value.
4749         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
4750         new_set and new_show.  Use add_setshow_cmd_full and 
4751         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
4752         commands and add new version as subcommands of "set/show arm".
4753
4754 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
4755
4756         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
4757         (set_arm_command, show_arm_command): New functions.
4758         (_initialize_arm_tdep): Add them.
4759         (num_disassembly_options): Renamed from num_flavor_options.
4760         (valid_disassembly_styles): Renamed from valid_flavors.
4761         (disassembly_style): Renamed from disassembly_flavor.
4762         (set_disassembly_style_sfunc): Renamed from 
4763         set_disassembly_flavor_sfunc.
4764         (set_disassembly_style): Renamed from set_disassembly_flavor.
4765         (arm_othernames): Updated.
4766         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
4767         command.  Add "set/show arm disassembly" commands.  Deprecate
4768         "othernames" command.
4769
4770 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
4771
4772         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
4773         (arm-tdep.o): Depend on elf_arm_h.
4774
4775 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
4776
4777         * Makefile.in (coff_internal_h): Define.
4778         (arm-tdep.o): Update dependencies.
4779
4780 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
4781
4782         * arm-tdep.c (prologue_cache): Delete.
4783         (check_prologue_cache, save_prologue_cache): Delete.
4784         (arm_scan_prologue): Don't check or update the prologue_cache.
4785         (arm_gdb_arch_init): Don't initialize it.
4786         (_initialize_arm_tdep): Likewise.
4787
4788 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
4789
4790         * MAINTAINERS (tui): Maintainer of tui code.
4791
4792 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
4793
4794         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
4795         (i386-cygwin-tdep.o): Add dependencies.
4796         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
4797         * i386-cygwin-tdep.c: New file.
4798         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
4799         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
4800
4801 2003-03-20  Andrew Cagney  <cagney@redhat.com>
4802
4803         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
4804         (handle_inferior_event): Remove code calling
4805         DYNAMIC_TRAMPOLINE_NEXTPC.
4806
4807         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
4808         already has a full path.
4809
4810         * main.c (gdb_main): Return 1.
4811         (captured_main): Call error to report an invalid interpreter.
4812
4813         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4814         * alpha-osf1-tdep.c: Include "gdb_string.h".
4815
4816 2003-03-19  J. Brobecker  <brobecker@gnat.com>
4817
4818         Continuing work to convert the hppa targets to multiarch partial.
4819
4820         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
4821         method, now that hppa_push_dummy_frame has a conformant prototype.
4822         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
4823         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
4824         for the switch to multiarch partial.
4825
4826 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
4827
4828         * mdebugread.c (parse_symbol): For stEnd, we're done counting
4829         when iss is issNull.
4830
4831 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
4832
4833         * mips-tdep.c (mips_register_name): Fix fencepost error involving
4834         NUM_REGS bounds check.
4835
4836 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
4837
4838         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
4839         * mips-tdep.c (gdb_assert.h): Include.
4840         (mips_generic_reg_names, mips_processor_reg_names): Make static.
4841         (mips_register_name): Handle integer registers explicitly.  Add
4842         bounds checking.
4843         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
4844         (mips_lsi33k_reg_names): Don't list integer registers; they're
4845         handled by mips_register_name() now.
4846         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
4847         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
4848         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
4849         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
4850         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
4851
4852 2003-03-18  Andrew Cagney  <cagney@redhat.com>
4853
4854         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
4855         a void pointer.
4856         * gdbtypes.h (print_scalar_formatted): Update declaration.
4857         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
4858
4859 2003-03-18  J. Brobecker  <brobecker@gnat.com>
4860
4861         * infrun.c (observer.h): Add #include.
4862         (normal_stop): Add call to observer_notify_normal_stop.
4863         * Makefile.in (infrun.o): Add dependency on observer.h.
4864
4865 2003-03-18  J. Brobecker  <brobecker@gnat.com>
4866
4867         Continuing work to convert the hppa targets to multiarch partial.
4868         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
4869         parameter. Reformat comment.
4870         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
4871         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
4872         to match new profile.
4873
4874 2003-03-18  J. Brobecker  <brobecker@gnat.com>
4875
4876         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
4877         appear to be working in any case.
4878
4879 2003-03-18  J. Brobecker  <brobecker@gnat.com>
4880
4881         * observer.c (observer_test_first_observer): New static variable.
4882         (observer_test_second_observer): Likewise.
4883         (observer_test_third_observer): Likewise.
4884         (observer_test_first_notification_function): New static function.
4885         (observer_test_second_notification_function): Likewise.
4886         (observer_test_third_notification_function): Likewise.
4887
4888 2003-03-17  J. Brobecker  <brobecker@gnat.com>
4889
4890         * hppa-tdep.c (gdb_assert.h): Add missing #include.
4891         * somsolib.c (gdb_assert.h): Likewise.
4892         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
4893         (somsolib.o): Likewise.
4894
4895 2003-03-17  Andrew Cagney  <cagney@redhat.com>
4896
4897         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
4898         BFD.  Simplify setting of di.endian.
4899
4900 2003-03-17  Andrew Cagney  <cagney@redhat.com>
4901
4902         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
4903         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
4904
4905         From Elena Zannoni  <ezannoni@redhat.com>
4906         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
4907         vector and floating-point parameters.
4908         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
4909         convention.
4910         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
4911
4912 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
4913
4914         * MAINTAINERS: Remove my name from several maintainership roles.
4915
4916 2003-03-17  Andrew Cagney  <cagney@redhat.com>
4917
4918         Fix frame off-by-one bug.
4919         * frame-unwind.h (frame_this_id_ftype): Replace
4920         frame_unwind_id_ftype.
4921         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
4922         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
4923         with "prev_register".
4924         * frame-unwind.c (frame_unwind_find_by_pc): Return
4925         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
4926         comment.
4927         * dummy-frame.c (cached_find_dummy_frame): Delete function.
4928         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
4929         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
4930         (dummy_frame_unwind): Update.
4931         * sentinel-frame.c (sentinel_frame_prev_register): Replace
4932         sentinel_frame_register_unwind.
4933         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
4934         (sentinel_frame_unwinder): Update.
4935         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
4936         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
4937         * frame.c (create_sentinel_frame): Update. Initialize
4938         "prologue_cache" instead of "unwind_cache".
4939         (frame_register_unwind): Call this frame's prev_register with the
4940         next frame and this frame's prologue cache.
4941         (get_prev_frame): Simplify.  Always call prev frame's this_id with
4942         this frame and prev frame's prologue cache.  Document that this
4943         call is shifted one to the left when compared to the
4944         frame_register_unwind call.
4945         (legacy_saved_regs_prev_register): Replace
4946         frame_saved_regs_register_unwind.
4947         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
4948         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
4949         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
4950         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
4951         (d10v_frame_unwind): Update.
4952         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
4953         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
4954         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
4955         "saved_regs" with "this_saved_regs".
4956
4957 2003-03-16  Andrew Cagney  <cagney@redhat.com>
4958
4959         * frame.c (frame_pop): Don't call target_store_registers.  Fix
4960         problem reported by Mark Kettenis.
4961
4962 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
4963
4964         * i386-tdep.c (i386_register_type): Renamed from
4965         i386_register_virtual_type.  Adjust function signature.
4966         (i386_gdbarch_init): Set register_type instead of
4967         deprecated_max_register_raw_size,
4968         deprecated_max_register_virtual_size and register_virtual_type.
4969
4970 2003-03-14  Andrew Cagney  <cagney@redhat.com>
4971
4972         * frame.c (get_prev_frame): When a legacy frame, always call
4973         legacy_get_prev_frame.  Simplify unwind code using assumption that
4974         the unwinder is new.
4975         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
4976         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
4977         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
4978
4979 2003-03-14  Andrew Cagney  <cagney@redhat.com>
4980
4981         * frame.c (get_saved_register): Delete function.
4982         * frame.h (get_saved_register): Delete declaration.
4983         * xstormy16-tdep.c: Update comment.
4984         * regcache.h: Update comments.
4985         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
4986         get_saved_register and extract_address, use
4987         frame_read_unsigned_register.
4988         (sparc_frame_saved_pc): Ditto.
4989         (sparc_get_saved_register): Instead of get_saved_register, use
4990         frame_register.
4991         (sparc_pop_frame): Ditto.
4992         * findvar.c: Update comments.
4993         (value_of_register): Call frame_register instead of
4994         get_saved_register.
4995         (value_from_register): Ditto.
4996         * config/sparc/tm-sparc.h: Update comment.
4997         * breakpoint.c: Update comment.
4998
4999 2003-03-14  Andrew Cagney  <cagney@redhat.com>
5000
5001         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
5002         GET_SAVED_REGISTER.
5003         * gdbarch.h, gdbarch.c: Re-generate.
5004         * frame.h: Update comments.
5005         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5006         * x86-64-tdep.c (x86_64_init_abi): Update.
5007         * sparc-tdep.c (sparc_gdbarch_init): Update.
5008         * sh-tdep.c (sh_gdbarch_init): Update.
5009         * mips-tdep.c (mips_gdbarch_init): Update.
5010         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5011         * cris-tdep.c (cris_gdbarch_init): Update.
5012         * ia64-tdep.c (ia64_gdbarch_init): Update.
5013         * frame.c (frame_register): Update.
5014         (get_saved_register): Update.
5015         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
5016         
5017 2003-03-13  Andrew Cagney  <cagney@redhat.com>
5018
5019         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
5020         * gdbarch.h, gdbarch.c: Regenerate.
5021         * valops.c (hand_function_call): Update comment.
5022         * stack.c (return_command): Update comment.
5023         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
5024         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
5025         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5026         * x86-64-tdep.c (x86_64_init_abi): Update.
5027         * vax-tdep.c (vax_gdbarch_init): Update.
5028         * v850-tdep.c (v850_gdbarch_init): Update.
5029         * sparc-tdep.c (sparc_gdbarch_init): Update.
5030         * sh-tdep.c (sh_gdbarch_init): Update.
5031         * s390-tdep.c (s390_gdbarch_init): Update.
5032         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5033         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5034         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5035         * mips-tdep.c (mips_gdbarch_init): Update.
5036         * mcore-tdep.c (mcore_gdbarch_init): Update.
5037         * m68k-tdep.c (m68k_gdbarch_init): Update.
5038         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5039         * ia64-tdep.c (ia64_gdbarch_init): Update.
5040         * i386-tdep.c (i386_gdbarch_init): Update.
5041         * hppa-tdep.c (hppa_gdbarch_init): Update.
5042         * h8300-tdep.c (h8300_gdbarch_init): Update.
5043         * frv-tdep.c (frv_gdbarch_init): Update.
5044         * cris-tdep.c (cris_gdbarch_init): Update.
5045         * avr-tdep.c (avr_gdbarch_init): Update.
5046         * arm-tdep.c (arm_gdbarch_init): Update.
5047         * alpha-tdep.c (alpha_gdbarch_init): Update.
5048
5049 2003-03-13  Andrew Cagney  <cagney@redhat.com>
5050
5051         * frame.c (legacy_frame_p): New function.
5052         (get_prev_frame): Use legacy_frame_p.
5053         * frame.h (legacy_frame_p): Declare.
5054
5055 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
5056
5057         * MAINTAINERS (write after approval): Alphabetically
5058         listing corrected.
5059
5060 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
5061
5062         * MAINTAINERS (write after approval): Add myself.
5063
5064 2003-03-12  Andrew Cagney  <cagney@redhat.com>
5065
5066         * frame.c (get_prev_frame): Rename the frame parameter to
5067         "this_frame".
5068         (get_next_frame, legacy_get_prev_frame): Ditto.
5069
5070 2003-03-12  Andrew Cagney  <cagney@redhat.com>
5071
5072         * frame.c (get_current_frame): Check target_has_registers before
5073         checking target_has_stack.
5074         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
5075         instead of deprecated_selected_frame.
5076         * findvar.c (value_of_register): Pass "frame", not
5077         deprecated_selected_frame, to value_of_builtin_reg.
5078
5079 2003-03-12  Andrew Cagney  <cagney@redhat.com>
5080
5081         * regcache.c (regcache_cooked_write_signed): New function.
5082         (regcache_cooked_write_unsigned): New function.
5083         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
5084         (regcache_cooked_read_signed): Fix regnum in range assertion.
5085         * regcache.h (regcache_cooked_write_signed): Declare.
5086         (regcache_cooked_write_unsigned): Declare.
5087
5088 2003-03-12  Andrew Cagney  <cagney@redhat.com>
5089
5090         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
5091         * gdbarch.h, gdbarch.c: Re-generate.
5092         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5093         * x86-64-tdep.h: Update.
5094         * x86-64-tdep.c (x86_64_init_abi): Update.
5095         * v850-tdep.c (v850_gdbarch_init): Update.
5096         * sparc-tdep.c (sparc_gdbarch_init): Update.
5097         * sh-tdep.c (sh_gdbarch_init): Update.
5098         * s390-tdep.c (s390_gdbarch_init): Update.
5099         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5100         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5101         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5102         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5103         * mips-tdep.c (mips_gdbarch_init): Update.
5104         * mcore-tdep.c (mcore_gdbarch_init): Update.
5105         * m68k-tdep.c (m68k_gdbarch_init): Update.
5106         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5107         * ia64-tdep.c (ia64_gdbarch_init): Update.
5108         * i386-tdep.c (i386_gdbarch_init): Update.
5109         * i386-interix-tdep.c (i386_interix_init_abi): Update.
5110         * hppa-tdep.c (hppa_gdbarch_init): Update.
5111         * h8300-tdep.c (h8300_gdbarch_init): Update.
5112         * frv-tdep.c (frv_gdbarch_init): Update.
5113         * cris-tdep.c (cris_gdbarch_init): Update.
5114         * avr-tdep.c (avr_gdbarch_init): Update.
5115         * arm-tdep.c (arm_gdbarch_init): Update.
5116         * alpha-tdep.c (alpha_gdbarch_init): Update.
5117         * sh-tdep.c (sh_init_extra_frame_info): Update.
5118         (sh64_init_extra_frame_info): Update.
5119         * ns32knbsd-nat.c (frame_num_args): Update.
5120         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
5121         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
5122         (xstormy16_frame_chain_valid): Update.
5123         * vax-tdep.c (vax_saved_pc_after_call): Update.
5124         * v850-tdep.c (v850_frame_chain): Update.
5125         (v850_pop_frame): Update.
5126         (v850_init_extra_frame_info): Update.
5127         * sparc-tdep.c (setup_arbitrary_frame): Update.
5128         * ns32k-tdep.c (umax_frame_num_args): Update.
5129         * s390-tdep.c (s390_pop_frame_regular): Update.
5130         * mn10300-tdep.c (mn10300_frame_chain): Update.
5131         (mn10300_pop_frame_regular): Update.
5132         (mn10300_init_extra_frame_info): Update.
5133         * mips-tdep.c (mips_init_frame_pc_first): Update.
5134         (mips_frame_chain): Update.
5135         (mips_pop_frame): Update.
5136         * mcore-tdep.c (mcore_frame_chain): Update.
5137         (mcore_pop_frame): Update.
5138         (mcore_init_extra_frame_info): Update.
5139         * arch-utils.c (init_frame_pc_default): Update.
5140         * m68k-tdep.c (isi_frame_num_args): Update.
5141         (delta68_frame_num_args): Update.
5142         (news_frame_num_args): Update.
5143         * ia64-tdep.c (ia64_pop_frame_regular): Update.
5144         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5145         (alpha_frame_chain): Update.
5146         (alpha_pop_frame): Update.
5147         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
5148         (hppa_init_extra_frame_info): Update.
5149         (hppa_frame_chain): Update.
5150         (hppa_frame_chain_valid): Update.
5151         * cris-tdep.c (cris_init_extra_frame_info): Update.
5152         * avr-tdep.c (avr_init_extra_frame_info): Update.
5153         * arm-tdep.c (arm_frame_chain_valid): Update.
5154         (arm_init_extra_frame_info): Update.
5155         (arm_pop_frame): Update.
5156         * frame.c (frame_pc_unwind): Update.
5157         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
5158         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5159         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5160         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
5161         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
5162         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
5163         
5164 2003-03-12  Andrew Cagney  <cagney@redhat.com>
5165
5166         Eliminate the need for POP_FRAME.
5167         * frame.c (do_frame_unwind_register): New function.
5168         (frame_pop): When no POP_FRAME, pop the frame using register
5169         unwind and a scratch regcache.
5170         (frame_saved_regs_pop): Delete function.
5171         (trad_frame_unwinder): Update.
5172         * d10v-tdep.c (d10v_frame_pop): Delete function.
5173         (d10v_frame_unwind): Update.
5174         * sentinel-frame.c (sentinel_frame_pop): Delete function.
5175         (sentinel_frame_unwinder): Update.
5176         * dummy-frame.c (dummy_frame_pop): Delete function.
5177         (dummy_frame_unwind): Update.
5178         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
5179         (struct frame_unwind): Update.
5180
5181 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
5182
5183         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
5184         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
5185         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
5186         Do range checks on register number obtained from debugging info.
5187         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
5188         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
5189         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
5190         mapping function.
5191         (do_fp_register_row): Fix typo which caused double type to be
5192         used when attempting to unpack a float.
5193
5194 2003-03-11  J. Brobecker  <brobecker@gnat.com>
5195
5196         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
5197
5198 2003-03-11  Andrew Cagney  <cagney@redhat.com>
5199
5200         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
5201         frame.  Problem found by Corinna Vinschen.
5202
5203 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
5204
5205         * doublest.c (floatformat_from_length): Accept also
5206         the real size of 'long double' type.
5207
5208 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
5209
5210         From Klee Dienes <kdienes@apple.com>:
5211         * breakpoint.c (bpstat_copy): Copy the command lines as well
5212         as the old value, to match what is freed in bpstat_clear.
5213
5214 2003-03-10  David Carlton  <carlton@math.stanford.edu>
5215
5216         * minsyms.c (add_minsym_to_hash_table): Replace
5217         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5218         (compare_minimal_symbols, compact_minimal_symbols)
5219         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
5220         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
5221         of DEPRECATED_SYMBOL_MATCHES_NAME.
5222         (lookup_minimal_symbol_solib_trampoline): Ditto.
5223
5224 2003-03-10  Andrew Cagney  <cagney@redhat.com>
5225
5226         * regcache.h (regcache_cooked_read_ftype): Define.
5227         (regcache_save, regcache_restore): Add a cooked_read parameter.
5228         * regcache.c (regcache_save, regcache_restore): Update.
5229         (do_cooked_read): New function.
5230         (regcache_cpy): Pass do_cooked_read to regcache_save and
5231         regcache_restore.
5232
5233 2003-03-10  Andrew Cagney  <cagney@redhat.com>
5234
5235         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
5236         * gdbarch.h, gdbarch.c: Re-generate.
5237         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5238         * x86-64-tdep.h: Update.
5239         * x86-64-tdep.c (x86_64_init_abi): Update.
5240         * v850-tdep.c (v850_gdbarch_init): Update.
5241         * sparc-tdep.c (sparc_gdbarch_init): Update.
5242         * sh-tdep.c (sh_gdbarch_init): Update.
5243         * s390-tdep.c (s390_gdbarch_init): Update.
5244         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5245         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5246         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5247         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5248         * mips-tdep.c (mips_gdbarch_init): Update.
5249         * mcore-tdep.c (mcore_gdbarch_init): Update.
5250         * m68k-tdep.c (m68k_gdbarch_init): Update.
5251         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5252         * ia64-tdep.c (ia64_gdbarch_init): Update.
5253         * i386-tdep.c (i386_gdbarch_init): Update.
5254         * i386-interix-tdep.c (i386_interix_init_abi): Update.
5255         * hppa-tdep.c (hppa_gdbarch_init): Update.
5256         * h8300-tdep.c (h8300_gdbarch_init): Update.
5257         * frv-tdep.c (frv_gdbarch_init): Update.
5258         * cris-tdep.c (cris_gdbarch_init): Update.
5259         * avr-tdep.c (avr_gdbarch_init): Update.
5260         * arm-tdep.c (arm_gdbarch_init): Update.
5261         * alpha-tdep.c (alpha_gdbarch_init): Update.
5262         * sh-tdep.c (sh_init_extra_frame_info): Update.
5263         (sh64_init_extra_frame_info): Update.
5264         * ns32knbsd-nat.c (frame_num_args): Update.
5265         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
5266         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
5267         (xstormy16_frame_chain_valid): Update.
5268         * vax-tdep.c (vax_saved_pc_after_call): Update.
5269         * v850-tdep.c (v850_frame_chain): Update.
5270         (v850_pop_frame): Update.
5271         (v850_init_extra_frame_info): Update.
5272         * sparc-tdep.c (setup_arbitrary_frame): Update.
5273         * ns32k-tdep.c (umax_frame_num_args): Update.
5274         * s390-tdep.c (s390_pop_frame_regular): Update.
5275         * mn10300-tdep.c (mn10300_frame_chain): Update.
5276         (mn10300_pop_frame_regular): Update.
5277         (mn10300_init_extra_frame_info): Update.
5278         * mips-tdep.c (mips_init_frame_pc_first): Update.
5279         (mips_frame_chain): Update.
5280         (mips_pop_frame): Update.
5281         * mcore-tdep.c (mcore_frame_chain): Update.
5282         (mcore_pop_frame): Update.
5283         (mcore_init_extra_frame_info): Update.
5284         * arch-utils.c (init_frame_pc_default): Update.
5285         * m68k-tdep.c (isi_frame_num_args): Update.
5286         (delta68_frame_num_args): Update.
5287         (news_frame_num_args): Update.
5288         * ia64-tdep.c (ia64_pop_frame_regular): Update.
5289         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5290         (alpha_frame_chain): Update.
5291         (alpha_pop_frame): Update.
5292         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
5293         (hppa_init_extra_frame_info): Update.
5294         (hppa_frame_chain): Update.
5295         (hppa_frame_chain_valid): Update.
5296         * cris-tdep.c (cris_init_extra_frame_info): Update.
5297         * avr-tdep.c (avr_init_extra_frame_info): Update.
5298         * arm-tdep.c (arm_frame_chain_valid): Update.
5299         (arm_init_extra_frame_info): Update.
5300         (arm_pop_frame): Update.
5301         * frame.c (frame_pc_unwind): Update.
5302         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
5303         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5304         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5305         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
5306         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
5307         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
5308         
5309 2003-03-10  Andrew Cagney  <cagney@redhat.com>
5310
5311         * gdbarch.sh (gdbarch_unwind_pc): New method.
5312         * gdbarch.h, gdbarch.c: Regenerate.
5313         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
5314         but use read_pc and FRAME_SAVED_PC as fall backs.
5315         (frame_saved_regs_pc_unwind): Delete function.
5316         (trad_frame_unwinder): Update.
5317         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
5318         (struct frame_unwind): Update.
5319         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
5320         (dummy_frame_unwind): Update.
5321         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
5322         (sentinel_frame_unwinder): Update.
5323         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
5324         (d10v_frame_unwind): Update.
5325         (d10v_unwind_pc): New function.
5326         (d10v_gdbarch_init): Set unwind_pc.
5327
5328 2003-03-10  Andrew Cagney  <cagney@redhat.com>
5329
5330         * gdbarch.h: Re-generate.
5331
5332         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
5333         PC.
5334         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
5335         the PC register.
5336
5337 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
5338
5339         * gdbarch.sh (save_dummy_frame_tos): Add comment.
5340
5341 2003-03-08  Andrew Cagney  <cagney@redhat.com>
5342
5343         * cli-out.c: Update copyright.
5344         (cli_out_data): Define typedef.  Use instead of ui_out_data.
5345
5346 2003-03-08  Andrew Cagney  <cagney@redhat.com>
5347
5348         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
5349         the result.
5350
5351 2003-03-07  Andrew Cagney  <cagney@redhat.com>
5352
5353         * gdbarch.sh: Don't generate two macro definitions when an
5354         undefined macro taking no arguments.
5355         * gdbarch.h: Regenerate.
5356         
5357 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
5358
5359         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
5360         (x86_64_unwind_dummy_id): New functions.
5361         (x86_64_init_abi): Register these two new functions.
5362
5363 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
5364
5365         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
5366         (x86_64_skip_prologue): Move prologue detection to 
5367         separate function.
5368         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
5369
5370 2003-03-05  Andrew Cagney  <cagney@redhat.com>
5371
5372         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
5373         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
5374         * frame.c (get_prev_frame): Restructure the frame ID unwind code
5375         to use unwind_dummy_id when a dummy frame.
5376         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
5377         predicate.
5378         * gdbarch.h, gdbarch.c: Regneerate.
5379         
5380 2003-03-05  Andrew Cagney  <cagney@redhat.com>
5381
5382         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
5383         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
5384         Do not use d10v_read_sp or d10v_read_fp when obtaining register
5385         values.
5386
5387 2003-03-05  Andrew Cagney  <cagney@redhat.com>
5388
5389         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
5390         (struct d10v_unwind_cache): Delete field "frameless".  Replace
5391         "next_addr" with "sp_offset".  Add "r11_offset".
5392         (d10v_frame_unwind_cache): Update.
5393         (prologue_find_regs): Update.  When "mv r11, sp", save the
5394         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
5395         RN was saved in r11_offset.
5396
5397 2003-03-05  Andrew Cagney  <cagney@redhat.com>
5398
5399         * frame.c (deprecated_update_frame_pc_hack): Also update the the
5400         cached PC value in the next frame.
5401
5402 2003-03-05  Andrew Cagney  <cagney@redhat.com>
5403
5404         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
5405         "id_unwind_cache" with "id".
5406         (frame_id_unwind): Delete declaration.
5407         * frame.c (frame_id_unwind): Delete function.
5408         (get_prev_frame): Call the frame id unwind method directly.  Store
5409         the returned next frame's ID value in NEXT_FRAME.  Note that there
5410         is a problem with the wrong unwind ID being called with the wrong
5411         unwind cache.
5412
5413 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
5414
5415         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
5416
5417 2003-03-05  James Ingham <jingham@apple.com>
5418             Daniel Jacobowitz  <drow@mvista.com>
5419
5420         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
5421         (auto_cp_abi): New variable.
5422         (current_cp_abi, num_cp_abis): Make static.
5423         (CP_ABI_MAX): Define.
5424         (cp_abis): Turn into an array.
5425         (value_virtual_fn_field): Fix formatting.
5426         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
5427         takes a pointer.
5428         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
5429         (list_cp_abis, _initialize_cp_abi): New functions.
5430         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
5431         declarations for cp_abis, num_cp_abis, current_cp_abi, and
5432         switch_to_cp_abi.  Update prototype for register_cp_abi.
5433         * Makefile.in (cp-abi.o): Update dependencies.
5434         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
5435         instead of switch_to_cp_abi.
5436         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
5437         register_cp_abi.
5438         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
5439         register_cp_abi.
5440         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
5441
5442 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
5443
5444         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
5445         * dwarf2loc.c: Include "regcache.h".
5446         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
5447         register_size.
5448         * Makefile.in (dwarf2loc.o): Update dependencies.
5449
5450 2003-03-04  Theodore A. Roth  <troth@openavr.org>
5451
5452         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
5453         number of io registers reported by remote target is not a multiple of
5454         step.
5455
5456 2003-03-04  David Carlton  <carlton@math.stanford.edu>
5457
5458         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
5459         (lookup_symbol_aux_psymtabs): Update call to
5460         lookup_partial_symbol.
5461         (lookup_transparent_type, find_main_psymtab)
5462         (make_symbol_overload_list): Ditto.
5463
5464 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
5465
5466         * MAINTAINERS (Write after approval): Update my email address.
5467
5468 2003-03-03  Andrew Cagney  <cagney@redhat.com>
5469
5470         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
5471         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
5472         predicate.  Replace MAX_REGISTER_RAW_SIZE.
5473         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
5474         MAX_REGISTER_VIRTUAL_SIZE.
5475         * regcache.c (legacy_max_register_raw_size): New function.
5476         (legacy_max_register_virtual_size): New function.
5477         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
5478         (MAX_REGISTER_RAW_SIZE): Define.
5479         (legacy_max_register_raw_size): Declare.
5480         (legacy_max_register_virtual_size): Declare.
5481         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5482         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
5483         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5484         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
5485         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5486         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
5487         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
5488         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
5489         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
5490         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5491         * vax-tdep.c (vax_gdbarch_init): Update.
5492         * v850-tdep.c (v850_gdbarch_init): Update.
5493         * sparc-tdep.c (sparc_gdbarch_init): Update.
5494         * sh-tdep.c (sh_gdbarch_init): Update.
5495         * s390-tdep.c (s390_gdbarch_init): Update.
5496         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5497         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5498         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5499         * mips-tdep.c (mips_gdbarch_init): Update.
5500         * mcore-tdep.c (mcore_gdbarch_init): Update.
5501         * m68k-tdep.c (m68k_gdbarch_init): Update.
5502         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5503         * ia64-tdep.c (ia64_gdbarch_init): Update.
5504         * i386-tdep.c (i386_gdbarch_init): Update.
5505         * hppa-tdep.c (hppa_gdbarch_init): Update.
5506         * h8300-tdep.c (h8300_gdbarch_init): Update.
5507         * frv-tdep.c (frv_gdbarch_init): Update.
5508         * cris-tdep.c (cris_gdbarch_init): Update.
5509         * avr-tdep.c (avr_gdbarch_init): Update.
5510         * arm-tdep.c (arm_gdbarch_init): Update.
5511         * alpha-tdep.c (alpha_gdbarch_init): Update.
5512         * d10v-tdep.c (d10v_gdbarch_init): Do not set
5513         max_register_raw_size or max_register_virtual_size.
5514
5515 2003-03-03  David Carlton  <carlton@math.stanford.edu>
5516
5517         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
5518         SYMBOL_MATCHES_NAME, add comment.
5519         (SYMBOL_MATCHES_NATURAL_NAME): New.
5520         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
5521         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
5522         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
5523         * symtab.c (lookup_partial_symbol): Use
5524         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
5525         unhelpful comment.
5526         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
5527         SYMBOL_MATCHES_NAME.
5528         Fix for PR c++/33.
5529
5530 2003-03-03  David Carlton  <carlton@math.stanford.edu>
5531
5532         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
5533         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
5534         by regexp matching against SYMBOL_NATURAL_NAME.
5535
5536 2003-03-03  David Carlton  <carlton@math.stanford.edu>
5537
5538         * linespec.c (find_method): Extract code into collect_methods.
5539         (collect_methods): New.
5540
5541 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
5542
5543         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
5544         get_frame_base.
5545
5546         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
5547         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5548
5549 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
5550
5551         * arch-utils.c (generic_register_byte): Fix to use the loop index 
5552         and not regnum when summing the size of all registers up to regnum.
5553
5554 2003-03-01  Andrew Cagney  <cagney@redhat.com>
5555
5556         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
5557         FRAME_INIT_SAVED_REGS.
5558         * gdbarch.h, gdbarch.c: Regenerate.
5559         * stack.c (frame_info): Update.
5560         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
5561         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
5562         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
5563         * ns32k-tdep.c (ns32k_pop_frame): Update.
5564         * mips-tdep.c (mips_pop_frame): Update.
5565         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
5566         * ia64-tdep.c (ia64_frame_chain): Update.
5567         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
5568         (ia64_frameless_function_invocation): Update.
5569         (ia64_init_extra_frame_info): Update.
5570         (ia64_pop_frame_regular): Update.
5571         * frame.h (struct frame_info): Update comment.
5572         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
5573         * frame.c (frame_saved_regs_register_unwind): Update.
5574         (frame_saved_regs_register_unwind): Update.
5575         (deprecated_generic_get_saved_register): Update.
5576         * cris-tdep.c: Update comment.
5577         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
5578         Rename macro.
5579         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5580         * x86-64-tdep.c (x86_64_init_abi): Update.
5581         * vax-tdep.c (vax_gdbarch_init): Update.
5582         * v850-tdep.c (v850_gdbarch_init): Update.
5583         * sparc-tdep.c (sparc_gdbarch_init): Update.
5584         * sh-tdep.c (sh_gdbarch_init): Update.
5585         * s390-tdep.c (s390_gdbarch_init): Update.
5586         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5587         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5588         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5589         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5590         * mips-tdep.c (mips_gdbarch_init): Update.
5591         * mcore-tdep.c (mcore_gdbarch_init): Update.
5592         * m68k-tdep.c (m68k_gdbarch_init): Update.
5593         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5594         * ia64-tdep.c (ia64_gdbarch_init): Update.
5595         * i386-tdep.c (i386_gdbarch_init): Update.
5596         * frv-tdep.c (frv_gdbarch_init): Update.
5597         * avr-tdep.c (avr_gdbarch_init): Update.
5598         * arm-tdep.c (arm_gdbarch_init): Update.
5599         * alpha-tdep.c (alpha_gdbarch_init): Update.
5600         
5601 2003-03-01  Andrew Cagney  <cagney@redhat.com>
5602
5603         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
5604         option enum and switch.  When no windows, set the interpreter to
5605         INTERP_CONSOLE.
5606         
5607 2003-03-01  Andrew Cagney  <cagney@redhat.com>
5608
5609         * main.c (captured_main): Replace magic option characters with an
5610         enum.
5611
5612 2003-03-01  Andrew Cagney  <cagney@redhat.com>
5613
5614         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
5615         INIT_EXTRA_FRAME_INFO.
5616         * gdbarch.h, gdbarch.c: Regenerate.
5617         * arm-tdep.c: Update comments.
5618         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
5619         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
5620         * frame.h, avr-tdep.c: Ditto.
5621         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
5622         (create_new_frame, legacy_get_prev_frame): Ditto.
5623         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
5624         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
5625         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
5626         deprecated_init_extra_frame_info instead of init_extra_frame_info.
5627         * x86-64-tdep.c (x86_64_init_abi): Ditto.
5628         * v850-tdep.c (v850_gdbarch_init): Ditto.
5629         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5630         * sh-tdep.c (sh_gdbarch_init): Ditto.
5631         * s390-tdep.c (s390_gdbarch_init): Ditto.
5632         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
5633         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5634         * mips-tdep.c (mips_gdbarch_init): Ditto.
5635         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5636         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5637         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5638         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
5639         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5640         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5641         * frv-tdep.c (frv_gdbarch_init): Ditto.
5642         * cris-tdep.c (cris_gdbarch_init): Ditto.
5643         * avr-tdep.c (avr_gdbarch_init): Ditto.
5644         * arm-tdep.c (arm_gdbarch_init): Ditto.
5645         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5646         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5647
5648 2003-03-01  Andrew Cagney  <cagney@redhat.com>
5649
5650         * gdbarch.sh (register_type): New function with predicate.
5651         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
5652         * gdbarch.h, gdbarch.c: Re-generate.
5653         * arch-utils.c (generic_register_byte): Use generic_register_size.
5654         (generic_register_size): When available, use
5655         gdbarch_register_type.
5656         * regcache.c (init_regcache_descr): When available, initialize the
5657         register type array using gdbarch_register_type.  If the
5658         architecture supplies gdbarch_register_type, do not use the legacy
5659         regcache layout.
5660         * d10v-tdep.c (d10v_register_type): Replace
5661         d10v_register_virtual_type.
5662         (d10v_gdbarch_init): Set register_type instead of
5663         register_virtual_type.
5664
5665 2003-03-01  Andrew Cagney  <cagney@redhat.com>
5666
5667         * Makefile.in (ax-gdb.o): Update dependencies.
5668         * ax-gdb.c: Include "regcache.h".
5669         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
5670         * findvar.c (value_of_register): Ditto.
5671         * infcmd.c (default_print_registers_info): Ditto.
5672
5673 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
5674
5675         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
5676         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5677
5678 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
5679
5680         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
5681         of STREQ.
5682
5683 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
5684
5685         * Makefile.in (dwarf2loc.o): Update dependencies.
5686         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
5687         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
5688         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
5689         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
5690         (locexpr_tracepoint_var_ref): New function.
5691         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
5692
5693 2003-02-28  Andrew Cagney  <cagney@redhat.com>
5694
5695         * regcache.c (register_size): New function.
5696         * regcache.h (register_size): Declare
5697         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
5698         max_register_size instead of MAX_REGISTER_RAW_SIZE.
5699
5700 2003-02-28  David Carlton  <carlton@math.stanford.edu>
5701
5702         * linespec.c (decode_compound): Extract code into find_method.
5703         (find_method): New.
5704
5705 2003-02-28  J. Brobecker  <brobecker@gnat.com>
5706
5707         * Makefile.in: Add rules to build and link in observer.o.
5708
5709 2003-02-27  J. Brobecker  <brobecker@gnat.com>
5710
5711         * observer.c: Minor comments edits.
5712
5713 2003-02-27  J. Brobecker  <brobecker@gnat.com>
5714
5715         * observer.h, observer.c: New file.
5716
5717 2003-02-27  Andrew Cagney  <cagney@redhat.com>
5718
5719         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
5720
5721 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
5722
5723         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
5724         (M6812_OP_STS_EXT): Likewise.
5725         (m6811_prologue): Use the above to recognize prologue.
5726         (m6812_prologue): Likewise.
5727
5728 2003-02-27  David Carlton  <carlton@math.stanford.edu>
5729
5730         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
5731         SYMBOL_PRINT_NAME.
5732         (compare_psymbols): Ditto.
5733         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
5734
5735 2003-02-27  Michael Snyder  <msnyder@redhat.com>
5736
5737         * f-lang.c (build_fortran_types): New function.
5738         (_initialize_f_language): Gdbarch-register built-in fortran types.
5739         * doublest.c (extract_floating): Fix warning text.
5740
5741 2003-02-27  Andrew Cagney  <cagney@redhat.com>
5742
5743         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
5744         predicate.  Replaces PUSH_DUMMY_FRAME.
5745         * gdbarch.h, gdbarch.c: Regnerate.
5746         * valops.c (hand_function_call): Update.  Call
5747         generic_push_dummy_frame directly.
5748         * vax-tdep.c (vax_gdbarch_init): Update.
5749         * sparc-tdep.c (sparc_gdbarch_init): Update.
5750         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5751         * m68k-tdep.c (m68k_gdbarch_init): Update.
5752         * hppa-tdep.c (hppa_gdbarch_init): Update.
5753         * alpha-tdep.c (alpha_gdbarch_init): Update.
5754         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
5755         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
5756         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
5757         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
5758         push_dummy_frame to generic_push_dummy_frame.
5759         * v850-tdep.c (v850_gdbarch_init): Ditto.
5760         * sh-tdep.c (sh_gdbarch_init): Ditto.
5761         * s390-tdep.c (s390_gdbarch_init): Ditto.
5762         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5763         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5764         * mips-tdep.c (mips_gdbarch_init): Ditto.
5765         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5766         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5767         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5768         * i386-tdep.c (i386_gdbarch_init): Ditto.
5769         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5770         * frv-tdep.c (frv_gdbarch_init): Ditto.
5771         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5772         * cris-tdep.c (cris_gdbarch_init): Ditto.
5773         * avr-tdep.c (avr_gdbarch_init): Ditto.
5774         * arm-tdep.c (arm_gdbarch_init): Ditto.
5775         
5776 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
5777
5778         * mips-tdep.c (show_mips_abi): New function.
5779         (_initialize_mips_tdep): Use show_mips_abi() to implement the
5780         command ``show mips abi''.
5781
5782 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
5783  
5784         From Elena Zannoni  <ezannoni@redhat.com>
5785         * dbxread.c (process_one_symbol): Only record line 0 if one or 
5786         more sline entries have been seen for the function.
5787
5788 2003-02-26  Michael Chastain  <mec@shout.net>
5789
5790         * configure: Regenerate with autoconf 000227.
5791
5792 2003-02-26  Michael Chastain  <mec@shout.net>
5793
5794         Close PR build/660.
5795         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
5796         for old libc5/glibc.
5797         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
5798
5799 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
5800
5801         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
5802         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
5803
5804 2003-02-26  Michael Chastain  <mec@shout.net>
5805
5806         * configure.in: New variable HAVE_UINTPTR_T.
5807         * configure, config.in: Regenerated.
5808
5809 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
5810
5811         Fix PR build/1097.
5812         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
5813
5814 2003-02-25  Andrew Cagney  <cagney@redhat.com>
5815
5816         * frame.c (get_prev_frame): Add comment on check for
5817         inside_entry_func. Only check for inside_entry_file when not a
5818         dummy and not a sentinel.  Check that the new frame is not inner
5819         to the old frame.
5820
5821 2003-02-25  Andrew Cagney  <cagney@redhat.com>
5822
5823         * frame.c (frame_debug): New variable.
5824         (_initialize_frame): Add "set/show debug frame" command.
5825         (get_prev_frame): When frame_debug, print reason why unwind
5826         failed.
5827
5828 2003-02-25  Michael Chastain  <mec@shout.net>
5829
5830         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
5831         to avoid uintptr_t definition problems.
5832
5833 2003-02-25  David Carlton  <carlton@math.stanford.edu>
5834
5835         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
5836         (SYMBOL_LINKAGE_NAME): Ditto.
5837         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
5838         SYMBOL_LINKAGE_NAME.
5839         (struct general_symbol_info): Expand comment.
5840         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
5841         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
5842         (SYMBOL_MATCHES_REGEXP): Ditto.
5843         * symtab.c (symbol_natural_name): New function.
5844         * objfiles.h: Replace all uses of SYMBOL_NAME by
5845         DEPRECATED_SYMBOL_NAME.
5846         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
5847         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
5848         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
5849         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
5850         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
5851         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
5852         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
5853         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
5854         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
5855         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
5856         * ada-exp.y: Ditto.
5857         * ada-exp.y: Update copyright.
5858         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
5859         * cp-valprint.c: Ditto.
5860
5861 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
5862
5863         * infptrace.c (detach): Do not flag error if ptrace detach fails
5864         and errno is set to ESRCH.
5865
5866 2003-02-24  Andrew Cagney  <cagney@redhat.com>
5867
5868         * infptrace.c (udot_info): Change type of udot_off to long.  Use
5869         paddr when printing udot_off's value.
5870
5871 2003-02-24  David Carlton  <carlton@math.stanford.edu>
5872
5873         * symtab.c (make_symbol_overload_list): Only read in partial
5874         symtabs containing a matching partial symbol.
5875
5876 2003-02-24  David Carlton  <carlton@math.stanford.edu>
5877
5878         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
5879         do the comparison, not strcmp.
5880         * symfile.c (compare_psymbols): Ditto.
5881         * defs.h: Declare strcmp_iw_ordered.
5882         * utils.c (strcmp_iw_ordered): New function.
5883
5884 2003-02-24  Jim Blandy  <jimb@redhat.com>
5885
5886         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
5887         support, shared libs): Remove my name from here, to better reflect
5888         reality.
5889
5890 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
5891
5892         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
5893         (target_ops): Add to_have_continuable_watchpoint.
5894         * target.c (update_current_target): Add INHERIT line for
5895         to_have_continuable_watchpoint.
5896         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
5897         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
5898         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
5899         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
5900
5901 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
5902
5903         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
5904         maintainership.
5905
5906 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
5907
5908         * solib.c (solib_open): Call target defined search function after
5909         failing with solib-search-path.
5910         * solist.h (target_so_ops): Add find_and_open_solib function hook and
5911         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
5912
5913 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
5914
5915         * MAINTAINERS: Add myself to Write After section.
5916
5917 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
5918
5919         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
5920
5921 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
5922
5923         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
5924         (m68hc11_add_reggroups): New function.
5925         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
5926         (m68hc11_gdbarch_init): Install the reggroups.
5927         (_initialize_m68hc11_tdep): Initialize them.
5928
5929 2003-02-21  James E Wilson  <wilson@tuliptree.org>
5930
5931         * MAINTAINERS: Update my email address.
5932
5933 2003-02-21  David Carlton  <carlton@math.stanford.edu>
5934
5935         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
5936
5937 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
5938
5939         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
5940         * symtab.h: Add opaque declarations of struct axs_value and
5941         struct agent_expr.
5942         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
5943         (struct location_funcs): New type.
5944         (struct symbol): Add "loc" to aux_value.
5945         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
5946         * dwarf2read.c: Include "dwarf2expr.h".
5947         (dwarf2_symbol_mark_computed): New function.
5948         (read_func_scope): Use it.
5949         (var_decode_location): New function.
5950         (new_symbol): Use it.
5951         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
5952
5953         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
5954         (dwarf2expr_h, dwarf2loc_h): New variables.
5955         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
5956         (dwarf2expr.o, dwarf2loc.o): New rules.
5957         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
5958         * buildsym.c (finish_block): Handle LOC_COMPUTED and
5959         LOC_COMPUTED_ARG.
5960         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5961         * m2-exp.y (yylex): Likewise.
5962         * printcmd.c (address_info, print_frame_args): Likewise.
5963         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
5964         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5965         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
5966         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
5967         * symtab.c (lookup_block_symbol): Likewise.
5968
5969 2003-02-20  Adam Fedor  <fedor@gnu.org>
5970
5971         * symtab.h: Remove objc_specific struct
5972         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
5973         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
5974         Have language_objc use cplus_specific struct.
5975
5976 2003-02-20  Tom Tromey  <tromey@redhat.com>
5977
5978         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
5979         TYPE_NAME, when printing a String value.  PR java/1075.
5980
5981 2003-02-20  Adam Fedor  <fedor@gnu.org>
5982
5983         * objc-lang.h (find_methods): Remove declaration.
5984         * objc-lang.c (find_methods): Make static.
5985
5986 2003-02-20  Christopher Faylor  <cgf@redhat.com>
5987
5988         * win32-nat.c (get_image_name): Check return value from
5989         ReadProcessMemory.
5990         (child_xfer_memory): Ditto.
5991
5992 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
5993
5994         * configure.in (TARGET_SYSTEM_ROOT): Set default to
5995         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
5996         '${exec_prefix}' (in addition to the expansion thereof) as
5997         relocatable.
5998         * configure: Rebuilt.
5999
6000 2003-02-20  David Carlton  <carlton@math.stanford.edu>
6001
6002         * symtab.c (search_symbols): Revert the search_symbols part of my
6003         2002-12-23 patch.  Add comment.
6004
6005 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
6006
6007         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
6008         * dbxread.c (elfstab_build_psymtabs): Don't call
6009         install_minimal_symbols.
6010         (stabsect_build_psymtabs): Likewise.
6011         * elfread.c (elf_symfile_read): Call install_minimal_symbols
6012         earlier.
6013         * somread.c (som_symfile_read): Call install_minimal_symbols
6014         and do_cleanups earlier.
6015         * nlmread.c (nlm_symfile_read): Likewise.
6016         * mdebugread.c (elfmdebug_build_psymtabs): Call
6017         install_minimal_symbols and make appropriate cleanups.
6018
6019 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
6020
6021         * solib.c (reload_shared_libraries): New function.
6022         (_initialize_solib): Add callbacks for ``set solib-search-path''
6023         and ``set solib-absolute-prefix''.
6024
6025 2003-02-20  David Carlton  <carlton@math.stanford.edu>
6026
6027         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
6028         expand comment.
6029         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
6030         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
6031         * ada-typeprint.c (ada_typedef_print): Ditto.
6032         * ax-gdb.c (gen_var_ref): Ditto.
6033         * breakpoint.c (print_one_breakpoint): Ditto.
6034         * buildsym.c (finish_block): Ditto.
6035         * c-valprint.c (c_val_print): Ditto.
6036         * expprint.c (print_subexp): Ditto.
6037         * findvar.c (locate_var_value): Ditto.
6038         * infcmd.c (jump_command): Ditto. 
6039         * linespec.c (decode_line_2, decode_compound): Ditto. 
6040         * maint.c (maintenance_translate_address): Ditto. 
6041         * objc-lang.c (compare_selectors, compare_classes): Ditto. 
6042         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
6043         Ditto.
6044         * p-valprint.c (pascal_val_print): Ditto. 
6045         * stabsread.c (define_symbol): Ditto. 
6046         * stack.c (print_frame, frame_info, print_block_frame_locals)
6047         (print_frame_arg_vars, return_command): Ditto. 
6048         * symfile.c (compare_symbols, compare_psymbols): Ditto. 
6049         * symmisc.c (print_symbol): Ditto. 
6050         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
6051         (compare_search_syms, print_symbol_info, print_msymbol_info)
6052         (rbreak_command): Ditto. 
6053         * tracepoint.c (tracepoints_info): Ditto. 
6054         * typeprint.c (typedef_print): Ditto. 
6055         * valops.c (value_of_variable, hand_function_call): Ditto. 
6056         * cli/cli-cmds.c (edit_command, list_command): Ditto.
6057         * ada-typeprint.c: Update Copyright.
6058         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
6059         * tracepoint.c, cli/cli-cmds.c: Ditto.
6060
6061 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
6062
6063         * frame.c (generic_unwind_get_saved_register): Make non-static.
6064         * frame.h (generic_unwind_get_saved_register): Declare.
6065         * mips-tdep.c (read_next_frame_reg): Fetch register from
6066         current regcache when frame is NULL.
6067         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
6068         that must be NULL.
6069         (mips_get_saved_register): Call generic_unwind_get_saved_register()
6070         instead of frame_register_unwind().
6071
6072 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
6073
6074         * remote-sim.c (gdbsim_insert_breakpoint)
6075         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
6076         code.
6077
6078 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
6079
6080         * remote.c (_initialize_remote): Add commands "set/show remote
6081         hardware-watchpoint-limit" and "set/show remote
6082         hardware-breakpoint-limit".
6083         (remote_hw_watchpoint_limit): Initialize to -1.
6084         (remote_hw_breakpoint_limit): Ditto.
6085         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
6086
6087 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
6088
6089         * coff-pe-read.c: New file - support reading of minimal symbols from a
6090         portable executable using the export table.
6091         * coff-pe-read.h: New file.
6092         * coffread.c: Include coff-pe-read.h.
6093         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
6094         debugging symbols found.
6095         * Makefile.in (SFILES): Add coff-pe-read.o.
6096         (coff_pe_read_h): Define.
6097         (COMMON_OBS): Add coff-pe-read.o.
6098         (coffread.o): Add coff_pe_read_h dependency.
6099         (coff-pe-read.o): New target.
6100
6101 2003-02-19  David Carlton  <carlton@math.stanford.edu>
6102
6103         * Makefile.in (SFILES): Add block.c.
6104         (block_h): New.
6105         (COMMON_OBS): Add block.o.
6106         (block.o): New.
6107         (x86-64-tdep.o): Add $(block_h).
6108         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
6109         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
6110         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
6111         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
6112         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
6113         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
6114         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
6115         * value.h: Add opaque declaration for struct block.
6116         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
6117         * ada-lang.h: Ditto.
6118         * x86-64-tdep.c: #include "block.h"
6119         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
6120         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
6121         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
6122         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
6123         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
6124         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
6125         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
6126         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
6127         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
6128         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
6129         * symtab.c (block_function): Ditto.
6130         (contained_in): Ditto.
6131         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
6132         block.h.  Add opaque declaration for struct block.
6133         * symtab.h: Move block_function and contained_in declarations to
6134         block.h.  Add opaque declarations for struct block, struct
6135         blockvector.
6136         (struct block): Move to block.h.
6137         (struct blockvector): Ditto.
6138         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
6139         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
6140         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
6141         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
6142         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
6143         Ditto.
6144         * block.c: New file.
6145         * block.h: New file.
6146
6147 2003-02-19  Theodore A. Roth  <troth@openavr.org>
6148
6149         * avr-tdep.c (avr_extract_return_value): Remove function.
6150         (avr_store_return_value): Remove function.
6151         (avr_extract_struct_value_address): Remove function.
6152         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
6153
6154 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
6155
6156         * rs6000-tdep.c: Include "gdb_assert.h".
6157         (registers_e500): Add "acc" and "spefscr".
6158         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
6159         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
6160         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
6161         really is "r0".
6162         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
6163
6164 2003-02-18  Keith Seitz  <keiths@redhat.com>
6165
6166         * Makefile.in: Add gdbtk-interps.c.
6167
6168 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
6169
6170         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
6171         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
6172
6173 2003-02-18  Andrew Cagney  <cagney@redhat.com>
6174
6175         * symtab.h (struct objfile): Add opaque declaration.
6176
6177 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
6178
6179         From Jim Ingham   <jingham@apple.com>:
6180         * dbxread.c (process_one_symbol): Use last_function_start rather
6181         than function_start_offset to find the real beginning of the
6182         current function.  The latter is just the text section offset on
6183         some systems, the former is always the real function start.
6184
6185 2003-02-17  Andrew Cagney  <cagney@redhat.com>
6186
6187         * configure.in: Revert ${target} != ${host}.
6188
6189 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
6190
6191         * configure.in (Makefile): Use the test ${target} != ${host},
6192         instead of the absence of the "nm.h" file, to determine of the
6193         configuration non-native.
6194         * configure: Regenerate.
6195         
6196 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
6197
6198         From Brian Ford  <ford@vss.fsi.com>
6199
6200         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
6201         conditionalize tui_active test.
6202         (lookup_cmd_1): Ditto.
6203
6204 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
6205
6206         * configure.in: Add check for _etext.
6207         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
6208         available.
6209         * config.in, configure: regenerated.
6210
6211 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
6212
6213         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
6214
6215 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
6216
6217         * main.c (tui_version): Delete variable.
6218         (captured_main): When --tui, set interpreter_p to "tui" instead of
6219         enabling tui_version.
6220         * printcmd.c (display_command) [TUI]: Test tui_active instead of
6221         tui_version.
6222         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
6223         * cli/cli-cmds.c (disassemble_command): Ditto.
6224         * defs.h (tui_version): Delete declaration.
6225         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
6226         (tui-interp.o): Add rules.
6227         (SUBDIR_TUI_OBS): Add "tui-interp.o".
6228
6229 2003-02-14  Christopher Faylor  <cgf@redhat.com>
6230
6231         * win32-nat.c (register_loaded_dll): Correctly set address range for
6232         just-loaded dll.
6233
6234 2003-02-12  Jason Molenda  (jmolenda@apple.com)
6235
6236         * symmisc.c (print_objfile_statistics): Include information about
6237         the number of psymtabs and symtabs in each object file.
6238
6239 2003-02-13  Keith R Seitz  <keiths@redhat.com>
6240
6241         * main.h (struct captured_main_args): Add interpreter_p.
6242         * main.c (captured_main): Initialize interpreter_p from context.
6243         * gdb.c (main): Set interpreter_p argument.
6244         * Makefile.in (gdb.o): Add dependency for interps.h.
6245
6246 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
6247
6248         * event-top.c (cli_command_loop): Delete declaration.
6249         (_initialize_event_loop): Delete function setting event_loop_hook.
6250         * event-top.h (cli_command_loop): Declare.  Update copyright.
6251         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
6252         * interps.c (current_interp_command_loop): When event_loop_p, call
6253         cli_command_loop.
6254
6255 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
6256
6257         * interps.h (interp_command_loop_ftype): Change return type to
6258         void.
6259
6260 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
6261
6262         * x86-64-tdep.c (x86_64_extract_return_value)
6263         (x86_64_store_return_value): Use regcache instead of regbuf.
6264         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
6265         * x86-64-linux-nat.c (fill_gregset): Use regcache.
6266
6267 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
6268
6269         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
6270         * aclocal.m4: Regenerate.
6271         * configure: Regenerate.
6272
6273         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
6274         TCL_LD_SEARCH_FLAGS.
6275
6276 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
6277
6278         * dwarf2cfi.c: Reindented.
6279
6280 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
6281
6282         * interps.c (clear_interpreter_hooks): Convert function definition
6283         to ISO C.
6284
6285 2003-02-07  David Carlton  <carlton@math.stanford.edu>
6286
6287         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
6288
6289 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
6290
6291         * gdbtypes.h (struct main_type): Move ``length'' field from here...
6292         (struct type): ...to here.
6293         (TYPE_LENGTH): Adjust to reflect different location of ``length''
6294         field.
6295         * gdbtypes.c (make_qualified_type): Set length on newly created type.
6296         (replace_type): Set length on all type variants for a given type.
6297
6298 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
6299
6300         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
6301         <sys/stat.h>.
6302         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
6303         
6304 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
6305
6306         * Makefile.in (symm-nat.o): Update dependencies.
6307         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
6308         (lynx-nat.o, ia64-linux-nat.): Ditto.
6309         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
6310         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
6311         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
6312
6313         * Makefile.in (inflow_h): Define.
6314         (procfs.o, inflow.o, procfs.o): Update dependencies.
6315         * inftarg.c (child_stop): Delete extern declaration of
6316         inferior_process_group.  Include "inflow.h".
6317         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
6318         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
6319         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
6320         (our_process_group, inferior_process_group): Extern declarations.
6321
6322         * procfs.c: Include "gdb_assert.h".
6323
6324         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6325         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
6326         * jv-typeprint.c (java_type_print_base): Ditto.
6327         * typeprint.c (typedef_print): Eliminate STREQ.
6328         * cli/cli-script.c (define_command, define_command): Ditto.
6329         * main.c (captured_main): Ditto.
6330         * values.c (lookup_internalvar): Ditto.
6331         * utils.c (safe_strerror, parse_escape): Eliminate assignment
6332         within `if' conditional.
6333         * linespec.c (decode_line_2): Ditto.
6334         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
6335         (bfd_openw_with_cleanup): Ditto.
6336
6337 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
6338
6339         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
6340         legacy_extract_return_value and store_return_value to
6341         legacy_return_value.
6342
6343 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
6344
6345         * win32-nat.c (get_relocated_section_addrs): New function.  Find
6346         section load addresses for symbol handling in relocated DLLs.
6347         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
6348
6349 2003-02-05  Fred Fish  <fnf@intrinsity.com>
6350
6351         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
6352         '=' and '!='.
6353         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
6354         with '&' and '=='.
6355         (angel_RDI_info): Ditto.
6356         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
6357         with '&' and '!='.
6358         (threads_continue_all_with_signals): Ditto.
6359   
6360 2003-02-05  Jim Ingham <jingham@apple.com>
6361             Keith Seitz  <keiths@redhat.com>
6362             Elena Zannoni  <ezannoni@redhat.com>
6363             Andrew Cagney  <ac131313@redhat.com>
6364
6365         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
6366         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
6367         (SUBDIR_MI_OBS): Add "mi-interp.o".
6368         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
6369         (SFILES): Add "interps.c".
6370         (COMMON_OBS): Add "interps.o".
6371         (interps_h, mi_main_h): Define.
6372         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
6373         (mi-main.o, main.o, event-top.o): Update dependencies.
6374         * cli/cli-interp.c: New file.
6375         * interps.h, interps.c: New files.
6376         * top.c: (gdb_init): Don't install the default interpreter, handed
6377         by captured_main.
6378         * main.c: Include "interps.h".
6379         (interpreter_p): Note that it should malloc'ed.
6380         (captured_command_loop): Call current_interp_command_loop.
6381         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
6382         xfree and xstrdup when updating interpreter_p.  Install the
6383         default interpreter.  Add hack to stop mi1's copyright notice
6384         being encoded.
6385         * event-top.h (gdb_setup_readline): Declare.
6386         (gdb_disable_readline): Declare.
6387         * event-top.c: Include "interps.h".
6388         (display_gdb_prompt): Call current_interp_display_prompt_p.
6389         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
6390         gdb_stdlog, and gdb_stdtarg.
6391         (_initialize_event_loop): Don't call gdb_setup_readline.
6392         * cli-out.c (cli_out_set_stream): New function.
6393         * cli-out.h (cli_out_set_stream): Declare.
6394
6395 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
6396
6397         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
6398         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
6399         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
6400         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
6401         config/i386/i386v42mp.mt: Removed.
6402
6403 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
6404
6405         * configure.tgt (*-*-solaris*): Set gdb_osabi to
6406         GDB_OSABI_SOLARIS.
6407
6408 2003-02-05  Michael Chastain  <mec@shout.net>
6409
6410         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
6411         2.12.1 and earlier versions.
6412
6413 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
6414
6415         Remove orphaned hosts, targets and files.
6416         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
6417         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
6418         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
6419         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
6420         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
6421         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
6422         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
6423         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
6424         * config/sparc/tm-sp64sim.h: Delete.
6425         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
6426         hosts.
6427         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
6428         mips*-dec-mach3* targets.
6429
6430 2003-02-04  Michael Chastain  <mec@shout.net>
6431
6432         * NEWS: Fix typo: sepcifying -> specifying.
6433
6434 2003-02-04  Michael Chastain  <mec@shout.net>
6435
6436         * dwarfread.c: Add documentation on the state of dwarf-1,
6437         looking towards obsoletion.
6438
6439 2003-02-03  Michael Chastain  <mec@shout.net>
6440
6441         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
6442         gdb/testsuite/gdb.c++/pr-1023.exp.
6443
6444 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
6445
6446         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
6447         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
6448
6449         * utils.c (init_page_info): Delete reference to MPW in comments.
6450         * main.c (captured_main): Delete #ifdef MPW.
6451
6452 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
6453
6454         * NEWS: Note that the m32r-*-elf* is obsolete. 
6455         * monitor.c (monitor_expect): Obsolete reference to m32r.
6456         * configure.tgt: Mark m32r-*-elf* as obsolete.
6457         * MAINTAINERS: Mark m32k as obsolete.
6458         * m32r-rom.c: Obsolete file.
6459         * config/m32r/m32r.mt: Obsolete file.
6460         * config/m32r/tm-m32r.h: Obsolete file.
6461         * m32r-stub.c: Obsolete file.
6462         * m32r-tdep.c: Obsolete file.
6463
6464 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
6465
6466         * NEWS: Mention that the z8k-zilog-none is obsolete.
6467         * MAINTAINERS: Mark z8k as obsolete.
6468         * configure.tgt: Obsolete the z8k-*-coff* target.
6469         * config/z8k/z8k.mt: Obsolete file.
6470         * config/z8k/tm-z8k.h: Obsolete file.
6471         * z8k-tdep.c: Obsolete file.
6472
6473 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
6474
6475         * NEWS: Mention that the mn10200-elf is obsolete.
6476         * configure.tgt: Obsolete mn10200-*-* target.
6477         * breakpoint.c (update_breakpoints_after_exec): Update comment to
6478         mention that the mn10200 is obsolete.
6479         * breakpoint.h: Ditto.
6480         * MAINTAINERS: Mark the mn10200-elf as obsolete.
6481         * config/mn10200/mn10200.mt: Obsolete file.
6482         * config/mn10200/tm-mn10200.h: Obsolete file.
6483         * mn10200-tdep.c: Obsolete file.
6484
6485 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
6486
6487         * MAINTAINERS: Mark h8500 as obsolete.
6488         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
6489         * findvar.c (value_from_register): Ditto.
6490         * h8500-tdep.c: Mark file as obsolete.
6491         * config/h8500/h8500.mt: Ditto.
6492         * config/h8500/tm-h8500.h: Ditto.
6493         * NEWS: Mention that h8500 is obsolete.
6494
6495 2003-02-04  David Carlton  <carlton@math.stanford.edu>
6496
6497         * objfiles.c (allocate_objfile): Always set name.  Add comment at
6498         start of function.
6499         * jv-lang.c (get_dynamics_objfile): Add comment.
6500
6501 2003-02-04  David Carlton  <carlton@math.stanford.edu>
6502
6503         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
6504         * printcmd.c (build_address_symbolic): Replace uses of
6505         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
6506         SYMBOL_NAME, and asm_demangle.
6507         Update copyright.
6508
6509 2003-02-04  David Carlton  <carlton@math.stanford.edu>
6510
6511         * linespec.c (decode_compound): Extract code into
6512         lookup_prefix_sym.
6513         (lookup_prefix_sym): New function.
6514
6515 2003-02-04  David Carlton  <carlton@math.stanford.edu>
6516
6517         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
6518         FLOAT_COERCION_BADNESS.
6519         * gdbtypes.c (rank_one_type): Replace all uses of
6520         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
6521
6522 2003-02-04  Jim Blandy  <jimb@redhat.com>
6523
6524         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
6525         section, let dwarf_macinfo_section point to it, not
6526         dwarf_loc_section.
6527
6528 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
6529
6530         Pointed out by Anton Blanchard <anton@samba.org>.
6531         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
6532         (ppc_linux_at_sigtramp_return_path): Use it.
6533
6534 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
6535
6536         * defs.h (streq): Add prototype.
6537         * utils.c (streq): New function.
6538
6539         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
6540         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
6541         * mdebugread.c (new_symbol): Likewise.
6542         * stabsread.c (define_symbol): Likewise.
6543         * coffread.c (process_coff_symbol): Likewise.
6544         * dwarfread.c (new_symbol): Likewise.
6545
6546         * minsyms.c (prim_record_minimal_symbol_and_info): Use
6547         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
6548         here.
6549         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
6550         SYMBOL_INIT_DEMANGLED_NAME.
6551         * objfiles.c: Include "hashtab.h".
6552         (allocate_objfile): Call htab_set_functions_ex for the
6553         demangled_names_hash.
6554         (free_objfile): Call htab_delete for the demangled_names_hash.
6555         * objfiles.h (struct htab): Add declaration.
6556         (struct objfile): Add demangled_names_hash.
6557         * symfile.c: Include "hashtab.h".
6558         (reread_symbols): Call htab_delete for the demangled_names_hash.
6559         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
6560         SYMBOL_NAME in the bcache.
6561         * symtab.c: Include "hashtab.h".  Update comments.
6562         (create_demangled_names_hash, symbol_set_names): New functions.
6563         (symbol_find_demangled_name): New function, broken out from
6564         symbol_init_demangled_names.
6565         (symbol_init_demangled_names): Use it.
6566         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
6567         (SYMBOL_SET_NAMES): New macro.
6568         (symbol_set_names): Add prototype.
6569
6570 2003-02-03  Jim Blandy  <jimb@redhat.com>
6571
6572         Use a single, consistent representation for an empty minimal
6573         symbol table in an objfile.
6574         * objfiles.c (terminate_minimal_symbol_table): New function.
6575         (allocate_objfile): Call it.
6576         * objfiles.h (terminate_minimal_symbol_table): New declaration.
6577         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
6578         non-NULL. 
6579         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
6580         objfile has minimal symbols, compare minimal_symbol_count to zero,
6581         instead of comparing msymbols with NULL.
6582         * objfiles.c (have_minimal_symbols): Same.
6583         * solib-sunos.c (solib_add_common_symbols): Call
6584         terminate_minimal_symbol_table.
6585         * symfile.c (reread_symbols): Same.
6586         
6587 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
6588
6589         * s390-tdep.c (s390_address_class_type_flags)
6590         (s390_address_class_type_flags_to_name)
6591         (s390_address_class_name_to_type_flags): New functions.
6592         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
6593         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
6594
6595 2003-02-03  Michael Snyder  <msnyder@redhat.com>
6596
6597         * arm-tdep.c: Fix spell-o in comment.
6598
6599 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
6600
6601         * dwarf2cfi.c (pointer_encoding): Added new parameter.
6602         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
6603         error messages to contain BFD filename. 
6604
6605 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
6606
6607         Fix PR gdb/742 gdb/743 gdb/877
6608         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
6609         (do_mixed_source_and_assembly): Use
6610         make_cleanup_ui_out_tuple_begin_end and
6611         make_cleanup_ui_out_tuple_begin_end.
6612         (do_mixed_source_and_assembly): Ditto.
6613         * thread.c (do_captured_list_thread_ids): Ditto.
6614         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
6615         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
6616         ui_out_tuple_end): Delete prototypes.
6617         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
6618         ui_out_list_end, ui_out_tuple_end): Delete.
6619
6620         From Kevin Buettner  <kevinb@redhat.com>:
6621         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
6622         * ui-out.c (make_cleanup_ui_out_table_begin_end)
6623         (do_cleanup_table_end):  New functions.
6624         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
6625         Use cleanups to invoke_ui_out_tuple_end().
6626         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
6627         * cli/cli-setshow.c (cmd_show_list): Use
6628         make_cleanup_ui_out_tuple_begin_end.
6629         
6630 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
6631
6632         * frame.c (frame_unwind_register): New function.
6633         (frame_unwind_unsigned_register): Use.
6634         (frame_unwind_signed_register): Use.
6635         (frame_read_register): New function.
6636         * frame.h (frame_unwind_register): Declare.
6637         (frame_read_register): Declare.
6638
6639         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
6640         and frame_unwind_register instead of read_memory, write_register
6641         and deprecated_write_register_bytes.
6642
6643 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
6644
6645         * frame.h: Note that namelen can be negative.
6646         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
6647         NAME's length.
6648
6649         * NEWS: Mention that the d10v's `regs' command is deprecated.
6650         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
6651         (d10v_print_registers_info): New function.
6652         (show_regs): Call d10v_print_registers_info.
6653         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
6654
6655 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
6656
6657         * stack.c (print_frame_info): Restore call to annotate_frame_begin
6658         lost in the previous patch.
6659
6660 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
6661
6662         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
6663         * stack.c (print_frame_info_base): Output complete FRAME tuple
6664         for synthesized frames.
6665
6666 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
6667
6668         * mips-nat.c (zerobuf): Delete.
6669         (fetch_inferior_registers): Alloc local zerobuf.
6670         (fetch_core_registers): Alloc local zerobuf.
6671         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
6672         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
6673         * thread-db.c (thread_db_store_registers): Ditto.
6674         * sh-tdep.c (sh_do_register): Ditto.
6675         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
6676         * remote-sim.c (gdbsim_store_register): Ditto.
6677         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6678         * remote-e7000.c (fetch_regs_from_dump): Ditto.
6679         * monitor.c (monitor_supply_register): Ditto.
6680         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
6681         * mips-nat.c (fetch_inferior_registers): Ditto.
6682         * m68klinux-nat.c (fetch_register): Ditto.
6683         * lynx-nat.c (fetch_inferior_registers): Ditto.
6684         (fetch_inferior_registers): Ditto.
6685         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
6686         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6687         (hpux_thread_store_registers): Ditto.
6688         * hppah-nat.c (fetch_register): Ditto.
6689         * hppab-nat.c (fetch_register): Ditto.
6690         * hppa-tdep.c (pa_register_look_aside): Ditto.
6691         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
6692         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
6693
6694 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
6695
6696         * gdbarch.sh: Explictly specify all method levels.  When a
6697         variable with an empty level, provide a non-multi-arch default.
6698         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
6699         * gdbarch.h: Re-generate.
6700         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
6701         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
6702
6703 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
6704
6705         * defs.h (host_pointer_to_address): Delete declaration.
6706         (address_to_host_pointer): Delete declaration.
6707         * utils.c (host_pointer_to_address): Delete function.
6708         (address_to_host_pointer): Delete function.
6709         * procfs.c (procfs_address_to_host_pointer): New function.
6710         * procfs.c (proc_set_watchpoint): Use.
6711         (procfs_can_use_hw_breakpoint): Update comments.
6712         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
6713         (som_solib_add): Use.
6714         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
6715         * hppa-tdep.c (unwind_command): Use.
6716         
6717 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
6718
6719         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
6720         strlen d_name.
6721
6722         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
6723         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
6724         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
6725         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
6726         (define_symbol): Update.
6727         * symfile.c (generic_load): Remove references to nindy.
6728         * symtab.c: Remove references to nindy.
6729
6730 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
6731
6732         * infcmd.c (print_float_info): Delete code conditional on
6733         FLOAT_INFO.
6734         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
6735         * config/m68k/nm-apollo68b.h: Ditto.
6736         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
6737         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
6738         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
6739
6740 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
6741
6742         * config/i386/tm-i386os9k.h: Removed.
6743
6744         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
6745         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
6746         they're identical to i[3456]86-*-sysv* now.
6747         * config/i386/i386v32.mh: Removed.
6748         * config/i386/xm-i386v32.h: Removed.
6749         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
6750
6751         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
6752
6753         * config/i386/i386dgux.mh: Removed.
6754         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
6755
6756         * configure.in: Fix typo.
6757         * configure: Regenerated.
6758
6759 2003-01-31  David Carlton  <carlton@math.stanford.edu>
6760
6761         * dwarf2read.c (dwarf2_locate_sections): Set
6762         dwarf_ranges_section.
6763
6764 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
6765
6766         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
6767         * utils.c: Update comments documenting legitimate uses of PTR.
6768         
6769         * utils.c: Re-indent.
6770
6771         * config/djgpp/fnchange.lst: Delete nindy files.
6772         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
6773         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
6774         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
6775         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
6776         * nindy-share/README, nindy-share/Onindy.c: Delete files.
6777         * nindy-tdep.c, nindy-share/Makefile: Delete files.
6778         * Makefile.in (init.c): Remove nindy references.
6779         (saber_gdb): Delete rule.
6780         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
6781         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
6782         and a68v-nat.c.
6783         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
6784         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
6785         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
6786         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
6787         nindy-share/stop.h.
6788         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
6789         * saber.suppress: Delete file.
6790
6791 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
6792
6793         * dbxread.c (stabs_data): New static variable.
6794         (fill_symbuf): Support an in-memory buffer for stabs data.
6795         (stabs_seek): New function.
6796         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
6797         (read_ofile_symtab): Use stabs_seek.
6798         (elfstab_build_psymtabs): Take an asection* instead of
6799         an offset and size.  Relocate the stabs data if necessary.
6800         Save the section* for dbx_psymtab_to_symtab.
6801         * dwarf2read.c: Add section variables for each debug section.
6802         (dwarf2_locate_sections): Fill them in.
6803         (dwarf2_read_section): Take an asection* argument.
6804         Relocate the section contents if necessary.
6805         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
6806         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
6807         it to dwarf2_read_section.
6808         (dwarf2_build_frame_info): Update callers.
6809         * elfread.c (elf_symfile_read): Update call to
6810         elfstab_build_psymtabs.
6811         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
6812         (DBX_STAB_SECTION): New macro.
6813         * stabsread.h (elfstab_build_psymtabs): Update prototype. 
6814         * symfile.c (symfile_dummy_outputs): New function.
6815         (symfile_relocate_debug_section): New function.
6816         * symfile.h (symfile_relocate_debug_section): Add prototype.
6817
6818 2003-01-31  Richard Henderson  <rth@redhat.com>
6819
6820         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
6821         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
6822         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
6823         * alpha-tdep.c (alpha_register_name): Add "unique".
6824         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
6825         (ALPHA_UNIQUE_REGNUM): New.
6826         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
6827
6828 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
6829
6830         * README: Remove reference to Ericsson 1800 monitor.
6831         * Makefile.in (remote-es.o): Delete rule.
6832         (ALLDEPFILES): Delete remote-es.c.
6833         * remote-es.c: Delete file.
6834         * config/m68k/es1800.mt: Delete file.
6835         * config/djgpp/fnchange.lst: Update.
6836         * configure.tgt: Delete m68*-ericsson-* target.
6837
6838 2003-01-31  Adam Fedor  <fedor@gnu.org>
6839
6840         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
6841         Remove duplicate/shadowing variable of same name.
6842
6843 2003-01-30  Jim Blandy  <jimb@redhat.com>
6844
6845         * symfile.c (find_separate_debug_file): Assert that the objfile's
6846         directory name we compute ends with a slash, and then assume that
6847         that's so everywhere we use it.
6848
6849 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
6850
6851         * valops.c (value_assign): Flush frame cache after stores to memory
6852         also.
6853
6854 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
6855
6856         * Makefile.in (mon960-rom.o): Delete rule.
6857         * mon960-rom.c: Delete file.
6858
6859 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
6860
6861         * d10v-tdep.c: Include "frame-unwind.h".
6862         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
6863         list.
6864         (next_addr, uses_frame): Delete.
6865         (struct d10v_unwind_cache): Define.
6866         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
6867         Use info instead of next_addr and uses_frame globals.
6868         (d10v_frame_init_saved_regs): Delete function.
6869         (d10v_init_extra_frame_info): Delete function.
6870         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
6871         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
6872         init_frame_pc or frame_saved_pc.
6873         (d10v_pop_frame): Delete function.
6874         (do_d10v_pop_frame): Delete function.
6875         (d10v_frame_chain): Delete function.
6876         (d10v_frame_chain_valid): Delete function.
6877         (d10v_frame_pc_unwind): New function.
6878         (d10v_frame_id_unwind): New function.
6879         (saved_regs_unwinder): New function.
6880         (d10v_frame_register_unwind): New function.
6881         (d10v_frame_pop): New function.
6882         (d10v_frame_unwind): New variable.
6883         (d10v_frame_p): New function.
6884         (d10v_frame_saved_pc): Delete function.
6885         * Makefile.in (d10v-tdep.o): Update dependencies.
6886
6887 2003-01-30  J. Brobecker  <brobecker@gnat.com>
6888
6889         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
6890         causing some regressions due to a change in the default value
6891         for this macro.
6892
6893 2003-01-29  Richard Henderson  <rth@redhat.com>
6894             Elena Zannoni  <ezannoni@redhat.com>
6895             Daniel Jacobowitz  <drow@mvista.com>
6896
6897         Fix PR gdb/961.
6898         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
6899         variables.
6900         (RANGES_SECTION): New.
6901         (dwarf_ranges_buffer): New variable.
6902         (struct comp_unit_head): Add member "die".
6903         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
6904         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
6905         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
6906         (dwarf2_locate_sections): Likewise.
6907         (dwarf2_build_psymtabs): Read .debug_ranges.
6908         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
6909         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
6910         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
6911         Look for DW_AT_ranges and return the bounding box.
6912
6913 2003-01-29  Brian Ford <ford@vss.fsi.com>
6914
6915         * win32-nat.c (cygwin_pid): Removed as unused.
6916         (child_attach): Try fall back to Cygwin pid.
6917
6918 2003-01-29  Jim Blandy  <jimb@redhat.com>
6919
6920         * objfiles.h (struct objfile): Doc fix.
6921
6922 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
6923
6924         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
6925         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
6926         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
6927         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
6928         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
6929         (FRAME_SAVED_PC): Change to a function with predicate.
6930         * gdbarch.h, gdbarch.c: Re-generate.
6931
6932 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
6933
6934         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
6935
6936         * complaints.c (complain): Delete function.
6937         * complaints.h (struct deprecated_complaint): Delete definition.
6938         (complain): Delete declaration.
6939
6940 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
6941
6942         * mips-tdep.c (mips_init_extra_frame_info): Return early for
6943         dummy frames.
6944
6945 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
6946
6947         * sentinel-frame.h, sentinel-frame.c: New files.
6948         * Makefile.in (frame.o): Update dependencies.
6949         (SFILES): Add sentinel-frame.c.
6950         (sentinel_frame_h): Define.
6951         (COMMON_OBS): Add sentinel-frame.o.
6952         (sentinel-frame.o): Specify dependencies.
6953         * frame.c: Include "sentinel-frame.h".
6954         (frame_register_unwind): Rewrite assuming that there is always a a
6955         ->next frame.
6956         (frame_register, generic_unwind_get_saved_register): Ditto.
6957         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
6958         (create_sentinel_frame, unwind_to_current_frame): New functions.
6959         (get_current_frame): Rewrite using create_sentinel_frame and
6960         unwind_to_current_frame.  When possible, always create a frame.
6961         (create_new_frame): Set next to the sentinel frame.
6962         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
6963         (deprecated_update_frame_pc_hack): Update the next frame's PC and
6964         ID cache when necessary.
6965         (frame_saved_regs_id_unwind): Use frame_relative_level.
6966         (deprecated_generic_get_saved_register): Use frame_relative_level,
6967         get_frame_saved_regs, get_frame_pc, get_frame_base and
6968         get_next_frame.
6969         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
6970         frame_register.
6971
6972 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
6973
6974         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
6975
6976 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
6977
6978         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
6979         (maintenance_set_profile_cmd): Use error () instead of warning ().
6980
6981 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
6982
6983         * configure.in: Check that -pg works if using --enable-profiling.
6984         Check for monstartup and _mcleanup regardless of --enable-profiling.
6985         * maint.c: Check for monstartup and _mcleanup before using them.
6986         * config.in: Regenerated.
6987         * configure: Regenerated.
6988
6989 2003-01-24  Nick Clifton  <nickc@redhat.com>
6990
6991         * Add sh2e support:
6992
6993         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
6994
6995                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
6996                 (sh2e_show_regs): New.
6997                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
6998                 * config/sh/tm-sh.h: Added sh2e to comments.
6999
7000 2003-01-23  Jim Blandy  <jimb@redhat.com>
7001
7002         * symfile.c (syms_from_objfile): Don't print the "(no debugging
7003         symbols found)" message here; we haven't checked for a separate
7004         debug info file yet, so we don't know yet.
7005         (symbol_file_add_with_addrs_or_offsets): Print it here, after
7006         we've looked everywhere.  Also, there's no need to print a special
7007         message when we're loading the separate debug info file: the one
7008         symbol_file_add prints is fine.
7009
7010 2003-01-23  Alexander Larsson <alexl@redhat.com>
7011             Jim Blandy  <jimb@redhat.com>
7012
7013         Add support for executables whose debug info has been separated
7014         out into a separate file, leaving only a link behind.
7015         * objfiles.h (struct objfile): New fields: separate_debug_objfile
7016         and separate_debug_objfile_backlink.
7017         (put_objfile_before): New declaration.
7018         * symfile.c: #include "filenames.h".
7019         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
7020         debug info in a separate file, read that, too. Save the addrs
7021         argument, so we can use it again to read the separated debug info;
7022         syms_from_objfile modifies the table we pass it.
7023         (reread_symbols): After re-reading an objfile, call
7024         reread_separate_symbols to refresh its separate debug info
7025         objfile, if it has one.
7026         (reread_separate_symbols, find_separate_debug_file,
7027         get_debug_link_info, separate_debug_file_exists): New functions.
7028         (debug_file_directory): New global var.
7029         (_initialize_symfile): Initialize debug_file_directory, and
7030         provide the new `set debug-file-directory' command to let the user
7031         change it.
7032         * objfiles.c (free_objfile): If this objfile has its debug info in
7033         a separate objfile, free that one too.  If this is itself a
7034         separate debug info objfile, clear our parent's backlink.
7035         (put_objfile_before): New function.
7036         * utils.c (gnu_debuglink_crc32): New function.
7037         * defs.h (gnu_debuglink_crc32): New declaration.
7038         * Makefile.in (symfile.o): Note dependency on "filenames.h".
7039         * configure.in: Handle --with-separate-debug-dir config option.
7040         * acinclude.m4 (AC_DEFINE_DIR): New macro.
7041         * acconfig.h (DEBUGDIR): New macro.
7042         * configure, aclocal.m4, config.in: Regenerated.
7043
7044 2003-01-22  Jim Blandy  <jimb@redhat.com>
7045
7046         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
7047         like the old symbol_file_add, but taking new arguments: you can
7048         now pass in either a `struct section_addr_info' list to say where
7049         each section is loaded, or a `struct section_offsets' table.  Pass
7050         these new arguments through to syms_from_objfile as appropriate.
7051         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets, 
7052         with the appropriate quiescent values for the new arguments.
7053
7054         * symfile.c: #include "gdb_assert.h".
7055         (syms_from_objfile): Add the ability to pass in a section offset
7056         table directly, as an alternative to the section_addr_info table.
7057         Document arguments better.
7058         (symbol_file_add): Pass extra arguments to syms_from_objfile.
7059         * symfile.h (syms_from_objfile): Update declaration.
7060         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
7061         syms_from_objfile.
7062         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
7063
7064 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
7065
7066         Original patch by Tom Tromey <tromey@cygnus.com> and
7067         Jason Molenda <jmolenda@apple.com>.
7068         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
7069         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
7070         * NEWS: Mention profiling.
7071         * configure.in (--enable-gdbtk): Fix typo.
7072         (--enable-profiling): New.  Set PROFILE_CFLAGS.
7073         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
7074         Fill in function.
7075         (profiling_state): New variable.
7076         (mcleanup_wrapper): New function.
7077         (_initialize_maint): Remove NOTYET, fix call to
7078         add_setshow_boolean_cmd for "maint set profile".
7079         * configure: Regenerated.
7080
7081 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
7082
7083         * Makefile.in (install-gdbtk): Install PNG images too.
7084
7085 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
7086
7087         * exec.c (text_start): Delete global variable.
7088         (exec_file_attach): Make text_start local to the function.
7089         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
7090         * valops.c (hand_function_call): Delete code that handles
7091         BEFORE_TEXT_END and AFTER_TEXT_END.
7092         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
7093         of CALL_DUMMY_LOCATION.
7094         * gdbarch.c: Regenerate.
7095         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
7096         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
7097         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
7098         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
7099         (text_end): Delete extern declaration.
7100
7101 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
7102
7103         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
7104         * blockframe.c (backtrace_below_main): Move to "frame.c".
7105         (frame_chain_valid): Delete check for backtrace_below_main.
7106         (_initialize_blockframe): Delete initialization, move ``set
7107         backtrace-below-main'' command to "frame.c".
7108         (do_flush_frames_sfunc): Delete function.
7109         * frame.c: Include "command.h" and "gdbcmd.h".
7110         (frame_type_from_pc): New function.
7111         (create_new_frame): Use frame_type_from_pc.
7112         (legacy_get_prev_frame): New function.
7113         (get_prev_frame): Rewrite.  When an old style frame, call
7114         legacy_get_prev_frame.  Otherwize, unwind the PC first.
7115         (_initialize_frame): Add ``set backtrace-below-main'' command.
7116         * Makefile.in (frame.o): Update dependencies.
7117
7118 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
7119
7120         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
7121         DEPRECATED_REGISTERS_INFO.
7122
7123 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
7124
7125         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
7126         Maintainers'.  Update `Various Maintainers'.
7127
7128 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
7129
7130         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
7131         * gdbarch.sh (POP_FRAME): Change to function with predicate.
7132         Suppress actual parameters when `-'.
7133         * gdbarch.h, gdbarch.c: Regenerate.
7134
7135 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
7136
7137         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
7138         code handling dummy frames.
7139
7140 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
7141
7142         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
7143         (struct frame_unwind): Add field pop.
7144         * frame.h (frame_pop): Declare.
7145         * frame.c (frame_saved_regs_pop): New function.
7146         (trad_frame_unwinder): Add frame_saved_regs_pop.
7147         (frame_pop): New function.
7148         * dummy-frame.c (dummy_frame_pop): New function.
7149         (discard_innermost_dummy): New function.
7150         (generic_pop_dummy_frame): Use discard_innermost_dummy.
7151         (dummy_frame_unwind): Add dummy_frame_pop.
7152         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
7153         * valops.c (hand_function_call): Ditto.
7154         * stack.c (return_command): Ditto.
7155
7156 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
7157
7158         * cris-tdep.c: Fix function declaration indentation.
7159         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
7160         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
7161         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
7162         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
7163         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
7164         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
7165
7166 2003-01-18  Michael Chastain  <mec@shout.net>
7167
7168         * README (Unpacking and Installation -- quick overview):
7169         Warn against ".../gdb-5.3/gdb/configure".
7170
7171 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
7172
7173         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
7174         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
7175         (struct frame_unwind): Declare opaque.
7176         (dummy_frame_p): Declare function.
7177         * dummy-frame.c (dummy_frame_id_unwind): Make static.
7178         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
7179         * dummy-frame.c: Include "frame-unwind.h".
7180         (dummy_frame_p): New function.
7181         (dummy_frame_unwind): New variable.
7182         * frame.c: Include "frame-unwind.h".
7183         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
7184         to use the new unwind field.
7185         (set_unwind_by_pc): Delete function.
7186         (create_new_frame, get_prev_frame): Set unwind field using
7187         frame_unwind_find_by_pc.
7188         (trad_frame_unwind, trad_frame_unwinder): New variables.
7189         * frame.h (trad_frame_unwind): Declare variable.
7190         (frame_id_unwind_ftype): Delete declaration.
7191         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
7192         (struct frame_unwind): Declare opaque.
7193         (struct frame_info): Replace the fields id_unwind, pc_unwind and
7194         register_unwind with a single unwind pointer.
7195         * frame-unwind.h, frame-unwind.c: New files.
7196         * Makefile.in (SFILES): Add frame-unwind.c.
7197         (frame_unwind_h): Define.
7198         (COMMON_OBS): Add frame-unwind.o.
7199         (frame-unwind.o): Specify dependencies.
7200         (frame.o, dummy-frame.o): Update dependencies.
7201         
7202 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
7203
7204         * ada-valprint.c: Eliminate PTR.
7205         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
7206         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
7207         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
7208         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
7209         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
7210         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
7211         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
7212         
7213 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
7214
7215         * main.c (captured_main): Don't use PTR.
7216         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
7217         * gdbtypes.c (lookup_primitive_typename): Ditto.
7218         (lookup_struct_elt_type): Ditto.
7219         * f-valprint.c (info_common_command): Ditto.
7220         (list_all_visible_commons): Ditto.
7221         * jv-typeprint.c (java_type_print_base): Ditto.
7222
7223         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
7224         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
7225         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
7226         i386-interix-nat.c and i386-interix-tdep.c.  Rename
7227         m68klinux-nat.c and m68klinux-tdep.c.  Rename
7228         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
7229         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
7230         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
7231         * main.c (captured_main): Use xfree, not free.
7232
7233 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
7234
7235         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
7236         ID back using a parameter.
7237         * frame.c (frame_id_unwind): Update call.
7238         (frame_saved_regs_id_unwind): Update.
7239         * dummy-frame.c (dummy_frame_id_unwind): Update function.
7240         * dummy-frame.h (struct frame_id): Add opaque declaration.
7241         (dummy_frame_id_unwind): Update declaration.
7242
7243 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
7244
7245         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
7246
7247 2003-01-15  Stephen P. Smith <ischis2@cox.net>
7248
7249         * MAINTAINERS (Stephen P. Smith): Updated email address.
7250
7251 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
7252
7253         Fix PR gdb/898
7254         * breakpoint.c (until_break_command): Add new argument.  Use it to
7255         decide whether to stop only at the current frame or not.
7256         * breakpoint.h (until_break_command): Update prototype.
7257         * infcmd.c (until_command): Add new argument to until_break_command
7258         call.
7259         (advance_command): New function.
7260         (_initialize_infcmd): Update help string for 'until' command.
7261         Add new 'advance' command.
7262
7263 2003-01-14  David Carlton  <carlton@math.stanford.edu>
7264
7265         * linespec.c (decode_line_1): Normalize comments.
7266         (set_flags): Ditto.
7267         (locate_first_half): Ditto.
7268         (decode_compound): Ditto.
7269         (symtab_from_filename): Ditto.
7270         (decode_all_digits): Ditto.
7271         (decode_dollar): Ditto.
7272         (find_methods): Ditto.
7273         (find_toplevel_char): Ditto.
7274
7275 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
7276
7277         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
7278         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
7279         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
7280         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
7281         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
7282         * language.c, language.h, m32r-tdep.c: Update copyright.
7283         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
7284         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
7285         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
7286         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
7287         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
7288         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
7289
7290 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
7291
7292         * stabsread.h (process_later, resolve_cfront_continuation):
7293         Obsolete.
7294         Update copyright years.
7295         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
7296         Update copyright year.
7297         * dbxread.c(struct cont_elem): Obsolete.
7298         (process_later, process_now): Obsolete functions. 
7299         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
7300         Update copyright year.
7301         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
7302         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
7303         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
7304         (parse_partial_symbols): Obsolete cfront support.
7305         * stabsread.c
7306         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
7307         macros.
7308         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
7309         read_cfront_baseclasses, read_cfront_member_functions,
7310         resolve_cfront_continuation,read_cfront_static_fields,
7311         copy_cfront_struct_fields): Obsolete functions.
7312         (define_symbol, read_one_struct_field): Obsolete cfront support.
7313         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
7314         Update Copyright year.
7315
7316 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
7317
7318         * stack.c (print_frame_info, print_stack_frame_base_stub,
7319         print_stack_frame_base, show_and_print_stack_frame_stub,
7320         show_and_print_stack_frame, print_only_stack_frame_stub,
7321         print_only_stack_frame): Delete functions.
7322         (print_stack_frame_stub): Call print_frame_info instead of
7323         print_frame_info_base.
7324         (print_frame_info_base): Rename to print_frame_info.
7325         (backtrace_command_1): Call print_frame_info, instead of
7326         print_frame_info_base.
7327         (current_frame_command): Call print_stack_frame, instead of
7328         print_only_stack_frame.
7329         (frame_command): Call print_stack_frame, instead of
7330         show_and_print_stack_frame.
7331         (up_command): Ditto.
7332         (down_command): Ditto.
7333         * frame.h (print_only_stack_frame): Delete prototype.
7334         * infrun.c (normal_stop): Call print_stack_frame, instead of
7335         show_and_print_stack_frame.
7336         * thread.c (info_threads_command): Call print_stack_frame, instead
7337         of print_only_stack_frame.
7338
7339 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
7340
7341         * README (Graphical interface to GDB): Update URL.  Point at
7342         gdb/links/.
7343
7344         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
7345         version match.
7346
7347 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
7348
7349         * symtab.c (find_pc_sect_line): Don't consider end-of-function
7350         lines.
7351
7352 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
7353
7354         * thread-db.c (attach_thread): Prototype.
7355         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
7356         thread information (ti), and valid flags (th_valid, ti_valid).
7357         (attach_thread): Move target_pid_to_str call to after the thread
7358         is added to GDB's list.  Initialize the cache.
7359         (thread_get_info_callback, thread_db_map_id2thr)
7360         (thread_db_get_info): New functions.
7361         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
7362         (thread_db_store_registers, thread_db_thread_alive)
7363         (thread_db_get_thread_local_address): Use them.
7364         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
7365         of calling error() for threads in unknown state.
7366
7367         (clear_lwpid_callback): New function.
7368         (thread_db_resume): Use it to clear the cache.
7369
7370 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
7371
7372         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
7373         (resume_callback): Remove dead code.
7374
7375 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
7376
7377         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
7378         predicate.
7379         * gdbarch.h, gdbarch.c: Regenerate.
7380         * stack.c (frame_info): Only initialize the saved registers when
7381         FRAME_INIT_SAVED_REGS_P.
7382         * frame.c (frame_saved_regs_register_unwind): Assert
7383         FRAME_INIT_SAVED_REGS_P.
7384         (deprecated_generic_get_saved_register): Ditto.
7385
7386 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
7387
7388         * source.c (openp): Squelch warning about "filename".
7389
7390 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
7391
7392         * source.c (openp): If the file does not exist don't necessarily
7393         search the path.
7394
7395 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
7396
7397         Fix PR gdb/872.
7398         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
7399         (integer_types_same_name_p): New function.
7400         (rank_one_type): Use it.
7401         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
7402
7403 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
7404
7405         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
7406         variables.
7407         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
7408         * configure.in: Add --with-sysroot.
7409         * configure: Regenerated.
7410         * main.c (gdb_sysroot): New variable.
7411         (captured_main): Initialize gdb_sysroot.
7412         * defs.h (gdb_sysroot): New extern declaration.
7413         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
7414
7415 2003-01-12  Michael Chastain  <mec@shout.net>
7416
7417         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
7418
7419 2003-01-12  Michael Chastain  <mec@shout.net>
7420
7421         * top.c (print_gdb_version): Bump copyright year to 2003.
7422
7423 2003-01-12  David Carlton  <carlton@bactrian.org>
7424
7425         * linespec.c (symtab_from_filename): Rename variable 's' to
7426         'file_symtab'.
7427
7428 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
7429
7430         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
7431         dummy frame.
7432         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
7433
7434 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
7435
7436         * d10v-tdep.c: Include "gdb_assert.h".
7437         (d10v_store_return_value): Rewrite to match current interface.
7438         (d10v_extract_struct_value_address): Ditto.
7439         (d10v_extract_return_value): Ditto.
7440         (d10v_gdbarch_init): Set store_restore_value,
7441         extract_struct_value_address and extract_return_value.
7442
7443 2003-01-12  J. Brobecker  <brobecker@gnat.com>
7444
7445         * hpread.c (set_namestring): New procedure replacing the
7446         SET_NAMESTRING macro.
7447         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
7448         by calls to set_namestring.
7449
7450 2003-01-11  J. Brobecker  <brobecker@gnat.com>
7451
7452         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
7453         a compilation warning.
7454         (hpread_process_one_debug_symbol): Likewise.
7455
7456 2003-01-10  David Carlton  <carlton@math.stanford.edu>
7457
7458         * linespec.c (decode_line_1): Rename variable 's' to
7459         'file_symtab'.
7460         (decode_all_digits): Rename argument 's' to 'file_symtab'.
7461         (decode_dollar): Ditto.
7462         (decode_variable): Ditto.
7463         (symbol_found): Ditto.
7464
7465 2003-01-09  Michael Chastain  <mec@shout.net>
7466
7467         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
7468
7469 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
7470
7471         * win32-nat.c (set_process_privilege): New function.
7472         (child_attach): Call set_process_privilege() to enable the
7473         SE_DEBUG_NAME user privilege if available in process token.
7474
7475 2003-01-10  J. Brobecker  <brobecker@gnat.com>
7476
7477         * hpread.c (hpread_process_one_debug_symbol): Fix a small
7478         compilation error in the previous revision.
7479
7480 2003-01-09  David Carlton  <carlton@math.stanford.edu>
7481
7482         * linespec.c: Update copyright.
7483
7484 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
7485
7486         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
7487         than inferior_ptid.
7488         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
7489
7490 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
7491
7492         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
7493         Update comments.
7494         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
7495         (frame_saved_regs_zalloc): Update.
7496         (frame_saved_regs_register_unwind): Update.
7497         (create_new_frame): Update.
7498         (get_prev_frame): Update.
7499         (frame_extra_info_zalloc): Update.
7500         (deprecated_get_frame_saved_regs): Update.
7501         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
7502         * cris-tdep.c: Update comment.
7503
7504         * somsolib.h: Fix function indentation.
7505         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
7506         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
7507         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
7508         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
7509         * somsolib.c, inftarg.c: Remove assignment in if conditional.
7510
7511         * infrun.c (follow_fork): Use ISO C definition.
7512         * expprint.c (print_subexp): Use xfree instead of free.
7513         * charset.c: Include "gdb_string.h" instead of <string.h>.
7514         (register_iconv_charsets): Use ISO C definition.
7515         (host_charset, target_charset): Ditto.
7516         * Makefile.in (charset.o): Update dependencies.
7517         (mi-cmd-env.o): Update dependencies.
7518
7519 2003-01-08  Andrew Cagney  <cagney@redhat.com>
7520
7521         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
7522         get_frame_base.
7523
7524 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
7525
7526         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
7527         build directories.  Save edited gdb output in Mbuild.log.  If a
7528         build fails, remove any final GDB executable.
7529
7530 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
7531
7532         * gdb_mbuild.sh: Edit the output of `maint print architecture'
7533         replacing hex constants with function names and stripping leading
7534         file name directory prefixes.
7535
7536 2003-01-08  Andrew Cagney  <cagney@redhat.com>
7537
7538         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
7539         get_frame_base.
7540
7541 2003-01-08  David Carlton  <carlton@math.stanford.edu>
7542
7543         * linespec.c (decode_line_1): Move code into decode_variable.
7544         (decode_variable): New function.
7545
7546 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
7547
7548         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
7549
7550 2003-01-08  Andrew Cagney  <cagney@redhat.com>
7551
7552         * cris-tdep.c (cris_frame_init_saved_regs): Use
7553         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
7554         saved_regs buffer.
7555         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7556         (sh64_nofp_frame_init_saved_regs): Ditto.
7557         (sh_fp_frame_init_saved_regs): Ditto.
7558         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
7559         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
7560         * mcore-tdep.c (analyze_dummy_frame): Ditto.
7561         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
7562
7563 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
7564
7565         * minsyms.c (lookup_minimal_symbol): Update comment.
7566         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
7567         (lookup_minimal_symbol_solib_trampoline): Likewise.
7568
7569 2003-01-08  Andrew Cagney  <cagney@redhat.com>
7570
7571         * d10v-tdep.c (d10v_init_extra_frame_info): Use
7572         frame_relative_level.
7573
7574         * alpha-tdep.c: Use get_frame_extra_info.
7575         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7576         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
7577         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
7578         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
7579
7580         * alpha-tdep.c: Use get_next_frame.
7581         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7582         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
7583         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
7584         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
7585         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
7586         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
7587         * xstormy16-tdep.c: Ditto.
7588         
7589 2003-01-07  Andrew Cagney  <cagney@redhat.com>
7590
7591         * alpha-tdep.c: Use get_frame_base.
7592         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7593         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
7594         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
7595         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
7596         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
7597         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
7598         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
7599         * config/sparc/tm-sparc.h: Ditto.
7600         
7601 2003-01-07  Andrew Cagney  <cagney@redhat.com>
7602
7603         * frame.c (deprecated_get_frame_context): New function.
7604         (deprecated_set_frame_context): New function.
7605         * frame.h (deprecated_get_frame_context): Declare.
7606         (deprecated_set_frame_context): Declare.
7607         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
7608         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
7609         
7610 2003-01-07  Andrew Cagney  <cagney@redhat.com>
7611
7612         * frame.c (deprecated_set_frame_next_hack): New function.
7613         (deprecated_set_frame_prev_hack): New function.
7614         * frame.h (deprecated_set_frame_next_hack): Declare.
7615         (deprecated_set_frame_prev_hack): Declare.
7616         * mcore-tdep.c (analyze_dummy_frame): Use
7617         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
7618         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
7619
7620 2003-01-07  David Carlton  <carlton@math.stanford.edu>
7621
7622         * linespec.c (decode_line_1): Move code into decode_dollar.
7623         (decode_dollar): New function.
7624
7625 2003-01-07  Andrew Cagney  <cagney@redhat.com>
7626
7627         * arm-tdep.c (arm_init_extra_frame_info): Use
7628         deprecated_update_frame_base_hack.
7629         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
7630         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
7631         (fix_frame_pointer): Ditto.
7632         (mn10300_analyze_prologue): Ditto.
7633
7634 2003-01-07  Andrew Cagney  <cagney@redhat.com>
7635
7636         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
7637         extra_info using frame_extra_info_zalloc.
7638         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7639         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
7640         (sh64_init_extra_frame_info): Ditto.
7641         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
7642         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
7643         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
7644         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
7645         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
7646         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
7647         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
7648         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
7649         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
7650         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
7651         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7652         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
7653
7654         * mn10300-tdep.c (analyze_dummy_frame): Use
7655         deprecated_set_frame_extra_info_hack.
7656         * mcore-tdep.c (analyze_dummy_frame): Ditto.
7657
7658 2003-01-07  J. Brobecker  <brobecker@gnat.com>
7659
7660         * mdebugread.c (parse_symbol): Skip stProc entries which storage
7661         class is not scText. These do not define "real" procedures.
7662         (parse_partial_symbols): Likewise.
7663
7664 2003-01-06  Michael Snyder  <msnyder@redhat.com>
7665
7666         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
7667
7668 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
7669
7670         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
7671         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
7672         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
7673         deprecated_frame_xmalloc_with_cleanup.
7674         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
7675         deprecated_frame_xmalloc.
7676         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
7677         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
7678
7679 2003-01-06  Andrew Cagney  <cagney@redhat.com>
7680
7681         * x86-64-linux-tdep.c: Include "osabi.h".
7682         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
7683
7684         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
7685
7686 2003-01-06  Andrew Cagney  <cagney@redhat.com>
7687
7688         * MAINTAINERS (Target Instruction Set Architectures): Update
7689         arm-elf.  Can be built with -Werror, has been multiarched.
7690
7691         * value.h (unpack_long): Make buffer parameter constant.
7692         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
7693         * scm-lang.h (scm_parse): Ditto.
7694         * defs.h (extract_typed_address, extract_address): Ditto.
7695         (extract_long_unsigned_integer): Ditto.
7696         * inferior.h (unsigned_pointer_to_address): Ditto.
7697         (signed_pointer_to_address): Ditto.
7698         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
7699         * gdbarch.h, gdbarch.c: Regenerate.
7700         * findvar.c (extract_long_unsigned_integer): Update.
7701         (extract_address): Update.
7702         (extract_typed_address): Update.
7703         (unsigned_pointer_to_address): Update.
7704         * values.c (unpack_long): Update.
7705         (unpack_double): Update.
7706         (unpack_pointer): Update.
7707         (unpack_field_as_long): Update.
7708         * d10v-tdep.c (d10v_pointer_to_address): Update.
7709         * avr-tdep.c (avr_pointer_to_address): Update.
7710         * scm-lang.c (scm_unpack): Update.
7711         * findvar.c (signed_pointer_to_address): Update.
7712
7713 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
7714
7715         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
7716         since it is in i386-tdep.c.
7717
7718 2003-01-06  J. Brobecker  <brobecker@gnat.com>
7719
7720         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
7721         failure introduced in the previous change.
7722
7723 2003-01-05  Michael Chastain  <mec@shout.net>
7724
7725         * README: Remove references to deleted remote-*.c files:
7726         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
7727         remote-nrom.c, remote-os9k.c, remote-udi.c.
7728
7729 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
7730
7731         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
7732         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
7733         i386_get_longjmp_target.
7734
7735 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
7736
7737         * arm-tdep.c (prologue_cache): Change to a pointer.
7738         (_initialize_arm_tdep): Allocate prologue_cache.
7739         (check_prologue_cache): Update.
7740         (save_prologue_cache): Update.
7741         (arm_gdbarch_init): Update.
7742
7743 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
7744
7745         * stabsread.c (update_method_name_from_physname): Call complaint()
7746         instead of error.
7747
7748 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
7749
7750         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
7751         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
7752         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
7753
7754         * blockframe.c: Include "gdbcmd.h" and "command.h".
7755         (backtrace_below_main): New variable.
7756         (file_frame_chain_valid, func_frame_chain_valid)
7757         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
7758         (generic_func_frame_chain_valid): Remove functions.
7759         (frame_chain_valid, do_flush_frames_sfunc): New functions.
7760         (_initialize_blockframe): New function.
7761         * Makefile.in (blockframe.o): Update dependencies.
7762         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
7763         comment.  Call frame_chain_valid ().
7764         * frame.h: Remove old prototypes.  Add prototype for
7765         frame_chain_valid and update comments to match.
7766         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
7767         Remove old comment.
7768         * gdbarch.h: Regenerated.
7769         * gdbarch.c: Regenerated.
7770
7771         * alpha-tdep.c (alpha_gdbarch_init): Don't call
7772         set_gdbarch_frame_chain_valid.
7773         * avr-tdep.c (avr_gdbarch_init): Likewise.
7774         * cris-tdep.c (cris_gdbarch_init): Likewise.
7775         * frv-tdep.c (frv_gdbarch_init): Likewise.
7776         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7777         * i386-tdep.c (i386_svr4_init_abi): Likewise.
7778         (i386_nw_init_abi): Likewise.
7779         (i386_gdbarch_init): Likewise.
7780         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
7781         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
7782         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
7783         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
7784         * mips-tdep.c (mips_gdbarch_init): Likewise.
7785         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7786         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
7787         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7788         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7789         * s390-tdep.c (s390_gdbarch_init): Likewise.
7790         * sh-tdep.c (sh_gdbarch_init): Likewise.
7791         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
7792         * v850-tdep.c (v850_gdbarch_init): Likewise.
7793         * vax-tdep.c (vax_gdbarch_init): Likewise.
7794         * x86-64-tdep.c (x86_64_init_abi): Likewise.
7795
7796         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
7797         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
7798         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
7799         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
7800         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
7801         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
7802         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
7803         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
7804
7805 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
7806
7807         * Makefile.in (acconfig_h): Remove incorrect macro.
7808         (config_h): Define.
7809         (osabi.o): Update dependencies.
7810         * configure.tgt: Set gdb_osabi based on target triplet.
7811         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
7812         * configure: Regenerated.
7813         * config.in: Regenerated.
7814         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
7815         (GDB_OSABI_DEFAULT): Define if not already defined.
7816         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
7817         (set_osabi_string): New variables.
7818         (gdbarch_register_osabi): Add new OS ABI to
7819         gdb_osabi_available_names.
7820         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
7821         (set_osabi, show_osabi): New functions.
7822         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
7823
7824 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
7825
7826         * arch-utils.c (gdbarch_info_init): Set osabi to
7827         GDB_OSABI_UNINITIALIZED.
7828         * gdbarch.sh: Add osabi to struct gdbarch and to struct
7829         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
7830         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
7831         * gdbarch.c: Regenerated.
7832         * gdbarch.h: Regenerated.
7833         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
7834         there's no BFD.
7835         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
7836         * osabi.h (enum gdb_osabi): Move to defs.h.
7837         (gdbarch_init_osabi): Update prototype.
7838         * defs.h (enum gdb_osabi): Moved here.
7839         * Makefile.in: Update dependencies.
7840
7841         * alpha-tdep.h: Don't include "osabi.h".
7842         (struct gdbarch_tdep): Remove osabi member.
7843         * alpha-tdep.c: Include "osabi.h".
7844         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
7845         iterate over arches.  Update call to gdbarch_init_osabi.
7846         (alpha_dump_tdep): Don't dump osabi.
7847         * alpha-linux-tdep.c: Include "osabi.h".
7848         * alpha-osf1-tdep.c: Include "osabi.h".
7849         * alphafbsd-tdep.c: Include "osabi.h".
7850         * alphanbsd-tdep.c: Include "osabi.h".
7851
7852         * arm-tdep.h: Don't include "osabi.h".
7853         (struct gdbarch_tdep): Remove osabi member.
7854         * arm-tdep.c: Include "osabi.h".
7855         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
7856         iterate over arches.  Update call to gdbarch_init_osabi.
7857         (arm_dump_tdep): Don't dump osabi.
7858         * arm-linux-tdep.c: Include "osabi.h".
7859         * armnbsd-tdep.c: Include "osabi.h".
7860
7861         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
7862         Update call to gdbarch_init_osabi.
7863
7864         * i386-tdep.h: Don't include "osabi.h".
7865         (struct gdbarch_tdep): Remove osabi member.
7866         * i386-tdep.c: Include "osabi.h".
7867         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
7868         iterate over arches.  Update call to gdbarch_init_osabi.
7869         (i386_dump_tdep): Don't dump osabi.
7870         * i386-linux-tdep.c: Include "osabi.h".
7871         * i386-sol2-tdep.c: Include "osabi.h".
7872         * i386bsd-tdep.c: Include "osabi.h".
7873         * i386gnu-tdep.c: Include "osabi.h".
7874         * i386ly-tdep.c: Include "osabi.h".
7875         * i386nbsd-tdep.c: Include "osabi.h".
7876         * i386obsd-tdep.c: Include "osabi.h".
7877
7878         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
7879         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
7880         check osabi when iterating over arches.  Update call to
7881         gdbarch_init_osabi.
7882         (mips_dump_tdep): Don't dump osabi.
7883
7884         * ns32k-tdep.h: Don't include "osabi.h".
7885         (struct gdbarch_tdep): Remove.
7886         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
7887         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
7888         allocate tdep.  Update call to gdbarch_init_osabi.
7889         (ns32k_dump_tdep): Remove.
7890         (_initialize_ns32k_tdep): Update call to gdbarch_register.
7891         * ns32knbsd-tdep.c: Include "osabi.h".
7892
7893         * ppc-tdep.h: Don't include "osabi.h".
7894         (struct gdbarch_tdep): Remove osabi member.
7895         * rs6000-tdep.c: Include "osabi.h".
7896         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
7897         osabi when iterating over arches.  Update call to
7898         gdbarch_init_osabi.
7899         (rs6000_dump_tdep): Don't dump osabi.
7900         * ppc-linux-tdep.c: Include "osabi.h".
7901         * ppcnbsd-tdep.c: Include "osabi.h".
7902
7903         * sh-tdep.h: Don't include "osabi.h".
7904         (struct gdbarch_tdep): Remove osabi member.
7905         * sh-tdep.c: Include "osabi.h".
7906         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
7907         iterate over arches.  Update call to gdbarch_init_osabi.
7908         (sh_dump_tdep): Don't dump osabi.
7909         * shnbsd-tdep.c: Include "osabi.h".
7910
7911         * sparc-tdep.c: Include "osabi.h".
7912         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
7913         iterate over arches.  Update call to gdbarch_init_osabi.
7914         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
7915         tdep structure.
7916
7917         * vax-tdep.h: Don't include "osabi.h".
7918         (struct gdbarch_tdep): Remove.
7919         * vax-tdep.c: Include "osabi.h".
7920         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
7921         iterate over arches.  Don't allocate tdep.  Update call
7922         to gdbarch_init_osabi.
7923         (vax_dump_tdep): Remove.
7924         (_initialize_vax_tdep): Update call to gdbarch_register.
7925
7926 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
7927
7928         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
7929         entirely.
7930         (breakpoint_re_set_one): Don't fetch the value for a disabled
7931         watchpoint.
7932
7933 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
7934
7935         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
7936         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
7937         (COERCE_FLOAT_TO_DOUBLE): Remove.
7938         * gdbarch.c: Regenerate.
7939         * gdbarch.h: Regenerate.
7940         * Makefile.in: Remove value_h from gdbarch_h.
7941         * valops.c (coerce_float_to_double): New variable.
7942         (default_coerce_float_to_double): Remove.
7943         (standard_coerce_float_to_double): Remove.
7944         (value_arg_coerce): Use coerce_float_to_double.
7945         (_initialize_valops): Add "set coerce-float-to-double".
7946         * value.h (default_coerce_float_to_double): Remove prototype.
7947         (standard_coerce_float_to_double): Remove prototype.
7948
7949         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
7950         prototyped.
7951         * mdebugread.c (parse_symbol): Likewise.
7952         * stabsread.c (define_symbol): Mark all functions as prototyped.
7953
7954         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
7955         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
7956         set_gdbarch_coerce_float_to_double.
7957         * arm-tdep.c (arm_gdbarch_init): Likewise.
7958         * frv-tdep.c (frv_gdbarch_init): Likewise.
7959         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
7960         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
7961         * mips-tdep.c (mips_gdbarch_init): Likewise.
7962         (mips_coerce_float_to_double): Remove.
7963         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7964         (rs6000_coerce_float_to_double): Remove.
7965         * s390-tdep.c (s390_gdbarch_init): Likewise.
7966         * sh-tdep.c (sh_gdbarch_init): Likewise.
7967         (sh_coerce_float_to_double): Remove.
7968         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
7969         (sparc_coerce_float_to_double): Remove.
7970         * v850-tdep.c (v850_gdbarch_init): Likewise.
7971         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7972         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7973         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
7974         (hppa_coerce_float_to_double): Remove prototype.
7975         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7976
7977 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
7978
7979         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
7980
7981 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
7982
7983         Suggested by Stewart Brown <sb24@avaya.com>:
7984         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
7985         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
7986         (c_type_print_varspec_suffix): Likewise.
7987
7988 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
7989
7990         * configure.in: Don't set and AC_SUBST SUBDIRS.
7991         * configure: Regenerated.
7992
7993         * configure.in: Remove code dealing with shared libraries.
7994         * Makefile.in: Remove HLDFLAGS and HLDENV.
7995         * configure: Regenerated.
7996
7997 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
7998
7999         * frame.c (deprecated_frame_xmalloc): New function.
8000         (deprecated_set_frame_saved_regs_hack): New function.
8001         (deprecated_set_frame_extra_info_hack): New function.
8002         * frame.h (deprecated_frame_xmalloc): Declare.
8003         (deprecated_set_frame_saved_regs_hack): Declare.
8004         (deprecated_set_frame_extra_info_hack): Declare.
8005
8006 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
8007
8008         * configure.in: Move code that provides the --enable-gdbtk option
8009         right after the code that handles the --enable-tui option, and
8010         polish it somewhat.
8011         * configure: Regenerated.
8012
8013         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
8014         AC_CHECK_FUNCS and remove the old check for pread64.
8015         * acinclude.m4 (AC_GNU_SOURCE): New macro.
8016         * acconfig.h (_GNU_SOURCE): Add.
8017         (HAVE_PREAD64): Remove.
8018         * configure, aclocal.m4, config.in: Regenerated.
8019
8020 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
8021
8022         * alpha-tdep.c: Use get_frame_saved_regs.
8023         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8024         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
8025         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
8026         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
8027         * vax-tdep.c, xstormy16-tdep.c: Ditto.
8028
8029 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
8030
8031         * configure.in: Remove all use of the SUBDIRS variable; add
8032         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
8033         code providing the --enable-multi-ice option, and move it right in
8034         front of the code that checks whether gdbserver is supported.
8035         Polish that too.
8036         * configure: Regenerated.
8037         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
8038         @SUBDIRS@.
8039
8040 2003-01-03  Andrew Cagney  <cagney@redhat.com>
8041
8042         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
8043         * avr-tdep.c, cris-tdep.c: Ditto.
8044         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
8045         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8046         
8047 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
8048
8049         * configure.in: Remove --enable-netrom option.
8050         * configure: Regenerated.
8051
8052 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
8053
8054         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
8055         declaration for `struct re_pattern_buffer' instead.
8056         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
8057
8058 2003-01-03  J. Brobecker  <brobecker@gnat.com>
8059
8060         * mdebugread.c (parse_symbol): Count until the stEnd matching
8061         the structure name.
8062
8063 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
8064
8065         * configure.in: Remove --with-cpu option.
8066         subscripts.  Remove evil changequotes here.
8067         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
8068         * config.in, configure: Regenerated.
8069         
8070         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
8071         * configure.in: Cleanup section that sources GDB and BFD configure
8072         subscripts.  Remove evil changequotes here.
8073         * config.in, configure: Regenerated.
8074
8075 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
8076
8077         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
8078         frame accessor methods.
8079         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8080         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
8081         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
8082         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
8083         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8084         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
8085         * z8k-tdep.c: Ditto.
8086         
8087 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
8088
8089         * configure.in: Remove UI_OUT configuration code.
8090         * ada-lang.c: Update assuming UI_OUT is always true.
8091         * Makefile.in (UIOUT_CFLAGS): Remove.
8092         * configure: Regenerated.
8093         * TODO: Remove blurb about elimination of -DUI_OUT.
8094
8095         * configure.in: Move code that provides the --enable-gdbcli,
8096         --enable-gdbmi options right before the code that handles the
8097         --enable-tui option.  Polish a bit.
8098         * configure: Regenerated.
8099
8100         * configure.in: Rewrite check for GNU regex and the
8101         --without-included regex option, and move it into the "Checks for
8102         library functions" section.  This makes us use the system regex
8103         again by default on systems with version 2 of the GNU C library.
8104         This was apparently broken.
8105         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
8106         * acconfig.h (USE_INCLUDED_REGEX): Remove.
8107         * config.in, configure: Regenerated.
8108
8109         * configure.in: Move code that provides the --enable-tui option
8110         before the "Checks for libraries" section.  Polish the code
8111         somewhat and set need_curses to yes if we build the TUI.  Rewrite
8112         code that looks for a library providing termcap functionality to
8113         match more closely what's done in the Readline library, and move
8114         it into to the "Checks for libraries" section.
8115         * configure: Regenerated.
8116         * Makefile.in (TERMCAP): Remove variable.
8117         * config/i386/go32.mh (TERMCAP): Remove variable.
8118
8119 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
8120
8121         * MAINTAINERS: Mention gdb_mbuild.sh.
8122         * gdb_mbuild.sh: Rewrite.
8123
8124 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
8125
8126         * configure.in: Fix typo in last change.
8127         * config.in, configure: Regenerated.
8128
8129 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
8130
8131         * valarith.c (value_binop): Delete obsolete code and comments.
8132         * configure.host: Ditto.
8133         * buildsym.h (make_blockvector): Ditto.
8134         * buildsym.c (make_blockvector): Ditto.
8135         * defs.h (enum language): Ditto.
8136         (chill_demangle): Ditto.
8137         * elfread.c (elf_symtab_read): Ditto.
8138         * dwarfread.c (CHILL_PRODUCER): Ditto.
8139         (set_cu_language): Ditto.
8140         (handle_producer): Ditto.
8141         * expprint.c (print_subexp): Ditto.
8142         * gdbtypes.c (chill_varying_type): Ditto.
8143         * gdbtypes.h (builtin_type_chill_bool): Ditto.
8144         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
8145         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
8146         (chill_varying_type): Ditto.
8147         * language.h (_LANG_chill): Ditto.
8148         * language.c (binop_result_type, integral_type): Ditto.
8149         (character_type, string_type, structured_type): Ditto.
8150         (lang_bool_type, binop_type_check): Ditto.
8151         * stabsread.h (os9k_stabs): Ditto.
8152         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
8153         (define_symbol, read_type, read_struct_fields): Ditto.
8154         (read_array_type, read_enum_type, read_huge_number): Ditto.
8155         (read_range_type, start_stabs): Ditto.
8156         * symfile.c (init_filename_language_table): Ditto.
8157         (add_psymbol_with_dem_name_to_list): Ditto.
8158         * symtab.c (symbol_init_language_specific): Ditto.
8159         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
8160         * symtab.h (struct general_symbol_info): Ditto.
8161         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
8162         * typeprint.c (typedef_print): Ditto.
8163         * utils.c (fprintf_symbol_filtered): Ditto.
8164         * valops.c (value_cast, search_struct_field, value_slice): Delete
8165         obsolete code.
8166         (varying_to_slice): Delete function.
8167         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
8168         (varying_to_slice): Delete declaration.
8169         * MAINTAINERS: Update.
8170
8171 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
8172
8173         * configure.in: Reorganize "Checks for library functions section"
8174         a bit.  Remove check for `btowc' and `isascii' functions.
8175         * configure: Regenerated.
8176
8177         * acconfig.h (_MSE_INT_H): Remove.
8178         * configure.in: Create "Checks for header files" section, and move
8179         appropriate tests there.  Don't check for objlist.h, wchar.h,
8180         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
8181         misdetection fix.  Also add "Checks for types", "Checks for
8182         compiler characteristics" and "Checks for library functions"
8183         sections.
8184         * config.in, configure: Regenerated.
8185
8186         * configure.in: Create "Checks for programs" section, and move
8187         appropriate tests there.
8188
8189 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
8190
8191         * configure.in: Create "Checks for libraries" section, and move
8192         appropriate tests there.  Cleanup check for wctype in libw.  Use
8193         AC_SEARCH_LIBS to see whether we need libsocket.
8194         * configure: Regenerated.
8195
8196 For older changes see ChangeLog-2002
8197 \f
8198 Local Variables:
8199 mode: change-log
8200 left-margin: 8
8201 fill-column: 74
8202 version-control: never
8203 End: