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