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