2003-11-16 Andrew Cagney <cagney@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-11-16  Andrew Cagney  <cagney@redhat.com>
2
3         * config/mips/linux64.mt: Delete file.
4         * config/mips/tm-linux64.h: Delete file.
5         * config/mips/tm-mips64.h: Delete file.
6         * config/mips/embed64.mt: Delete file.
7         * config/djgpp/fnchange.lst: Update.
8         * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
9         mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
10         * config/mips/tm-irix6.h: Update copyright.  Include
11         "mips/tm-mips.h" instead of "mips/tm-mips64.h".
12         * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
13         "OP_LDGPR".
14
15 2003-11-15  Andrew Cagney  <cagney@redhat.com>
16
17         * mips-tdep.c (mips_register_type): Simplify.  Eliminate reference
18         to MIPS_REGISTER_TYPE.  Make integer registers signed.  Make IRIX
19         n32 registers 64 bit.
20         (mips_register_raw_size, mips_register_byte): For pseudo
21         registers, use the register's pseudo size and not the
22         corresponding raw register's size.
23         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
24         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
25         * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
26         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
27
28 2003-11-15  Andrew Cagney  <cagney@redhat.com>
29
30         * mips-tdep.c (struct gdbarch_tdep): Delete member
31         gdb_target_is_mips64.
32         (GDB_TARGET_IS_MIPS64): Delete macro.
33         (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
34         (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
35         (mips_addr_bits_remove): Simplify.
36
37         * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
38         register_size.
39
40         Replace MIPS_REGSIZE with mips_regsize.
41         * mips-tdep.c (mips_regsize): New function.
42         * mips-tdep.h (mips_regsize): Declare.
43         * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
44         (SIZEOF_STRUCT_REG): Update.
45         * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
46         (mipsnbsd_fill_reg): Update.
47         (mipsnbsd_supply_fpreg): Update.
48         (mipsnbsd_fill_fpreg): Update.
49         (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
50         * mips-tdep.c (mips_register_raw_size): Update.
51         (mips_register_type): Update.
52         (SIGFRAME_BASE): Update.
53         (SIGFRAME_PC_OFF): Update.
54         (SIGFRAME_REGSAVE_OFF): Update.
55         (SIGFRAME_FPREGSAVE_OFF): Update.
56         (SIGFRAME_REG_SIZE): Update.
57         (mips32_heuristic_proc_desc): Update.
58         (print_gp_register_row): Update.
59         (mips_dump_tdep): Do not print MIPS_REGSIZE.
60         * irix5-nat.c (supply_gregset): Update.
61         (fetch_core_registers): Update.
62         * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
63         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
64         * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
65         (MIPS_REGISTER_BYTE): Update.
66         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
67
68 2003-11-15  Andrew Cagney  <cagney@redhat.com>
69
70         * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
71         USE_REGISTER_NOT_ARG.
72         * stabsread.c (define_symbol): Update.
73
74 2003-11-15  Andrew Cagney  <cagney@redhat.com>
75
76         * bcache.h (deprecated_bcache): Declare.
77         (bcache): Make returned buffer constant.
78         * bcache.c (deprecated_bcache): New function.
79         (bcache_data): New function.
80         (bcache): Call bcache data.
81         * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
82         (add_psymbol_with_dem_name_to_list): Ditto.
83
84 2003-11-15  Mark Kettenis  <kettenis@gnu.org>
85
86         * glibc-tdep.h (struct gdbarch): Declare opaque.
87         (glibc_skip_solib_resolver): Adjust prototype.
88         * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
89         * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
90         (arm_linux_init_abi): Set skip_solib_resolver.
91         * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
92         (i386_linux_init_abi): Set skip_solib_resolver.
93         * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
94         (arm_linux_skip_solib_resolver): Remove prototype.
95         * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
96         (i386_linux_skip_solib_resolver): Remove prototype.
97
98 2003-11-14  Mark Kettenis  <kettenis@gnu.org>
99
100         * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
101         function.
102         * gdbarch.c, gdbarch.h: Regenerate.
103         * infrun.c (handle_inferior_event): Call
104         gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
105         * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
106         definition.
107         * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
108         prototype.
109
110 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
111
112         * libunwind-frame.c: New file.
113         * libunwind-frame.h: New file.
114         * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
115         * configure.in: Add --with-libunwind option support.  Define
116         HAVE_LIBUNWIND if libunwind support selected / defaulted.  
117         Also check for libunwind.h and libunwind-ia64.h headers.
118         * configure: Regenerated.
119         * Makefile.in: Add support for libunwind-frame.o.
120         * config.in: Regenerated.
121
122 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
123  
124         * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
125         set up the ia64 linux native target method for getting the kernel
126         unwind table.
127         * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
128         * inftarg.c (child_xfer_partial): Enable section of code to
129         handle TARGET_OBJECT_UNWIND_TABLE.
130         * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
131
132 2003-11-14  Ian Lance Taylor  <ian@wasabisystems.com>
133
134         * config/arm/nbsd.mt (TM_FILE): Define.
135         * config/arm/tm-nbsd.h: New file.
136
137 2003-11-14  Andrew Cagney  <cagney@redhat.com>
138
139         * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
140         * ppc-sysv-tdep.c: Include "objfiles.h".
141         (ppc64_sysv_abi_push_dummy_call): Provide the
142         the FN's objfile when looking for the descriptor.
143
144         * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
145         "name_of_malloc" to ".malloc".
146
147 2003-11-13  Mark Kettenis  <kettenis@gnu.org>
148
149         * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
150
151 2003-11-13  David Carlton  <carlton@kealia.com>
152
153         * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
154
155 2003-11-13  Andrew Cagney  <cagney@redhat.com>
156
157         * arch-utils.h (selected_architecture_name): Declare.
158         (selected_byte_order): Declare.
159         * arch-utils.c (selected_byte_order): New function.
160         (selected_architecture_name): New function.
161         (target_architecture_auto): Make static.
162         (set_architecture_string): Make static.
163         (target_byte_order): Make static.
164         (target_byte_order_auto): Make static.
165         * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
166         non-multi-arch definition.
167         (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
168         (target_byte_order, target_architecture): Delete declaration.
169         (target_byte_order_auto, target_architecture_auto): Ditto.
170         * gdbarch.h: Re-generate.
171         * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
172         "selected_byte_order".
173         
174 2003-11-13  Andrew Cagney  <cagney@redhat.com>
175
176         * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
177
178 2003-11-13  Jim Blandy  <jimb@redhat.com>
179
180         * cp-namespace.c: Doc fix.
181
182 2003-11-12  Michael Snyder  <msnyder@redhat.com>
183
184         * sh64_tdep.c: Regularize some names.
185         (sh_sh64_register_name): Rename to sh64_register_name.
186         (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
187         (sh_sh64_register_byte): Rename to sh64_register_byte.
188         (sh_sh64_build_float_register_type): 
189         Rename to sh64_build_float_register_type.
190         (sh_sh64_register_convert_to_virtual): 
191         Rename to sh64_register_convert_to_virtual.
192         (sh_sh64_register_convert_to_raw): 
193         Rename to sh64_register_convert_to_raw.
194
195         * sh64-tdep.c (translate_insn_rn, is_media_pseudo, 
196         sh64_media_reg_base_num, sh64_compact_reg_base_num, 
197         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
198         sh64_extract_return_value, sh64_show_media_regs, 
199         sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type, 
200         sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
201         sh64_pseudo_register_read, sh64_pseudo_register_write, 
202         sh64_do_pseudo_register, sh_compact_print_registers_info):
203         Delete unused variable 'tdep'.
204
205         * sh64-tdep.c: Coding standard and spelling comment fixes.
206         (sh64_extract_return_value): Replace deprecated_store_floating
207         with store_typed_floating.
208         (sh_sh64_register_convert_to_raw): Replace 
209         deprecated_store_floating with store_typed_floating.
210         (sh_sh64_register_virtual_type): Convert to sh64_register_type.
211         (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
212         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
213         sh64_extract_struct_value_address, sh64_pop_frame, 
214         sh64_extract_return_value, sh64_store_return_value,
215         sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read, 
216         sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
217         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
218         Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
219         (sh64_gdbarch_init): Don't set deprecated_register_bytes,
220         deprecated_register_virtual_type, deprecated_register_raw_size,
221         deprecated_max_register_raw_size, or 
222         deprecated_max_register_virtual_size.  Instead, just set
223         gdbarch_register_type.
224         (sh_sh64_register_raw_size): Delete.
225         (sh_sh64_register_virtual_size): Delete.
226
227 2003-11-12  Daniel Jacobowitz <drow@mvista.com>
228
229         * dwarf2read.c (struct dwarf2_cu): New type.
230
231         (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
232         dwarf2_cu structure to pass down.
233
234         (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
235         (add_partial_enumeration, locate_pdi_sibling, process_die)
236         (read_file_scope, read_func_scope)
237         (read_lexical_block_scope, dwarf2_get_pc_bounds)
238         (dwarf2_add_field, dwarf2_attach_fields_to_type)
239         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
240         (read_structure_scope, read_enumeration, read_array_type)
241         (read_common_block, read_namespace, read_tag_pointer_type)
242         (read_tag_ptr_to_member_type, read_tag_reference_type)
243         (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
244         (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
245         (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
246         (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
247         (read_full_die. read_attribute_value, read_attribute)
248         (read_address, dwarf_decode_line_header, dwarf_decode_lines)
249         (var_decode_location, new_symbol, dwarf2_const_value, die_type)
250         (die_containing_type, type_at_offset, tag_type_to_type)
251         (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
252         (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
253
254 2003-11-12  Daniel Jacobowitz  <drow@mvista.com>
255
256         PR breakpoints/1450
257         * breakpoint.c (insert_bp_location): Fix a logic error by returning
258         0 after a catchpoint fails.
259
260 2003-11-11  Michael Chastain  <mec.gnu@mindspring.com>
261
262         * mips-tdep.c (msymbol_size): Delete.
263
264 2003-11-07  Michael Chastain  <mec@shout.net>
265
266         * symtab.h (struct minimal_symbol): Add size.
267         * dbxread.c: Use it.
268         * elfread.c: (record_minimal_symbol_and_info): Do not use info.
269         Rename to record_minimal_symbol.
270         (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
271         * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
272         (install_minimal_symbols): Ditto.
273         * objfiles.c (terminate_minimal_symbol_table): Ditto.
274         * arm-tdep.c: Delete unused MSYMBOL_SIZE.
275         * m68hc11-tdep.c: Ditto.
276         * mips-tdep.c: Ditto.
277         * sh64-tdep.c: Ditto.
278
279 2003-11-10  Michael Chastain  <mec.gnu@mindspring.com>
280
281         * MAINTAINERS: Change my e-mail address.
282
283 2003-11-10  Andrew Cagney  <cagney@redhat.com>
284
285         * gdbarch.sh (return_value): Replace "inval" and "outval" with
286         "readbuf" and "writebuf".
287         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
288         * d10v-tdep.c (d10v_return_value): Ditto.
289         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
290         (ppc_sysv_abi_broken_return_value): Ditto.
291         (ppc64_sysv_abi_return_value): Ditto.
292         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
293         (ppc_sysv_abi_return_value): Ditto.
294         (ppc_sysv_abi_broken_return_value): Ditto.
295         (ppc64_sysv_abi_return_value): Ditto.
296         * values.c (register_value_being_returned): Update call.
297         * stack.c (return_command): Update call.
298         * gdbarch.h, gdbarch.c: Re-generate.
299
300         * target.h (struct target_ops): Order xfer buffer parameters "read
301         write" not "write read".
302         * bfd-target.c (target_bfd_xfer_partial): Update.
303         * remote.c (remote_xfer_partial): Update.
304         * inftarg.c (child_xfer_partial): Update.
305         * target.c (default_xfer_partial): Update.
306         (target_read_partial, target_write_partial): Update.
307         (debug_to_xfer_partial): Update.
308
309         * arch-utils.h, arch-utils.c: Fix typo in comment.
310
311         * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
312         (gdbarch_from_bfd): Call gdbarch_find_by_info.
313         (set_gdbarch_from_file): Call
314         "deprecated_current_gdbarch_select_hack".
315
316 2003-11-09  Andrew Cagney  <cagney@redhat.com>
317
318         * arch-utils.c (gdbarch_update_p): New function.
319         * gdbarch.sh (gdbarch_update_p): Delete function.
320         (find_arch_by_info, gdbarch_find_by_info): New functions.
321         (deprecated_current_gdbarch_select_hack): New function.
322         * gdbarch.c: Re-generate.
323
324         * gdbarch.sh (clear_gdbarch_swap): Delete function.
325         (swapout_gdbarch_swap): Delete function.
326         (swapin_gdbarch_swap): Delete function.
327         (init_gdbarch_swap): Delete function.
328         (initialize_non_multiarch): Delete function.
329         (current_gdbarch_swap_in_hack): New function.
330         (current_gdbarch_swap_out_hack): New function.
331         (current_gdbarch_swap_init_hack): New function.
332         * gdbarch.c: Re-generate.
333
334         * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
335         parameter to "current_gdbarch".  Add comment explaining why.
336         (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
337         (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
338         * gdbarch.c: Re-generate.
339         
340         * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
341         * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
342         * config/s390/xm-linux.h: Delete file.
343         * config/m88k/xm-delta88v4.h: Delete stray.
344
345         * Makefile.in (arch-utils.o): Update dependencies.
346         * arch-utils.c: Include "osabi.h".
347         (gdbarch_info_fill): New function.
348         * arch-utils.h (gdbarch_info_fill): Declare.
349         * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
350         * gdbarch.c: Re-generate.
351
352 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
353             David S. Miller  <davem@redhat.com>
354
355         * glibc-tdep.c, glibc-tdep.h: New files.
356         * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
357         * config/i386/linux.mt (TDEPFILES): Likewise.
358         * i386-linux-tdep.c (glibc-tdep.h): Include.
359         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
360         (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
361         * arm-linux-tdep.c (glibc-tdep.h): Include.
362         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
363         (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
364         * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
365         (glibc_tdep_h): Define.
366         (glibc-tdep.o): Add dependencies.
367         (arm-linux-tdep.o): Update dependencies.
368         (i386-linux-tdep.o): Likewise.
369
370 2003-11-09  Andrew Cagney  <cagney@redhat.com>
371
372         * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
373         * config/mips/nm-irix6.h: Delete file.
374         * config/mips/nm-linux.h: Update copyright.
375         (MIPS_GNULINUX_TARGET): Delete macro.
376         * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
377         * config/mips/xm-irix6.h: Delete file.
378         * config/mips/linux.mh (XM_FILE): Delete definition.
379         * config/mips/xm-linux.h: Delete file.
380
381 2003-11-09  Andrew Cagney  <cagney@redhat.com>
382
383         * d10v-tdep.c (d10v_return_value): New function.
384         (d10v_use_struct_convention): Delete function.
385         (d10v_store_return_value): Delete function.
386         (d10v_extract_struct_value_address): Delete function.
387         (d10v_gdbarch_init): Set "return_value" instead of
388         "extract_return_value", "store_return_value",
389         "extract_struct_value_address", and "use_struct_convention".
390         (RET1_REGNUM): Delete const.
391
392 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
393
394         From David S. Miller  <davem@redhat.com>:
395         * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
396         * gdbarch.c, gdbarch.h: Regenerated.
397         * arch-utils.c (generic_skip_solib_resolver): New function.
398         * arch-utils.h (generic_skip_solib_resolver): New prototype.
399         * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
400
401 2003-11-07  Andrew Cagney  <cagney@redhat.com>
402
403         * top.c (print_gdb_version): Replace STREQ with strcmp.
404         * valops.c (value_struct_elt_for_reference): Ditto.
405         (value_struct_elt_for_reference): Ditto.
406         * symtab.c (gdb_mangle_name): Ditto.
407         (find_line_symtab): Ditto.
408         * symmisc.c (maintenance_print_symbols): Ditto.
409         * symfile.c (symbol_file_command): Ditto.
410         * stabsread.c (define_symbol, read_type): Ditto.
411         (cleanup_undefined_types, scan_file_globals): Ditto.
412         * solib.c (solib_map_sections): Ditto.
413         * solib-svr4.c (bfd_lookup_symbol): Ditto.
414         * rs6000-tdep.c (skip_prologue): Ditto.
415         * p-valprint.c (pascal_value_print): Ditto.
416         (pascal_object_is_vtbl_ptr_type): Ditto.
417         * objfiles.c (in_plt_section): Ditto.
418         * minsyms.c (lookup_minimal_symbol): Ditto.
419         (compact_minimal_symbols): Ditto.
420         (find_solib_trampoline_target): Ditto.
421         * mdebugread.c (parse_type): Ditto.
422         * language.c (set_language_command): Ditto.
423         (set_type_command, set_range_command): Ditto.
424         * f-lang.c (add_common_block): Ditto.
425         (add_common_block): Ditto.
426         (find_first_common_named): Ditto.
427         (patch_all_commons_by_name): Ditto.
428         * elfread.c (elf_locate_sections): Ditto.
429         (elf_locate_sections): Ditto.
430         (elfstab_offset_sections): Ditto.
431         * dwarf2read.c (dwarf2_locate_sections): Ditto.
432         * dbxread.c (add_old_header_file): Ditto.
433         (find_corresponding_bincl_psymtab): Ditto.
434         (read_dbx_symtab, process_one_symbol): Ditto.
435         * coffread.c (patch_opaque_types): Ditto.
436         * cli/cli-decode.c (delete_cmd): Ditto.
437         * cli/cli-cmds.c (pwd_command, list_command): Ditto.
438         * c-typeprint.c (c_type_print_base): Ditto.
439         * breakpoint.c (bpstat_stop_status): Ditto.
440         (clear_command, breakpoint_re_set_one): Ditto.
441
442 2003-11-07  Andrew Cagney  <cagney@redhat.com>
443
444         * bcache.h: Update copyright.  Add comments on bcache VS hashtab.
445         * bcache.c (struct bstring): Make "length" an unsigned short, add
446         "half_hash".
447         (struct bcache): Add "half_hash_error_count".
448         (bcache): Compute and save the "half_hash".  Compare the
449         "half_hash" before comparing the length.  Update
450         half_hash_error_count.
451
452 2003-11-07  Andrew Cagney  <cagney@redhat.com>
453
454         * inftarg.c (child_xfer_partial): New function
455         (init_child_ops): Set "to_xfer_partial".
456
457 2003-11-07  Andrew Cagney  <cagney@redhat.com>
458
459         * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
460         set "return_value" instead of "use_struct_convention".
461         (ppc_linux_use_struct_convention): Delete function.
462         (ppc_linux_return_value): New function.
463         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
464         (ppc_sysv_abi_broken_return_value): New function.
465         (do_ppc_sysv_return_value): Add "gdbarch" parameter.
466         (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
467         static.
468         (ppc_sysv_abi_extract_return_value): Delete function.
469         (ppc_sysv_abi_broken_extract_return_value): Delete function.
470         (ppc_sysv_abi_store_return_value): Delete function.
471         (ppc_sysv_abi_broken_store_return_value): Delete function.
472         (ppc_sysv_abi_use_struct_convention): Delete function.
473         (ppc64_sysv_abi_use_struct_convention): Delete function.
474         (ppc64_sysv_abi_extract_return_value): Delete function.
475         (ppc64_sysv_abi_store_return_value): Delete function.
476         * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
477         (ppcnbsd_init_abi): Set "return_value", instead of
478         "use_struct_convention", "extract_return_value", and
479         "store_return_value".
480         (ppcnbsd_use_struct_convention): Delete function.
481         * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
482         (ppc_sysv_abi_return_value): Declare.
483         (ppc_sysv_abi_broken_return_value): Declare.
484         (ppc_sysv_abi_use_struct_convention): Delete.
485         (ppc_sysv_abi_store_return_value): Delete.
486         (ppc_sysv_abi_extract_return_value): Delete.
487         (ppc_sysv_abi_broken_store_return_value): Delete.
488         (ppc_sysv_abi_broken_extract_return_value): Delete.
489         (ppc64_sysv_abi_use_struct_convention): Delete.
490         (ppc64_sysv_abi_extract_return_value): Delete.
491         (ppc64_sysv_abi_store_return_value): Delete.
492         * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
493         set "return_value" instead of "extract_return_value",
494         "store_return_value", and "use_struct_convention".
495
496 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
497
498         * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
499
500         * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
501         fscanf.
502
503 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
504
505         * fbsd-proc.c: Fix formatting.
506
507 2003-11-06  Kevin Buettner  <kevinb@redhat.com>
508
509         * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
510         Define.
511         (new_variant): Set name for iacc0_regnum.
512         (frv_register_name): Accommodate pseudo-registers.
513         (frv_register_type): Add case for iacc0_regnum.
514         (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
515         (frv_gdbarch_init): Set number of pseudo registers.  Establish
516         pseudo-register read/write methods.
517
518 2003-11-06  Andrew Cagney  <cagney@redhat.com>
519
520         * valops.c (destructor_name_p): Replace STREQN with strncmp.
521         * top.c (command_line_input): Ditto.
522         * objc-exp.y (yylex): Ditto.
523         * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
524         * jv-exp.y (yylex): Ditto.
525         * f-exp.y (yylex): Ditto.
526         * event-top.c (command_line_handler): Ditto.
527         * environ.c (get_in_environ): Ditto.
528         (set_in_environ): Ditto.
529         * dwarfread.c (handle_producer): Ditto.
530         * dbxread.c (process_one_symbol): Ditto.
531         * c-typeprint.c (c_type_print_base): Ditto.
532         * c-exp.y (yylex): Ditto.
533
534 2003-11-06  Andrew Cagney  <cagney@redhat.com>
535             Jeff Johnston  <jjohnstn@redhat.com>
536
537         * target.c (add_target): Only set "to_xfer_partial" when NULL.
538         (init_dummy_target): Set "to_xfer_partial".
539
540 2003-11-06  Andrew Cagney  <cagney@redhat.com>
541
542         * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
543         REGISTER_CONVENTION.
544
545 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
546
547         * breakpoint.c (insert_bp_location, allocate_bp_location): Make
548         static.
549
550 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
551
552         * breakpoint.c (remove_breakpoint): Take an bp_location
553         instead of a breakpoint argument.  Check the bp_location's type.
554         Fix a reversed condition for hardware breakpoints.
555
556         (insert_bp_location): Update call to remove_breakpoint.
557         (remove_breakpoints): Likewise.  Use ALL_BP_LOCATIONS.
558         (remove_hw_watchpoints): Likewise.
559         (reattach_breakpoints): Likewise.
560         (detach_breakpoints): Likewise.
561         (delete_breakpoint): Likewise.
562
563 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
564
565         * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
566         (beakpoint_init_inferior): Likewise.
567         (breakpoint_here_p): Likewise.  Only check addresses for software
568         or hardware breakpoints.
569         (breakpoint_inserted_here_p): Likewise.
570         (breakpoint_thread_match): Likewise.  Correct comment.
571         (bpstat_have_active_hw_watchpoints): Likewise.
572         (check_duplicates): Likewise.
573
574 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
575
576         * breakpoints.c (insert_bp_location): New function, broken out
577         from insert_breakpoints.  Work on an bp_location instead of a
578         breakpoint.
579         (insert_breakpoints): Use it.
580
581 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
582
583         * breakpoint.h (struct bp_location): Add section.
584         (struct breakpoint): Remove section.
585         * breakpoint.c (insert_breakpoints, remove_breakpoint)
586         (breakpoint_here_p, breakpoint_inserted_here_p)
587         (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
588         (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
589         (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
590         section through loc.
591
592 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
593
594         * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
595         instead of ALL_BREAKPOINTS.  Check for software breakpoints only.
596
597 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
598
599         * breakpoint.c (allocate_bp_location): Take bpt and bp_type
600         arguments.  Initialize owner and type for the new breakpoint
601         location item.
602         (set_raw_breakpoint): Update call to allocate_bp_location.
603
604 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
605
606         * breakpoint.h (struct bp_location): Add a chain pointer.
607         * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
608         macros.
609         (bp_location_chain): New variable.
610         (allocate_bp_location): New function.
611         (set_raw_breakpoint): Use it.
612         (delete_breakpoint): Remove ->loc from the bp_location_chain.
613
614 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
615
616         * breakpoint.h (enum bp_loc_type, struct bp_location): New.
617         (struct breakpoint): Remove address, shadow_contents, inserted,
618         requested_address, and duplicate.  Add a struct bp_location.
619         * breakpoint.c (condition_command, read_memory_nobpt)
620         (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
621         (reattach_breakpoints, update_breakpoints_after_exec)
622         (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
623         (breakpoint_init_inferior, breakpoint_here_p)
624         (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
625         (breakpoint_thread_match, bpstat_stop_status)
626         (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
627         (describe_other_breakpoints, check_duplicates)
628         (make_breakpoint_permanent, create_thread_event_breakpoint)
629         (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
630         (set_longjmp_resume_breakpoint, mention, create_breakpoints)
631         (watch_command_1, print_one_exception_catchpoint)
632         (clear_command, breakpoint_re_set_one): Adjust member accesses to
633         use the breakpoint's ->loc.
634         (set_raw_breakpoint): Likewise.  Initialize ->loc.
635         (delete_breakpoint): Likewise.  Free ->loc.
636
637 2003-11-05  Andrew Cagney  <cagney@redhat.com>
638
639         * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
640         macro.
641         * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
642         * config/i386/tm-cygwin.h
643         (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
644         * config/powerpc/tm-linux.h
645         (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
646         (at_subroutine_call_instruction_target): Delete declaration.
647         * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
648         * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
649         * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
650
651         * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
652         "struct bfd_section" and "struct bfd".
653         * target.h (struct section_table): Ditto.
654         * rs6000-nat.c (xcoff_relocate_core): Ditto.
655         * solib-svr4.c (elf_locate_base): Ditto.
656         * pa64solib.c (dld_cache_t): Ditto.
657         * objfiles.h (struct obj_section): Ditto.
658         * objfiles.c (add_to_objfile_sections): Ditto.
659         * exec.c (bfdsec_to_vmap): Ditto.
660         (add_to_section_table): Ditto.
661         (build_section_table): Ditto.
662         * corelow.c (get_core_register_section): Ditto.
663         * coffread.c (find_linenos): Ditto.
664         * elfread.c (elf_interpreter): Delete #if0'd function.
665
666         * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
667         * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
668         * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
669         * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
670
671         * arch-utils.h (generic_cannot_extract_struct_value_address):
672         Delete declaration.
673         * wince.c (_initialize_wince): Fix multi-line string.
674         * ia64-tdep.c (floatformat_valid): Convert to ISO C.
675
676 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
677
678         * top.c (execute_command): Fix broken logic for command execution
679         while inferior is running in async mode.
680
681 2003-11-06  Mark Kettenis  <kettenis@gnu.org>
682
683         * dwarf2-frame.c (execute_cfa_program): Mark register as
684         REG_SAVED_REG for DW_CFA_register opcode.
685
686 2003-11-05  Mark Kettenis  <kettenis@gnu.org>
687
688         * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
689         %rsp, %rip and %eflags to match ABI-change.
690
691 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
692
693         * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
694         (ia64_gdbarch_init): Don't bother calculating the os.  
695         Instead use the gdbarch_info struct and look at the osabi field.  
696         Also use gdbarch_list_lookup_by_info() to look for a 
697         candidate gdbarch. 
698
699 2003-11-05  Kevin Buettner  <kevinb@redhat.com>
700
701         * frv-tdep.c (frv_register_byte): Delete.
702         (frv_extract_return_value, frv_store_return_value)
703         (frv_extract_struct_value_address): Don't call frv_register_byte().
704         Convert to non-deprecated form.
705         (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
706         Convert calls to set_gdbarch_deprecated_extract_return_value(),
707         set_gdbarch_deprecated_store_return_value(), and
708         set_gdbarch_deprecated_extract_struct_value_address() into
709         non-deprecated forms.
710
711 2003-11-05  Andrew Cagney  <cagney@redhat.com>
712
713         * mips-tdep.c (mips_dump_tdep): Do not print
714         PRINT_EXTRA_FRAME_INFO.
715         * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
716         Rename PRINT_EXTRA_FRAME_INFO.
717         * mips-tdep.c (mips_print_extra_frame_info): Delete function.
718         * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
719         (mips_print_extra_frame_info): Delete declaration.
720         * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
721
722 2003-11-05 Elena Zannoni  <ezannoni@redhat.com>
723
724         * coffread.c (coff_symtab_read): Remove passing of info parameter
725         to prim_record_minimal_symbol_and_info.
726
727 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
728
729         * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
730         (decode_base_type): Delete ifdeffed out code.
731
732 2003-11-04  Andrew Cagney  <cagney@redhat.com>
733
734         * symtab.c (find_active_alias): Delete function.
735         (lookup_block_symbol): Delete alias code.
736         * stabsread.c (resolve_live_range): Delete function.
737         (add_live_range): Delete function.
738         (resolve_symbol_reference): Delete function.
739         (define_symbol): Delete live range and alias code.
740         (scan_file_globals): Delete alias code.
741         * symtab.h (SYMBOL_RANGES): Delete macro.
742         (struct range_list): Delete structure.
743         (struct symbol): Delete field "ranges".
744         (SYMBOL_ALIASES): Delete macro.
745         (struct alias_list): Delete structure.
746         (struct symbol): Delete field "aliases".
747
748 2003-11-04  Michael Snyder  <msnyder@redhat.com>
749
750         * MAINTAINERS: Remove myself as owner of breakpoints and 
751         of sparc/solaris.
752
753 2003-11-03  Corinna Vinschen  <vinschen@redhat.com>
754
755         * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
756         (sh_sh4al_dsp_register_name): Ditto.
757         (sh4_nofpu_show_regs): Ditto.
758         (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
759         bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
760
761 2003-11-03  Andrew Cagney  <cagney@redhat.com>
762
763         * bcache.c: Include "gdb_assert.h".
764         (struct bcache): Add fields "expand_count" and
765         "expand_hash_count".
766         (expand_hash_table): Update the expand counts.
767         (print_bcache_statistics): Use XCALLOC, not alloca.  Print stats
768         on object sizes and hashes.
769         * Makefile.in (bcache.o): Update dependencies.
770
771 2003-11-03  Andrew Cagney  <cagney@redhat.com>
772
773         * exec.c (xfer_memory): Eliminate xfer_fn.
774
775 2003-10-31  Kevin Buettner  <kevinb@redhat.com>
776
777         * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
778         (opcodes/frv-desc.h): Include.
779         (iacc0h_regnum, iacc0l_regnum): Define.
780         (last_spr_regnum, frv_num_regs): Update.
781         (new_variant): Don't supply default names for holes in the SPRs.
782         Supply names for iacc0h_regnum and iacc0l_regnum.
783         (frv_register_type): Use symbolic constants first_fpr_regnum and
784         last_fpr_regnum instead of hardcoded constants 64 and 127.  Use
785         builtin_type_int instead of builtin_type_int32.
786         (frv_register_sim_regno): New function.
787         (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
788         * Makefile.in (gdb_sim_frv_h): Define.
789         (frv-tdep.o): Update dependencies.
790
791 2003-10-31  Andrew Cagney  <cagney@redhat.com>
792
793         * avr-tdep.c (avr_frame_this_id): Do not call
794         deprecated_inside_entry_file.
795         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
796         * m32r-tdep.c (m32r_frame_this_id): Ditto.
797         * d10v-tdep.c (d10v_frame_this_id): Ditto.
798         * arm-tdep.c (arm_prologue_this_id): Ditto.
799         * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
800
801 2003-10-31  Jim Blandy  <jimb@redhat.com>
802
803         * elfread.c (elf_symtab_read): Allocate correct number of tail
804         elements to sectinfo structure.  (Fix from Woody LaRue.)
805
806 2003-10-31  Andrew Cagney  <cagney@redhat.com>
807
808         * stack.c (return_command): Use get_frame_type, instead of
809         CALL_DUMMY_HAS_COMPLETED.
810         * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
811         * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
812
813 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
814
815         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
816         explicitly specify size of array.
817         (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
818         TDEP->sc_num_regs.
819
820 2003-10-31  Andrew Cagney  <cagney@redhat.com>
821
822         * s390-tdep.c (s390_cannot_extract_struct_value_address): New
823         function.
824         (s390_gdbarch_init): Set extract_struct_value_address.
825         * arch-utils.c (generic_cannot_extract_struct_value_address):
826         Delete function.
827         * arch-utils.h (generic_cannot_extract_struct_value_address):
828         Delete definition.
829
830 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
831
832         * i386-linux-nat.c (fetch_core_registers): Remove.
833         (linux_elf_core_fns): Remove.
834         (_initialize_i386_linux_nat): Remove.
835
836 2003-10-31  Andrew Cagney  <cagney@redhat.com>
837
838         * solib-svr4.c: Update copyright.  Include "bfd-target.h" and
839         "exec.h".
840         (exec_entry_point): New function.
841         (enable_break): Create a "tmp_bfd_target", use that and
842         entry_point_address when computing the relocation offset.
843         (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
844         * Makefile.in (solib-svr4.o): Update dependencies.
845
846 2003-10-31  Andrew Cagney  <cagney@redhat.com>
847
848         * defs.h (XZALLOC): Define.
849         * target.h (struct target_ops): Add "to_data";
850         * bfd-target.h, bfd-target.c: New files.
851         * Makefile.in (SFILES): Add "bfd-target.c".
852         (COMMON_OBS): Add "bfd-target.o".
853         (bfd-target.o): Specify dependencies.
854         (bfd_target_h): Define.
855         * defs.h (XZALLOC): Define.
856
857 2003-10-31  Andrew Cagney  <cagney@redhat.com>
858
859         * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
860         adjust_breakpoint_address.
861         * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
862         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
863         * ppc-sysv-tdep.c: Include "target.h".  Update copyright.
864         (ppc64_sysv_abi_adjust_breakpoint_address): New function.
865
866 2003-10-31  Andrew Cagney  <cagney@redhat.com>
867
868         * target.h (struct target_ops): Replace "to_read_partial" and
869         "to_write_partial" with "to_xfer_partial".  Update comments.
870         * target.c (debug_to_write_partial): Delete function.
871         (debug_to_xfer_partial): Replace debug_to_read_partial.
872         (add_target, update_current_target, setup_target_debug): Set
873         "to_xfer_partial" instead of "to_read_partial" and
874         "to_write_partial".
875         (default_xfer_partial): Replace "default_write_partial".
876         (default_read_partial): Delete.
877         (target_read_partial, target_write_partial): Call
878         "to_xfer_partial".
879         * remote.c (init_remote_ops): Set "to_xfer_partial".
880         (init_remote_async_ops): Ditto.
881         (remote_xfer_partial): Replace "remote_read_partial".
882
883 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
884
885         * i386-tdep.c (i386_supply_fpregset): Support floating-point
886         registers in `fxsave' format.
887         (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
888
889 2003-10-30  Mark Kettenis  <kettenis@gnu.org>
890
891         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
892         (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
893         TDEP->gregset_num_regs and tdep->sizeof_gregset.
894
895         * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
896         specify size of array.
897         (i386_linux_init_abi): Remove initialization of
898         TDEP->num_xmm_regs.  Use I386_LINUX_NUM_REGS for number of
899         registers.  Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
900
901         * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
902         * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
903         core-regset.o.
904
905         * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
906         the ELF header.
907
908 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
909
910         * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
911         * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
912         core-regset.o.
913
914         * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
915
916         * corelow.c: Include "arch-utils.h", "regset.h" and
917         "gdb_assert.h".
918         (core_gdbarch): New variable.
919         (sniff_core_bfd): Don't sniff if we have support for register sets
920         in CORE_GDBARCH.
921         (core_close): Reset CORE_GDBARCH.
922         (core_open): Initialize CORE_GDBARCH.
923         (get_core_register_section): Use register sets if they are
924         supported by CORE_GDBARCH.
925         (get_core_registers): Don't print error message if we have support
926         for register sets in CORE_GDBARCH.
927
928 2003-10-29  Andrew Cagney  <cagney@redhat.com>
929
930         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
931         default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
932
933 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
934
935         * objfiles.h (clear_objfile_data): New prototype.
936         * objfiles.c (clear_objfile_data): New function.
937         * symfile.c (reread_symbols): Clear per-objfile data.
938
939 2003-10-28  Jeff Johnston  <jjohnstn@redhat.com>
940  
941         * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
942         printf_unfiltered instead of printf_filtered for output messages.
943         (add_symbol_file_command): Ditto.
944         (reread_symbols): Ditto.
945         (overlay_auto_command): Ditto.
946         (overlay_manual_command): Ditto.
947         (overlay_off_command): Ditto.
948
949 2003-10-27  Mark Kettenis  <kettenis@gnu.org>
950
951         * arch-utils.c (deprecated_select_gdbarch_hack): New function.
952         (gdbarch_from_bfd): New function.
953         (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
954         deprecated_select_gdbarch_hack.
955         * arch-utils.h (gdbarch_from_bfd): New prototype.
956
957 2003-10-27  Andrew Cagney  <cagney@redhat.com>
958
959         * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
960         arch_info.  Use warning instead of fprintf_filtered.  Do not use
961         deprecated bfd_printable_arch_mach.
962
963 2003-10-26  Kevin Buettner  <kevinb@redhat.com>
964
965         * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
966         Delete.
967         (frv_register_type): Rename from frv_register_virtual_type.  Add
968         ``struct gdbarch *'' parameter.
969         (frv_gdbarch_init): Delete calls to the following functions:
970         set_gdbarch_deprecated_size(),
971         set_gdbarch_deprecated_register_bytes(),
972         set_gdbarch_deprecated_register_raw_size(),
973         set_gdbarch_deprecated_max_register_raw_size(),
974         set_gdbarch_deprecated_register_virtual_size(),
975         set_gdbarch_deprecated_max_register_virtual_size(),
976         set_gdbarch_deprecated_register_virtual_size(),
977         set_gdbarch_deprecated_register_virtual_type().
978         Add call to function set_gdbarch_register_type().
979
980 2003-10-26  Mark Kettenis  <kettenis@gnu.org>
981
982         * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
983         FDOFF_REGNUM): Remove defines.
984         * win32-nat.c (do_child_fetch_inferior_registers): Include
985         "i387-tdep.h".
986         (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
987         I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM.  Define and
988         undefine I387_ST0_REGNUM.
989
990         * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
991         * x86-64-tdep.c (x86_64_store_return_value): Use
992         I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
993
994         Change register numbers to enumartion values.
995         * i386-tdep.h (enum i386_regnum): New.
996         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
997         I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
998         I386_ST0_REGNUM): Remove defines.
999         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1000         I386_EDI_REGNUM): Remove defines.
1001
1002 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1003
1004         * target.c: Include "gdbcore.h".
1005         (get_target_memory, get_target_memory_unsigned): New functions.
1006         * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1007         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1008         Use get_target_memory_unsigned.
1009         * Makefile.in (target.o): Update dependencies.
1010
1011 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1012
1013         * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1014         * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1015         * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1016         * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1017         * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1018
1019         * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1020         (can_run_code_for): Use the OO term "singleton".
1021
1022 2003-10-23  Andrew Cagney  <cagney@redhat.com>
1023
1024         * Makefile.in (stack.o): Add $(regcache_h).
1025         * stack.c: Include "regcache.h"
1026         (return_command): Rewrite.  Use get_frame_id and
1027         get_selected_frame.  Eliminate "deprecated_selected_frame".  Warn
1028         about unhandled return-values.
1029         * value.h (set_return_value): Delete declaration.
1030         * values.c (set_return_value): Delete function.
1031
1032 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
1033
1034         * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1035         (pseudo_regs): Add comment regarding register stack registers.
1036         (ia64_alloc_frame_cache):  Initialize new prev_cfm field to 0.
1037         (floatformat_valid): New static routine.
1038         (floatformat_ia64_ext): Add name field and set up is_valid routine
1039         to floatformat_valid().
1040         (examine_prologue):  For the previous cfm, use
1041         frame_unwind_register()
1042         if the cfm is not stored in a register-stack register.  Save the
1043         previous cfm value in the prev_cfm field.  Add debug output.
1044         (ia64_frame_this_id): Use frame_id_build_special() to also register
1045         the bsp.  Add debug output.
1046         (ia64_sigtramp_frame_this_id): Ditto.
1047         (ia64_frame_prev_register):  Look at cache saved_regs for a few more
1048         registers and also add some checks for framelessness before accepting
1049         current register values for fields such as return address.  For cfm,
1050         use the cached prev_cfm field if available.  Add comment to explain
1051         PSR logic.  Add debug output.
1052         (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1053         as part of initialization.
1054         (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1055         calculated.  Cache the bsp and cfm values.
1056         (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1057         instead of using ia64_frame_prev_register() which doesn't expect most
1058         registers to be saved.  The saved values for bsp and sp
1059         can be taken from the cache.  Add debug output.
1060         (ia64_push_dummy_call): Use frame_id_build_special() to also register
1061         the bsp.
1062
1063 2003-10-23  Jim Blandy  <jimb@redhat.com>
1064
1065         * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1066         architecture the current arch can run code for --- but not if it's
1067         a superset.
1068         (can_run_code_for): New function.
1069
1070 2003-10-22  James E Wilson  <wilson@specifixinc.com>
1071
1072         * MAINTAINERS: Move myself from paper trail section back to write
1073         after approval section.
1074
1075 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1076
1077         * exec.h: New file.
1078         * win32-nat.c: Include "exec.h".
1079         * solib.c: Include "exec.h".
1080         * target.h (build_section_table): Delete declaration.
1081         * somsolib.c: Include "exec.h".
1082         (exec_ops): Delete extern declaration.
1083         * rs6000-nat.c: Update copyright.  Include "exec.h".
1084         (exec_ops): Delete extern declaration.
1085         * pa64solib.c: Update copyright.  Include "exec.h".
1086         (exec_ops): Delete extern declaration.
1087         * exec.c: Update copyright.  Include "exec.h".
1088         * corelow.c: Update dependencies.  Include "exec.h".
1089         * Makefile.in (exec_h): Define.
1090         (exec.o, somsolib.o): Update dependencies.
1091         (pa64solib.o, corelow.o): Update dependencies.
1092
1093 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1094
1095         * target.c: Include "gdb_assert.h" (target_read): Call
1096         "target_read_partial", not "target_write_partial".
1097         (default_read_partial, default_write_partial): New function.
1098         (target_read_partial, target_write_partial): Simplify, assume that
1099         there is always a read/write method.
1100         (update_current_target, add_target): Always set "to_read_partial"
1101         and "to_write_partial".
1102         (target_write, target_read): Fail on a zero byte transfer.
1103         * Makefile.in (target.o): Update dependencies.
1104         * target.h: Update copyright date.
1105         (target_object): Fix typo.
1106
1107 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1108
1109         * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1110         multi-arch method, add "targ" parameter.
1111         (struct target_ops): Declare.   
1112         * gdbarch.h, gdbarch.c: Re-generate.
1113         * Makefile.in (c-valprint.o): Update dependencies.
1114         * arch-utils.h: Update copyright.
1115         (convert_from_func_ptr_addr_identity): Declare.
1116         * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1117         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1118         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1119         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1120         * infcall.c (find_function_addr, call_function_by_hand): Update.
1121         * c-valprint.c: Include "target.h".
1122         (print_function_pointer_address): Update.
1123
1124 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1125
1126         * target.c (target_close): New function.
1127         (debug_to_close): Use "target_close".
1128         (push_target): Use "target_close".
1129         (unpush_target): Use "target_close".
1130         (pop_target): Use "target_close".
1131         * target.h (struct target_ops): Add "to_xclose".
1132         (target_open): Delete macro.  Move comment to "to_open".
1133         (target_close): Replace macro with function that takes a target.
1134         * top.c (quit_target): Pass "current_target" to "target_close".
1135
1136 2003-10-21  Elena Zannoni  <ezannoni@redhat.com>
1137
1138         * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1139         Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1140         * symtab.h (lookup_minimal_symbol_text): Update.
1141         * breakpoint.c (create_overlay_event_breakpoint,
1142         create_longjmp_breakpoint): Update callers.
1143         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1144         * symtab.c (find_pc_sect_line): Ditto.
1145
1146 2003-10-21  Andrew Cagney  <cagney@redhat.com>
1147
1148         * target.c (errno): Delete extern declaration.
1149
1150 2003-10-20  Jeff Johnston  <jjohnstn@redhat.com>
1151
1152         * ia64-tdep.c: Change all occurrences of
1153         DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1154         (ia64_frame_prev_register): Minor whitespace change.
1155
1156 2003-10-20  Michael Chastain  <mec@shout.net>
1157
1158         * config/djgpp/fnchange.lst: Add lines for:
1159         sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1160         sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1161         sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1162         sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1163         sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1164         sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1165         sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1166
1167 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1168
1169         * values.c (register_value_being_returned): Update comments.  Use
1170         "gdbarch_return_value" when available.
1171         (using_struct_return): Ditto.
1172         (set_return_value): Ditto.  Use "gdbarch_return_value" when
1173         available..  Print a warning, and not an error, when an unhandled
1174         return type is encountered.
1175         * infcmd.c: Include "gdb_assert.h".
1176         (print_return_value): When gdbarch_return_value_p, and using
1177         struct return, assume that the value is not available.
1178         * defs.h (return_value_convention): Define.
1179         * gdbarch.sh (gdbarch_return_value): New predicate method.
1180         * gdbarch.h, gdbarch.c: Re-generate
1181         * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1182
1183 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1184
1185         * symtab.c: Replace "struct sec" with "struct bfd_section".
1186         * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1187
1188 2003-10-19  Michael Chastain  <mec@shout.net>
1189
1190         * config/djgpp/fnchange.lst: Add lines for:
1191         gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1192         gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1193         gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1194
1195 2003-10-19  Mark Kettenis  <kettenis@gnu.org>
1196
1197         * amd64fbsd-nat.c (fetch_inferior_registers,
1198         store_inferior_registers): Remove functions.
1199         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1200
1201 2003-10-18  Mark Kettenis  <kettenis@gnu.org>
1202
1203         Add NetBSD/amd64 native configuration:
1204         * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1205         * amd64nbsd-tdep.c: New file.
1206         * amd64nbsd-nat.c: New file.
1207         * amd64bsd-nat.c: New file.
1208         * config/i386/nbsd64.mh: New file.
1209         * config/i386/nbsd64.mt: New file.
1210         * configure.host: Add x86_64-*-netbsd*.
1211         * configure.tgt: Add x86_64-*-netbsd*.
1212         * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1213         New targets.
1214         * NEWS (New native configurations): Mention NetBSD/amd64.
1215
1216 2003-10-17  Michael Chastain  <mec@shout.net>
1217
1218         * config/djgpp/fnchange.lst: Remove dead lines for:
1219         bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1220         bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1221         bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1222         gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1223         gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1224         gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1225         gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1226         gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1227         gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1228         gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1229         gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1230         gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1231         gdb/config/sparc/tm-sparclite.h,
1232         gdb/gdbtk/generic/ChangeLog-2001,
1233         gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1234         gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1235         gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1236         gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1237         gdb/testsuite/gdb.mi/mi0-var-block.exp,
1238         gdb/testsuite/gdb.mi/mi0-var-child.exp,
1239         gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1240         gdb/testsuite/gdb.mi/mi0-var-display.exp,
1241         itcl/iwidgets3.0.0/demos/extfileselectionbox,
1242         itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1243         itcl/iwidgets3.0.0/demos/fileselectionbox,
1244         itcl/iwidgets3.0.0/demos/fileselectiondialog,
1245         itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1246         itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1247         itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1248         itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1249         itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1250         itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1251         itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1252         itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1253         itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1254         itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1255         itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1256         itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1257         itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1258         itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1259         itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1260         itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1261         itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1262         itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1263         itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1264         itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1265         itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1266         itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1267         itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1268         itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1269         itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1270         itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1271         itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1272         itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1273         itcl/iwidgets3.0.0/demos/html/shell.n.html,
1274         itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1275         itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1276         itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1277         itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1278         itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1279         itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1280         itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1281         itcl/iwidgets3.0.0/demos/scrolledcanvas,
1282         itcl/iwidgets3.0.0/demos/scrolledframe,
1283         itcl/iwidgets3.0.0/demos/scrolledhtml,
1284         itcl/iwidgets3.0.0/demos/scrolledlistbox,
1285         itcl/iwidgets3.0.0/demos/scrolledtext,
1286         itcl/iwidgets3.0.0/demos/selectionbox,
1287         itcl/iwidgets3.0.0/demos/selectiondialog,
1288         itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1289         itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1290         itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1291         itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1292         itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1293         itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1294         itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1295         itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1296         itcl/iwidgets3.0.0/doc/scrolledframe.n,
1297         itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1298         itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1299         itcl/iwidgets3.0.0/doc/scrolledtext.n,
1300         itcl/iwidgets3.0.0/doc/selectionbox.n,
1301         itcl/iwidgets3.0.0/doc/selectiondialog.n,
1302         itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1303         itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1304         itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1305         itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1306         itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1307         itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1308         itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1309         itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1310         itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1311         itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1312         itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1313         itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1314         itcl/iwidgets3.0.0/generic/selectionbox.itk,
1315         itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1316         itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1317         itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1318         itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1319         itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1320         itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1321         itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1322         itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1323         itcl/iwidgets3.0.0/tests/scrolledframe.test,
1324         itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1325         itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1326         itcl/iwidgets3.0.0/tests/scrolledtext.test,
1327         itcl/iwidgets3.0.0/tests/selectionbox.test,
1328         itcl/iwidgets3.0.0/tests/selectiondialog.test,
1329         itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1330         itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1331         tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1332         tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1333         tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1334         tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1335         tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1336         tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1337         tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1338         tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1339         tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1340         tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1341         tk/mac/tkMacProjects.sit.hqx.
1342
1343 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1344
1345         * target.c (target_section_by_addr): New function.
1346         (do_xfer_memory): Use "target_section_by_addr".
1347         * target.h (target_section_by_addr): Declare.
1348
1349         * target.h (struct target_ops): Add "to_read_partial" and
1350         "to_write_partial", delete "to_query".
1351         (target_read_partial, target_write_partial): Declare.
1352         (target_read, target_write): Declare.
1353         (target_query): Delete macro.
1354         * target.c (target_read_partial): New function.
1355         (target_write_partial, target_read, target_write): New function.
1356         (update_current_target): Delete inheritance of "to_query".  Add
1357         comments about "to_read_partial" and "to_write_partial".
1358         (debug_to_partial_read, debug_to_partial_write): New functions.
1359         (debug_to_query): Delete function.
1360         (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1361         instead of "to_query".
1362         * remote.c (remote_read_partial): Replace "remote_query".
1363         (init_remote_ops): Set "to_read_partial" instead of "to_query".
1364         (init_remote_async_ops): Ditto.
1365         * kod.c (gdb_kod_query): Make "bufsize" a LONGEST.  Use
1366         "target_read_partial" instead of "target_query".
1367         * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1368         Use "target_read_partial" instead of "target_query".
1369
1370 2003-10-17  Jeff Johnston  <jjohnstn@redhat.com>
1371
1372         * frame.h (struct frame_id): Add new field: special_addr.
1373         (frame_id_build_special): New prototype.
1374         * frame.c (frame_id_build_special): New function.
1375         (frame_id_build): Change to call frame_id_build_special().
1376         (frame_id_eq): Change to also test special_addr field. 
1377         (frame_id_inner): Update comment. 
1378
1379 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1380
1381         * target.c (update_current_target): Perform the target cleanup.
1382         Put the target stack beneath the squashed "current_target".
1383         (add_target): Delete disabled call to "cleanup_target".
1384         (cleanup_target): Delete function.
1385         (push_target, unpush_target): Do not call "cleanup_target".
1386
1387 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1388
1389         * target.c (target_stack): Change to a static target_ops.
1390         (update_current_target): Walk the "struct target_ops" stack.
1391         (pop_target, do_xfer_memory, target_info): Ditto.
1392         (find_target_beneath): Ditto.
1393         (push_target): Rewrite to use the "struct target_ops" stack.
1394         (unpush_target): Ditto.
1395         * target.h (struct target_stack_item): Delete definition.
1396         (target_stack): Delete declaration.
1397         (struct target_ops): Add field "beneath".
1398
1399 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
1400
1401         * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1402         declaration.
1403         * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1404         (h8300_examine_prologue): Use h8300_normal_mode flag
1405         (h8300_gdbarch_init): Set architecture info for normal mode
1406
1407 2003-10-16  Daniel Jacobowitz  <drow@mvista.com>
1408
1409         * remote.c (remote_protocol_vcont): New variable.
1410         (set_remote_protocol_vcont_packet_cmd): New function.
1411         (show_remote_protocol_vcont_packet_cmd): New function.
1412         (init_all_packet_configs): Handle remote_protocol_vcont.
1413         (remote_vcont_probe): New function.
1414         (remote_vcont_resume): New function.
1415         (remote_resume): Use it.
1416         (remote_async_resume): Call remote_resume.
1417         (_initialize_remote): Add verbose-resume packet commands.
1418
1419 2003-10-16  Andrew Cagney  <cagney@redhat.com>
1420
1421         * infrun.c (handle_inferior_event): Add comment about
1422         "frame_id_inner" being too weak.
1423
1424 2003-10-16  Elena Zannoni  <ezannoni@redhat.com>
1425
1426         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1427         second parameter, which is always null. Remove
1428         SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1429         * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1430         accordingly.
1431         * somsolib.c (som_solib_create_inferior_hook,
1432         som_solib_desire_dynamic_linker_symbols): Update callers.
1433         * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1434
1435 2003-10-16  Kei Sakamoto  <sakamoto.kei@renesas.com>
1436
1437         * remote-m32r-sdi.c : New file, interface to m32r on-chip
1438         debug interface, SDI (Scalable Debug Interface).
1439         * NEWS: Mention m32r SDI protocol was supported.
1440         * Makefile.in (remote-m32r-sdi.o): Add build rule.
1441         * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1442
1443 2003-10-15  Jeff Johnston  <jjohnstn@redhat.com>
1444
1445         * ia64-linux-tdep.c: Include gdbcore.h.
1446         (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1447         (ia64_linux_sigcontext_register_addr): Find the address of the
1448         sigcontext area stored in the sigframe instead of using
1449         a magic offset constant. 
1450
1451 2003-10-15  Andrew Cagney  <cagney@redhat.com>
1452
1453         * remote.c (remote_search): Delete function.
1454         * target.h (target_search): Delete disabled macro.
1455         (struct target_ops): Delete disabled field "to_search".
1456
1457 2003-10-14  Kevin Buettner  <kevinb@redhat.com>
1458
1459         * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1460         instead of deprecated_inside_entry_file().
1461
1462 2003-10-14  Corinna Vinschen  <vinschen@redhat.com>
1463
1464         * sh-tdep.c: Fix copy/paste hangover in comment.
1465         (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1466         mode.
1467         (sh3e_sh4_extract_return_value): Ditto.
1468
1469 2003-10-13  Richard Henderson  <rth@redhat.com>
1470
1471         * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1472         * f-valprint.c (f_val_print): Likewise.  Tweak TYPE_CODE_PTR to
1473         match c_val_print a bit closer.
1474
1475 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1476
1477         * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1478         (frv_gdbarch_adjust_breakpoint_address): New function.
1479         (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1480         method.
1481
1482 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1483
1484         * breakpoint.h (struct breakpoint): Add new member
1485         ``requested_address''.
1486         * breakpoint.c (breakpoint_adjustment_warning)
1487         (adjust_breakpoint_address): New static functions.
1488         (print_it_typical): Issue warning if breakpoint's address is different
1489         from its requested address.
1490         (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1491         (breakpoint_re_set_one):  Set breakpoint's
1492         ``requested_address'' field.  Set ``address'' field to the
1493         result of calling adjust_breakpoint_address() on the requested
1494         address.
1495
1496 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1497
1498         * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1499         * gdbarch.h, gdbarch.c: Regenerate.
1500
1501 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
1502
1503         * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1504         TDEP->sc_num_regs.
1505
1506         * i386fbsd-tdep.c: New file.
1507         (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1508         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1509         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1510         i386bsd-tdep.c.
1511         (_initialize_i386fbsd_tdep): New function.
1512         (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1513         (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1514         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1515         TDEP->sizeof_fpregset.  Use ARRAY_SIZE to initialize
1516         TDEP->sc_num_regs.
1517         (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1518         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1519         to initialize TDEP->sc_num_regs.
1520         * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1521         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1522         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1523         (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1524         FreeBSD ELF OS/ABI's here.
1525         * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1526         (i386fbsd-tdep.o): New target.
1527         * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1528         * config/i386/fbsd64.mt (TDEPFILES):  Add i386fbsd-tdep.o.
1529
1530         * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1531         (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1532         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1533         in initialization of TDEP->sc_num_regs.
1534
1535         * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1536         (x86_64_init_abi): Initialize regset_from_core_section if
1537         appropriate.
1538
1539         * i386-tdep.c (i386_regset_from_core_section): New function.
1540         (i386_gdbarch_init): Initialize regset_from_core_section if
1541         appropriate.
1542         * i386-tdep.h (i386_regset_from_core_section): New declaration.
1543
1544         * i386-tdep.h (struct regset): Declare opaque.
1545
1546         * gdbarch.sh (regset_from_core_section): New method.
1547         (struct regset): Declare opaque.
1548         * gdbarch.c, gdbarch.h: Regenerated.
1549
1550 2003-10-11  Alan Modra  <amodra@bigpond.net.au>
1551
1552         * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1553         _cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
1554         Correct test for pc within section.
1555
1556 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
1557
1558         * gdbarch.sh: Remove trailing whitepsace from comments.
1559
1560 2003-10-08  Roland McGrath  <roland@redhat.com>
1561
1562         * gcore.c (make_mem_sec): Function removed, folded into ...
1563         (gcore_create_callback): ... here.  To omit a section, clear its
1564         SEC_LOAD bit rather than zeroing its size.
1565         Omit read-only sections only if they correspond to a known disk file.
1566         (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1567
1568 2003-10-10  Michael Snyder  <msnyder@redhat.com>
1569
1570         * d10v-tdep.c: Fix typo in comment.
1571
1572 2003-10-10  Andrew Cagney  <cagney@redhat.com>
1573
1574         * rs6000-tdep.c (e500_store_return_value): Delete function.
1575         (e500_extract_return_value): Delete function.
1576         (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1577         "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1578         "ppc_sysv_abi_restore_return_value" where applicable.
1579         * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1580         (ppc_sysv_abi_extract_return_value): Declare.
1581         (ppc_sysv_abi_broken_store_return_value): Declare.
1582         (ppc_sysv_abi_broken_extract_return_value): Declare.
1583         (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1584         * ppc-sysv-tdep.c (return_value_convention): Move definition to
1585         start of file.
1586         (do_ppc_sysv_return_value): New function.
1587         (ppc_sysv_abi_extract_return_value): New function.
1588         (ppc_sysv_abi_store_return_value): New function.
1589         (ppc_sysv_abi_broken_extract_return_value): New function.
1590         (ppc_sysv_abi_broken_store_return_value): New function.
1591         (ppc_sysv_abi_use_struct_convention): Call
1592         do_ppc_sysv_return_value.
1593
1594 2003-10-10  J. Brobecker  <brobecker@gnat.com>
1595
1596         * blockframe.c (inside_main_func): No longer use symbol_lookup()
1597         to lookup the main function symbol.
1598
1599 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
1600
1601         * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1602         types correctly.
1603         (sh_push_dummy_call_fpu): Fix argument passing rules.
1604         (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1605         float types.
1606         (sh3e_sh4_store_return_value): Ditto.
1607
1608 2003-10-10  Elena Zannoni  <ezannoni@redhat.com>
1609
1610         * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1611         comment.
1612
1613 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
1614
1615         * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1616         more readable code.  Accomodate passing of bitfields.
1617
1618 2003-10-10  Andrew Cagney  <cagney@redhat.com>
1619
1620         * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1621         * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1622         push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1623         * ppc-sysv-tdep.c: Include "gdb_assert.h".
1624         (ppc64_sysv_abi_push_dummy_call): New function.
1625         (ppc64_sysv_abi_broken_push_dummy_call): New function.
1626         * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1627         (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1628
1629 2003-10-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
1630
1631         * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1632         * README: Ditto.
1633         * d10v-tdep.c: Ditto.
1634         * h8300-tdep.c: Ditto.
1635         * remote-e7000.c: Ditto.
1636         * remote-hms.c: Ditto.
1637         * ser-e7kpc.c: Ditto.
1638         * sh-stub.c: Ditto.
1639         * sh-tdep.c: Ditto.
1640         * sh-tdep.h: Ditto.
1641         * sh3-rom.c: Ditto.
1642         * sh64-tdep.c: Ditto.
1643         * top.c: Ditto.
1644         * wince.c: Ditto.
1645         * config/d10v/d10v.mt: Ditto.
1646         * config/sh/embed.mt: Ditto.
1647         * config/sh/linux.mt: Ditto.
1648         * config/sh/tm-linux.h: Ditto.
1649         * config/sh/tm-sh.h: Ditto.
1650         * config/sh/wince.mt: Ditto.
1651
1652 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1653
1654         * ppc-tdep.h (struct type): Declare opaque.
1655         * x86-64-tdep.h (struct regcache): Declare opaque.
1656         * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1657         coding style.
1658
1659 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1660
1661         Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1662         * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1663         (SOFTWARE_SINGLE_STEP_P): Ditto.
1664         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1665         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1666         (SOFTWARE_SINGLE_STEP_P): Ditto.
1667         * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1668         software_single_step to rs6000_software_single_step.
1669
1670 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1671
1672         * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1673
1674 2003-10-09  Michael Snyder  <msnyder@redhat.com>
1675
1676         * frame.h: Fix typo in comment.
1677         * dummy-frame.c: Fix typo in comment.
1678         * d10v-tdep.c: Random whitespace/comment tweaks.
1679
1680 2003-10-09  Elena Zannoni  <ezannoni@redhat.com>
1681
1682         * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1683         (sh_push_dummy_code): Delete function, it's only used for dummy calls
1684         on stack.
1685
1686         Based on input by Stephen Clarke (stephen.clarke@superh.com):
1687         * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1688         in detail.
1689
1690 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
1691
1692         * remote-mips.c (mips_initialize): Remove unneeded call to
1693         get_selected_frame.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1694
1695 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
1696
1697         * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1698         a memory pointer.
1699
1700 2003-10-08  Jeff Johnston  <jjohnstn@redhat.com>
1701
1702         * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1703         for any lwp we resume.
1704         (running_callback): Add lwps that have pending status events
1705         against them to be considered running.
1706
1707 2003-10-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
1708
1709         * m32r-tdep.c : Include "dis-asm.h".
1710         * Makefile.in (m32r-tdep.o): Update dependencies.
1711
1712 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1713
1714         * completer.h (get_gdb_completer_word_break_characters): Delete.
1715         * completer.c: include language.h.
1716         (gdb_completer_word_break_characters): Delete.
1717         (get_gdb_completer_word_break_characters): Delete.
1718         (location_completer): Use the word break characters of the current
1719         language.
1720         (complete_line): Likewise.
1721         (line_completion_function): Likewise.
1722         (skip_quoted_chars): Likewise.
1723         * Makefile.in (completer.o): Add dependency on language.h.
1724         * top.c (init_main): Set the readline word break characters
1725         to GDB's default word break characters.
1726
1727 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1728
1729         * language.h (language_defn): new field, la_word_break_characters.
1730         * language.c (unknown_language_defn): Set new field to
1731         default_word_break_characters.
1732         (auto_language_defn): Likewise.
1733         (local_language_defn): Likewise.
1734         * ada-lang.c (ada_language_defn): Likewise.
1735         * c-lang.c (c_language_defn): Likewise.
1736         (cplus_language_defn): Likewise.
1737         (asm_language_defn): Likewise.
1738         (minimal_language_defn): Likewise.
1739         * f-lang.c (f_language_defn): Likewise.
1740         * jv-lang.c (java_language_defn): Likewise.
1741         * m2-lang.c (m2_language_defn): Likewise.
1742         * objc-lang.c (objc_language_defn): Likewise.
1743         * p-lang.c (pascal_language_defn): Likewise.
1744         * scm-lang.c (scm_language_defn): Likewise.
1745
1746 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1747
1748         * ppc-sysv-tdep.c: Re-indent.
1749
1750 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1751
1752         * language.h (default_word_break_characters): Add prototype.
1753         * language.c (default_word_break_characters): New function.
1754
1755 2003-10-06  Andreas Schwab  <schwab@suse.de>
1756
1757         * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1758         with %eax.
1759
1760 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1761
1762         * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1763         "h8500-tdep.c".
1764         (z8k-tdep.o): Delete custom build rule.
1765
1766 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1767
1768         * Makefile.in: Update all dependencies.
1769
1770         * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1771         No longer list PA as as obsolete candidate.  List m32r as
1772         broken instead of obsolete.
1773
1774         * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1775         * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1776         * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1777         * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1778         * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1779         * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1780         * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1781         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1782         * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1783         * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1784         * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1785         * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1786         * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1787         * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1788         * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1789         * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1790         * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1791         * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1792         * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1793         * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1794         * config/z8k/z8k.mt: Ditto.
1795
1796         * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1797         h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1798         mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1799         i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1800         sparclite were removed.
1801         * configure.host, configure.tgt: Remove corresponding tuples.
1802
1803         * breakpoint.c, breakpoint.h: Remove obsolete code.
1804         * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1805         * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1806         * stabsread.h, xcoffread.c: Ditto.
1807
1808         * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1809         * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1810         * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1811         * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1812
1813 2003-10-06  David Lecomber  <dsl@sources.redhat.com>
1814
1815         * f-valprint.c: Reformatting
1816
1817 2003-10-06  Mark Kettenis  <kettenis@gnu.org>
1818
1819         * x86-64-tdep.c: Remove duplicate comment.
1820
1821         * x86-64-tdep.c (x86_64_store_return_value): Don't use
1822         DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
1823         names for return values.  This fixes a bug since we looked at %rbx
1824         instead of %rdx.
1825
1826 2003-10-05  Mark Kettenis  <kettenis@gnu.org>
1827
1828         * x86-64-tdep.c: Include "regset.h".
1829
1830         * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1831         gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1832         sizeof_fpregset.
1833         * i386-tdep.c: Include "regset.h".
1834         (i386_supply_gregset): New function.
1835         (i386_supply_fpregset): New function.
1836         (i386_gdbarch_init): Initialze register set-related members of
1837         TDEP.
1838         * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1839         (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1840
1841 2003-10-03  Andrew Cagney  <cagney@redhat.com>
1842
1843         * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1844         set extract_return_value, store_return_value and
1845         use_struct_convention to ppc64_sysv_abi_extract_return_value,
1846         ppc64_sysv_abi_store_return_value and
1847         ppc64_sysv_abi_use_struct_convention.
1848         * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1849         (ppc64_sysv_abi_store_return_value): Declare.
1850         (ppc64_sysv_abi_use_struct_convention): Declare.
1851         * ppc-sysv-tdep.c (enum return_value_convention): Define.
1852         (ppc64_sysv_abi_extract_return_value): New function.
1853         (ppc64_sysv_abi_store_return_value): New function.
1854         (ppc64_sysv_abi_use_struct_convention): New function.
1855         (ppc64_sysv_abi_return_value): New function.
1856
1857 2003-10-03  Andrew Cagney  <cagney@redhat.com>
1858
1859         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1860         convert a descriptor to a function when it's in the ".opd"
1861         section.
1862
1863 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
1864
1865         * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1866         reg_size to keep GCC silent.
1867
1868 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
1869
1870         * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1871         base for DW_EH_PE_textrel encodings.
1872         (read_encoded_value): Add a DW_EH_PE_textrel case.
1873         (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1874         section.
1875
1876 2003-10-03  Mark Kettenis  <kettenis@gnu.org>
1877
1878         * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1879
1880 2003-10-02  Andrew Cagney  <cagney@redhat.com>
1881
1882         * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1883         REGISTER_RAW_SIZE.
1884         * gdbarch.h, gdbarch.c: Re-generate.
1885         * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1886         * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1887         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1888         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1889         * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1890         * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1891         * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1892         * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1893         * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1894         * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1895         * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1896         * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1897         * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1898         * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1899         * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1900         * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1901
1902 2003-10-02  Jim Blandy  <jimb@redhat.com>
1903
1904         * dwarf2read.c (struct die_info): Doc fix.
1905
1906 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
1907
1908         * sh-tdep.c: Running thru gdb_indent.sh.
1909
1910 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
1911
1912         * sh-tdep.c (sh_justify_value_in_reg): New function.
1913         (sh_stack_allocsize): Ditto.
1914         (flt_argreg_array): New array used for floating point argument
1915         passing.
1916         (sh_init_flt_argreg): New function.
1917         (sh_next_flt_argreg): Ditto.
1918         (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1919         "pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
1920         Fix argument passing strategy.
1921         (sh_push_dummy_call_nofpu): Ditto.
1922
1923 2003-10-01  Andrew Cagney  <cagney@redhat.com>
1924
1925         * value.h (register_value_being_returned): Declare.  Replace
1926         "value_being_returned".
1927         * infcall.c (call_function_by_hand): Use
1928         register_value_being_returned.
1929         * infcmd.c (print_return_value): Call
1930         "register_value_being_returned", handle struct return locally.
1931         * values.c (register_value_being_returned): New function.  Replace
1932         "value_being_returned".
1933
1934 2003-09-30  Elena Zannoni  <ezannoni@redhat.com>
1935
1936         * linux-proc.c (linux_do_registers): New function.
1937         (linux_make_note_section): Use linux_do_registers in case of
1938         single threaded inferior programs.
1939
1940 2003-10-01  Andrew Cagney  <cagney@redhat.com>
1941
1942         * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1943         use STRUCT_ADDR.  When not using "struct return convention", pass
1944         "0" to "value_being_returned".  Add FIXMEs.
1945         * infcmd.c (print_return_value): Pass an explicit 0/1 to
1946         value_being_returned.  Add comments.
1947         * values.c (value_being_returned): Add fixme.
1948         * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1949         (hppa_value_returned_from_stack): Add FIXME.
1950
1951 2003-09-30  David Carlton  <carlton@kealia.com>
1952
1953         * dwarf2read.c (struct die_info): Add 'parent' field; replace
1954         'has_children' and 'next' by 'child' and 'sibling'.
1955         (read_comp_unit): Rework algorithm, breaking body into
1956         read_die_and_children and read_die_and_siblings.
1957         (read_die_and_children, read_die_and_siblings): New.
1958         (read_full_die): Add 'has_children' argument; set it instead of
1959         the die's 'has_children' field.  Minor formatting cleanup.
1960         (free_die_list): Use die->child and die->sibling instead of
1961         die->next.
1962         (dump_die_list): Ditto.
1963         (sibling_die): Use die->sibling.
1964         (psymtab_to_symtab_1): Use die's 'child' field in place of its
1965         'has_children' and 'next' fields.
1966         (process_die, read_file_scope, read_func_scope)
1967         (read_lexical_block_scope, read_structure_scope)
1968         (read_enumeration, read_array_type, read_common_block)
1969         (read_namespace, read_subroutine_type, dump_die): Ditto.
1970
1971 2003-09-30  Andrew Cagney  <cagney@redhat.com>
1972
1973         * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1974         to 224, not 220.
1975
1976 2003-09-30  Andrew Cagney  <cagney@redhat.com>
1977
1978         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1979         REGISTER_VIRTUAL_SIZE.
1980         * gdbarch.h, gdbarch.c: Regenerate.
1981         * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1982         * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1983         * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1984
1985 2003-09-29  Andrew Cagney  <cagney@redhat.com>
1986
1987         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1988         REGISTER_VIRTUAL_TYPE.
1989         * gdbarch.h, gdbarch.c: Regenerate.
1990         * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1991         * sh64-tdep.c, sparc-tdep.c: Update.
1992
1993         * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1994         * remote-vxmips.c (vx_read_register): Ditto.
1995         * remote-vx68.c (vx_read_register): Ditto.
1996         * gnu-nat.c (inf_validate_procs): Ditto.
1997
1998 2003-09-29  J. Brobecker  <brobecker@gnat.com>
1999
2000         * infcall.c (call_function_by_hand): Fix build failure
2001         introduced in the previous change to this file.
2002
2003 2003-09-29  Andrew Cagney  <cagney@redhat.com>
2004
2005         * NEWS: Mention Objective-C.
2006
2007 2003-09-29  Jerome Guitton  <guitton@act-europe.fr>
2008
2009         * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2010         test if the register has been saved on the stack.
2011         (arm_scan_prologue_cache): When analysing the instruction
2012         "str lr, [sp, #-4]", save the address where lr has been stored.
2013
2014 2003-09-28  Andrew Cagney  <cagney@redhat.com>
2015
2016         * frame.c (frame_read_unsigned_register): Delete function.
2017         * frame.h (frame_read_unsigned_register): Delete declaration.
2018         * sparc-tdep.c (sparc_init_extra_frame_info): Use
2019         get_frame_register_unsigned.
2020         (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2021         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2022         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2023
2024         * frame.h (frame_read_register): Delete declaration.
2025         * frame.c (frame_read_register): Delete function.
2026         * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2027         * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2028         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2029         * mips-tdep.c (mips_register_to_value): Ditto.
2030         * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2031         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2032
2033         * frame.c (frame_read_signed_register): Delete function.
2034         (frame_read_unsigned_register): Update comments.
2035         * frame.h (frame_read_signed_register): Delete declaration.
2036         * h8300-tdep.c (h8300_print_register): Use
2037         get_frame_register_signed.
2038         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2039
2040         * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2041         Rename VALUE_RETURNED_FROM_STACK.
2042         * infcmd.c (print_return_value): Update.
2043         * infcall.c (call_function_by_hand): Update.
2044
2045 2003-09-28  Mark Kettenis  <kettenis@gnu.org>
2046
2047         * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2048         regcache argument and reverse the order of the other two
2049         arguments.  Remove local regcache variable.  Determine
2050         architecture from REGCACHE.  Update comments.
2051         * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2052         reverse the order of the other two arguments.  Remove local
2053         regcache variable.  Determine architecture from REGCACHE.  Update
2054         comments.
2055         * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2056         prototypes.  Update comments.
2057         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype.  Adjust
2058         comment.
2059         * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2060         Update.
2061         * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2062         * i386-interix-nat.c (supply_fpregset): Update.
2063         * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2064         * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2065         * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2066         * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2067         * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2068         Update.
2069         * i386obsd-tdep.c (fetch_core_registers): Update.
2070         * i386v4-nat.c (supply_fpregset): Update.
2071         * x86-64-linux-nat.c (supply_fpregset): Update.
2072         * x86-64-linux-tdep.c (fetch_core_registers): Update.
2073
2074 2003-09-27  Mark Kettenis  <kettenis@gnu.org>
2075
2076         * i386-tdep.h: Put opaque declarations in alphabetical
2077         order.  Remove spurious whitespace.
2078         (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2079         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2080         * i386-tdep.c (MM0_REGNUM): Remove define.
2081         (i386_mmx_regnum_p): Add gdbarch argument.
2082         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2083         Rewrite using new macro definitions for FPU/SSE registers.
2084         (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2085         definitions from i387-tdep.h.
2086         (i386_register_name): Update.
2087         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2088         new macro definitions for FPU/SSE registers.
2089         (i386_extract_return_value): Determine whether floating-point
2090         registers are present by examining REGCACHE's architecture.
2091         (i386_store_return_value): Likewise.  Use I386_MAX_REGISTER_SIZE
2092         instead of FPU_REG_RAW_SIZE.  Use new macro definitions for
2093         FPU/SSE registers.
2094         (i386_register_type): Update.
2095         (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2096         definitions for FPU registers.  Use REGCACHE's architecture to
2097         determine the appropriate register numbers.
2098         (i386_pseudo_register_read, i386_pseudo_register_write,
2099         i386_register_reggroup_p): Update.
2100         (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2101         TDEP->mm0_regnum.
2102         * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2103         I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2104         I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2105         I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2106         (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2107         i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2108         *' to `void *'.
2109         * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2110         i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2111         i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2112         definitions for FPU/SSE registers.
2113         (FXSAVE_MXCSR_ADDR): New define.
2114         * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2115         TDEP->mm0_regnum.
2116         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2117         (I387_ST0_REGNUM): Define.
2118
2119         * regcache.h (get_regcache_arch): New prototype.
2120         * regcache.c (get_regcache_arch): New function.
2121
2122         * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2123         whitespace.
2124
2125         * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2126         Initialize using ARRAY_SIZE.
2127
2128 2003-09-27  Andrew Cagney  <cagney@redhat.com>
2129
2130         * arch-utils.c (deprecated_init_frame_pc_default): Rename
2131         "init_frame_pc_default".
2132         * arch-utils.h (deprecated_init_frame_pc_default): Update.
2133         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2134         * vax-tdep.c (vax_gdbarch_init): Update.
2135         * v850-tdep.c (v850_gdbarch_init): Update.
2136         * sh64-tdep.c (sh64_gdbarch_init): Update.
2137         * s390-tdep.c (s390_gdbarch_init): Update.
2138         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2139         * mcore-tdep.c (mcore_gdbarch_init): Update.
2140         * h8300-tdep.c (h8300_gdbarch_init): Update.
2141         * cris-tdep.c (cris_gdbarch_init): Update.
2142         * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2143
2144 2003-09-26  Mark Kettenis  <kettenis@gnu.org>
2145
2146         * regset.h: New file.
2147         * Makefile.in (regset_h): Add.
2148
2149 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2150
2151         * frame.h (deprecated_frame_saved_regs): Rename
2152         get_frame_saved_regs.
2153         * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2154         * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2155         * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2156         * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2157         * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2158
2159 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2160
2161         * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2162         file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2163         and Java.
2164         * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2165         arm*-*-* do not use the new frame code.
2166
2167 2003-09-25  David Carlton  <carlton@kealia.com>
2168
2169         * c-exp.y: Remove 'register' declarations.
2170         * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2171
2172 2003-09-25  David Carlton  <carlton@kealia.com>
2173
2174         * c-exp.y: Include cp-support.h.  Add qualified_type.
2175         (yylex): Delete nested type hack; add comments.
2176         * cp-namespace.c (cp_lookup_nested_type): New function.
2177         * cp-support.h: Declare cp_lookup_nested_type.
2178         * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2179         instead of value_struct_elt_for_reference.
2180         * valops.c: Include cp-support.h.
2181         (value_aggregate_elt): New function.
2182         (value_namespace_elt): Ditto.
2183         (value_struct_elt_for_reference): Make static.
2184         * value.h: Delete declaration of value_struct_elt_for_reference;
2185         add declaration for value_aggregate_elt.
2186         * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2187         (valops.o): Ditto.
2188
2189 2003-09-25  Daniel Jacobowitz  <drow@mvista.com>
2190
2191         * stack.c: Include "reggroups.h".
2192         (frame_info): Only display registers in all_reggroup.
2193         * Makefile.in (stack.o): Update dependencies.
2194
2195 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2196
2197         * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2198         "add ip, sp #n" in the prologue.
2199         (arm_scan_prologue): Ditto.
2200
2201 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2202
2203         * MAINTAINERS (write after approval): Add myself.
2204
2205 2003-09-25  Andreas Schwab  <schwab@suse.de>
2206
2207         * m68k-tdep.c: Include "dwarf2-frame.h".
2208         (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2209         * Makefile.in (m68k-tdep.o): Update dependencies.
2210
2211 2003-09-25  Corinna Vinschen  <vinschen@redhat.com>
2212
2213         * sh-tdep.c (struct frame_extra_info): Remove.
2214         (struct sh_frame_cache): New structure.
2215         (GET_SOURCE_REG): New macro extracting source register of an opcode.
2216         (GET_TARGET_REG): Ditto but target register.
2217         (GET_PUSHED_REG): Remove.
2218         (IS_MOV_ARG_TO_REG): New macro.
2219         (IS_MOV_ARG_TO_IND_R14): New macro.
2220         (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2221         (IS_MOVW_PCREL_TO_REG): New macro.
2222         (IS_MOVL_PCREL_TO_REG): New macro.
2223         (IS_SUB_REG_FROM_SP): New macro.
2224         (IS_ARG_MOV): Remove.
2225         (IS_MOV_TO_R14): Remove.
2226         (IS_RESTORE_FP): New macro.
2227         (IS_RTS): New macro.
2228         (IS_LDS): New macro.
2229         (IS_MOV_FP_SP): New macro.
2230         (IS_ADD_REG_TO_FP): New macro.
2231         (IS_ADD_IMM_FP): New macro.
2232         (sh_skip_prologue_hard_way): Remove.
2233         (sh_saved_pc_after_call): Remove.
2234         (sh_frame_chain): Remove.
2235         (sh_find_callers_reg): Remove.
2236         (sh_nofp_frame_init_saved_regs): Remove.
2237         (sh_fp_frame_init_saved_regs): Remove.
2238         (sh_init_extra_frame_info): Remove.
2239         (sh_analyze_prologue): New function.
2240         (sh_skip_prologue): Remove deprecated code.  Rely on new function
2241         sh_analyze_prologue when after_prologue fails.
2242         (sh_frame_saved_pc): Remove.
2243         (sh_alloc_frame_cache): New function.
2244         (sh_frame_cache): Ditto.
2245         (sh_frame_prev_register): Ditto.
2246         (sh_frame_this_id): Ditto.
2247         (sh_frame_unwind): New structure defining the heuristic frame
2248         sniffer interface.
2249         (sh_frame_sniffer): New function.
2250         (sh_unwind_sp): Ditto.
2251         (sh_unwind_pc): Ditto.
2252         (sh_unwind_dummy_id): Ditto.
2253         (sh_frame_base_address): Ditto.
2254         (sh_frame_base): New structure defining new frame base code.
2255         (sh_in_function_epilogue_p): New function.
2256         (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2257         code and to call all new code instead.  Initialize dwarf2 and
2258         heuristic frame sniffer.
2259
2260 2003-09-24  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
2261
2262         * parser-defs.h (struct exp_descriptor): New definition, containing
2263         language-specific info for printing, prefixifying, dumping, and
2264         evaluating expressions.
2265         (exp_descriptor_standard): Declare new variable.
2266         (print_subexp): Make global and declare here (from expprint.c).
2267         (dump_subexp): Ditto.
2268         (dump_subexp_body_standard): Declare.
2269         (operator_length_standard): Declare.
2270         (op_name_standard): Declare.
2271         (print_subexp): Declare.
2272         (print_subexp_standard): Declare.
2273
2274         * language.h (struct language_defn): Add la_exp_desc field to hold
2275         pointer to table for language-specific operators.
2276         Remove evaluate_exp field, which is now in struct exp_descriptor.
2277
2278         * parse.c (operator_length): Move most code to new
2279         operator_length_standard function.  Use language-specific information.
2280         (operator_length_standard): New function taking most code from
2281         operator_length.
2282         (exp_descriptor_standard): New constant.
2283
2284         * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2285         and OP_EXTENDED_LAST.
2286
2287         * expprint.c (print_subexp): Use language-specific print_subexp.
2288         Make global; remove static declaration.
2289         Move most code to print_subexp_standard.
2290         (print_subexp_standard): New function, containing code formerly in
2291         print_subexp.
2292         (op_name): Add expression to argument signature.
2293         Use langauge-specific op_name.
2294         Move most code to op_name_standard.
2295         (op_name_standard): New function, containing code formerly in op_name.
2296         (dump_subexp):  Use new version of op_name function.
2297         Use language-specific dump_subexp_body, and move most existing code to
2298         dump_subexp_body_standard.
2299         (dump_raw_expression): Use new op_name interface.
2300         (dump_subexp_body): Move most code to dump_subexp_body_standard.
2301         (dump_subexp_body_standard): New function, containing code formerly
2302         in dump_subexp_body.
2303
2304         * language.c (unknown_language): Add default la_exp_desc field and
2305         remove evaluate_exp field.
2306         (auto_language): Ditto.
2307         (local_language): Ditto.
2308         * f-lang.c (f_language_defn): Ditto.
2309         * c-lang.c (c_language_defn): Ditto.
2310         (cplus_language_defn): Ditto.
2311         (asm_language_defn): Ditto.
2312         (minimal_language_defn): Ditto.
2313         * p-lang.c (pascal_language_defn): Ditto.
2314         * m2-lang.c (m2_language_defn): Ditto.
2315         * objc-lang.c (objc_language_defn): Ditto.
2316
2317         * jv-lang.c (exp_descriptor_java): New variable, containing
2318         Java-specific expression evaluator.
2319         (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2320         field.
2321         * scm-lang.c (exp_descriptor_scm): New variable, containing
2322         Scheme-specific expression evaluator.
2323         (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2324         field.
2325         * objc-lang.c (print_object_command): Take evaluate_exp from the
2326         la_exp_desc field.
2327
2328         * Makefile.in (eval.o): Add dependency on parser-defs.h.
2329
2330         * eval.c: Include parser-defs.h for the full declaration of
2331         la_exp_desc's type.
2332         (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2333
2334 2003-09-23  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
2335
2336         * parser-defs.h (operator_length): Declare.
2337
2338         * parse.c (length_of_subexp): Use operator_length to get operator
2339         lengths and arities for operators.
2340         Move most code to new operator_length function.
2341         (operator_length): New function absorbing most code from
2342         length_of_subexp.
2343         (prefixify_subexp): Remove large case and use operator_length instead.
2344         (parse_exp_1): Use renamings:
2345         dump_prefix_expression => dump_raw_expression and
2346         dump_postfix_expression => dump_prefix_expression.
2347
2348         * expression.h (dump_prefix_expression): Rename to ...
2349         (dump_raw_expression): New name.
2350         (dump_postfix_expression): Rename to ...
2351         (dump_prefix_expression): New name.
2352
2353         * expprint.c (dump_subexp): Make global.  Add comment.
2354         Move most existing code to dump_subexp_body.
2355         (dump_subexp_body): New function.
2356         (dump_prefix_expression): Rename to dump_raw_expression.
2357         Remove attempt to print the expression via print_expression: it can't
2358         work before the expression is prefixified.
2359         (dump_raw_expression): Renamed from dump_prefix_expression.
2360         (dump_postfix_expression): Rename to dump_prefix_expression, since
2361         that's what it does.
2362         Remove 'note' parameter, since this routine must be used on
2363         prefixified expression.
2364         (dump_prefix_expression): Renamed from dump_postfix_expression.
2365
2366 2003-09-22  Jim Blandy  <jimb@redhat.com>
2367
2368         * dwarf2read.c (read_array_type): When building the type for an
2369         array of unspecified length, make sure to choose the upper bound
2370         so that the array's total length comes out to be zero --- that's
2371         how we represent such arrays.
2372
2373 2003-09-22  Michael Chastain  <mec@shout.net>
2374
2375         * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2376
2377 2003-09-22  Jeff Johnston  <jjohnstn@redhat.com>
2378
2379         * top.c (quit_force): Fix indirect call to quit_target so
2380         a struct qt_args pointer is passed.
2381
2382 2003-09-22  Andrew Cagney  <cagney@redhat.com>
2383
2384         * arch-utils.h (init_frame_pc_noop): Delete declaration.
2385         * arch-utils.c (init_frame_pc_noop): Delete function.
2386         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2387         "init_frame_pc".
2388         * mips-tdep.c (mips_gdbarch_init): Ditto.
2389         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2390         * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2391         declaration.
2392         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2393         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2394         declaration.
2395         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2396
2397 2003-09-22  Anthony Green  <green@redhat.com>
2398
2399         * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2400         declaration.
2401
2402 2003-09-20  Andrew Cagney  <cagney@redhat.com>
2403
2404         * breakpoint.c: Eliminate ARGSUSED.
2405         * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2406         * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2407         * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2408         * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2409         * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2410         * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2411         * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2412         * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2413         * wince.c, remote-vx.c: Ditto.
2414
2415         * cli/cli-script.c: Remove "register" attributes.
2416         * config/pa/tm-hppa.h: Ditto.
2417         * cli/cli-decode.c: Ditto.
2418         * cli/cli-cmds.c: Ditto.
2419
2420 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2421
2422         * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2423         DEPRECATED_NPC_REGNUM.
2424         * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2425
2426 2003-09-19  Christopher Faylor  <cgf@redhat.com>
2427
2428         * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2429
2430 2003-09-19  Jim Blandy  <jimb@redhat.com>
2431
2432         * macrotab.c (macro_include): Use the correct comparison to find
2433         the appropriate place for this inclusion in the list.
2434
2435 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2436
2437         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2438         (DEPRECATED_HPUX_TEXT_END): Define.
2439         (deprecated_hpux_text_end): Declare.
2440         (struct target_ops): Declare opaque.
2441         * hppah-nat.c (text_end): Make static.
2442         (deprecated_hpux_text_end): New function.
2443         * exec.c (text_end): Delete global variable.
2444         (NEED_TEXT_START_END): Do not define.
2445         (exec_file_attach): Replace code computing "text_end" code with
2446         call to DEPRECATED_HPUX_TEXT_END.
2447
2448 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2449
2450         * utils.c (align_up, align_down): New functions.
2451         * defs.h (align_up, align_down): Declare.
2452         * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2453         * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2454         and "align_down".
2455         (round_up, round_down): Delete functions.
2456         * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2457         "align_down".
2458         (ROUND_DOWN, ROUND_UP): Delete macros.
2459         (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2460         * h8300-tdep.c: Replace "round_up" and "round_down" with
2461         "align_up" and "align_down".
2462         (round_up, round_down): Delete macros.
2463         * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2464         "align_down".
2465         (ROUND_UP, ROUND_DOWN): Delete macros.
2466
2467 2003-09-18  J. Brobecker  <brobecker@gnat.com>
2468
2469         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2470         hard-coded constant. Use the proper machine name instead.
2471
2472 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2473
2474         * sparc-tdep.c (legacy_register_name): Delete function.
2475         * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2476         (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2477         * infcmd.c (gdb_register_name): Delete variable.
2478         * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2479         REGISTER_NAME and "tm.h".
2480         * gdbarch.h, gdbarch.c: Regenerate.
2481         * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2482         REGISTER_NAMES in comments.
2483         * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2484         * m68klinux-nat.c (regmap): Ditto.
2485
2486 2003-09-17  Jim Blandy  <jimb@redhat.com>
2487
2488         * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2489
2490 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2491
2492         * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2493         (ppcnbsd_init_abi): Set "use_struct_convention" to
2494         "ppcnbsd_use_struct_convention".
2495
2496 2003-09-17  Mark Kettenis  <kettenis@gnu.org>
2497
2498         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2499         * gdbarch.h, gdbarch.c: Regenerate.
2500         (stabs_argument_has_addr): New architecture method.
2501         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2502         * arch-utils.c: Include "buildsym.h".
2503         (default_stabs_argument_has_addr): New function.
2504         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2505         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2506
2507 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2508
2509         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2510         * gdbarch.h, gdbarch.c: Regenerate.
2511         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2512         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2513         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2514         * sparcnbsd-tdep.c: Update.
2515
2516 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2517
2518         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2519         * gdbarch.h, gdbarch.c: Regenerate.
2520         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2521         * d10v-tdep.c, frame.c: Update.
2522         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2523         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2524         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2525         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2526         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2527         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2528         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2529         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2530         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2531         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2532         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2533         * config/pa/nm-hppah.h: Update.
2534
2535 2003-09-16  Andrew Cagney  <cagney@redhat.com>
2536
2537         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2538         "use_struct_convention" to "ppc_linux_use_struct_convention".
2539         (ppc_linux_use_struct_convention): New function.
2540         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2541         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2542         "rs6000_use_struct_convention".
2543         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2544         declaration.
2545         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2546         Delete function.
2547
2548 2003-09-16  Andrew Cagney  <cagney@redhat.com>
2549
2550         * buildsym.c: Remove more occurances of "register".
2551         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2552         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2553         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2554         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2555         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2556         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2557         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2558         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2559
2560 2003-09-16  Corinna Vinschen  <vinschen@redhat.com>
2561
2562         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
2563         numbers to enumeration values.
2564         * sh-tdep.c: Accomodate above change.
2565         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2566         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2567         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2568         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2569         (IS_FPUSH): Rename from IS_FMOV.
2570         (sh_extract_struct_value_address): Remove useless comment.
2571         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2572         instead of own local values.
2573         (sh_dump_tdep): Remove.
2574         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2575         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2576
2577 2003-09-15  Andrew Cagney  <cagney@redhat.com>
2578
2579         * doublest.c (convert_floatformat_to_doublest): No longer need to
2580         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
2581
2582 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
2583
2584         * values.c (unpack_double): Call floatformat_is_valid.
2585
2586 2003-09-15  Mark Kettenis  <kettenis@gnu.org>
2587
2588         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2589         ps_strings into a long.
2590
2591         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2592         _initialize_am64fbsd_nat.
2593
2594 2003-09-15  Kevin Buettner  <kevinb@redhat.com>
2595
2596         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2597         associated with DW_AT_ranges attribute is out of bounds.
2598
2599 2003-09-15  David Lecomber  <dsl@sources.redhat.com>
2600
2601         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2602
2603 2003-09-14  Michael Chastain  <mec@shout.net>
2604
2605         * config/m68k/nm-apollo68v.h: Delete.
2606         * config/m68k/xm-apollo68v.h: Delete.
2607
2608 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2609
2610         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2611         * dcache.c: Update copyrights and descriptions.
2612         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2613
2614 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2615
2616         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2617         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2618
2619 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2620
2621         * alpha-nat.c: Remove some occurances of "register".
2622         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2623         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2624         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2625         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2626         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2627         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2628         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2629         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2630         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2631         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2632         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2633         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2634         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2635         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2636         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2637         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2638         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2639         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2640         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2641         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2642         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2643         * values.c, vax-tdep.c, xcoffread.c: Ditto.
2644
2645 2003-09-13  Andrew Cagney  <cagney@redhat.com>
2646
2647         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2648         * ppc-tdep.h (struct regcache): Declare opaque.
2649         * objfiles.h (struct objfile_data): Declare opaque.
2650         * cp-support.h (struct objfile): Declare opaque.
2651         * linux-nat.h (target_waitstatus): Declare opaque.
2652
2653 2003-09-14  Mark Kettenis  <kettenis@gnu.org>
2654
2655         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2656         (stabs_argument_has_addr): New architecture method.
2657         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2658         * arch-utils.c: Include "buildsym.h".
2659         (default_stabs_argument_has_addr): New function.
2660         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2661         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2662
2663         * cris-tdep.c (cris_gdbarch_init): Set
2664         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2665         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2666         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2667         * mips-tdep.c (mips_gdbarch_init): Likewise.
2668         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2669         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2670
2671 2003-09-13  Andrew Cagney  <cagney@redhat.com>
2672
2673         * values.c (using_struct_return): Delete "function" and "funcaddr"
2674         parameters.
2675         * value.h (using_struct_return): Update declaration.
2676         * infcmd.c (finish_command_continuation): Update.
2677         (finish_command): Update.
2678         * infcall.c (call_function_by_hand): Update.
2679         * eval.c (evaluate_subexp_standard): Update.
2680
2681 2003-09-13  Christopher Faylor  <cgf@redhat.com>
2682
2683         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2684         SSE registers since gdb will not operate correctly without this.
2685         Restore include file ordering munged in previous change.
2686         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2687
2688 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
2689
2690         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2691         REG_STRUCT_HAS_ADDR.
2692         * gdbarch.c, gdbarch.h: Updated.
2693         * infcall.c (call_function_by_hand): Update.
2694         * stabsread.c (define_symbol): Updated.
2695
2696         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2697
2698 2003-09-12  Christopher Faylor  <cgf@redhat.com>
2699
2700         * win32-nat.c: Reorganize so that defines used by target headers are
2701         actually defined by the system headers.
2702         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2703         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2704
2705 2003-09-12  Jim Blandy  <jimb@redhat.com>
2706
2707         * dbxread.c (read_dbx_symtab): Don't report an internal error if
2708         the file has no .data, .bss, or .rodata sections.  Instead wait
2709         until we see a variable alleged to live in one of those sections.
2710
2711         * dbxread.c (read_dbx_symtab): If we have no .data section and no
2712         .bss section, presume that any variables we find live in the
2713         .rodata section.
2714
2715         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2716         offsets for global and static variables.
2717
2718         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2719         symbol types are, by definition, in the .data section, so it is
2720         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2721         If there is no .data section, there should be no N_DATA or N_DATA
2722         | N_EXT symbols.
2723
2724 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
2725
2726         * amd64fbsd-tdep.c: Fix sigtramp recognition.
2727         (amd64fbsd_sigcontext_addr): Rewrite.
2728         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2729         with correct values.
2730         (amd64fbsd_sc_reg_offset): Initialize with correct values.
2731         (amd64fbsd_init_abi): Fix typo.
2732
2733 2003-09-12  Andrew Cagney  <cagney@redhat.com>
2734
2735         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2736         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2737
2738 2003-09-12  Andrew Cagney  <cagney@redhat.com>
2739
2740         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2741         "entry_file_highpc".  Update comments.
2742         * defs.h (deprecated_inside_entry_file): Rename
2743         "inside_entry_file".
2744         * blockframe.c (deprecated_inside_entry_file): Rename
2745         "inside_entry_file".
2746         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
2747         * vax-tdep.c (vax_frame_chain): Update.
2748         * sh64-tdep.c (sh64_frame_chain): Update.
2749         * sh-tdep.c (sh_frame_chain): Update.
2750         * rs6000-tdep.c (rs6000_frame_chain): Update.
2751         * ns32k-tdep.c (ns32k_frame_chain): Update.
2752         * mips-tdep.c (mips_frame_chain): Update.
2753         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2754         * m32r-tdep.c (m32r_frame_this_id): Update.
2755         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2756         * frv-tdep.c (frv_frame_this_id): Update.
2757         * d10v-tdep.c (d10v_frame_this_id): Update.
2758         * cris-tdep.c (cris_frame_chain): Update.
2759         * blockframe.c (legacy_frame_chain_valid): Update.
2760         * avr-tdep.c (avr_frame_this_id): Update.
2761         * arm-tdep.c (arm_prologue_this_id): Update.
2762         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2763         * objfiles.c (objfile_relocate): Update.
2764         * mipsread.c (mipscoff_symfile_read): Update.
2765         (mipscoff_symfile_read): Update.
2766         * mdebugread.c (parse_partial_symbols): Update.
2767         * dwarfread.c (read_file_scope): Update.
2768         * dwarf2read.c (read_file_scope): Update.
2769         * dbxread.c (read_dbx_symtab): Update.
2770         (read_dbx_symtab): Update.
2771         * coffread.c (complete_symtab): Update.
2772
2773 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
2774
2775         * top.c (quit_target): New static helper function.
2776         (quit_force): Moved code to quit_target().  Call quit_target()
2777         via catch_errors() to catch errors during quit.
2778
2779 2003-09-11  David Carlton  <carlton@kealia.com>
2780
2781         * buildsym.c (finish_block): Use allocate_block to allocate the
2782         block.
2783         * mdebugread.c (new_block): Add FIXME.
2784
2785 2003-09-11  David Carlton  <carlton@kealia.com>
2786
2787         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2788         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2789         (recursive_dump_type): Ditto.
2790         * printcmd.c (print_formatted): Ditto.
2791         * typeprint.c (print_type_scalar): Ditto.
2792         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2793         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2794         * cp-support.h: Declare cp_check_possible_namespace_symbols,
2795         maint_cplus_cmd_list.
2796         * cp-support.c: Make maint_cplus_cmd_list extern.
2797         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2798         command.h.
2799         (lookup_symbol_file): Look in possible namespace blocks when
2800         appropriate.
2801         (initialize_namespace_symtab): New.
2802         (get_possible_namespace_block, free_namespace_block)
2803         (check_possible_namespace_symbols)
2804         (check_possible_namespace_symbols_loop)
2805         (check_one_possible_namespace_symbol)
2806         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2807         (_initialize_cp_namespace): Ditto.
2808         * block.h: Declare allocate_block.
2809         * block.c (allocate_block): New.
2810         * jv-lang.c (get_java_class_symtab): Allocate blocks via
2811         allocate_block.
2812         * symfile.h: Update declaration of add_psymbol_to_list.
2813         * symfile.c (add_psymbol_to_list): Return the partial symbol in
2814         question.
2815         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2816         scan_partial_symbols_call.
2817         (scan_partial_symbols): Add NAMESPACE argument; update calls to
2818         helper functions.
2819         (add_partial_symbol): If necessary, scan mangled names for names
2820         of namespaces.
2821         (add_partial_namespace): Add NAMESPACE argument; generate partial
2822         symbols associated  to namespaces.
2823         (add_partial_enumeration): Add NAMESPACE argument.
2824         (new_symbol): Allow namespace syms.
2825         (read_namespace): Generate namespace syms.
2826         * objfiles.h: Add opaque declaration of struct symtab.
2827         (struct objfile): Add cp_namespace_symtab member.
2828         * objfiles.c (allocate_objfile): Set
2829         objfile->cp_namespace_symtab.
2830         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2831         dictionary_h, command_h.
2832
2833 2003-09-11  Andrew Cagney  <cagney@redhat.com>
2834
2835         * rs6000-tdep.c (rs6000_push_dummy_call): Use
2836         regcache_raw_write_signed to set SP_REGNUM, move the operation to
2837         near the function's end.
2838         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2839         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2840         regcache_raw_write_signed to set SP_REGNUM.
2841
2842 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
2843
2844         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2845         orig_addrs is set up properly.
2846
2847 2003-09-11  Andrew Cagney  <cagney@redhat.com>
2848
2849         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2850         * gdbarch.h, gdbarch.c: Re-generate.
2851         * infcall.c (call_function_by_hand): Update.
2852         * hppa-tdep.c (hppa_push_arguments): Update.
2853         * ada-lang.c (place_on_stack): Update.
2854         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2855         * sparc-tdep.c (sparc_gdbarch_init): Update.
2856         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2857         * hppa-tdep.c (hppa_gdbarch_init): Update.
2858         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2859         stack_align.
2860
2861 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
2862
2863         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2864         register do need a frame.
2865
2866 2003-09-11  Andrew Cagney  <cagney@redhat.com>
2867
2868         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2869         buildable since GDB 5.0.
2870         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2871         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2872         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2873         * irix4-nat.c: Delete file.
2874         * config/mips/irix4.mh: Delete file.
2875         * config/mips/irix3.mh: Delete file.
2876         * config/mips/irix3.mt: Delete file.
2877         * config/mips/tm-irix3.h: Delete file.
2878         * config/mips/nm-irix3.h: Delete file.
2879         * config/mips/xm-irix3.h: Delete file.
2880         * config/mips/nm-irix4.h: Delete file.
2881         * config/mips/xm-irix4.h: Delete file.
2882         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2883
2884 2003-09-10  J. Brobecker  <brobecker@gnat.com>
2885
2886         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2887         * Makefile.in (hppa-tdep.o): Update dependencies.
2888
2889 2003-09-10  James E Wilson  <wilson@specifixinc.com>
2890
2891         * MAINTAINERS: Change my e-mail address.  Move to paper trail
2892         section.
2893
2894 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
2895
2896         * MAINTAINERS (frv): New ISA entry.
2897
2898 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
2899
2900         * frv-tdep.c (dis-asm.h): Include.
2901         * Makefile.in (frv-tdep.o): Update dependencies.
2902
2903 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
2904
2905         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2906         Fix typo for high range of floating registers.
2907
2908 2003-09-09  David Carlton  <carlton@kealia.com>
2909
2910         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2911         highpc initialization here out of scan_partial_symbols.
2912         (scan_partial_symbols): Restructure into a recursive version,
2913         calling add_partial_namespace and add_partial_enumeration when
2914         appropriate.
2915         (add_partial_namespace): New.
2916         (add_partial_enumeration, locate_pdi_sibling): Ditto.
2917
2918 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2919
2920         * rs6000-tdep.c (ppc_push_return_address): Delete function.
2921         (rs6000_push_dummy_call): Set LR to BP_ADDR.
2922         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2923         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2924
2925         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2926         (rs6000_push_dummy_call): Set the "TOC" register.
2927
2928         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2929         methods "max_register_raw_size", "max_register_virtual_size" or
2930         "register_virtual_size".
2931
2932 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
2933
2934         * MAINTAINERS: Update my e-mail address.
2935
2936 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2937
2938         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2939         (rs6000_push_dummy_call): Store the struct return address.
2940         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2941
2942 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2943
2944         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2945         "ppc_sysv_abi_push_arguments".
2946         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2947         "ppc_sysv_abi_push_arguments".
2948         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2949         instead of "push_arguments".
2950         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2951
2952 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2953
2954         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2955         instead of CALL_DUMMY_ADDRESS.
2956
2957 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
2958
2959         * p-lang.c: Eliminate "register".
2960         * c-lang.c: Ditto.
2961         * expprint.c: Ditto.
2962         * f-lang.c: Ditto.
2963         * jv-lang.c: Ditto.
2964         * language.c: Ditto.
2965         * m2-lang.c: Ditto.
2966         * parse.c: Ditto.
2967         * scm-lang.c: Ditto.
2968         * objc-lang.c: Ditto.
2969
2970 2003-09-09  Nick Clifton  <nickc@redhat.com>
2971
2972         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2973
2974 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2975
2976         * avr-tdep.c: Include "dis-asm.h".
2977         * cris-tdep.c: Include "dis-asm.h".
2978         (cris_delayed_get_disassembler): Use "struct disassemble_info"
2979         instead of corresponding typedef.
2980         * h8300-tdep.c: Include "dis-asm.h".
2981         * ia64-tdep.c: Include "dis-asm.h".
2982         * i386-tdep.c: Include "dis-asm.h".
2983         (i386_print_insn): Use "struct disassemble_info" instead of
2984         corresponding typedef.
2985         * m68k-tdep.c: Include "dis-asm.h".
2986         * mcore-tdep.c: Include "dis-asm.h".
2987         * mips-tdep.c: Include "dis-asm.h".
2988         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2989         instead of corresponding typedef.
2990         * ns32k-tdep.c: Include "dis-asm.h".
2991         * s390-tdep.c: Include "dis-asm.h".
2992         * sparc-tdep.c: Include "dis-asm.h".
2993         * vax-tdep.c: Include "dis-asm.h".
2994         * v850-tdep.c: Include "dis-asm.h".
2995         * mn10300-tdep.c: Include "dis-asm.h".
2996         * rs6000-tdep.c: Include "dis-asm.h".
2997         * xstormy16-tdep.c: Include "dis-asm.h".
2998         (_initialize_xstormy16_tdep): Delete "extern" declaration of
2999         print_insn_xstormy16.
3000         * Makefile.in (v850-tdep.o): Update dependencies.
3001         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3002         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3003         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3004         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3005         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3006         (gdbarch_h): Remove $(dis_asm_h).
3007         * disasm.c: Include "dis-asm.h".
3008         (dis_asm_read_memory): Use "struct disassemble_info" instead of
3009         corresponding typedef.
3010         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3011         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3012         * gdbarch.sh: Do not include "dis-asm.h".
3013         (struct disassemble_info): Declare opaque.
3014         (TARGET_PRINT_INSN): Update declaration.
3015         * gdbarch.h, gdbarch.c: Re-generate.
3016
3017 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3018
3019         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3020         CALL_DUMMY_ADDRESS, change to a predicate.
3021         * gdbarch.h, gdbarch.c: Re-generate.
3022         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3023         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3024         * infcall.c (call_function_by_hand): Ditto.
3025         * sparc-tdep.c (sparc_push_return_address): Ditto.
3026         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3027         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3028         CALL_DUMMY_ADDRESS with entry_point_address.
3029         * v850-tdep.c (v850_push_return_address): Ditto.
3030         * s390-tdep.c (s390_push_return_address): Ditto.
3031         * rs6000-tdep.c (ppc_push_return_address): Ditto.
3032         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3033         * mcore-tdep.c (mcore_push_return_address): Ditto.
3034         * cris-tdep.c (cris_push_return_address): Ditto.
3035         * arm-tdep.c (arm_push_return_address): Ditto.
3036
3037 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3038
3039         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3040         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3041         and REG_UNMODIFIED to REG_SAME_VALUE.
3042         (execute_cfa_program): Update.
3043         (dwarf2_frame_cache): Update.  Initialize table to
3044         REG_UNSPECIFIED, complain if CFI fails to specify a register's
3045         location.
3046         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
3047
3048 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3049
3050         * gnu-nat.c: Remove "inline" function attribute.
3051         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3052
3053 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3054
3055         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3056         target.
3057
3058 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3059
3060         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3061         (frame_extra_info): Rename this struct to frv_unwind_cache.
3062         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3063         Add fields ``prev_sp'' and ``base''.
3064         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3065         (frv_saved_pc_after_call, frv_init_extra_frame_info)
3066         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3067         Delete.
3068         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3069         Revise all callers.  Fill in the unwind cache argument and make
3070         other adjustments to account for new frame mechanisms.
3071         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3072         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3073         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3074         (frv_frame_unwind, frv_frame_base): New structs.
3075         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
3076         additional arguments expected by this method and adjust function
3077         body accordingly.
3078         (frv_gdbarch_init): Remove calls to the following functions:
3079         set_gdbarch_deprecated_init_frame_pc(),
3080         set_gdbarch_deprecated_saved_pc_after_call(),
3081         set_gdbarch_deprecated_frame_chain(),
3082         set_gdbarch_deprecated_frame_saved_pc(),
3083         set_gdbarch_deprecated_frame_init_saved_regs(),
3084         set_gdbarch_deprecated_push_arguments(),
3085         set_gdbarch_deprecated_push_return_address(),
3086         set_gdbarch_deprecated_pop_frame(),
3087         set_gdbarch_deprecated_call_dummy_words(),
3088         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3089         set_gdbarch_deprecated_init_extra_frame_info(),
3090         set_gdbarch_deprecated_dummy_write_sp(), and
3091         set_gdbarch_deprecated_pc_in_call_dummy().
3092         Add calls to the following functions:
3093         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3094         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3095         frame_base_set_default().
3096         * Makefile.in (frv-tdep.o): Update dependencies.
3097
3098 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
3099
3100         * dwarf2-frame.c (read_encoded_value): Add support for
3101         DW_EH_PE_aligned encoding.
3102
3103 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3104
3105         * infrun.c (normal_stop): Don't print a message if the inferior
3106         has exited.
3107
3108 2003-09-08  Jim Blandy  <jimb@redhat.com>
3109
3110         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3111         * dbxread.c: #include "gdb_assert.h".
3112         (read_dbx_symtab): If the objfile has no .data section, use the
3113         section index for the .bss section instead.
3114
3115 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3116
3117         * frame.c (deprecated_safe_get_selected_frame): New function.
3118         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3119         * findvar.c (read_var_value): Call it.
3120
3121 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
3122
3123         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3124         (sh64-tdep.o): Add dependencies.
3125         * configure.tgt: Add FIXME to sh-*-linux*.
3126         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3127         (sh_gdbarch_init): Always set correct sh_show_regs function
3128         pointer.  Call sh64_gdbarch_init() if machine type is sh5.
3129         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3130         * sh64-tdep.c: New file, containing all sh64 related code from
3131         sh-tdep.c.
3132         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3133         * config/sh/linux.mt (TDEPFILES): Ditto.
3134         * config/sh/nbsd.mt (TDEPFILES): Ditto.
3135         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3136         * config/sh/wince.mt (TDEPFILES): Ditto.
3137
3138 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3139
3140         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3141         (stop_wait_callback): Handle !lp->signalled also.
3142         (lin_lwp_has_pending, flush_callback): New functions.
3143         (lin_lwp_wait): Call flush_callback.
3144         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3145         (linux_proc_pending_signals): New function.
3146         * linux-nat.h (linux_proc_pending_signals): Add prototype.
3147
3148 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3149
3150         From Nick Kelsey <nickk@ubicom.com>:
3151         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3152         when the stop PC is at the beginning of a function also.
3153
3154 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
3155
3156         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3157         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3158
3159 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
3160
3161         * sol-thread.c: Include "gdb_string.h".
3162
3163 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
3164
3165         * gcore.c: Reorder include files in alphabetical order.  Include
3166         "gdb_assert.h".  Various coding style fixes.
3167         (derive_stack_segment, derive_heap_segment): Replace check for
3168         non-null BOTTOM and TOP with gdb_assert.
3169         (derive_heap_segment): Replace check for successful creation of
3170         ZERO with gdb_assert.
3171         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3172
3173 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3174
3175         * thread-db.c (verbose_dlsym): New function.
3176         (thread_db_load): Use verbose_dlsym
3177         (thread_db_new_objfile): Print that libthread_db was loaded, and
3178         that thread debugging was enabled.
3179
3180 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3181
3182         * configure.tgt: Add "mips64*-*-*" target.  Delete
3183         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3184         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3185         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3186         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3187         mips*-sony-*, and mips64*-*-elf* targets.
3188         * config/mips/embedl.mt: Delete file.
3189         * config/mips/embedl64.mt: Delete file.
3190         * config/mips/mips.mt: Delete file.
3191         * config/mips/mips64.mt: Delete file.
3192         * config/mips/tm-embed.h: Delete file.
3193         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3194         * config/mips/embed64.mt: Delete out-of-date comment.
3195
3196 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3197
3198         * hppa-tdep.c (hppa_gdbarch_init): Set
3199         "have_nonsteppable_watchpoint".
3200         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3201         * mips-tdep.c (mips_dump_tdep): Do not print
3202         HAVE_NONSTEPPABLE_WATCHPOINT.
3203         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3204         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3205         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3206         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3207
3208 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3209
3210         * breakpoint.c (watchpoint_check): Remove accidentally checked in
3211         unused code.  Add comment.
3212
3213 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3214
3215         * breakpoint.c (watchpoint_check): Check for pc being in an
3216         epilogue if watchpoint frame couldn't be found.
3217
3218 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3219
3220         * Makefile.in: Re-generate all dependencies.
3221
3222 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3223
3224         * arch-utils.h (legacy_print_insn): Delete declaration.
3225         * arch-utils.c (legacy_print_insn): Delete function.
3226         * disasm.c (deprecated_tm_print_insn_info): Delete.
3227         (_initialize_disasm): Delete function, contained code initializing
3228         deprecated_tm_print_insn_info.
3229         * gdbarch.sh (deprecated_tm_print_insn): Delete.
3230         (deprecated_tm_print_insn_info): Delete.
3231         (TARGET_PRINT_INSN): Do not provide a default.
3232         * gdbarch.h, gdbarch.c: Re-generate.
3233
3234 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3235
3236         * disasm.c (fprintf_disasm): New function.
3237         (gdb_disassemble_info): Call "init_disassemble_info", instead of
3238         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
3239         reverts 2003-08-14 change.
3240         (_initialize_disasm): Call "init_disassemble_info", instead of
3241         INIT_DISASSEMBLE_INFO_NO_ARCH.
3242
3243 2003-09-03  Michael Snyder  <msnyder@redhat.com>
3244
3245         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3246
3247 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3248
3249         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3250         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3251         * symfile.c (syms_from_objfile): Update.
3252         (reread_symbols): `Update
3253         * exec.c (exec_file_attach): Update.
3254         (exec_file_attach): Update.
3255         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3256         2003-08-29 change.
3257         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3258
3259 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3260
3261         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3262         trad-frame.h.
3263         (arm_get_cache): Delete macro.
3264         (struct arm_prologue_cache): Update comments.  Make saved_regs into
3265         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
3266         to prev_sp.
3267         (thumb_scan_prologue): Update for cache changes.  Don't call
3268         DEPRECATED_PC_IN_CALL_DUMMY.
3269         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
3270         argument and use it in desperation search for our prologue.  Do not
3271         search past the specified PC.
3272         (arm_make_prologue_cache): Simplify.
3273
3274         (arm_prologue_this_id, arm_prologue_prev_register)
3275         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3276         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3277         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3278         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3279         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3280
3281         (arm_frame_chain_valid, arm_find_callers_reg)
3282         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3283         (arm_pop_frame): Delete obsolete methods.
3284         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3285
3286         (arm_gdbarch_init): Update for new frame methods.  Register prologue
3287         and sigtramp unwinders.  Set the default frame base method.
3288
3289         * Makefile.in (arm-tdep.o): Update dependencies.
3290         * varobj.c (find_frame_addr_in_frame_chain): Call
3291         get_frame_base_address.
3292         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3293
3294 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3295
3296         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3297         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
3298         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3299         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3300         Take NEXT_FRAME and CACHE arguments.  Call
3301         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3302         Set unwound_pc in CACHE instead of modifying the frame argument.
3303         Don't bother checking the frame type when looking for sigtramp
3304         frames.
3305         (arm_make_prologue_cache, arm_frame_chain)
3306         (arm_init_extra_frame_info): New functions.
3307
3308 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3309
3310         * arm-tdep.c (arm_get_cache): Define.
3311         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
3312         unwound_sp, unwound_pc, and saved_regs.
3313         (thumb_scan_prologue): Take a cache instead of the frame.
3314         (arm_scan_prologue): Likewise.
3315         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3316         instead of a temporary frame.
3317         (arm_init_extra_frame_info): Allocate and use a cache.
3318         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3319
3320 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3321
3322         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3323         * config/mips/wince.mt (TM_CLIBS): Ditto.
3324         * config/sh/wince.mt (TM_CLIBS): Ditto.
3325         * config/pa/hppa64.mt (TM_CLIBS): Delete.
3326         * config/sparc/sp64.mt (CC): Delete.
3327
3328 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3329
3330         * defs.h: Do not include "arch-utils.h".
3331         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3332         GDB_MULTI_ARCH_PURE.
3333         * configure.in (GDB_MULTI_ARCH): Do not define.
3334         * configure, config.in: Regenerate.
3335         * configure.tgt: Do not set variable "gdb_multi_arch".
3336         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3337         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3338         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3339         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3340         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3341         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3342         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3343         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3344         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3345         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3346         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3347         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3348         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3349         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3350         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3351         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3352         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3353         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3354
3355 2003-08-30  Michael Chastain  <mec@shout.net>
3356
3357         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3358         * config/m68k/nm-hp300hpux.h: Delete.
3359         * config/m68k/tm-hp300hpux.h: Delete.
3360         * config/m68k/xm-hp300hpux.h: Delete.
3361         * config/m68k/xm-hp300bsd.h: Delete.
3362         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3363         tm-hp300hpux.h, xm-hp300hpux.h.
3364         * somsolib.c: Remove comment about hp300 shared libraries.
3365
3366 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
3367
3368         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3369         Only define PTRACE_GET_THREAD_AREA is not already defined.
3370         Various style fixes in code and comments and some additional
3371         spelling fixes in comments.  Move after functions dealing with
3372         debug registers.
3373         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3374         Fix coding-style.
3375
3376         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3377         frame_unwind_register_unsigned instead of
3378         frame_unwind_unsigned_register.
3379
3380 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
3381
3382         * configure.in: Search for gethostbyname in libnsl.
3383         * configure: Regenerated.
3384
3385 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
3386
3387         * configure.in: Remove redundant AC_MSG_RESULT in check for
3388         uintptr_t in stdint.h.
3389         * configure: Regenerated.
3390
3391         * amd64-nat.h (struct regcache): Add opaque declaration.
3392
3393         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3394         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3395         Change "register array" to "register cache" in comments.
3396         (x86_64_linux_gregset64_reg_offset): New variable.
3397         (GETREGS_SUPPLIES): Remove macro.
3398         (supply_gregset): Call amd64_supply_native_gregset instead of
3399         x86_64_linux_supply_gregset.
3400         (fill_gregset): Rename `regno' to `regnum'.  Call
3401         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3402         (store_regs): Rename `regno' to `regnum'.
3403         (store_fpregs): Rename `regno' to `regnum'.
3404         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
3405         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3406         Reorganize function a bit.
3407         (store_inferior_registers): Rename `regno' to `regnum'.  Use
3408         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3409         Reorganize function a bit.
3410         (_initialize_x86_64_linux_nat): New function.
3411         * config/i386/x86-64linux.mh.
3412
3413 2003-08-29  Andrew Cagney  <cagney@redhat.com>
3414
3415         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3416         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3417         (target_remove_watchpoint): Delete macro.
3418         (target_insert_watchpoint): Delete macro.
3419         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3420         (remote_mips_stopped_by_watchpoint): Delete declaration.
3421         (remote_mips_remove_watchpoint): Delete declaration.
3422         (remote_mips_set_watchpoint): Delete declaration.
3423         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3424         * remote-mips.c (_initialize_remote_mips): Set
3425         "to_insert_watchpoint", "to_stopped_by_watchpoint",
3426         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3427         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3428         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3429         (mips_stopped_by_watchpoint): Rename
3430         remote_mips_stopped_by_watchpoint.
3431         (mips_can_hardware_watchpoint): Rename
3432         remote_mips_can_use_hardware_watchpoint, update function
3433         signature.
3434
3435 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
3436
3437         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3438         USER_DS.  We haven't given them a register number yet.
3439
3440         * amd64-nat.h: New file.
3441         * amd64-nat.c: New file.
3442         * amd64fbsd-nat.c: Include "amd64-nat.h".
3443         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3444         (amd64fbsd32_r_reg_offset): New variable.
3445         (supply_gregset): Simply call amd64_supply_native_gregset.
3446         (fill_gregset): Rename `regno' to `regnum'.  Simply call
3447         amd64_collect_native_gregset.
3448         (fill_fpregset): Rename `regno' to `regnum'.
3449         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
3450         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3451         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3452         `fpregset_t'.  Call amd64_supply_native_gregset instead of
3453         supply_gregset.  Call x86_64_supply_fxsave instead of
3454         supply_fpregset.
3455         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
3456         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3457         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3458         `fpregset_t'.  Call amd64_collect_native_gregset instead of
3459         fill_gregset.  Call x86_64_collect_fxsave instead of
3460         fill_fpregset.
3461         (_initialize_am64fbsd_nat): Initialize
3462         amd64_native_gregset32_reg_offset and
3463         amd64_native_gregset64_reg_offset.
3464         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3465
3466         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3467         null pointer.  Fix typo in comment.
3468
3469         * regcache.c (supply_register): Reimplement to call
3470         regcache_raw_supply.
3471         (regcache_collect): Reimplement by calling regcache_raw_collect.
3472
3473 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
3474
3475         * regcache.c (register_buffer): Consitify first argument.
3476         (regcache_raw_supply, regcache_raw_collect): New
3477         functions.
3478
3479 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
3480
3481         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
3482         by Nathan J. Williams.
3483
3484 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
3485
3486         * lin-lwp.c (wait_lwp): New function, copied from
3487         stop_wait_callback.  Clean up.
3488         (stop_wait_callback): Use wait_lwp.
3489
3490 2003-08-28  Andrew Cagney  <cagney@redhat.com>
3491
3492         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3493         flavour and disassembler options.
3494         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3495         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
3496         deprecated_tm_print_insn_info.
3497
3498 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3499
3500         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3501         Use target_read_memory.
3502         (s390_get_frame_info): Update.  Do not reference
3503         deprecated_tm_print_insn_info.
3504         (s390_check_function_end, s390_is_sigreturn): Ditto.
3505
3506 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3507
3508         * Makefile.in (cris-tdep.o): Update dependencies.
3509         * cris-tdep.c: Include "gdb_assert.h".
3510         (cris_gdbarch_init): Set print_insn.
3511         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3512         (cris_delayed_get_disassembler): Simplify, directly call the
3513         disassembler returned by cris_get_disassembler.
3514         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3515         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3516         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3517         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3518         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3519         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3520         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3521         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3522         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3523         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3524         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3525         (gdb_print_insn_sparc): Delete function.
3526         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3527         deprecated_tm_print_insn_info.
3528         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3529         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3530         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3531         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3532         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3533         * s390-tdep.c (gdb_print_insn_s390): Delete function.
3534         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3535         (s390_gdbarch_init): Set print_insn.
3536
3537 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3538
3539         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3540         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3541         * infcall.c (call_function_by_hand): Convert the entry point
3542         address into a code address.
3543
3544 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3545
3546         * dsrec.c: Include "gdb_string.h".
3547         * Makefile.in (dsrec.o): Update dependencies.
3548
3549 2003-08-27  Michael Chastain  <mec@shout.net>
3550
3551         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3552
3553 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3554
3555         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3556         (alpha_osf1_init_abi): Do not set call_dummy_address.
3557
3558 2003-08-27  David Carlton  <carlton@kealia.com>
3559
3560         From Randolph Chung  <tausq@debian.org>:
3561         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3562         compiles with -Wformat-nonliteral -Werror.
3563
3564 2003-08-26  Jim Blandy  <jimb@redhat.com>
3565
3566         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3567         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3568         bfd_lookup_symbol, since we only want symbols in code sections.
3569         (look_for_base): Pass zero as the SECT_FLAGS argument to
3570         bfd_lookup_symbol, since we're not concerned about which section
3571         the symbol is in.
3572
3573 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3574
3575         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3576         we are frameless or the return address register is already known.
3577
3578 2003-08-26  Andrew Cagney  <cagney@redhat.com>
3579
3580         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3581         in size.  Add comments.
3582
3583 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3584
3585         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3586         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3587
3588 2003-08-26  Jason Merrill  <jason@redhat.com>
3589
3590         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3591         case out of #ifdef MIPS block.
3592
3593 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
3594
3595         PR java/1322
3596         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3597         available before calling SECT_OFF_TEXT.
3598         * PROBLEMS: Remove description of java/1322.
3599
3600 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
3601
3602         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3603         bof, and nat0-nat127 as pseudo-registers.
3604         (ia64_frame_cache): New struct used to cache frame info.
3605         (ia64_register_reggroup_p): New routine used to override default
3606         register grouping so registers without names are still saved and
3607         restored.
3608         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3609         pseudo values.
3610         (ia64_pseudo_register_read): New routine to read pseudo-registers.
3611         (ia64_pseudo_register_write): New routine to write pseudo-registers.
3612         (ia64_alloc_frame_cache): New routine to create a new
3613         ia64_frame_cache.
3614         (examine_prologue): Change prototype to add next_frame pointer.
3615         Assume frameless until otherwise proven.  Verify that the cfm for
3616         current frame matches the cfm that should occur for the prologues
3617         alloc insn and if equal, mark as not frameless.  At end of routine,
3618         if not frameless, calculate registers for the previous frame and store
3619         in the cache, if a cache is provided.
3620         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
3621         and pass 0 for next_frame.
3622         (ia64_store_return_value): Change to use convert_typed_floating()
3623         instead of calling ia64_convert_to_raw().
3624         (ia64_extract_return_value): Change to use convert_typed_floating()
3625         instead of calling ia64_convert_to_virtual().
3626         (ia64_frame_cache): New routine to support new frame model.
3627         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3628         (ia64_frame_sniffer): Ditto.
3629         (ia64_sigtramp_frame_init_saved_regs): Ditto.
3630         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3631         (ia64_sigtramp_frame_prev_register): Ditto.
3632         (ia64_sigtramp_frame_sniffer): Ditto.
3633         (ia64_frame_base_address): Ditto.
3634         (ia64_extract_struct_value_address): Change to issue error message.
3635         (ia64_frame_align): New routine to align sp.
3636         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3637         (ia64_push_arguments): Removed.  Logic moved to
3638         ia64_push_dummy_call().
3639         (ia64_push_return_address): Ditto.
3640         (ia64_unwind_dummy_id): New function.
3641         (ia64_unwind_pc): Ditto.
3642         (ia64_convert_register_p): Ditto.
3643         (ia64_register_to_value): Ditto.
3644         (ia64_value_to_register): Ditto.
3645         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3646         (ia64_register_byte, ia64_register_raw_size): Ditto.
3647         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3648         (ia64_saved_pc_after_call): Ditto.
3649         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3650         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3651         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3652         (ia64_register_convert_to_raw): Ditto.
3653         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3654         (ia64_init_extra_frame_info): Ditto.
3655         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3656         (ia64_gdbarch_init): Remove registering of deprecated functions that
3657         are no longer used.  Add registration of new gdbarch functions.
3658         Remove registering deprecated_write_sp.  Replace
3659         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3660         Delete set_gdbarch_deprecated_register_convertible(),
3661         set_gdbarch_deprecated_register_convert_to_virtual(), and
3662         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
3663         set_gdbarch_deprecated_register_size(),
3664         set_gdbarch_deprecated_register_bytes(),
3665         set_gdbarch_pcregnum(),
3666         set_gdbarch_deprecated_register_byte(),
3667         set_gdbarch_deprecated_register_raw_size(),
3668         set_gdbarch_deprecated_max_register_raw_size(),
3669         set_gdbarch_deprecated_register_virtual_size(),
3670         and set_gdbarch_deprecated_max_register_virtual_size() calls.
3671         Replace set_gdbarch_deprecated_extract_return_value() with
3672         set_gdbarch_extract_return_value().  Remove calls to:
3673         set_gdbarch_deprecated_saved_pc_after_call();
3674         set_gdbarch_deprecated_frame_chain(),
3675         set_gdbarch_deprecated_frame_saved_pc(),
3676         set_gdbarch_deprecated_frame_init_saved_regs(),
3677         set_gdbarch_deprecated_get_saved_register(),
3678         set_gdbarch_deprecated_call_dummy_words(),
3679         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3680         set_gdbarch_deprecated_init_extra_frame_info(),
3681         set_gdbarch_deprecated_frame_args_address(),
3682         set_gdbarch_deprecated_frame_locals_address(),
3683         and set_gdbarch_deprecated_dummy_write_sp().
3684         Add set_gdbarch_convert_register_p(),
3685         set_gdbarch_register_to_value(),
3686         set_gdbarch_value_to_register(),
3687         set_gdbarch_push_dummy_call(),
3688         set_gdbarch_frame_align(),
3689         set_gdbarch_unwind_dummy_id(),
3690         set_gdbarch_unwind_pc(),
3691         frame_unwind_append_sniffer(),
3692         frame_unwind_append_sniffer(),
3693         and frame_base_set_default().
3694
3695 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
3696
3697         * configure.tgt: Document need for special "mipsisa64" handling.
3698         (mipsisa64*-*-linux64): Handle as target linux64.
3699         (mipsisa64*-*-*): Handle as target embed64.
3700
3701 2003-08-18  Michael Chastain  <mec@shout.net>
3702
3703         * PROBLEMS: Document pr gdb/1322, the Java anonymous
3704         objfile bug.
3705
3706 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
3707
3708         * i387-tdep.h: Update copyright date.
3709         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3710
3711         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3712         CFLAGS games to reflect reality.
3713
3714 2003-08-24  Andrew Cagney  <cagney@redhat.com>
3715
3716         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3717         GDB_MULTI_ARCH is always non-zero.
3718         * osabi.c (_initialize_gdb_osabi): Ditto.
3719         (gdbarch_init_osabi): Ditto.
3720         * sparc-tdep.c: Ditto for #if code.
3721
3722 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
3723
3724         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3725         Update comments.
3726         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
3727         comments.
3728         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3729         x86_64_supply_fxsave.
3730         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3731         x86_64_supply_fxsave.
3732         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3733         x86_64_supply_fxsave.
3734
3735 2003-08-23  Andreas Jaeger  <aj@suse.de>
3736
3737         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3738         i387_supply_fxsave.
3739
3740 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
3741
3742         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3743         i387_supply_register.
3744         (go32_fetch_registers): Adjust call to i387_supply_fsave.
3745         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3746         i387_supply_fsave.
3747         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3748         i387_supply_fxsave.
3749         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3750         i387_supply_fsave.
3751         * i386bsd-nat.c (supply_fpregset): Adjust call to
3752         i387_supply_fsave.
3753         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
3754         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
3755         supply_fpregset.
3756         (store_inferior_registers): Remove extraneous whitespace.  Call
3757         i387_fill_fsave instead of fill_fpregset.
3758         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3759         (supply_fpregset): Likewise.
3760         * i386v4-nat.c (supply_fpregset): Adjust call to
3761         i387_supply_fsave.
3762         * i386-interix-nat.c (supply_fpregset): Adjust call to
3763         i387_supply_fsave.
3764         * i386-linux-nat.c (supply_fpregset): Adjust call to
3765         i387_supply_fsave.
3766         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3767         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3768         i387supply_fsave and i387_supply_fxsave.
3769         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3770         Incorporate code from `i387_supply_register.
3771         (i387_supply_register): Remove.
3772         (i387_supply_fxsave): Add `regnum' argument.
3773         Update comments.
3774         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3775         prototype.
3776         (i387_supply_register): remove prototype.
3777         Update comments.
3778
3779 2003-08-22  Michael Chastain  <mec@shout.net>
3780
3781         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3782         Add lines for files in gdb/testsuite/gdb.cp/* that are
3783         still not 8.3 unique.
3784
3785 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
3786
3787         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3788         TYPE_VPTR_FIELDNO is valid.
3789
3790 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
3791
3792         * utils.c (set_width_command): Remove prototypes.
3793         (set_screen_size): New prototype.
3794         (init_page_info): Simplify by fetching the screen size from
3795         Readline.  Call set_screen_size.
3796         (set_screen_size): New function.
3797         (set_width): Add missing whitespace in comment.
3798         (set_width_command): Call set_screen_size.
3799         (set_height_command): New function.
3800         (initialize_utils): Fix formatting.  Make "set height" command
3801         call set_height_command.  Remove redundant code that turns off
3802         pagination if output isn't a terminal.  Remove redundant call to
3803         set_width_command.
3804
3805 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
3806
3807         * sparc64-tdep.h (sparc64_regnum): Fix comment.
3808         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3809         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3810         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3811         `case' keyword.
3812         (sparc64_register_info): Give the reister with number
3813         SPARC64_STATE_REGNUM a name.
3814         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3815         %asi and %ccr.
3816         (sparc64_push_dummy_call): Take BIAS into account when checking
3817         stcak alignment.
3818         (sparc_software_single_step): Remove assertions that check whether
3819         NPC and NNPC were zero.
3820         (sparc_supply_rwindow): Make public.  Merge functionality with
3821         sparc64_supply_rwindow.
3822         (sparc_fill_rwindow): Make public.  Merge functionality with
3823         sparc64_fill_rwindow.
3824         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3825         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3826         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3827         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3828         sparc_supply_rwindow instead of sparc64_supply_rwindow.
3829
3830         * reggroups.c: Add whitespace after declarations of local
3831         variables in functions.
3832
3833 2003-08-21  Michael Chastain  <mec@shout.net>
3834
3835         * gdbtypes.h: Change array bound type from an int to enum.
3836
3837 2003-08-21  Andrew Cagney  <cagney@redhat.com>
3838
3839         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3840         * config/sparc/tm-sparc.h: Ditto.
3841         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3842         unconditionally.
3843         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3844
3845 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
3846
3847         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3848         (register_objfile_data, set_objfile_data, objfile_data): New
3849         prototypes.
3850         * objfiles.c (objfile_alloc_data, objfile_free_data): New
3851         prototypes.
3852         (allocate_objfile): Call objfile_alloc_data.
3853         (free_objfile): Call objfile_free_data.
3854         (struct objfile_data): New.
3855         (struct objfile_data_registration): New.
3856         (struct objfile_data_registry): New.
3857         (objfile_data_registry): New variable.
3858         (register_objfile_data): New function.
3859         (objfile_alloc_data, objfile_free_data): New functions.
3860         (set_objfile_data, objfile_data): New functions.
3861         * dwarf2-frame.c (dwarf2_frame_data): New variable.
3862         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3863         (_initialize_dwarf2_frame): New function and prototype.
3864
3865 2003-08-21  Andrew Cagney  <cagney@redhat.com>
3866
3867         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3868         a specific architecture.
3869         * arch-utils.h (set_architecture_from_arch_mach): Delete
3870         declaration.
3871         (target_architecture_hook): Delete declaration.
3872         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3873         (default_float_format): Assume GDB_MULTI_ARCH.
3874         (default_double_format): Assume GDB_MULTI_ARCH.
3875         (set_endian_from_file): Delete function.
3876         (arch_ok): Delete function.
3877         (set_arch): Delete function.
3878         (set_architecture_from_arch_mach): Delete function.
3879         (set_architecture_from_file): Delete function.
3880         (set_architecture): Assume GDB_MULTI_ARCH.
3881         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3882
3883 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
3884
3885         Rewrite FreeBSD/sparc64 native configuration.
3886         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3887         * sparc64fbsd-nat.c: New file.
3888         * sparc64fbsd-tdep.c: New file.
3889         * sparc64-tdep.c sparc64-tdep.h: New files.
3890         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3891         sparc64fbsd-tdep.o): New dependencies.
3892         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3893         and sparc64fbsd-tdep.c.
3894         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3895         * config/sparc/fbsd.mh: Remove copyright notice.
3896         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3897         sparcbsd-nat.o.
3898         * config/sparc/fbsd.mt: Remove copyright notice.
3899         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3900         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3901         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3902         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3903         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3904         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3905         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3906         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3907         "sparc/tm-sp64.h".
3908         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3909         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3910
3911 2003-08-21  Michael Chastain  <mec@shout.net>
3912
3913         * symtab.h: Add doco on the space critical structures and
3914         some measurements of space usage.
3915
3916 2003-08-21  Michael Snyder  <msnyder@redhat.com>
3917
3918         * tracepoint.c (trace_dump_command): Trace break address
3919         is subject to DECR_PC_AFTER_BREAK.
3920         (set_traceframe_context): Make "trace_line" an int.
3921         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
3922
3923 2003-08-20  Michael Snyder  <msnyder@redhat.com>
3924
3925         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3926         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3927         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3928         argument passing.
3929         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3930         functions, replace sh_push_dummy_call.
3931         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3932
3933 2003-08-20  Michael Chastain  <mec@shout.net>
3934
3935         * gdbtypes.h (struct main_type): Rearrange to save space.
3936
3937 2003-08-20  Michael Snyder  <msnyder@redhat.com>
3938
3939         * trad-frame.c: Comment typo fix.
3940
3941 2003-08-20  Michael Snyder  <msnyder@redhat.com>
3942             Kevin Buettner  <kevinb@redhat.com>
3943
3944         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3945         (frv_frame_init_saved_regs): Add declaration.
3946         (frame_extra_info): Add new field ``saved_regs''.
3947         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3948         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3949         Update frame related code.
3950         (frv_extract_struct_value_address): Adjust formatting.
3951         * Makefile.in (frv-tdep.o): Update dependencies.
3952         * config/frv/tm-frv.h (target_insert_watchpoint)
3953         (target_remove_watchpoint, target_insert_hw_breakpoint)
3954         (target_remove_hw_breakpoint): Delete these macros.
3955         (remote_insert_watchpoint, remote_remove_watchpoint)
3956         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3957         these declarations.
3958
3959 2003-08-20  Michael Chastain  <mec@shout.net>
3960
3961         * defs.h (ENUM_BITFIELD): New macro.
3962         * symtab.h (ENUM_BITFIELD): Use it.
3963         (BYTE_BITFIELD): Remove old macro, which was already disabled.
3964
3965 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
3966
3967         * MAINTAINERS (write after approval): Add myself.
3968
3969 2003-08-18  Andrew Cagney  <cagney@redhat.com>
3970
3971         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3972         * gdbarch.h, gdbarch.c: Re-generate.
3973         * infcall.c (call_function_by_hand): Adjust the SP by
3974         frame_red_zone_size before allocating any stack space.
3975         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3976         * x86-64-tdep.c (x86_64_frame_align): New function.
3977         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3978
3979         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3980         Remove code adjusting SP so that it skips over the Red Zone.
3981
3982 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
3983
3984         * NEWS (New native configurations): Mention FreeBSD/amd64.
3985
3986 2003-08-18  Andrew Cagney  <cagney@redhat.com>
3987
3988         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3989         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
3990         "m68k_frame_p".
3991         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3992
3993 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
3994
3995         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3996
3997 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
3998
3999         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4000         Define.
4001         * i386-linux-nat.c: Include "linux-nat.h".
4002         (child_post_startup_inferior): New function.
4003
4004 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4005
4006         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4007         at the start of a frameless function.  This probably fixes PR
4008         backtrace/1338.
4009
4010 2003-08-17  Michael Chastain  <mec@shout.net>
4011
4012         * symfile.c (find_sym_fns): Remove special case for apollo target.
4013
4014 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4015
4016         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4017         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4018         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4019         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4020         (linux_supports_tracevforkdone): New function.
4021         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4022         TRACEVFORKDONE.
4023         (child_follow_fork): Handle vfork.
4024         (linux_handle_extended_wait): Likewise.  Also handle exec.
4025         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4026         * NEWS: Mention fork tracing.
4027
4028 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4029
4030         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4031
4032 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4033
4034         * Makefile.in (i386-linux-nat.o): Update dependencies.
4035         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4036         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4037         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4038         * i386-linux-nat.c: Include "linux-nat.h".
4039         (child_post_startup_inferior): New function.
4040         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4041         * infptrace.c (kill_inferior): Wrap in #ifdef.
4042         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4043         attaching to each LWP.
4044         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4045         (init_lin_lwp_ops): Fill in some more operations.
4046         * linux-nat.h (linux_enable_event_reporting)
4047         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4048         prototypes.
4049         * linux-nat.c (linux_enable_event_reporting): New function.
4050         (child_post_attach, linux_child_post_startup_inferior)
4051         (child_post_startup_inferior, child_follow_fork)
4052         (linux_handle_extended_wait, kill_inferior): New functions.
4053
4054 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4055
4056         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4057         * gdbarch.h, gdbarch.c: Re-generate.
4058
4059 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
4060
4061         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4062
4063 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4064
4065         * NEWS: Mention that "set prompt-escape-char" was deleted.
4066         * top.c (get_prompt_1): Delete function.
4067         (gdb_prompt_escape):
4068         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
4069         prompt-escape-char" command.
4070         (MAX_PROMPT_SIZE): Delete macro.
4071         (get_prompt): Simplify, do not call get_prompt_1.
4072
4073 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4074
4075         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4076         -Werror.  -Wformat-nonliteral problems.
4077
4078 2003-08-15  J. Brobecker  <brobecker@gnat.com>
4079
4080         Further multiarching work mostly for hppa64-*-hpux11:
4081         * hppa-tdep.h: New file.
4082         * hppa-tdep.c: #include hppa-tdep.c.
4083         (hppa32_num_regs): Renamed from hppa_num_regs.
4084         (hppa64_num_regs): New constant.
4085         (hppa64_call_dummy_breakpoint_offset): New constant.
4086         (hppa32_call_dummy_length): New constant.
4087         (hppa64_call_dummy_length): New constant.
4088         (hppa32_stack_align): Make name 32bit explicit.
4089         (hppa32_register_virtual_type): Likewise.
4090         (hppa32_extract_return_value): Likewise.
4091         (hppa32_use_struct_convention): Likewise.
4092         (hppa32_store_return_value): Likewise.
4093         (hppa64_register_virtual_type): New function.
4094         (hppa64_extract_return_value): New function.
4095         (hppa64_use_struct_convention): New function.
4096         (hppa64_store_return_value): New function.
4097         (hppa_frame_locals_address): Remove declaration, function does
4098         not exist anymore.
4099         (hppa_register_byte): Add support for PA64 ABI.
4100         (hppa_gdbarch_init): Add support for PA64 ABI.
4101         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4102         Make name 32bit explicit.
4103         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4104         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4105         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4106         (hppa64_hpux_frame_base_before_sigtramp): New function.
4107         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4108         * config/pa/tm-hppa64.h: Remove macros that are no longer
4109         necessary now that the gdbarch vector is properly setup.
4110         Transform some macros into function calls. Some minor cleanup.
4111         * config/pa/tm-hppah.h: Update function calls in macros
4112         following the function renaming in hppa-hpux-tdep.c.
4113         * Makefile.in (hppa_tdep_h): New variable.
4114         (hppa-tdep.o): Add dependency over hppa_tdep_h.
4115
4116 2003-08-14  Michael Snyder  <msnyder@redhat.com>
4117
4118         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4119
4120 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4121
4122         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4123         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4124         routine.
4125
4126 2003-08-13  Michael Snyder  <msnyder@redhat.com>
4127
4128         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4129         (frv_saved_pc_after_call): Use deprecated ftype.
4130         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4131         (frv_remote_translate_xfer_address): Remove.
4132         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4133
4134 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4135
4136         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4137         initialization after the common gdbarch initialization, not before.
4138
4139 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4140
4141         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4142         (ADDR_BITS_REMOVE): Remove, redundant.
4143
4144 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4145
4146         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4147         gdbarch method to clear the 2 low bits of text addresses.
4148
4149 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4150
4151         * Makefile.in (dsrec.o): Update dependencies.
4152         * dsrec.c: Include "gdb_assert.h".
4153         (make_srec): Use snprintf instead of sprintf, use a literal format
4154         string.
4155
4156 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4157
4158         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4159         FRAME_OBSTACK_ZALLOC.
4160
4161 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
4162
4163         * i386-tdep.c (i386_gdbarch_init): Enable default support for
4164         SSE registers.
4165
4166 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4167
4168         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4169         amd64fbsd_sc_reg_offset): Add extern declarations.
4170         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4171         declarations.
4172
4173 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
4174
4175         * MAINTAINERS (write after approval): Update my mail address.
4176
4177 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4178
4179         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4180
4181 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4182
4183         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4184         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4185         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4186         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4187         i386bsd_sc_reg_offset): Add extern declarations.
4188         * i386obsd-nat.c: Include "i386-tdep.h"
4189         (_initialize_i386obsd_nat): Remove extern declarations.
4190         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4191         declarations.
4192         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4193         declarations.
4194
4195         * i386-tdep.c (i386_register_to_value): Use get_frame_register
4196         instead of frame_read_register.
4197         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4198         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
4199         SP_REGNUM.
4200         (i386_frame_prev_register): Use frame_unwind_register_unsigned
4201         instead of frame_unwind_unsigned_register.  Use
4202         I386_EFLAGS_REGISTER instead of PS_REGNUM.
4203         (i386_get_longjmp_target): Use regcache_read_unsigned_register
4204         instead of read_register.  Use builtin_type_void_data_ptr instead
4205         of builtin_type_void_func_ptr when extracting the address of the
4206         jmp_buf.
4207         (i386_extract_return_value, i386_store_return_value,
4208         i386_pseudo_register_read, i386_pseudo_register_write): Use
4209         register_size instead REGISTER_RAW_SIZE.
4210
4211 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4212
4213         * infcall.c (call_function_by_hand): Use xstrprintf instead of
4214         sprintf.  Make "name" constant.
4215
4216 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4217
4218         * i387-tdep.c (i387_register_to_value): Use get_frame_register
4219         instead of frame_read_register.
4220         (i387_print_float_info): Use get_frame_register and
4221         get_frame_register_unsigned instead of frame_register_read.
4222
4223         * i386fbsd-nat.c: Include "i386-tdep.h".
4224         (child_resume): Make `eflags' an ULONGEST.  Use
4225         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4226         instead of register_read and register_write.
4227
4228         * i386bsd-nat.c (fetch_inferior_registers,
4229         store_inferior_registers): Don't use && at the end of a line.
4230         (_initialize_i386bsd_nat): Fix typo.
4231
4232         * frame.c (_initialize_frame): Add missing backslash.
4233
4234         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4235         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4236         and supply_register instead of manipulating the register buffer
4237         directly.
4238
4239         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4240         * config/i386/nm-i386sol2.h
4241         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4242
4243         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4244         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4245         instructions that GCC likes to mingle into the prologue.  Fixes
4246         gdb/1253 and gdb/1255.
4247
4248 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4249
4250         Fix GDB PR cli/926.
4251         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4252         * command.h (add_setshow_uinteger_cmd): Declare.
4253         * frame.c (set_backtrace_cmd): New function.
4254         (show_backtrace_cmd): New function.
4255         * frame.c (_initialize_frame): Replace "set/show
4256         backtrace-below-main" with "set/show backtrace past-main".  Add
4257         command "set/show backtrace limit".
4258         (backtrace_past_main): Rename "backtrace_below_main".
4259         (backtrace_limit): New variable.
4260         (get_prev_frame): Update.  Check the backtrace_limit.
4261
4262 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4263
4264         * defs.h (xstrprintf): Declare.
4265         * utils.c (xstrprintf): New function.
4266         * breakpoint.c (insert_breakpoints): Replace sprintf and
4267         non-literal format strings, with xstrprintf and cleanups.
4268         (delete_breakpoint,breakpoint_re_set): Ditto.
4269         (commands_command, insert_breakpoints): Ditto.
4270         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4271         (break_at_finish_command_1): Ditto.
4272
4273 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4274
4275         * MAINTAINERS (language support): List Adam Fedor as Objective C
4276         maintainer.
4277
4278 2003-08-08  J. Brobecker  <brobecker@gnat.com>
4279
4280         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4281         are now multiarched.
4282
4283 2003-08-08  J. Brobecker  <brobecker@gnat.com>
4284
4285         * config/pa/tm-hppa64.h: Remove lots of macros that are no
4286         longer necessary now that hppa64 is partially multiarch'ed.
4287
4288 2003-08-08  Andrew Cagney  <cagney@redhat.com>
4289
4290         * interps.c (interp_set): Check for a NULL "old_interp".
4291
4292 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
4293
4294         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4295         (install-only): Support DESTDIR.
4296         (uninstall): Likewise.
4297         (install-gdbtk): Likewise.
4298
4299 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
4300
4301         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4302         contains something meaningful at all times.
4303
4304 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
4305
4306         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4307
4308 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
4309
4310         * MAINTAINERS (write after approval): Added self.
4311
4312 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4313
4314         * inferior.h (AT_SYMBOL): Define.
4315         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4316         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4317         * mips-tdep.c (mips_call_dummy_address): Delete function.
4318         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4319         set call_dummy_address.
4320
4321 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4322
4323         * language.c (op_error): Delete function.
4324         (binop_type_check): Delete function.
4325         * language.h (type_op_error, range_op_error): Delete macros.
4326         (op_error): Delete declaration.
4327
4328 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4329
4330         * interps.h (INTERP_MI2, INTERP_MI3): Define.
4331
4332 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
4333
4334         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4335         (x86_64_push_arguments): Skip the red zone.
4336
4337 2003-08-05  Andrew Cagney  <cagney@redhat.com>
4338
4339         * reggroups.c (reggroup_next): Check for the final entry.
4340
4341 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4342
4343         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4344         * cli/cli-script.c (define_command): Call query directly, instead
4345         of passing it a buffer.
4346         * ocd.c (ocd_error): Pass error a constant format string.
4347         * remote-mips.c (mips_error): Use fputs_filtered.
4348
4349         * solib-svr4.c (_initialize_svr4_solib): Update
4350         register_gdbarch_data call.
4351         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4352
4353         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4354         (register_gdbarch_data): Delete "free" parameter.  Update
4355         comments.
4356         * gdbarch.h, gdbarch.c: Re-generate.
4357         * reggroups.c (_initialize_reggroup): Update.
4358         * gnu-v3-abi.c (init_gnuv3_ops): Update.
4359         * frame-base.c (_initialize_frame_base): Update.
4360         * frame-unwind.c (_initialize_frame_unwind): Update.
4361         * user-regs.c (_initialize_user_regs): Update.
4362         * remote.c (_initialize_remote): Update.
4363         * regcache.c (_initialize_regcache): Update.
4364
4365         * regcache.c (xfree_regcache_descr): Delete function.
4366         (_initialize_regcache): Update call to register_gdbarch_data.
4367         (init_regcache_descr, init_legacy_regcache_descr): Use
4368         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4369
4370         * remote.c (free_remote_state): Delete function.
4371         (_initialize_remote): Update register_gdbarch_data.
4372         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4373         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4374
4375 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4376
4377         * reggroups.c (struct reggroup_el): Define.
4378         (struct reggroups): Delete field "nr_group".  Replace array
4379         "group" with a "first" to "last" linked list.
4380         (reggroups_init): Update.  Allocate using gdbarch's obstack.
4381         (reggroups_free): Delete function.
4382         (add_group): Update.  Add "el" parameter.
4383         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4384         (default_groups): Update.
4385         (reggroup_next): Replace reggroups.
4386         (reggroups_dump): Update.
4387         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4388         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4389         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4390
4391 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
4392
4393         * Makefile.in (tui-interp.o): Update dependencies.
4394
4395 2003-08-04  David Carlton  <carlton@kealia.com>
4396
4397         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4398         to internal_error call.
4399         * source.c (forward_search_command): Add "%s" format argument.
4400         (reverse_search_command): Ditto.
4401         * top.c (quit_confirm): Ditto.
4402         * cli/cli-setshow.c (do_setshow_command): Ditto.
4403         * cp-valprint.c (cp_print_class_method): Replace
4404         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4405         (cp_print_class_member): Ditto.
4406         * event-top.c (command_line_handler): Ditto.
4407         * linux-proc.c (linux_info_proc_cmd): Ditto.
4408         * p-typeprint.c (pascal_type_print_base): Ditto.
4409         * p-valprint.c (pascal_object_print_class_method): Ditto.
4410         (pascal_object_print_class_member): Ditto.
4411         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4412         * remote.c (remote_cisco_section_offsets): Ditto.
4413         * top.c (command_line_input): Ditto.
4414         * utils.c (vwarning,error_stream,quit): Ditto.
4415         * valprint.c (print_floating,print_binary_chars)
4416         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4417
4418 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4419
4420         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4421
4422 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4423
4424         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4425         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4426         amd64fbsd-nat.c.
4427
4428 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4429
4430         * Makefile.in: Update all dependencies and definitions.
4431
4432 2003-08-02  Adam Fedor  <fedor@gnu.org>
4433
4434         * linespec.c (is_objc_method_format): New function
4435         (decode_line_1, locate_first_half): Use it.
4436         Fixes PR objc/1298
4437
4438 2003-08-01  Andrew Cagney  <cagney@redhat.com>
4439
4440         * NEWS: Mention that m32r is multi-arch.
4441         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4442         * configure.tgt: Recognize m32r-*-*.
4443         * config/m32r/tm-m32r.h: Delete file.
4444         * config/m32r/m32r.mt: New file.
4445         * m32r-rom.c (m32r_upload_command): Use hostent only when
4446         gethostname succeeds, in order to avoid a compilation
4447         warning.
4448         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4449         compiler warning.
4450
4451 2003-08-01  Michael Snyder  <msnyder@redhat.com>
4452
4453         * sh-tdep.c (sh_frame_align): New gdbarch method.
4454         (sh_gdbarch_init): Set up frame_align method.
4455
4456 2003-07-31  Michael Snyder  <msnyder@redhat.com>
4457
4458         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4459         which is already covered by the new frames infrastructure.
4460
4461 2003-07-31  Andrew Cagney  <cagney@redhat.com>
4462
4463         * user-regs.c (struct user_reg): Add "next" link.
4464         (struct user_regs): Replace "user" with "first" and "last" links.
4465         (append_user_reg): Add pre-allocated "reg" parameter.
4466         (builtin_user_regs): Provide initial value for "last".
4467         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4468         (user_regs_init): Allocate memory from the gdbarch obstack.
4469         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4470         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4471         linked list.
4472         (usernum_to_user_reg): New function.
4473         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4474         (value_of_user_reg): Use usernum_to_user_reg.
4475         (user_regs_free): Delete function.
4476         (_initialize_user_regs): Update register_gdbarch_data call.
4477
4478 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
4479
4480         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4481
4482 2003-07-30  Michael Snyder  <msnyder@redhat.com>
4483
4484         * value.h (value_being_returned): Add a struct_addr argument.
4485         * infcall.c (call_function_by_hand): Pass struct_addr to
4486         value_being_returned.
4487         * infcmd.c (print_return_value): Pass zero as struct_addr.
4488         * values.c (value_being_returned): If struct_addr is passed,
4489         use it instead of trying to recover it from the inferior.
4490
4491 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
4492
4493         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4494         the prologue analyzer won't need to attempt to extract the pc
4495         value from the woefully incomplete dummy frame.
4496         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4497         possible.  Disable code which modifies the frame.
4498
4499 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4500
4501         * annotate.c (annotate_breakpoints_headers): Restrict annotation
4502         to level 2.
4503         (annotate_breakpoints_table, annotate_record): Ditto.
4504         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4505         (annotate_field_name_end, annotate_field_value): Ditto.
4506         (annotate_field_end, annotate_frame_source_begin): Ditto.
4507         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4508         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4509         (annotate_frame_begin, annotate_frame_function_name): Ditto.
4510         (annotate_frame_address_end, annotate_frame_address): Ditto.
4511         (annotate_frame_args, annotate_frame_end): Ditto.
4512         (annotate_frame_where, annotate_arg_begin): Ditto.
4513         (annotate_arg_name_end, annotate_arg_value): Ditto.
4514         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4515         (annotate_function_call, annotate_signal_name): Ditto.
4516         (annotate_signal_string, annotate_signal_name_end): Ditto.
4517         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4518         (annotate_value_begin, annotate_value_history_value): Ditto.
4519         (annotate_value_history_end, annotate_value_end): Ditto.
4520         (annotate_display_begin, annotate_display_number_end): Ditto.
4521         (annotate_display_format, annotate_display_expression): Ditto.
4522         (annotate_display_expression_end, annotate_display_value): Ditto.
4523         (annotate_display_end, annotate_array_section_begin): Ditto.
4524         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4525         (annotate_elt, annotate_array_section_end): Ditto.
4526
4527 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4528
4529         * regcache.c (struct regcache_descr): Update comments on
4530         nr_raw_registers.
4531         (init_legacy_regcache_descr): Don't set nr_raw_registers or
4532         sizeof_raw_register_valid_p.
4533         (init_regcache_descr): Set nr_raw_registers and
4534         sizeof_raw_register_valid_p before calling
4535         init_legacy_regcache_descr.
4536
4537 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4538
4539         * mips-tdep.c (print_gp_register_row): Print the GPR's register
4540         MOD NUM_REGS.
4541
4542 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
4543
4544         * thread.c (info_threads_command): Use get_selected_frame ().
4545         Check that there is at least one non-sentinel frame.
4546
4547 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4548
4549         * m68hc11-tdep.c (struct frame_extra_info): Remove.
4550         (m68hc11_pop_frame): Remove.
4551         (m68hc11_frame_saved_pc): Remove.
4552         (m68hc11_frame_chain): Remove.
4553         (m68hc11_frame_init_saved_regs): Remove.
4554         (m68hc11_init_extra_frame_info): Remove.
4555         (m68hc11_store_struct_return): Remove.
4556         (m68hc11_saved_pc_after_call): Remove.
4557
4558 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4559
4560         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4561         frame unwind information.
4562         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4563         and adapted for frame unwinding.
4564         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4565         (m68hc11_unwind_pc): New function.
4566         (m68hc11_frame_unwind_cache): New function to analyze frames.
4567         (m68hc11_frame_this_id): New function to create new frame struct.
4568         (m68hc11_frame_prev_register): New function to unwind a register from
4569         the frame.
4570         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4571         (m68hc11_frame_p): New function for the above.
4572         (m68hc11_frame_base_address): New function to return fp of frame.
4573         (m68hc11_frame_args_address): Update for frame.
4574         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4575         (m68hc11_unwind_sp): New function.
4576         (m68hc11_unwind_dummy_id): New function.
4577         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4578         calls.
4579
4580 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4581
4582         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4583         (m68hc11_guess_from_prologue): Advance the pc and frame size only
4584         when we are beyond the current pc.
4585
4586 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4587
4588         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4589         from m68hc11_push_arguments.
4590         (m68hc11_push_arguments): Remove.
4591         (m68hc11_push_return_address): Remove.
4592         (m68hc11_gdbarch_init): Install the above; remove above deprecated
4593         handlers; remove deprecated_extra_stack_alignment_needed.
4594
4595 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4596
4597         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4598         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4599         REAL_PC and not the pointer.
4600         * hppa-hpux-tdep.c: Include frame.h
4601
4602 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4603
4604         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4605         GDB_MULTI_ACH_PARTIAL.
4606
4607 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4608
4609         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4610         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4611         operator at start and not end of line.
4612         (decode_prologue): Ditto.
4613         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4614         frame_unwind_register_unsigned instead of
4615         frame_unwind_unsigned_register.
4616         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4617         read_register.
4618         (m32r_push_dummy_call): Use register_size instead of
4619         REGISTER_RAW_SIZE.
4620         (m32r_frame_sniffer): Replace m32r_frame_p.
4621         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4622         * m32r-rom.c (report_transfer_performance): Delete extern
4623         declaration.
4624         (m32r_load, m32r_upload_command): Use print_transfer_performance
4625         instead of report_transfer_performance.
4626         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4627         / add_show_from_set.
4628
4629 2003-07-26  Andrew Cagney  <cagney@redhat.com>
4630
4631         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4632         store_return_value and extract_struct_value_address.
4633
4634 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
4635
4636         PR c++/1267
4637         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4638         NULL, default to the section containing PC.
4639
4640 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
4641
4642         * NEWS: Mention "regs" deprecated for m68hc11 too.
4643
4644         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4645         (m68hc11_print_register): New function to print out one register.
4646         (m68hc11_print_registers_info): New function to print registers.
4647         (show_regs): Deprecate and use the above.
4648         (m68hc11_gdbarch_init): Install the print_registers_info.
4649
4650 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
4651
4652         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4653         that we have a SIGTRAP before returning non-zero.
4654
4655 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
4656             Elena Zannoni  <ezannoni@redhat.com>
4657
4658         * linespec.c (decode_line_2): Avoid crash if
4659         find_function_start_sal() returns empty record.
4660
4661 2003-07-23  Andreas Schwab  <schwab@suse.de>
4662
4663         * ia64-tdep.c (ia64_print_insn): New function.
4664         (ia64_gdbarch_init): Set print_insn to it.
4665         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4666         deprecated_tm_print_insn_info.
4667
4668 2003-07-22  Michael Snyder  <msnyder@redhat.com>
4669
4670         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4671         handle 8-bit returns (long long).
4672         (h8300h_extract_return_value): Ditto.
4673         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4674
4675 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4676
4677         * gdbarch.c Include "gdb_obstack.h".
4678         (struct gdbarch): Add an "obstack".
4679         (alloc_gdbarch_data): Allocate the gdbarch data using
4680         GDBARCH_OBSTACK_CALLOC.
4681         (free_gdbarch_data): Delete function.
4682         (gdbarch_obstack_zalloc): New function.
4683         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4684         Assert that the architecture is not initialized.
4685         (gdbarch_alloc): Allocate an obstack, allocate the architecture
4686         vector from the obstack.
4687         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4688         architecture obstack.
4689         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4690         (set_gdbarch_data): Assert that the data is not initialized.
4691         (struct gdbarch_data): Delete member "free".
4692         (register_gdbarch_data): Do not initialize "free".
4693         * gdbarch.h, gdbarch.c: Re-generate.
4694
4695 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4696
4697         * configure.in (build_warnings): Add -Wformat-nonliteral.
4698         * configure: Re-generate.
4699
4700 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
4701
4702         * dwarf2loc.c (locexpr_describe_location): Fix typos.
4703
4704 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
4705
4706         * findvar.c (read_var_value): Remove case for thread local storage
4707         variables.  It is now entirely handled by the dwarf2 location
4708         expression code.
4709         * printcmd.c (address_info): Ditto.
4710         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4711         enumeration value.
4712         (struct symbol): Remove objfile field, which was used by
4713         LOC_THREAD_LOCAL_STATIC only.
4714         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4715         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4716         usage of objfile pointer.
4717         * dwarf2loc.c (locexpr_describe_location): Add case to handle
4718         thread local variables.
4719         Add include of objfiles.h.
4720         * dwarf2expr.c (execute_stack_op): Add comments about thread local
4721         storage variables.
4722         * Makefile.in (dwarf2loc.o): Update dependencies.
4723
4724 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4725
4726         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4727         get_frame_base.
4728         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4729         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4730         (struct value): Add opaque declaration.
4731         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4732
4733 2003-07-21  Andrew Cagney  <cagney@redhat.com>
4734
4735         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4736         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4737
4738 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
4739
4740         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4741         regcache_cooked_read_unsigned instead of read_register.
4742         (m68hc11_saved_pc_after_call): Likewise.
4743         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4744         instead of write_register.
4745         (m68hc11_register_type): New function.
4746         (m68hc11_register_virtual_type): Remove.
4747         (m68hc11_store_return_value): Convert to use the regcache.
4748         (m68hc11_extract_struct_value_address): Likewise.
4749         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4750         m68hc11_register_type; undeprecate store_return_value and
4751         extract_struct_value_address.
4752
4753 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
4754
4755         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4756         and translate to use regcache.
4757         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4758
4759 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4760
4761         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4762         * gdbarch.h, gdbarch.c: Re-generate.
4763         * i386-tdep.c (i386_gdbarch_init): Do not set
4764         DWARF2_BUILD_FRAME_INFO.
4765         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4766         unconditionally.
4767         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4768         DWARF2_BUILD_FRAME_INFO.
4769
4770 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4771
4772         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4773         * disasm.c (gdb_disassemble_info): Initilize di.arch.
4774
4775 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4776
4777         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4778         frame_unwind_address_in_block, instead of frame_pc_unwind.
4779         (dwarf2_frame_cache): Ditto.
4780
4781 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4782
4783         * user-regs.h (struct gdbarch): Declare opaque.
4784         * ui-out.h (struct ui_file): Declare opaque.
4785         * dwarf2-frame.h (struct frame_info): Declare opaque.
4786
4787 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
4788
4789         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
4790         #include "...".
4791         (procfs_meminfo): Change strerror to safe_strerror.
4792         (procfs_can_run): Remove K&R badness.
4793
4794 2003-07-17  Michael Snyder  <msnyder@redhat.com>
4795
4796         * remote-sim.c: Comment typo fix.
4797
4798 2003-07-17  Andrew Cagney  <cagney@redhat.com>
4799
4800         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
4801         configure.
4802         * sparc-tdep.c (sparc_intreg_size): Make non-static.
4803         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4804         GDB_MULTI_ARCH_PARTIAL.
4805
4806 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
4807
4808         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4809         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
4810         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4811
4812 2003-07-16  Theodore A. Roth  <troth@openavr.org>
4813
4814         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4815         found.
4816         (avr_frame_unwind_cache): Don't unwind FP for main.
4817         Update a comment.
4818         Save the computed prev_sp.
4819         (avr_saved_regs_unwinder): Remove function.
4820         (avr_frame_prev_register): Use PC unwind logic from
4821         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4822
4823 2003-07-16  Andrew Cagney  <cagney@redhat.com>
4824
4825         * frame-base.h (frame_base_p_ftype): Delete definition.
4826         (frame_base_append_predicate): Delete declaration.
4827         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4828         (frame_unwind_append_predicate): Delete declaration.
4829         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4830         (append_predicate): Delete parameter "p".
4831         (frame_unwind_append_predicate): Delete function.
4832         (frame_unwind_append_sniffer): Update call to append_predicate.
4833         (frame_unwind_free): Delete function.
4834         (_initialize_frame_unwind): Pass NULL as "free" to
4835         register_gdbarch_data.
4836         (frame_unwind_init): Append the dummy_frame_sniffer.
4837         (frame_unwind_find_by_frame): Simplify.
4838         * frame-base.c (struct frame_base_table): Delete field "p".
4839         (append_predicate): Delete parameter "p".
4840         (frame_base_append_predicate): Delete function.
4841         (frame_base_append_sniffer): Update call to append_predicate.
4842         (frame_base_free): Delete function.
4843         (frame_base_find_by_frame): Simplify.
4844         (_initialize_frame_base): Pass NULL as "free" to
4845         register_gdbarch_data.
4846         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4847         (x86_64_sigtramp_frame_sniffer): Replace
4848         "x86_64_sigtramp_frame_p".
4849         (x86_64_init_abi): Set the frame unwind sniffers.
4850         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4851         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4852         (m68k_gdbarch_init): Set the frame unwind sniffers.
4853         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4854         "i386_sigtramp_frame_p".
4855         (i386_frame_sniffer): Replace "i386_frame_p".
4856         (i386_gdbarch_init): Set the frame unwind sniffers.
4857         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4858         (avr_gdbarch_init): Set the frame unwind sniffers.
4859         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4860         "alpha_sigtramp_frame_p"
4861         (alpha_heuristic_frame_sniffer): Replace
4862         "alpha_heuristic_frame_p".
4863         (alpha_gdbarch_init): Set the frame unwind sniffers.
4864         (alpha_dwarf2_init_abi): Ditto.
4865         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4866         "alpha_debug_frame_p".
4867         (alpha_mdebug_frame_base_sniffer): Replace
4868         "alpha_mdebug_frame_base_p".
4869         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4870         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4871         (d10v_gdbarch_init): Set the frame unwind sniffer.
4872         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4873         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4874         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4875         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4876         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4877         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4878
4879 2003-07-16  Michael Snyder  <msnyder@redhat.com>
4880
4881         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4882         should go thru sh_dsp_register_sim_regno, else the dsp regs
4883         will not get the right values.
4884
4885 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
4886
4887         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4888         deprecated_store_floating by call to store_typed_floating.
4889         (sh_sh4_register_convert_to_raw): Substitute call to
4890         deprecated_extract_floating by call to extract_typed_floating.
4891
4892 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
4893
4894         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4895
4896 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
4897
4898         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4899         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4900         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
4901         as possible.
4902         (do_pseudo_register): Remove.
4903         (sh_push_dummy_code): New function.
4904         (sh64_store_struct_return): Rename from sh_store_struct_return.
4905         Only called for sh64 now.
4906         (sh_extract_struct_value_address): Regcache'ify.
4907         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
4908         and accomodate new tasks.
4909         (sh64_push_return_address): Rename from sh_push_return_address.
4910         Only called for sh64 now.
4911         (sh_default_extract_return_value): Rename from sh_extract_return_value.
4912         Regcache'ify.
4913         (sh3e_sh4_extract_return_value): Regcache'ify.
4914         (sh_default_store_return_value): Ditto.
4915         (sh3e_sh4_store_return_value): Ditto.
4916         (sh_default_register_byte): Remove.
4917         (sh_sh4_register_byte): Remove.
4918         (sh_default_register_raw_size): Remove.
4919         (sh_sh4_register_raw_size): Remove.
4920         (sh_register_virtual_size): Remove.
4921         (sh_sh3e_register_virtual_type): Remove.
4922         (sh_sh3e_register_type): New function.
4923         (sh_sh4_register_virtual_type): Remove.
4924         (sh_sh4_register_type): New function.
4925         (sh_default_register_virtual_type): Remove.
4926         (sh_default_register_type): New function.
4927         (do_fv_register_info): Add parameters to accomodate call from
4928         sh_print_registers_info.
4929         (do_dr_register_info): Ditto.
4930         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4931         Add parameters to accomodate call from sh_print_registers_info.
4932         (sh_do_fp_register): Ditto.
4933         (sh64_do_pseudo_register): Call do_dr_register_info,
4934         do_fv_register_info and sh_do_fp_register with default parameters.
4935         (sh_do_register): Add parameters to accomodate call from
4936         sh_print_registers_info.
4937         (sh_print_register): Ditto.
4938         (sh_print_registers_info): Rename from sh_do_registers_info.
4939         Add parameters to be used as gdbarch_print_registers_info
4940         implementation.  Accomodate removed do_pseudo_register function
4941         pointer.
4942         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4943         function pointer. Call sh_print_register with default parameters.
4944         (sh64_do_registers_info): Call sh_print_registers_info instead of
4945         sh_do_registers_info.
4946         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4947         detection of deprecated vs. non-deprecated functionality.
4948         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
4949         function pointer assignments by direct function calls.
4950
4951 2003-07-15  Andrew Cagney  <cagney@redhat.com>
4952
4953         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4954         (frame_register_unwind, create_new_frame): Ditto.
4955         (legacy_get_prev_frame, get_frame_type): Ditto.
4956         (get_frame_base_address): Use frame_base_find_by_frame.
4957         (get_frame_locals_address): Use frame_base_find_by_frame.
4958         (get_frame_args_address): Use frame_base_find_by_frame.
4959         * frame-base.h (frame_base_sniffer_ftype): Declare.
4960         (frame_base_append_sniffer): Declare.
4961         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4962         * frame-base.c (append_predicate): Add a "sniffer" parameter.
4963         (frame_base_append_sniffer): New function.
4964         (frame_base_append_predicate): Add a NULL sniffer.
4965         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4966         (struct frame_base_table): Add "sniffer".
4967         (frame_base_free): Free the "sniffer" table.
4968         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4969         (frame_unwind_append_sniffer): Declare.
4970         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4971         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4972         (struct frame_unwind_table): Add "sniffer", delete "middle".
4973         (append_predicate): Add "sniffer" parameter, append the sniffer.
4974         (frame_unwind_init): Update append_predicate call.
4975         (frame_unwind_append_sniffer): New function.
4976         (frame_unwind_append_predicate): Update append_predicate call.
4977         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4978
4979 2003-07-15  Andrew Cagney  <cagney@redhat.com>
4980
4981         * frame.c (get_prev_frame): Move disabled inside_entry_func to
4982         before code inhibiting repeated unwind attempts.  Add to
4983         commentary on that test's problems.
4984         * blockframe.c (inside_main_func): Look for "main" in the minimal
4985         symbol table.
4986         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4987         identical.
4988
4989 2003-07-15  Andrew Cagney  <cagney@redhat.com>
4990
4991         * complaints.c (struct explanation): Define.
4992         (struct complaints): Change type of "explanation" to "struct
4993         explanation".
4994         (symfile_explanations): Convert to a "struct explanation" table.
4995         (vcomplaint): Update.
4996
4997 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
4998
4999         * x86-64-linux-nat.c (regmap): Removed.
5000         (supply_gregset, fill_gregset): Call
5001         x86_64_linux_(fill,supply)_gregset functions.
5002         * x86-64-linux-tdep.c (USER_*): New defines.
5003         (user_to_gdb_regmap, x86_64_core_fns): New structure.
5004         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5005         New functions.
5006         (fetch_core_registers): Ditto.
5007         (_initialize_x86_64_linux_tdep): Call add_core_fns().
5008         * x86-64-linux-tdep.h: New file.
5009         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5010         and core-regset.o.
5011         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5012
5013 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
5014
5015         * x86-64-tdep.c (x86_64_store_return_value): Use
5016         regcache_cooked_write_part instead of regcache_cooked_write.
5017
5018         * configure.host: Add x86_64-*-freebsd*.
5019         * configure.tgt: Add x86_64-*-freebsd*.
5020         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5021         * amd64fbsd-nat.c: New file.
5022         * amd64fbsd-tdep.c: New file.
5023         * config/i386/nm-fbsd64.h: New file.
5024         * config/i386/fbsd64.mh: New file.
5025         * config/i386/fbsd64.mt: New file.
5026
5027 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
5028
5029         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5030         `sc_regs_offset' and `sc_fpregs_offset'.
5031         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5032         SIGFRAME_FPREGSAVE_OFF): Remove defines.
5033         (alpha_sigtramp_register_address): Rewrite to use new members of
5034         `struct gdbarch_tdep'.
5035         (alpha_gdbarch_init): Initialize new members of struct
5036         gdbarch_tdep'.
5037         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5038         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5039         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5040         (alphafbsd_pc_in_sigtramp): Implement.
5041         (alphafbsd_sigtramp_offset): New function.
5042         (alphafbsd_sigcontext_addr): New function.
5043         (alphafbsd_init_abi): Initialize signal trampoline related members
5044         of `struct gdbarch_tdep'.
5045         (_initialize_alphafbsd_tdep): Add prototype.
5046
5047 2003-07-11  Theodore A. Roth  <troth@openavr.org>
5048
5049         * Makefile.in (install-only): Quote sed expression when generating
5050         transformed_name.
5051
5052 2003-07-11  Richard Henderson  <rth@redhat.com>
5053
5054         * Makefile.in (dwarf2-frame.o): Add complaints_h.
5055         * dwarf2-frame.c: Include complaints.h.
5056         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5057         variable initialization; return NULL on error.
5058         (decode_frame_entry): New.
5059
5060 2003-07-11  Andrew Cagney  <cagney@redhat.com>
5061
5062         * frame.h (frame_address_in_block): Delete declaration.
5063         * blockframe.c (frame_address_in_block): Delete function.
5064         (get_frame_block): Use get_frame_address_in_block.
5065         (block_innermost_frame): Ditto.
5066         * stack.c (print_frame, backtrace_command_1): Ditto.
5067
5068         * frame.h (get_frame_address_in_block): Declare.
5069         (frame_unwind_address_in_block): Declare.
5070         * frame.c (frame_unwind_address_in_block): New function.
5071         (get_frame_address_in_block): New function.
5072
5073 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5074
5075         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
5076         pre-default.   Note: re-generate has no effect.
5077
5078 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5079
5080         * gdbarch.sh: When a variable, but not a function, compare against
5081         0.  Fix problem in previous patch.
5082         * gdbarch.c: Re-generate.
5083
5084 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5085
5086         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
5087         functions against NULL, not 0.
5088         * gdbarch.c: Re-generate.
5089
5090 2003-07-10  Fred Fish  <fnf@ninemoons.com>
5091
5092         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5093         null string instead of a null pointer.
5094         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5095
5096 2003-07-09  Michael Snyder  <msnyder@redhat.com>
5097
5098         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5099
5100 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
5101
5102         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5103         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5104         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5105         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5106         * x86-64-tdep.c: ... from here.
5107
5108 2003-07-09  Andreas Schwab  <schwab@suse.de>
5109
5110         * m68k-tdep.h (enum struct_return): Define.
5111         (struct gdbarch_tdep): Add struct_return.
5112         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5113         bytes are padded to the right, not to the left.  Pass struct value
5114         address in register %a1, not on stack.
5115         (m68k_use_struct_convention): New function.
5116         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
5117         struct_return in tdep to pcc_struct_return.
5118         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5119         reg_struct_return.
5120
5121 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
5122
5123         * somread.c (som_symfile_offsets): Fix compilation error.
5124
5125 2003-07-09  Andrew Cagney  <cagney@redhat.com>
5126
5127         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5128         Add comments about the checks.
5129
5130 2003-07-08  Andrew Cagney  <cagney@redhat.com>
5131
5132         * Makefile.in: Make dependency section headers consistent.
5133         (config_h): Move to $BUILD headers section.
5134         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5135         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5136         (ada-exp.tab.c): Move to YACC/LEX section.
5137         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5138         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5139
5140 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
5141
5142         * nto-procfs.c: Cleaned up a bunch of ARI hits.
5143         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5144         of strerror with safe_strerror, use ISO C function definitions,
5145         and replace instances of sprintf with snprintf.
5146
5147 2003-07-07  Andrew Cagney  <cagney@redhat.com>
5148
5149         * frame.c (get_prev_frame): Enable check for identical frames.
5150         Update comments.  Update error messages.
5151
5152 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5153
5154         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5155
5156 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5157
5158         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5159         sort_symtab_syms, no longer necessary.
5160
5161 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5162
5163         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5164
5165 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5166
5167         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5168         (mips_register_byte): Likewise.
5169
5170 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5171
5172         * Makefile.in (sparc_tdep_h): New.
5173         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5174         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5175         * sparc-linux-nat.c: Include "sparc-tdep.h".
5176         * sparc-nat.c: Likewise.
5177         * sparc-tdep.c: Likewise.
5178         * sparc64nbsd-nat.c: Likewise.
5179         * sparcnbsd-nat.c: Likewise.
5180         * sparcnbsd-tdep.c: Likewise.
5181         * sparc-tdep.h: New file.
5182         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5183         and sparc_npc_regnum.
5184
5185 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5186
5187         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5188         (mips_linux_cannot_store_register): List supported instead of
5189         unsupported registers.
5190
5191 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5192
5193         * disasm.c (dump_insns): Separate instructions from addresses.
5194
5195 2003-07-07  Andreas Schwab  <schwab@suse.de>
5196
5197         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5198         dependencies.
5199         * m68k-tdep.c (NUM_FREGS): Delete.
5200         (SIG_PC_FP_OFFSET): Delete.
5201         (TARGET_M68K): Delete.
5202         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5203         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5204         P_MOVEL_SP, P_MOVEML_SP): Define.
5205         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5206         P_TRAP): Delete.
5207         (m68k_register_raw_size): Delete.
5208         (m68k_register_virtual_size): Delete.
5209         (m68k_register_type): Renamed from m68k_register_virtual_type and
5210         add gdbarch argument.
5211         (m68k_store_struct_return): Delete.
5212         (m68k_deprecated_extract_return_value): Delete.
5213         (m68k_deprecated_extract_struct_value_address): Delete.
5214         (m68k_frame_chain): Delete.
5215         (m68k_frame_saved_pc): Delete.
5216         (m68k_fix_call_dummy): Delete.
5217         (m68k_push_dummy_frame): Delete.
5218         (m68k_pop_frame): Delete.
5219         (m68k_extract_return_value): New function.
5220         (m68k_store_return_value): Rewrite using regcache.
5221         (m68k_extract_struct_value_address): Rewrite using regcache.
5222         (m68k_push_dummy_call): New function.
5223         (struct m68k_frame_cache): Define.
5224         (m68k_alloc_frame_cache): New function.
5225         (m68k_analyze_frame_setup): New function.
5226         (m68k_analyze_register_saves): New function.
5227         (m68k_analyze_prologue): New function.
5228         (m68k_skip_prologue): Rewrite using above functions.
5229         (m68k_unwind_pc): New function.
5230         (m68k_frame_cache): New function.
5231         (m68k_frame_this_id): New function.
5232         (m68k_frame_prev_register): New function.
5233         (m68k_frame_unwind): New variable.
5234         (m68k_frame_p): New function.
5235         (m68k_sigtramp_frame_cache): New function.
5236         (m68k_sigtramp_frame_this_id): New function.
5237         (m68k_sigtramp_frame_prev_register): New function.
5238         (m68k_sigtramp_frame_unwind): New variable.
5239         (m68k_sigtramp_frame_p): New function.
5240         (m68k_frame_base_address): New function.
5241         (m68k_frame_base): New function.
5242         (m68k_unwind_dummy_id): New function.
5243         (fill_gregset): Use regcache_collect.
5244         (fill_fpregset): Likewise.
5245         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5246         defined.
5247         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
5248         deprecated_init_frame_pc, deprecated_store_struct_return,
5249         deprecated_extract_return_value, deprecated_store_return_value,
5250         deprecated_frame_chain, deprecated_frame_saved_pc,
5251         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5252         deprecated_register_virtual_size,
5253         deprecated_max_register_raw_size,
5254         deprecated_max_register_virtual_size,
5255         deprecated_register_virtual_type, deprecated_register_size,
5256         deprecated_register_byte, deprecated_register_bytes,
5257         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5258         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5259         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5260         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5261         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5262         deprecated_push_dummy_frame, deprecated_pop_frame,
5263         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
5264         only if SYSCALL_TRAP is defined.  Set extract_return_value,
5265         store_return_value, extract_struct_value_address, register_type,
5266         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
5267         predicates.
5268         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5269         M68K_MAX_REGISTER_SIZE): Define.
5270         (struct m68k_sigtramp_info): Define.
5271         (struct gdbarch_tdep): Add get_sigtramp_info.
5272         * m68klinux-nat.c (fetch_register): Use register_size instead of
5273         REGISTER_RAW_SIZE.  Don't put assignment in if.
5274         (store_register): Likewise.
5275         (fetch_inferior_registers): Likewise.
5276         (store_inferior_registers): Likewise.
5277         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5278         (m68k_linux_frame_saved_pc): Delete.
5279         (m68k_linux_sigcontext_reg_offset,
5280         m68k_linux_ucontext_reg_offset): Define.
5281         (m68k_linux_get_sigtramp_info): New function.
5282         (m68k_linux_extract_return_value): Rewrite using regcache.
5283         (m68k_linux_store_return_value): Likewise.
5284         (m68k_linux_extract_struct_value_address): Likewise.
5285         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5286         Don't set deprecated_frame_saved_pc,
5287         deprecated_extract_return_value, deprecated_store_return_value,
5288         deprecated_extract_struct_value_address.  Set
5289         extract_return_value, store_return_value,
5290         extract_struct_value_address.
5291
5292 2003-07-07  Andrew Cagney  <cagney@redhat.com>
5293
5294         * expprint.c: Include "user-regs.h" instead of "frame.h".
5295         (print_subexp): Use user_reg_map_regnum_to_name, instead of
5296         frame_map_regnum_to_name.
5297         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5298         (frame_map_name_to_regnum): Simplify, call
5299         user_reg_map_name_to_regnum.
5300         (frame_map_regnum_to_name): Simplify, call
5301         user_reg_map_regnum_to_name.
5302         (frame_register_unwind): Update.
5303         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5304         (_initialize_frame_reg): Call user_reg_add_builtin.
5305         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5306         (value_of_register): Use value_of_user_reg.
5307         * eval.c (evaluate_subexp_standard): Update.
5308         * parse.c (write_dollar_variable): Update.
5309         * d10v-tdep.c (d10v_print_registers_info): Update.
5310         * infcmd.c (registers_info): Update.
5311         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5312         (builtin_regs_h): Delete macro.
5313         (user_regs_h): Define.
5314         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5315         (builtin-regs.o): Delete target.
5316         (user-regs.o): Specify dependencies.
5317         (expprint.o): Update dependencies.
5318         (findvar.o): Update dependencies.
5319         (frame.o): Update dependencies.
5320         (std-regs.o): Update dependencies.
5321
5322 2003-07-06  Christopher Faylor  <cgf@redhat.com>
5323
5324         * win32-nat.c (solib_symbols_add): Use one variable for all section
5325         address stuff.  Pass variable rather than address of variable to
5326         safe_symbol_file_add.
5327
5328 2003-07-06  Andreas Schwab  <schwab@suse.de>
5329
5330         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5331
5332 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
5333
5334         * rs6000-nat.c (vmap_symtab): Fix compilation error.
5335
5336 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
5337
5338         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5339
5340 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
5341
5342         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
5343         * config/i386/nto.mh: New file.
5344         * config/i386/nm-nto.h: New file.
5345         * configure.host: Add i[3456]86-*-nto*.
5346
5347 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
5348
5349         * remote-vx.c (vx_add_symbols): Fix compilation error.
5350
5351 2003-07-03  Andrew Cagney  <cagney@redhat.com>
5352
5353         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5354         * gdbarch.h, gdbarch.c: Re-generate.
5355         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5356         (legacy_register_name): Declare.
5357         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5358         (REGISTER_NAME): Define.
5359         * sparc-tdep.c (legacy_register_name): New function.
5360         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5361         (REGISTER_NAME): Define.
5362         (hppa64_register_name): Declare.
5363         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5364         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5365         (hppa64_register_name): New function.
5366         (hppa_register_name): New function.
5367         * arch-utils.c (legacy_register_name): Delete.
5368         * arch-utils.h (legacy_register_name): Delete.
5369
5370 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
5371
5372         * cli/cli-interp.c (cli_interpreter_resume): Update the
5373         cli_uiout's stream to gdb_stdout.
5374
5375 2003-07-03  Andrew Cagney  <cagney@redhat.com>
5376
5377         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5378         predicate.
5379         * gdbarch.h, gdbarch.c: Re-generate.
5380         * regcache.c (init_regcache_descr): Use legacy code when either
5381         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5382
5383 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
5384
5385         * NEWS: Move "set logging" entry into GDB 6.0 section.
5386
5387 2003-07-02  Jim Blandy  <jimb@redhat.com>
5388
5389         * s390-tdep.c (struct frame_extra_info): new member:
5390         'stack_bought_valid'.
5391         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5392         initialize fextra_info->stack_bought.
5393         (s390_frameless_function_invocation): Don't trust the value of
5394         fextra_info_ptr->stack_bought unless
5395         fextra_info->stack_bought_valid is set.
5396
5397         New S390 prologue analyzer.
5398         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5399         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5400         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5401         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5402         compute_x_addr, s390_on_stack, s390_store,
5403         s390_get_signal_frame_info): New functions.
5404         (S390_NUM_SPILL_SLOTS): New macro.
5405         (s390_get_frame_info): Rewritten.
5406         (is_arg_reg): Deleted.
5407
5408         Break out the decoding of S/390 instructions into separate
5409         functions, to make it more legible, and easier to check
5410         against the spec.
5411         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5412         is_rx, is_rxe): New functions.
5413         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5414         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5415         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5416         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5417         enums for opcode values.  (Is this an improvement?)
5418
5419 2003-07-02  Andrew Cagney  <cagney@redhat.com>
5420
5421         * i386-tdep.c: Revert change committed as part of trad-frame code
5422         below.
5423
5424 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
5425
5426         * breakpoint.c (insert_catchpoint): Make static.
5427
5428 2003-07-02  Andreas Schwab  <schwab@suse.de>
5429
5430         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5431         former ia64_push_arguments and ia64_push_return_address, and use
5432         regcache functions instead of read/write_register.
5433         (ia64_gdbarch_init): Set push_dummy_call instead of
5434         deprecated_push_arguments and deprecated_push_return_address.
5435
5436 2003-07-01  Andreas Jaeger  <aj@suse.de>
5437
5438         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5439         before the call.
5440         Set %rax only to number of SSE registers used.
5441
5442 2003-07-01  Andrew Cagney  <cagney@redhat.com>
5443
5444         * trad-frame.h: Update comments, a -1 .addr is reserved.
5445         (trad_frame_value_p, trad_frame_addr_p): Declare.
5446         (trad_frame_reg_p): Declare.
5447         (trad_frame_set_value): Rename trad_frame_register_value.
5448         (trad_frame_set_unknown): Declare.
5449         * trad-frame.c (trad_frame_realreg_p): New function.
5450         (trad_frame_addr_p, trad_frame_value_p): New function.
5451         (trad_frame_set_unknown): New function.
5452         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5453         (trad_frame_prev_register): Use trad_frame_realreg_p,
5454         trad_frame_addr_p and trad_frame_value_p.
5455         (trad_frame_set_value): Rename trad_frame_register_value.
5456         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5457         and trad_frame_set_value.
5458
5459 2003-06-30  Jim Blandy  <jimb@redhat.com>
5460
5461         Patch from IBM (authors unspecified, probably Ulrich Weigand and
5462         Gerhard Tonn) for argument passing on the S/390 and S/390x:
5463         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5464         for 16 registers, and then 32 more bytes.
5465         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5466         New macros.
5467         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5468         Move up in the file, since it's now used by is_simple_arg.
5469         (is_simple_arg): Don't assume registers are four bytes long.
5470         Exclude all double arguments.  Extended floats are not simple
5471         args.
5472         (is_power_of_two): New function.
5473         (pass_by_copy_ref): Call is_power_of_two, and check that the
5474         length fits in a register, rather than listing all the acceptable
5475         sizes.  Extended floats are not passed by reference.
5476         (s390_push_arguments): Don't assume registers are four bytes long.
5477         Reserve an argument register to point to the buffer for structures
5478         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
5479         S390_STACK_FRAME_OVERHEAD.
5480
5481 2003-06-30  Andreas Schwab  <schwab@suse.de>
5482
5483         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5484         format error message.
5485
5486 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
5487
5488         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5489
5490 2003-06-30  David Carlton  <carlton@kealia.com>
5491
5492         Band-aid for PR c++/1245.
5493         * Makefile.in (cp-support.o): Depend on complaints_h.
5494         * cp-support.c: Include complaints.h.  Add declaration for
5495         find_last_component.
5496         (cp_find_first_component): Separate code into
5497         cp_find_first_component_aux.
5498         (cp_find_first_component_aux): Call demangled_name_complaint.
5499         (demangled_name_complaint): New.
5500
5501 2003-06-30  Andrew Cagney  <cagney@redhat.com>
5502
5503         * remote.c (remote_write_bytes): Explicitly compute and then use
5504         the payload size.  Update comments to reflect.  Fixes problem of
5505         GDB not sending small packets as found by Fred Fish.
5506
5507 2003-06-30  Andrew Cagney  <cagney@redhat.com>
5508
5509         * remote.c (remote_async_wait): Fix -Wformat problem.
5510
5511 2003-06-29  Andrew Cagney  <cagney@redhat.com>
5512
5513         * remote.c (remote_wait): Call error, and not warning, when the
5514         packet is corrupt.
5515         (remote_async_wait): Ditto.
5516
5517 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
5518
5519         * sparc-tdep.c (sparc_y_regnum): Make external again.
5520
5521 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
5522
5523         * cli/cli-logging.c (pop_output_files): Add void to function
5524         definition.
5525
5526 2003-06-29  Andrew Cagney  <cagney@redhat.com>
5527
5528         * frame.c (frame_register_unwind): Use unsigned char when dumping
5529         the buffer contents.
5530
5531 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
5532
5533         * cli/cli-logging.c: New file.
5534         * cli-out.c (struct ui_out_data): Add original_stream.
5535         (cli_redirect): New function.
5536         (cli_ui_out_impl): Add cli_redirect.
5537         (cli_out_new): Initialize original_stream.
5538         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5539         (uo_redirect, ui_out_redirect): New.
5540         * ui-out.h (struct ui_out_impl): Add redirect member.
5541         (redirect_ftype): New.
5542         (ui_out_redirect): Add prototype.
5543         * Makefile.in: Add rules for cli-logging.c.
5544         * NEWS: Mention "set logging".
5545
5546 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5547
5548         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5549
5550 2003-06-27  Andrew Cagney  <cagney@redhat.com>
5551
5552         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5553         (m68hc11_gdbarch_init): Do not set call_dummy_address.
5554         * avr-tdep.c (avr_call_dummy_address): Delete function.
5555         (avr_gdbarch_init): Do not set call_dummy_address.
5556
5557 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5558
5559         * symfile.c (syms_from_objfile): Move variables to inner block.
5560         Move the checks for the non-mainline case a bit earlier to avoid
5561         doing some useless computations.
5562
5563 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5564
5565         * dwarfread.c (decode_modified_type): Gag new compiler warning.
5566
5567 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
5568
5569         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5570         sections.
5571
5572 2003-06-26  Michael Chastain  <mec@shout.net>
5573
5574         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5575         gdb/testsuite/gdb.c++/pr-1210.exp.
5576
5577 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5578
5579         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5580         altivec_expression.h and altivec_registers.h.
5581
5582 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5583
5584         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5585         info->mach when MIPS16.  Patch suggested by Fred Fish.
5586
5587 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5588
5589         * utils.c (internal_vproblem): Print the problem to a reason
5590         buffer and then pass to query.  Make the msg variable more local.
5591
5592 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5593
5594         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
5595         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
5596         * gdbarch.h, gdbarch.c: Re-generate.
5597         * frame-base.c (default_frame_args_address): Update.  Use
5598         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5599         not available.
5600         (default_frame_locals_address): Ditto for
5601         DEPRECATED_FRAME_LOCALS_ADDRESS.
5602         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5603         (vax_frame_num_args): Update.
5604         (vax_gdbarch_init): Update.
5605         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5606         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5607         * mcore-tdep.c (mcore_gdbarch_init): Update.
5608         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5609         * ia64-tdep.c (ia64_gdbarch_init): Update.
5610         * symtab.h (address_class): Update comments.
5611         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5612         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5613         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5614         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5615         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5616         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5617         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5618         * alpha-mdebug-tdep.c: Update.
5619         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5620
5621 2003-06-26  Andreas Jaeger  <aj@suse.de>
5622
5623         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5624         of SSE registers so that varargs functions work.  Rework handling
5625         of passing arguments on the stack.
5626         (x86_64_store_return_value): Return double and float values in SSE
5627         register.
5628
5629 2003-06-24  Michael Chastain  <mec@shout.net>
5630
5631         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5632         the "constructor breakpoints ignored" bug.
5633
5634 2003-06-25  David Carlton  <carlton@kealia.com>
5635
5636         * MAINTAINERS: Update e-mail address.
5637
5638 2003-06-24  Jim Blandy  <jimb@redhat.com>
5639
5640         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5641
5642         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5643         function.
5644         (ppc_linux_init_abi): Register it as the
5645         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5646
5647         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5648         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5649         method.
5650
5651         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5652         (ppc64_standard_linkage_target): Use it.
5653
5654 2003-06-23  Andrew Cagney  <cagney@redhat.com>
5655
5656         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5657         for 0 "int0" and 4 "int32" sized registers.
5658         * gdbtypes.c (builtin_type_int0): Define.
5659         (build_gdbtypes): Initialize builtin_type_int0.
5660         * gdbtypes.h (builtin_type_int0): Declare.
5661
5662 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
5663
5664         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5665         as characters are unsigned.
5666
5667 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5668
5669         PR gdb/1179
5670         * dwarfread.c (struct_type): Skip static fields without crashing.
5671
5672 2003-06-22  Andrew Cagney  <cagney@redhat.com>
5673
5674         GDB 6.0 branch created.
5675         * README: Update.
5676         * PROBLEMS: Update.  Empty.
5677         * NEWS: Update.
5678
5679 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5680
5681         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5682         Suggested by Nick Hibma <n_hibma@webweaving.org>.
5683
5684 2003-06-22  Andrew Cagney  <cagney@redhat.com>
5685
5686         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5687         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
5688         Velikov.
5689
5690 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5691
5692         * cli/cli-cmds.c (shell_escape): Silence warnings from old
5693         compilers.
5694
5695 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
5696
5697         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5698         argument of val_print.
5699         * cp-valprint.c (cp_print_value): Don't add the offset parameter
5700         to the address argument of baseclass_offset or target_read_memory.
5701         Do add it to the argument of cp_print_value_fields.
5702
5703 2003-06-21  Andrew Cagney  <cagney@redhat.com>
5704
5705         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5706         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5707         instead of 0..NUM_REGS.
5708         (mips_register_reggroup_p): New function.
5709         (mips_pseudo_register_write): New function.
5710         (mips_pseudo_register_read): New function.
5711         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5712         based on the register's type.
5713         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
5714         cooked.
5715         (mips_get_saved_register): Simplify.  Assert that REGNO is a
5716         pseudo / cooked.
5717         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
5718         (mips_register_type): Replace mips_register_virtual_type.  Map
5719         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
5720         when available.
5721         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
5722         that the register is cooked / virtual.
5723         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5724         Only get the extra info when needed.
5725         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5726         (mips32_heuristic_proc_desc): Fetch the cooked register.
5727         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5728         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5729         (mips_print_register): Use gdbarch_register_type, instead of
5730         REGISTER_VIRTUAL_TYPE.
5731         (print_gp_register_row): Use gdbarch_register_type, instead of
5732         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
5733         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5734         Print the pseudo / cooked registers.
5735         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5736         Print the pseudo / cooked registers.
5737         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
5738         REG_NUM is pseudo / cooked.
5739         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5740         (mips_n32n64_xfer_return_value): Ditto.
5741         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5742         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5743         (mips_register_sim_regno): New function.
5744         (mips_gdbarch_init): Set deprecated_register_byte,
5745         register_group_p, pseudo_register_write, pseudo_register_read,
5746         register_sim_regno, and num_pseudo_regs.  Set register_type,
5747         instead of register_virtual_type.
5748         * Makefile.in (mips-tdep.o): Update dependencies.
5749         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5750         REGISTER_VIRTUAL_TYPE.
5751         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5752         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5753         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5754         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5755         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5756
5757 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
5758
5759         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5760         * cli/cli-cmds.c: Include "gdb_vfork.h".
5761         (shell_escape): Use vfork.
5762
5763 2003-06-21  Andrew Cagney  <cagney@redhat.com>
5764
5765         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5766         32 bit floating-point register saves.
5767
5768         * frame.h (deprecated_unwind_get_saved_register): Delete.
5769         * frame.c (deprecated_unwind_get_saved_register): Delete function.
5770         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5771         and deprecated_get_next_frame_hack instead of
5772         deprecated_unwind_get_saved_register.
5773
5774         * mips-tdep.c (mips_dump_tdep): Do not print
5775         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5776
5777         * frame.c (get_frame_register): New function.
5778         (frame_unwind_register_signed): New function.
5779         (get_frame_register_signed): New function.
5780         (frame_unwind_register_unsigned): New function.
5781         (get_frame_register_unsigned): New function.
5782         * frame.h: Add comments on naming schema.
5783         (get_frame_register, frame_unwind_register_signed): Declare.
5784         (get_frame_register_signed, get_frame_register_signed): Declare.
5785         (frame_unwind_register_unsigned): Declare.
5786         (get_frame_register_unsigned): Declare.
5787
5788 2003-06-20  Theodore A. Roth  <troth@openavr.org>
5789
5790         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5791
5792 2003-06-20  Theodore A. Roth  <troth@openavr.org>
5793
5794         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5795         (avr_read_sp): Ditto.
5796
5797 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
5798
5799         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5800         * config/arm/nm-linux.h: Likewise.
5801         * config/arm/tm-linux.h: Likewise.
5802         * config/ia64/nm-linux.h: Likewise.
5803         * config/ia64/tm-ia64.h: Likewise.
5804         * config/s390/tm-linux.h: Likewise.
5805         * config/s390/tm-s390.h: Likewise.
5806         * s390-nat.c: Likewise.
5807         * s390-tdep.c: Likewise.
5808
5809         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5810         * config/ia64/linux.mt: Likewise.
5811         * config/m68k/linux.mh: Likewise.
5812         * config/mips/linux.mt: Likewise.
5813         * config/powerpc/linux.mh: Likewise.
5814         * config/sh/linux.mt: Likewise.
5815
5816 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
5817
5818         * solib.c (solib_open): Change tests for whether to search
5819         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
5820         comments.
5821
5822 2003-06-19  Theodore A. Roth  <troth@openavr.org>
5823
5824         * avr-tdep.c (avr_frame_address): Delete function.
5825         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5826         set_gdbarch_frame_args_address.
5827
5828 2003-06-19  Andrew Cagney  <cagney@redhat.com>
5829
5830         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5831         (REGISTER_CONVERT_FROM_TYPE): Delete.
5832         (mips_register_convert_to_type): Delete declaration.
5833         (mips_register_convert_from_type): Delete declaration.
5834         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
5835         kernel/.
5836
5837 2003-06-19  Michael Snyder  <msnyder@redhat.com>
5838
5839         * linux-nat.h: New file.
5840         * linux-nat.c: Include linux-nat.h.
5841         * lin-lwp.c: Include linux-nat.h.
5842         Move struct lwp_info def to linux-nat.h.
5843         * linux-proc.c: Include linux-nat.h.
5844         (linux_make_note_section): Iterate over lwps instead of threads.
5845         (linux_do_thread_registers): Use lwp instead of merged pid.
5846         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5847         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5848         Add dependency on linux_nat_h.
5849
5850 2003-06-19  Theodore A. Roth  <troth@openavr.org>
5851
5852         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5853
5854 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
5855
5856         * varobj.c (get_type, get_target_type): Use check_typedef.
5857
5858 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
5859
5860         * breakpoint.c (insert_catchpoint): Call internal_error.
5861
5862 2003-06-19  Theodore A. Roth  <troth@openavr.org>
5863
5864         * avr-tdep.c (avr_push_dummy_code): Delete function.
5865         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5866
5867 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
5868
5869         * arch-utils.c (default_prepare_to_proceed): Remove.
5870         (generic_prepare_to_proceed): Remove.
5871         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5872         (generic_prepare_to_proceed): Remove prototype.
5873         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5874         * gdbarch.c: Regenerate.
5875         * gdbarch.h: Regenerate.
5876         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5877         * hppah-nat.c (hppa_switched_threads): Remove.
5878         * infrun.c (prepare_to_proceed): New static function, copied from
5879         generic_prepare_to_proceed.  Remove select_it argument.
5880         (proceed): Call prepare_to_proceed.
5881         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5882         variables.
5883         (ptrace_wait): Don't set the removed variables.
5884         (hppa_switched_threads): Remove.
5885         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5886         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5887         (lin_lwp_prepare_to_proceed): Remove prototype.
5888         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5889         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5890
5891 2003-06-18  Theodore A. Roth  <troth@openavr.org>
5892
5893         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5894         trad-frame.h.
5895         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5896         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5897         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5898         (AVR_PROLOGUE_*): Enumerate prologue types.
5899         (struct frame_extra_info): Remove.
5900         (struct avr_unwind_cache): Define.
5901         (avr_write_sp): Delete function.
5902         (avr_read_fp): Ditto.
5903         (avr_init_extra_frame_info): Ditto.
5904         (avr_pop_frame): Ditto.
5905         (avr_frame_saved_pc): Ditto.
5906         (avr_saved_pc_after_call): Ditto.
5907         (avr_push_return_address): Ditto.
5908         (avr_frame_chain): Ditto.
5909         (avr_store_struct_return): Ditto.
5910         (avr_push_arguments): Ditto.
5911         (avr_scan_prologue): Update comments. Changed to set up the info for
5912         cache unwinding. Now returns end of prologue PC.
5913         (avr_skip_prologue): Better handling of functions lacking a prologue
5914         by using avr_scan_prologue.
5915         (avr_scan_arg_moves): New function.
5916         (avr_saved_regs_unwinder): Ditto.
5917         (avr_frame_unwind_cache): Ditto.
5918         (avr_unwind_pc): Ditto.
5919         (avr_frame_this_id): Ditto.
5920         (avr_frame_prev_register): Ditto.
5921         (avr_frame_p): Ditto.
5922         (avr_frame_base_address ): Ditto.
5923         (avr_unwind_dummy_id): Ditto.
5924         (avr_push_dummy_code): Ditto.
5925         (push_stack_item): Ditto.
5926         (pop_stack_item): Ditto.
5927         (avr_push_dummy_call): Ditto.
5928         (struct stack_item): Define.
5929         (avr_frame_unwind): Declare structure.
5930         (avr_frame_base): Ditto.
5931         (avr_gdbarch_init): Remove calls to
5932         set_gdbarch_deprecated_init_frame_pc,
5933         set_gdbarch_deprecated_target_read_fp,
5934         set_gdbarch_deprecated_dummy_write_sp,
5935         set_gdbarch_deprecated_fp_regnum,
5936         set_gdbarch_deprecated_push_arguments,
5937         set_gdbarch_deprecated_push_return_address,
5938         set_gdbarch_deprecated_pop_frame,
5939         set_gdbarch_deprecated_store_struct_return,
5940         set_gdbarch_deprecated_frame_init_saved_regs,
5941         set_gdbarch_deprecated_init_extra_frame_info,
5942         set_gdbarch_deprecated_frame_chain,
5943         set_gdbarch_deprecated_frame_saved_pc,
5944         set_gdbarch_deprecated_saved_pc_after_call.
5945         Add calls to set_gdbarch_push_dummy_call,
5946         set_gdbarch_push_dummy_code,
5947         frame_unwind_append_predicate,
5948         frame_base_set_default,
5949         set_gdbarch_unwind_dummy_id,
5950         set_gdbarch_unwind_pc.
5951         Wrap a long line.
5952
5953 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
5954
5955         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5956         registers for H8/300S.
5957         (h8300_print_registers_info): Ditto.
5958         (h8300_gdbarch_init): Accommodate register count for H8/300S.
5959
5960 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
5961
5962         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5963         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5964         (lin_lwp_wait): Likewise.  Update comments.
5965         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5966         (pull_pid_from_list, linux_record_stopped_pid): New.
5967
5968 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
5969
5970         * ada-lang.c (scan_discrim_bound): Name first argument.
5971         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5972         declared by ALL_BLOCK_SYMBOLS.
5973
5974 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
5975
5976         * ada-tasks.c (find_function_in_inferior): Don't declare it.
5977         ("regcache.h"): Include it.
5978         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5979
5980 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
5981
5982         * NEWS: Mention gdbserver detach change and "disconnect" command.
5983         * infcmd.c (disconnect_command): New function.
5984         (_initialize_infcmd): Add ``disconnect'' command.
5985         * remote.c (remote_async_detach): Delete.
5986         (remote_detach): Merge remote_async_detach.
5987         (remote_disconnect): New.
5988         (init_remote_ops): Set to_disconnect.
5989         (init_remote_cisco_ops): Likewise.
5990         (init_remote_async_ops): Likewise.  Use remote_detach.
5991         * target.c (cleanup_target): Default to_disconnect.
5992         (update_current_target): Inherit to_disconnect.
5993         (target_disconnect, debug_to_disconnect): New functions.
5994         (setup_target_debug): Set to_disconnect.
5995         * target.h (struct target_ops): Add to_disconnect.
5996         (target_disconnect): Add prototype.
5997
5998 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
5999
6000         * breakpoint.c (insert_catchpoint): New function.
6001         (insert_breakpoints): Use catch_exceptions to call
6002         insert_catchpoint.  Disable catchpoints if they fail to insert.
6003
6004 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6005
6006         * symfile.c (reread_symbols): Clear sym_private.
6007
6008 2003-06-17  Andrew Cagney  <cagney@redhat.com>
6009
6010         * trad-frame.h (struct frame_info): Add opaque declaration.
6011         * remote-fileio.h (struct cmd_list_element): Add opaque
6012         declaration.
6013         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6014         comments.
6015
6016 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6017
6018         * remote.c (remote_prepare_to_store): Replace call to
6019         deprecated_read_register_bytes with multiple regcache_raw_read
6020         calls.
6021
6022 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6023
6024         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6025         (nto_find_and_open_solib): Likewise.
6026         (nto_init_solib_absolute_prefix): Likewise.
6027         (_initialize_nto_tdep): Fix indentation.
6028
6029 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6030
6031         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6032
6033 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6034
6035         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6036
6037 2003-06-17  Jim Blandy  <jimb@redhat.com>
6038
6039         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6040
6041 2003-06-16  Theodore A. Roth  <troth@openavr.org>
6042
6043         * avr-tdep.c (avr_extract_return_value): New function.
6044         (avr_gdbarch_init): Set extract_return_value method.
6045
6046 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6047
6048         * frame.h (deprecated_get_next_frame_hack): Declare.
6049         * frame.c (legacy_saved_regs_prev_register): Only require
6050         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
6051         there are always saved regs.
6052         (deprecated_generic_get_saved_register): Do not require
6053         DEPRECATED_FRAME_INIT_SAVED_REGS.
6054         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6055         use frame ID unwind instead.
6056         (deprecated_get_next_frame_hack): New function.
6057
6058 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6059
6060         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
6061         (h8300_push_dummy_call): ...this function.  Some minor optimization.
6062         (h8300_push_return_address): Remove.
6063         (h8300_gdbarch_init): Remove calls to
6064         set_gdbarch_deprecated_dummy_write_sp,
6065         set_gdbarch_deprecated_push_arguments and
6066         set_gdbarch_deprecated_push_return_address.
6067         Add call to set_gdbarch_push_dummy_call.
6068
6069 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6070
6071         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6072         (E_PSEUDO_EXR_REGNUM): Ditto.
6073         (h8300_is_argument_spill): Check for instructions moving argument
6074         registers into safe registers.
6075         (h8300_skip_prologue): Check for stm instruction to push registers
6076         used for register variables onto stack.
6077         (gdb_print_insn_h8300): Remove.
6078         (h8300_examine_prologue): Add a comment.
6079         (h8300_register_name): Take pseudo registers into account.
6080         (h8300s_register_name): Ditto.
6081         (h8300sx_register_name): Ditto.
6082         (h8300_print_register): Ditto.
6083         (h8300_print_registers_info): Define "nice" printing order.
6084         (h8300_saved_pc_after_call): Take pseudo registers into account.
6085         (h8300_register_type): Ditto.  Return type used for remote connection
6086         when requesting real CCR or EXR register, return actual type when
6087         requesting pseudo CCR or EXR.
6088         (h8300_pseudo_register_read): New function.
6089         (h8300_pseudo_register_write): Ditto.
6090         (h8300_dbg_reg_to_regnum): Ditto.
6091         (h8300s_dbg_reg_to_regnum): Ditto.
6092         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6093         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6094         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6095         set_gdbarch_print_insn architecture dependent.
6096         Call set_gdbarch_pseudo_register_read and
6097         set_gdbarch_pseudo_register_write.
6098         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6099
6100 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6101
6102         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6103         * gdbarch.h, gdbarch.c: Re-generate.
6104         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6105         * s390-tdep.c (s390_gdbarch_init): Update.
6106         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6107         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6108         * mips-tdep.c (mips_gdbarch_init): Update.
6109         * mcore-tdep.c (mcore_gdbarch_init): Update.
6110         * cris-tdep.c (cris_gdbarch_init): Update.
6111         * infcall.c (call_function_by_hand): Update.
6112         * ia64-tdep.c (ia64_push_arguments): Update comment.
6113         * frame.c (legacy_get_prev_frame): Do not assume
6114         SAVE_DUMMY_FRAME_TOS_P.
6115         * dummy-frame.c (find_dummy_frame): Update comment.
6116
6117 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6118
6119         * regcache.c (do_cooked_read): Do not use register_valid_p.
6120
6121 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6122
6123         * avr-tdep.c (avr_register_type): Remove a blank line.
6124         (avr_scan_prologue): Correct some comments.
6125
6126 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6127
6128         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6129         prologue types.
6130         Properly scan prologues generated by gcc with the -mcall-prologues
6131         option.
6132         Add code to scan -mcall-prologues for mega devices.
6133
6134 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6135
6136         * avr-tdep.c (avr_register_byte): Delete function.
6137         (avr_register_raw_size): Delete function.
6138         (avr_register_virtual_size): Delete function.
6139         (avr_register_virtual_type): Delete function.
6140         (avr_register_type): New function.
6141         (avr_address_to_pointer): Remove unused code.
6142         (avr_read_fp): Need to read FP as two separate bytes due to change to
6143         avr_register_type() usage.
6144         (avr_gdbarch_init): Don't set deprecated_register_size.
6145         Don't set deprecated_register_bytes.
6146         Don't set deprecated_register_byte.
6147         Don't set deprecated_register_raw_size.
6148         Don't set deprecated_max_register_raw_size.
6149         Don't set deprecated_register_virtual_size.
6150         Don't set deprecated_max_register_virtual_size.
6151         Don't set deprecated_register_virtual_type.
6152         Set register_type method.
6153
6154 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
6155
6156         * Makefile.in (linux-nat.o): Add rule.
6157         * linux-nat.c: New file.
6158         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6159         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6160         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6161         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6162         * config/arm/linux.mh (NATDEPFILES): Likewise.
6163         * config/i386/linux.mh (NATDEPFILES): Likewise.
6164         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6165         * config/ia64/linux.mh (NATDEPFILES): Likewise.
6166         * config/m68k/linux.mh (NATDEPFILES): Likewise.
6167         * config/mips/linux.mh (NATDEPFILES): Likewise.
6168         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6169         * config/s390/s390.mh (NATDEPFILES): Likewise.
6170         * config/sparc/linux.mh (NATDEPFILES): Likewise.
6171
6172 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6173
6174         * i387-tdep.c: Reorder includes, fix some whitespace issues and
6175         replace out-of-date comment.
6176
6177 2003-06-15  Andrew Cagney  <cagney@redhat.com>
6178
6179         * rdi-share/host.h (Fail): Change to a varargs function.
6180         * remote-rdi.c (Fail): Update.
6181
6182 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6183
6184         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6185         (i386_convert_register_p, i386_register_to_value,
6186         i386_register_from_value): Handle types longer than 8 bytes.
6187
6188 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6189
6190         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6191         Move floating-point code to new function in i387-tdep.c.
6192         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6193         New functions containing code moved here from i386-tdep.c.
6194         * i387-tdep.h: Add opaque declaration for `struct type'.
6195         (i387_register_to_value, i387_value_to_register): New prototypes.
6196         * x86-64-tdep.c (x86_64_convert_register_p): New function.
6197         (x86_64_init_abi): Set convert_register_p, register_to_value and
6198         value_to_register here.
6199
6200 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6201
6202         * mips-tdep.c (mips_register_to_value): Make static.
6203         (mips_value_to_register): Make static.
6204         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6205         * ia64-tdep.c (ia64_register_raw_size): Make static.
6206         (ia64_register_virtual_size): Make static.
6207         (ia64_register_byte): Make static.
6208         * i387-tdep.c: Include "i387-tdep.h".
6209         (print_387_control_word): Delete function.
6210         (print_387_status_word): Delete function.
6211         (print_387_status_bits): Delete function.
6212         (print_387_control_bits): Delete function.
6213         * Makefile.in (i387-tdep.o): Update dependencies.
6214         * rdi-share/host.h (Fail): Declare.
6215         * remote-rdi.c (Fail): Update to match declaration.
6216
6217 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6218
6219         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6220         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6221         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6222         * config/djgpp/fnchange.lst: Delete "remote-array.c".
6223         * README: Delete reference to remote-array.
6224         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6225         (remote-array.o): Delete target.
6226         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6227         * remote-array.c: Delete file.
6228
6229 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6230             Mark Kettenis  <kettenis@gnu.org>
6231
6232         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6233         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6234         parameter with "frame".
6235         * gdbarch.h, gdbarch.c: Re-generate.
6236         * frame.h (put_frame_register): Declare.
6237         * frame.c (put_frame_register): New function.
6238         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6239         (legacy_register_to_value): Rewrite, use "frame" to get the
6240         register value.
6241         (legacy_value_to_register): Rewrite, use "frame" to find the
6242         register's location before storing.
6243         * arch-utils.h (legacy_convert_register_p): Update.
6244         (legacy_register_to_value, legacy_value_to_register): Update.
6245         * findvar.c (value_from_register): Rewrite, eliminate use of
6246         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6247         "frame" to REGISTER_TO_VALUE.
6248         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6249         lval_reg_frame_relative + lval_register branch of the switch.  Do
6250         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
6251         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6252         I386_EDI_REGNUM): New defines.
6253         (i386_next_regnum, i386_convert_register_p,
6254         i386_register_to_value, i386_value_to_register): New functions.
6255         (i386_register_convertible, i386_register_convert_to_virtual,
6256         i386_convert_to_raw): Remove functions.
6257         (i386_gdbarch_init): Set convert_register_p, register_to_value and
6258         value_to_register instead of register_convertible,
6259         register_convert_to_virtual and register_convert_to_raw.
6260         * mips-tdep.c (mips_convert_register_p): New function.
6261         (mips_value_to_register): Replace mips_register_convert_from_type.
6262         (mips_register_to_value): Replace mips_register_convert_to_type.
6263         (mips_gdbarch_init): Set conver_register_p, value_to_register and
6264         register_to_value.
6265         * alpha-tdep.c (alpha_convert_register_p): Update.
6266         (alpha_value_to_register): Update, store the register.
6267         (alpha_register_to_value): Update, fetch the register.
6268
6269 2003-06-14  Theodore A. Roth  <troth@openavr.org>
6270
6271         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6272         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6273         Don't set deprecated_call_dummy_words.
6274         Remove commented out set_gdbarch_believe_pcc_promotion() call.
6275         Don't set remote_translate_xfer_address.
6276         (avr_io_reg_read_command): Remove commented out debug printf.
6277         Wrap a long line.
6278
6279 2003-06-14  Theodore A. Roth  <troth@openavr.org>
6280
6281         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6282         causes gdb to seg fault.
6283
6284 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
6285
6286         * sparc-nat.c (fetch_inferior_registers): Correct
6287         a reference to "registers".
6288
6289 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
6290
6291         * Makefile.in (exc_request_U_h): Define
6292         (exc_request_S_h): Likewise.
6293         (msg_reply_S_h): Likewise.
6294         (msg_U_h): Likewise.
6295         (notify_S_h): Likewise.
6296         (process_reply_S_h): Likewise.
6297         (gnu-nat.o): Depend on gdb_obstack_h
6298         * gnu-nat.c: Include "gdb_obstack.h".
6299
6300 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6301
6302         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6303         * gdbarch.h, gdbarch.c: Re-generate.
6304
6305 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6306
6307         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
6308         when deprecated REGISTER macros can be deleted.
6309         * gdbarch.h, gdbarch.c: Re-generate.
6310
6311 2003-06-13  Jim Blandy  <jimb@redhat.com>
6312
6313         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6314         Linux entry point symbols for _dl_debug_state, too.
6315
6316 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6317
6318         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6319         available, do not use the FP register, and always save the TOS.
6320         * dummy-frame.c (dummy_frame_this_id): Do not assert
6321         SAVE_DUMMY_FRAME_TOS.
6322         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6323         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6324         (i386_push_dummy_call): Add 8 to the returned SP.
6325         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6326         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6327         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6328         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6329         (x86_64_push_dummy_call): Return "sp + 16".
6330         (x86_64_init_abi): Do not set save_dummy_frame_tos.
6331         * alpha-tdep.c (alpha_gdbarch_init): Do not set
6332         save_dummy_frame_tos.
6333
6334 2003-06-13  Jim Blandy  <jimb@redhat.com>
6335
6336         * frv-tdep.c (frv_use_struct_convention): Delete static
6337         declaration for function deleted in my change of 2003-06-12.
6338
6339 2003-06-13  Theodore A. Roth  <troth@openavr.org>
6340
6341         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6342         (avr_pointer_to_address): Shift code addrs left 1 bit.
6343         (avr_convert_from_func_ptr_addr): Delete function since operation is
6344         better handled by avr_address_to_pointer and avr_pointer_to_address.
6345         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6346
6347 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
6348
6349         From Kelley Cook  <kelleycook@wideopenwest.com>:
6350         * configure.host: Accept i[34567]86 variants.
6351         * configure.tgt: Likewise.
6352         * nlm/configure.in: Likewise.
6353         * nlm/configure: Regenerated.
6354
6355 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
6356
6357         * arm-tdep.c (solib-svr4.h): Dont' include it.
6358         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6359         * arm-linux-tdep.c: ... here.  Make static.
6360         (arm_linux_init_abi): Register it.
6361         (solib-svr4.h): Include it.
6362         * Makefile.in: Update dependencies.
6363         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6364         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6365
6366 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
6367
6368         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6369         indicate registers used for return values.
6370         (struct frame_extra_info): Drop args_pointer and locals_pointer.
6371         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6372         members.
6373         (h8300_init_extra_frame_info): Ditto.
6374         (h8300_frame_locals_address): Removed.
6375         (h8300_frame_args_address): Removed.
6376         (h8300_extract_return_value): Use new regcache structure. Only care
6377         for 16 bit CPUs.
6378         (h8300h_extract_return_value): Same function for 32 bit CPUs.
6379         (h8300_store_return_value): Use new regcache structure. Only care
6380         for 16 bit CPUs.
6381         (h8300h_store_return_value): Same function for 32 bit CPUs.
6382         (h8300_store_struct_return): Removed.
6383         (h8300_extract_struct_value_address): Use new regcache structure.
6384         (h8300h_extract_struct_value_address): Removed.
6385         (h8300_push_dummy_code): New function.
6386         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6387         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
6388         set_gdbarch_store_return_value architecture dependent.
6389         Call set_gdbarch_push_dummy_code and
6390         set_gdbarch_extract_struct_value_address.
6391         Remove calls to set_gdbarch_frame_args_address,
6392         set_gdbarch_frame_locals_address,
6393         set_gdbarch_deprecated_store_struct_return,
6394         set_gdbarch_deprecated_extract_return_value,
6395         set_gdbarch_deprecated_extract_struct_value_address,
6396         set_gdbarch_deprecated_call_dummy_words and
6397         set_gdbarch_deprecated_sizeof_call_dummy_words.
6398
6399 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
6400
6401         * h8300-tdep.c (h8300_register_byte): Remove.
6402         (h8300h_register_byte): Remove.
6403         (h8300_register_virtual_type): Remove.  Substitute by...
6404         (h8300_register_type): New function.
6405         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6406         (h8300h_extract_struct_value_address): Ditto.
6407         (h8300_gdbarch_init): Drop calls to
6408         set_gdbarch_deprecated_register_byte and
6409         set_gdbarch_deprecated_register_virtual_type.
6410         Add call to set_gdbarch_register_type.
6411
6412 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6413
6414         * gdbarch.sh: Update comments on registers.
6415         (deprecated_register_byte): Rename register_byte.
6416         (deprecated_register_raw_size): Rename register_raw_size.
6417         (deprecated_register_virtual_size): Rename register_virtual_size.
6418         (deprecated_register_virtual_type): Rename register_virtual_type.
6419         * gdbarch.h, gdbarch.c: Re-generate.
6420         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6421         * vax-tdep.c (vax_gdbarch_init): Update.
6422         * v850-tdep.c (v850_gdbarch_init): Update.
6423         * sparc-tdep.c (sparc_gdbarch_init): Update.
6424         * sh-tdep.c (sh_gdbarch_init): Update.
6425         * s390-tdep.c (s390_gdbarch_init): Update.
6426         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6427         * ns32k-tdep.c: Update.
6428         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6429         * mips-tdep.c (mips_gdbarch_init): Update.
6430         * mcore-tdep.c (mcore_gdbarch_init): Update.
6431         * m68k-tdep.c (m68k_gdbarch_init): Update.
6432         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6433         * ia64-tdep.c (ia64_gdbarch_init): Update.
6434         * hppa-tdep.c (hppa_gdbarch_init): Update.
6435         * h8300-tdep.c (h8300_gdbarch_init): Update.
6436         * frv-tdep.c (frv_gdbarch_init): Update.
6437         * cris-tdep.c (cris_gdbarch_init): Update.
6438         * avr-tdep.c (avr_gdbarch_init): Update.
6439         * alpha-tdep.c (alpha_gdbarch_init): Update.
6440         * arm-tdep.c (arm_gdbarch_init): Update.
6441
6442 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6443
6444         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6445         mips_o32_use_struct_convention with always_use_struct_convention.
6446
6447 2003-06-12  David Carlton  <carlton@kealia.com>
6448
6449         * cp-namespace.c (cp_set_block_scope): Comment out
6450         processing_has_namespace_info branch.
6451
6452 2003-06-12  Jim Blandy  <jimb@redhat.com>
6453
6454         Recognize and skip 64-bit PowerPC Linux linkage functions.
6455         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6456         insn_pattern, insns_match_pattern, d_field, ds_field): New
6457         functions, macros, and types for working with PPC instructions.
6458         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6459         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6460         ppc64_skip_trampoline_code): New functions, variables, and macros
6461         for recognizing and skipping linkage functions.
6462         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6463         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6464
6465         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6466         register offsets for both the 32- and 64-bit interfaces.
6467
6468         Actually finish the job started by my change of 2003-05-29.
6469         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6470         other #definition of this.
6471         (ppc_linux_skip_trampoline_code): Remove declaration.
6472         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6473         static.
6474         (ppc_linux_init_abi): Register it as the skip_trampoline_code
6475         method for GDBARCH.
6476
6477         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6478         'long' on ppc64-*-linux*.
6479
6480         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6481         isn't #defined, assume the register doesn't exist: act as if
6482         tdep->ppc_mq_regnum were -1.
6483
6484         * configure.host, configure.tgt: Add entries for
6485         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6486         powerpc/linux.mt.
6487         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6488         New files.
6489
6490         * arch-utils.c (always_use_struct_convention): New function.
6491         * arch-utils.h (always_use_struct_convention): New prototype.
6492         * alpha-tdep.c (alpha_use_struct_convention): Delete.
6493         (alpha_gdbarch_init): Register always_use_struct_convention,
6494         instead of alpha_use_struct_convention.
6495         * cris-tdep.c (cris_use_struct_convention): Delete.
6496         (cris_gdbarch_init): Register always_use_struct_convention,
6497         instead of cris_use_struct_convention.
6498         * frv-tdep.c (frv_use_struct_convention): Delete.
6499         (frv_gdbarch_init): Register always_use_struct_convention,
6500         instead of frv_use_struct_convention.
6501         * h8300-tdep.c (h8300_use_struct_convention): Delete.
6502         (h8300_gdbarch_init): Register always_use_struct_convention,
6503         instead of h8300_use_struct_convention.
6504         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6505         (mips_o32_gdbarch_init): Register always_use_struct_convention,
6506         instead of mips_o32_use_struct_convention.
6507
6508 2003-06-12  Andrew Cagney  <cagney@redhat.com>
6509
6510         * wince.c: Include "mips-tdep.h".
6511         * mips-tdep.h (mips_next_pc): Declare.
6512         * mcore-tdep.c: Make more local functions static.
6513         * Makefile.in (wince.o): Update dependencies.
6514
6515 2003-06-12  David Carlton  <carlton@kealia.com>
6516
6517         * symtab.c (lookup_symbol_aux_minsyms): Replace
6518         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6519         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6520         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6521         SYMBOL_NATURAL_NAME.
6522
6523 2003-06-12  Andreas Schwab  <schwab@suse.de>
6524
6525         * Makefile.in (tuiDisassem.o): Update dependencies.
6526
6527 2003-06-12  David Carlton  <carlton@bactrian.org>
6528
6529         * symtab.h: Delete declaration of make_symbol_overload_list.
6530         Add declaration of lookup_partial_symbol.
6531         * symtab.c (remove_params): Move to cp-support.c.
6532         (overload_list_add_symbol, make_symbol_overload_list)
6533         (sym_return_val_size, sym_return_val_index): Ditto.
6534         (lookup_partial_symbol): Make extern.
6535         * cp-support.h: Add declaration of make_symbol_overload_list.
6536         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6537         symtab.h, and block.h.
6538         (remove_params): Move here from symtab.c.
6539         (overload_list_add_symbol, make_symbol_overload_list)
6540         (sym_return_val_size, sym_return_val_index): Ditto.
6541         * valops.c: Include cp-support.h.
6542         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6543         frame_h, and block_h.
6544         (valops.o): Depend on cp_support_h.
6545
6546 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
6547
6548         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6549         substitute by NUM_REGS throughout.
6550         (h8300_register_name): Only care for H8/300 and H8/300H registers.
6551         (h8300s_register_name): New function for H8S registers.
6552         (h8300sx_register_name): Ditto for H8SX registers.
6553         (h8300_print_register): Revise register printing, avoid depending
6554         on 32 bit long.
6555         (h8300_register_byte): Only care for H8/300 registers.
6556         (h8300h_register_byte): New function for any other architecture.
6557         (h8300_register_raw_size): Remove.
6558         (h8300_register_virtual_type): Revise to return actually useful
6559         type.
6560         (h8300_extract_struct_value_address): Only care for H8/300 registers.
6561         (h8300h_extract_struct_value_address): New function for any other
6562         architecture.
6563         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
6564         set_gdbarch_register_name, set_gdbarch_register_byte,
6565         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6566         Remove calls to set_gdbarch_deprecated_register_size,
6567         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6568         set_gdbarch_deprecated_max_register_raw_size,
6569         set_gdbarch_register_virtual_size and
6570         set_gdbarch_deprecated_max_register_virtual_size entirely.
6571         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6572         set_gdbarch_long_double_bit.
6573
6574 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
6575
6576         * doublest.c (convert_doublest_to_floatformat): When dealing
6577         with the implied integer bit, only alter mant_bits if we are
6578         processing a full 32 bits of mantissa.
6579
6580 2003-06-11  David Carlton  <carlton@bactrian.org>
6581
6582         * dictionary.h: New.
6583         * dictionary.c: New.
6584         * block.h: Add opaque declaration for struct dictionary.
6585         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6586         'sym' members.
6587         (BLOCK_DICT): New macro.
6588         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6589         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6590         BLOCK_SHOULD_SORT.
6591         (ALL_BLOCK_SYMBOLS): Update definition.
6592         * Makefile.in (SFILES): Add dictionary.c.
6593         (dictionary_h): New.
6594         (COMMON_OBS): Add dictionary.o.
6595         (dictionary.o): New.
6596         (ada-lang.o): Depend on dictionary_h.
6597         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6598         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6599         (mi-cmd-stack.o): Ditto.
6600         (gdbtk-cmds.o): Update dependencies.
6601         (gdbtk-stack.o): Ditto.
6602         * ada-lang.c: Include dictionary.h.
6603         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6604         (fill_in_ada_prototype, debug_print_block): Ditto.
6605         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6606         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
6607         'is_sorted'.
6608         * mdebugread.c: Include dictionary.h.
6609         (struct parse_stack): Delete 'maxsyms' member.
6610         (parse_symbol): Update calls to new_block.  Delete calls to
6611         shrink_block.  Use dictionary methods.
6612         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6613         Update calls to new_symtab.  Don't maintain maxsyms data.
6614         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6615         (add_symbol): Just call dict_add_symbol.
6616         (new_symtab): Delete 'maxsyms' argument.
6617         (new_symtab): Update calls to new_block.
6618         (new_block): Delete 'maxsyms' argument; add 'function' argument.
6619         (shrink_block): Delete function.
6620         (fixup_sigtramp): Update call to new_block.  Add symbol via
6621         dict_add_symbol.
6622         * jv-lang.c: Include dictionary.h.
6623         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6624         appropriately.  Set class_symtab->free_func.  Make sure the
6625         blockvector is big enough to hold two blocks.
6626         (add_class_symtab_symbol): Use dictionary methods.
6627         (free_class_block): New function.
6628         (type_from_class): Replace explicit iteration by
6629         ALL_BLOCK_SYMBOLS.
6630         * symtab.h (struct symtab): Replace 'free_ptr' method by
6631         'free_func'.
6632         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6633         sort_symtab_syms.
6634         * dwarfread.c (psymtab_to_symtab_1): Delete call to
6635         sort_symtab_syms.
6636         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6637         Include dictionary.h.
6638         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6639         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6640         sort_symtab_syms.
6641         * objfiles.c: Include dictionary.h.
6642         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6643         * buildsym.c: Include dictionary.h.
6644         (finish_block): Use dictionary methods.
6645         (end_symtab): Set free_func to NULL, not free_ptr.
6646         * tracepoint.c: Include dictionary.h.
6647         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6648         (scope_info): Ditto.
6649         * stack.c: Include dictionary.h.
6650         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6651         (print_block_frame_labels, print_frame_arg_vars)
6652         (print_frame_args): Ditto.
6653         * symmisc.c (free_symtab_block): Use dictionary methods.
6654         (dump_symtab): Ditto.
6655         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6656         Include dictionary.h.
6657         * symfile.h: Delete declarations of sort_block_syms,
6658         sort_symtab_syms.
6659         * symfile.c (sort_block_syms): Delete.
6660         (sort_symtab_syms): Delete.
6661         * symtab.c: Include dictionary.h.
6662         (lookup_block_symbol): Use dictionary iterators.
6663         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6664         (search_symbols, make_symbol_completion_list): Ditto.
6665         (make_symbol_overload_list): Ditto.
6666         * valops.c (value_of_local): Use dict_empty.
6667         Include dictionary.h.
6668
6669 2003-06-11  J. Brobecker  <brobecker@gnat.com>
6670
6671         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6672
6673 2003-06-11  David Carlton  <carlton@bactrian.org>
6674
6675         * block.h (BLOCK_SHOULD_SORT): Delete.
6676         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6677         blocks.
6678         * ada-lang.c (ada_add_block_symbols): Ditto.
6679         * symfile.c (sort_block_syms): Delete.
6680         (sort_symtab_syms): Ditto.
6681         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6682         declarations.
6683         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6684         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6685         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6686         * dwarfread.c (psymtab_to_symtab_1): Ditto.
6687         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6688         * mdebugread.c (psymtab_to_symtab_1): Ditto.
6689         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6690
6691 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
6692
6693         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6694         bits to 128.
6695
6696 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6697
6698         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6699         REGISTER_CONVERTIBLE.
6700         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6701         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6702         * gdbarch.h, gdbarch.c: Re-generate.
6703         * arch-utils.h (deprecated_register_convertible_not): Rename
6704         generic_register_convertible_not.
6705         * arch-utils.c (deprecated_register_convertible_not): Rename
6706         generic_register_convertible.
6707         (legacy_convert_register_p, legacy_register_to_value): Update.
6708         * sh-tdep.c (sh64_push_arguments): Update.
6709         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6710         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6711         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6712         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6713         * arch-utils.c (legacy_value_to_register): Update.
6714         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6715         (rs6000_register_convert_to_raw): Make parameter "from" const.
6716         * mips-tdep.c (mips_gdbarch_init): Update.
6717         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
6718         * infcmd.c (default_print_registers_info): Update.
6719         * ia64-tdep.c (ia64_gdbarch_init): Update.
6720         (ia64_register_convert_to_raw): Make parameter "from" const.
6721         * i386-tdep.c (i386_gdbarch_init): Update.
6722         (i386_register_convert_to_raw): Update.
6723
6724 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6725
6726         * remote-fileio.c: Include "remote-fileio.h".
6727         * Makefile.in (remote-fileio.o): Update dependencies.
6728         (remote_fileio_h): Fix typo.
6729
6730 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6731
6732         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6733         (xstormy16_save_dummy_frame_tos): Make static.
6734         (_initialize_xstormy16_tdep): Add declaration.
6735         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6736         * v850-tdep.c: Make local functions static.
6737         (_initialize_v850_tdep): Add declaration.
6738         * sparc-tdep.c: Make local functions static.
6739         (_initialize_sparc_tdep): Add declaration.
6740         * sh-tdep.c: Make local functions static.
6741         (_initialize_sh_tdep): Add declaration.
6742         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6743         * s390-tdep.c: Make local functions static.
6744         (_initialize_s390_tdep): Add declaration.
6745         * dbxread.c (find_stab_function_addr): Make static.
6746         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6747         * ocd.c (_initialize_remote_ocd): Add declaration.
6748         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6749         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6750         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6751         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6752         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6753         * remote-array.c (_initialize_array): Add declaration.
6754         (_initialize_remote_monitors): Add declaration.
6755         * remote-mips.c: Make local functions static.
6756         (_initialize_remote_mips): Add declaration.
6757         * mcore-tdep.c: Make all local functions static.
6758         (_initialize_mcore_tdep): Add declaration.
6759         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6760         * abug-rom.c (_initialize_abug_rom): Add declaration.
6761         * rom68k-rom.c (_initialize_rom68k): Add declaration.
6762         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6763         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6764         * remote-est.c (_initialize_est): Add declaration.
6765         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6766         (m68hc11_call_dummy_address): Make static.
6767         * ia64-tdep.c: Make local functions static.
6768         (_initialize_ia64_tdep): Add declaration.
6769         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6770         * monitor.c (monitor_wait_filter): Make static.
6771         (_initialize_remote_monitors): Add declaration.
6772         * remote-hms.c (_initialize_remote_hms): Add declaration.
6773         * remote-e7000.c (fetch_regs_from_dump): Make static.
6774         (expect_n): Make static.
6775         (_initialize_remote_e7000): Add declaration.
6776         * ser-e7kpc.c: Always include "defs.h".
6777         (_initialize_ser_e7000pc): Add declaration.
6778         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6779         * cris-tdep.c: Make all but one function static.
6780         (_initialize_cris_tdep): Add declaration.
6781         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6782         * solib.c (update_solib_list): Make static.
6783         (_initialize_solib): Add declaration.
6784         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6785         (_initialize_avr_tdep): Add declaration.
6786         * remote-rdi.c (voiddummy): Make static.
6787         (_initialize_remote_rdi): Add declaration.
6788         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6789         * remote-rdp.c (send_rdp): Make static.
6790         (_initialize_remote_rdp): Add declaration.
6791         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6792
6793 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
6794
6795         * remote-fileio.c: Make ari happy.
6796
6797 2003-06-10  J. Brobecker  <brobecker@gnat.com>
6798
6799         * rs6000-nat.c (child_xfer_memory): Compute the right address when
6800         fetching the trailing bytes of the buffer we are about to write.
6801
6802 2003-06-10  Andrew Cagney  <cagney@redhat.com>
6803
6804         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6805         * Makefile.in (remote-fileio.o): Update dependencies.
6806         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
6807         include <setjmp.h>, or <sys/types.h> conditional on USG.
6808         (remote_fio_jmp_buf): Delete global variable.
6809
6810 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
6811             Martin M. Hunt  <hunt@redhat.com>
6812
6813         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6814         (SFILES): Add remote-fileio.c.
6815         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
6816         dependencies for building remote.o.
6817         * remote-fileio.c: New file implementing the remote File-I/O protocol.
6818         * remote-fileio.h: New header file defining remote File-I/O interface.
6819         * remote.c (remote_write_bytes, remote_read_bytes): Remove
6820         static storage class.
6821         (remote_wait, remote_async_wait): Call remote_fileio_request() on
6822         'F' packet.
6823         (_initialize_remote): Call initialize_remote_fileio().
6824         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6825         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6826         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6827         (captured_main): Initialize new ui_files.
6828         * ui-file.c: Add read and fgets input functions.
6829         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6830         (null_file_read): New function.
6831         (ui_file_read): New function.
6832         (set_ui_file_read): New function.
6833         (stdio_file_read): New function.
6834         * ui-file.h: New type ui_file_read_ftype.
6835         (set_ui_file_read): Declare.
6836         (ui_file_read): Declare.
6837
6838 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6839
6840         * frame.h (deprecated_unwind_get_saved_register): Rename
6841         generic_unwind_get_saved_register, update comments.
6842         * mips-tdep.c (mips_get_saved_register): Update.
6843         * frame.c (deprecated_unwind_get_saved_register): Update.
6844
6845 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6846
6847         * vax-tdep.c (vax_frame_locals_address): Delete function.
6848         (vax_gdbarch_init): Do not set frame_locals_address.
6849         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6850         (m68hc11_gdbarch_init): Do not set frame_locals_address.
6851         * s390-tdep.c (s390_frame_args_address): Delete function.
6852         (s390_gdbarch_init): Do not set frame_args_address or
6853         frame_locals_address.
6854         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6855         (ns32k_gdbarch_init): Do not set frame_locals_address.
6856         * hppa-tdep.c (hppa_frame_args_address): Delete function.
6857         (hppa_frame_locals_address): Delete function.
6858         (hppa_gdbarch_init): Do not set frame_args_address, or
6859         frame_locals_address.
6860         * arm-tdep.c (arm_frame_args_address): Delete.
6861         (arm_frame_locals_address): Delete.
6862         (arm_gdbarch_init): Do not set frame_args_address, or
6863         frame_locals_address.
6864
6865 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6866
6867         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6868         * gdbarch.h, gdbarch.c: Re-generate.
6869         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6870         * arch-utils.c (frame_num_args_unknown): Delete function.
6871         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6872         (frame_info): Use FRAME_NUM_ARGS_P.
6873         * arm-tdep.c (arm_frame_num_args): Delete function.
6874         (arm_gdbarch_init): Do not set frame_num_args.
6875         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6876         * hppa-tdep.c (hppa_frame_num_args): Delete function.
6877         (hppa_gdbarch_init): Do not set frame_num_args.
6878         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6879         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6880         frame_num_args to default frame_num_args_unknown.
6881         * v850-tdep.c (v850_gdbarch_init): Ditto.
6882         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6883         * sh-tdep.c (sh_gdbarch_init): Ditto.
6884         * s390-tdep.c (s390_gdbarch_init): Ditto.
6885         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6886         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6887         * mips-tdep.c (mips_gdbarch_init): Ditto.
6888         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6889         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6890         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6891         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6892         * i386-tdep.c (i386_gdbarch_init): Ditto.
6893         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6894         * frv-tdep.c (frv_gdbarch_init): Ditto.
6895         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6896         * cris-tdep.c (cris_gdbarch_init): Ditto.
6897         * avr-tdep.c (avr_gdbarch_init): Ditto.
6898         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6899
6900 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6901
6902         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6903         (print_frame_args): Moved to "stack.c".
6904         * stack.c: Include "gdb_assert.h".
6905         (print_frame_nameless_args): Moved from "printcmd.c", made static.
6906         (print_frame_args): Moved from "printcmd.c".
6907         * frame.h (print_frame_args): Delete declaration.
6908         * Makefile.in (stack.o): Update dependencies.
6909
6910 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6911
6912         * frame.c (get_prev_frame): Remove reference to
6913         frame_args_address_correct in comments.
6914         * frame-base.c (default_frame_args_address): Delete code
6915         conditional on FRAME_ARGS_ADDRESS_CORRECT.
6916         * vax-tdep.c (vax_frame_args_address_correct): Delete.
6917         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6918         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6919         (vax_frame_args_address_correct): Delete declaration.
6920
6921 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6922
6923         * gdbarch.sh (UNWIND_SP): Add.
6924         * gdbarch.h, gdbarch.c: Re-generate.
6925         * frame.c (frame_sp_unwind): New function.
6926         (get_frame_sp): New function.
6927         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6928         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6929         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6930         value.
6931         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6932         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6933
6934 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6935
6936         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6937         REMOTE_BREAKPOINT.
6938         * remote.c: Update.
6939         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6940         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6941         * config/m68k/tm-sun3.h: Update.
6942         * config/m68k/tm-m68klynx.h: Update.
6943         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6944
6945         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6946         trad_frame".  Update comments.
6947         * d10v-tdep.c (struct d10v_unwind_cache): Update.
6948         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6949         (trad_frame_register_value, trad_frame_prev_register): Update.
6950
6951 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6952
6953         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6954         from GCC's acinclude.m4.
6955         * configure.in: Check for getopt's delcaration.
6956         * aclocal.m4, config.in, configure: Re-generate.
6957         * main.c (error_init): Delete declaration.
6958         * defs.h (error_init): Declare.
6959         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6960         (rs6000_convert_from_func_ptr_addr): Make static.
6961         (_initialize_rs6000_tdep): Add declaration.
6962         * cli/cli-cmds.c (dont_repeat): Delete declaration.
6963         (show_commands, set_verbose, show_history): Delete declaration.
6964         * top.h (set_verbose): Add declaration.
6965         (show_history, set_history, show_commands): Add declaration.
6966         (do_restore_instream_cleanup): Add declaration.
6967         * objc-lang.c (specialcmp): Make static.
6968         (print_object_command): Make static.
6969         (find_objc_msgsend): Make static.
6970         (find_objc_msgcall_submethod_helper): Make static.
6971         (find_objc_msgcall_submethod): Make static.
6972         (_initialize_objc_language): Add declaration.
6973         (find_implementation_from_class): Make static.
6974         (find_implementation): Make static.
6975         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6976         * objc-lang.h (lookup_struct_typedef): Add declaration.
6977         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6978         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6979         (do_restore_user_call_depth): Make static.
6980         (do_restore_instream_cleanup): Delete declaration.
6981         (dont_repeat): Delete declaration.
6982         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6983         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6984         * reggroups.c (_initialize_reggroup): Add declaration.
6985         * cp-support.c (_initialize_cp_support): Add declaration.
6986         * cp-abi.c (_initialize_cp_abi): Add declaration.
6987         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6988         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6989         (_initialize_gnu_v3_abi): Add declaration.
6990         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6991         (_initialize_gnu_v2_abi): Add declaration.
6992         * frame-base.c (_initialize_frame_base): Add declaration.
6993         * doublest.c (floatformat_from_length): Make static.
6994         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6995         * frame.c (create_sentinel_frame): Make static.
6996         (_initialize_frame): Add declaration.
6997         * top.c (do_catch_errors): Make static.
6998         (gdb_rl_operate_and_get_next_completion): Make static.
6999         * typeprint.c: Include "typeprint.h".
7000         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7001         (sentinel_frame_this_id): Make static.
7002         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7003         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7004         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7005         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7006         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7007         * maint.c (maintenance_print_architecture): Make static.
7008         * signals/signals.c (_initialize_signals): Add declaration.
7009         * std-regs.c (_initialize_frame_reg): Add declaration.
7010         * jv-exp.y (push_variable): ISO C definition.
7011         (push_qualified_expression_name): Ditto.
7012         * memattr.c (_initialize_mem): Add declaration.
7013         * remote.c (remote_check_watch_resources): Make static.
7014         (remote_stopped_by_watchpoint): Make static.
7015         (remote_stopped_data_address): Make static.
7016         * d10v-tdep.c (nr_dmap_regs): Make static.
7017         (a0_regnum): Make static.
7018         (d10v_frame_unwind_cache): Make static.
7019         (d10v_frame_p): Make static.
7020         * osabi.c (show_osabi): Make static.
7021         (_initialize_gdb_osabi): Add extern declaration.
7022         * gdbtypes.c (make_qualified_type): Make static.
7023         (safe_parse_type): Make static.
7024         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7025         * macrotab.c (macro_bcache_free): Make static.
7026         * interps.c (interp_set_quiet): Make static.
7027         (interpreter_exec_cmd): Make static.
7028         * stack.h (select_frame_command): New file.
7029         * stack.c: Include "stack.h".
7030         (select_frame_command_wrapper): Delete function.
7031         (select_frame_command): Make global.
7032         * infcall.c: Include "infcall.h".
7033         * linespec.c: Include "linespec.h".
7034         * symfile.c (sections_overlap): Make static.
7035         * cp-support.h (cp_initialize_namespace): ISO C declaration.
7036         * charset.c (_initialize_charset): Add missing prototype.
7037         * regcache.c (init_legacy_regcache_descr): Make static.
7038         (do_regcache_xfree): Make static.
7039         (regcache_xfer_part): Make static.
7040         (_initialize_regcache): Add missing prototype.
7041         * breakpoint.c (parse_breakpoint_sals): Make static.
7042         (breakpoint_sals_to_pc): Make static.
7043         * interps.h (clear_interpreter_hooks): ISO C declaration.
7044         * Makefile.in (stack_h): Define.
7045         (stack.o, typeprint.o, mi-main.o): Update dependencies.
7046         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7047
7048 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7049
7050         * Makefile.in (d10v-tdep.o): Update dependencies.
7051         (SFILES): Add trad-frame.c.
7052         (trad_frame_h): Define.
7053         (COMMON_OBS): Add trad-frame.o.
7054         (trad-frame.o): Specify dependencies.
7055         * d10v-tdep.c: Include "trad-frame.h".
7056         (saved_regs_unwinder): Delete function.
7057         (d10v_frame_prev_register): Use trad_frame_prev_register.
7058         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7059         trad_frame", delete "regs" and "prev_sp".
7060         (prologue_find_regs): Use trad-frame.
7061         * trad-frame.h, trad-frame.c: New files.
7062
7063 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
7064
7065         * dwarf2cfi.c, dwarf2cfi.h: Remove.
7066
7067 2003-06-07  Adam Fedor  <fedor@gnu.org>
7068
7069         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7070         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7071         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7072         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7073         resolve_msgsend_super, resolve_msgsend_super_stret):
7074         Use it.
7075
7076 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7077
7078         * symfile.h: Re-indent, clean up comments.
7079
7080 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7081
7082         * inferior.h (deprecated_write_sp): Replace
7083         generic_target_write_sp.
7084         * regcache.c (deprecated_write_sp): Replace
7085         generic_target_write_sp.
7086         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7087         * vax-tdep.c (vax_gdbarch_init): Update.
7088         * v850-tdep.c (v850_gdbarch_init): Update.
7089         * sparc-tdep.c (sparc_gdbarch_init): Update.
7090         * sh-tdep.c (sh_gdbarch_init): Update.
7091         * s390-tdep.c (s390_gdbarch_init): Update.
7092         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7093         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7094         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7095         * mcore-tdep.c (mcore_gdbarch_init): Update.
7096         * m68k-tdep.c (m68k_gdbarch_init): Update.
7097         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7098         * ia64-tdep.c (ia64_gdbarch_init): Update.
7099         * h8300-tdep.c (h8300_gdbarch_init): Update.
7100         * frv-tdep.c (frv_gdbarch_init): Update.
7101         * cris-tdep.c (cris_gdbarch_init): Update.
7102         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7103
7104 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7105
7106         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7107         Assert that PC_REGNUM is valid.
7108         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7109
7110 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7111
7112         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7113         * gdbarch.h, gdbarch.c: Regenerate.
7114         * mn10300-tdep.c: Include "gdb_assert.h".
7115         (mn10300_read_fp): New function.
7116         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7117         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
7118         * ia64-tdep.c: Include "gdb_assert.h".
7119         (ia64_read_fp): New function.
7120         (ia64_gdbarch_init): Set deprecated_target_read_fp to
7121         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
7122         * regcache.c (generic_target_read_sp): Delete function.
7123         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7124         * inferior.h (generic_target_read_sp): Delete declaration.
7125         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7126         generic_target_read_sp.
7127         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7128         * sparc-tdep.c (sparc_gdbarch_init): Ditto
7129         * sh-tdep.c (sh_gdbarch_init): Ditto.
7130         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7131         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7132
7133 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7134
7135         * gdbarch.sh: Comment each field of startup_gdbarch.
7136         * gdbarch.h, gdbarch.c: Re-generate.
7137
7138 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7139
7140         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7141         * gdbarch.h, gdbarch.c: Re-generate.
7142         * regcache.c: Update comments on read_pc et.al.
7143         (generic_target_read_pc): Delete function.
7144         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7145         * inferior.h (generic_target_read_pc): Delete declaration.
7146         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7147         generic_target_read_pc.
7148         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7149         * sh-tdep.c (sh_gdbarch_init): Ditto.
7150         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7151         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7152
7153 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7154
7155         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7156         "index" with "special_local_sect".  Use strcmp instead of STREQ.
7157         Append period to coments.
7158
7159 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
7160
7161         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7162         (elfstab_offset_sections): Likewise.
7163         * gdb-stabs.h (stab_section_info): Likewise.
7164         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7165         * objfiles.c (objfile_relocate): Likewise.
7166         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7167         * remote.c (get_offsets): Likewise.
7168         (remote_cisco_objfile_relocate): Likewise.
7169         * somread.c (som_symfile_offsets): Likewise.
7170         * symfile.c (alloc_section_addr_info): New function.
7171         (build_section_addr_info_from_section_tab): Use it.
7172         (free_section_addr_info): Adjust.
7173         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7174         (syms_from_objfile): Allocate local_addr dynamically.
7175         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7176         dynamically.
7177         (add_symbol_file_command): Allocate sect_opts dynamically.
7178         (reread_symbols): Avoid use of SECT_OFF_MAX.
7179         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7180         (alloc_section_addr_info): Declare it.
7181         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7182         * win32-nat.c (solib_symbols_add): Allocate section_addrs
7183         dynamically.
7184         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7185
7186 2003-06-06  Andrew Cagney  <cagney@redhat.com>
7187
7188         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7189         (d10v_frame_unwind_cache): Do not set "return_pc".
7190
7191 2003-06-06  Michael Snyder  <msnyder@redhat.com>
7192
7193         * h8300-tdep.c: Make tidy (long lines).
7194
7195 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
7196
7197         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7198         to regcache_collect().
7199
7200 2003-06-05  J. Brobecker  <brobecker@gnat.com>
7201
7202         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7203         pc_in_sigtramp multiarch method.
7204         (hppa_hpux_som_init_abi): Use it.
7205         (hppa_hpux_elf_init_abi): Likewise.
7206         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7207         macro has been multiarched.
7208         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7209         macro here, as hppa64 isn't multiarched yet.
7210
7211 2003-06-05  Andrew Cagney  <cagney@redhat.com>
7212
7213         * Makefile.in (value_h): Add $(frame_h).
7214         * value.h: Include "frame.h".
7215         (struct value): Replace "frame_addr" with "frame_id".
7216         (VALUE_FRAME_ID): Replace VALUE_FRAME.
7217         * values.c (allocate_value): Use VALUE_FRAME_ID.
7218         (value_copy): Use VALUE_FRAME_ID.
7219         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7220         * valops.c (value_assign): Update.  Use frame_find_by_id.
7221
7222 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
7223
7224         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7225         in each pass.
7226
7227 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
7228
7229         * thread-db.c (check_event): For create/death event breakpoints,
7230         loop through all messages to ensure that we read the message
7231         corresponding to the breakpoint we are at.
7232
7233 2003-06-04  Michael Snyder  <msnyder@redhat.com>
7234
7235         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7236
7237 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
7238
7239         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7240         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7241         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7242         when handling .eh_frame sections.
7243
7244 2003-06-04  J. Brobecker  <brobecker@gnat.com>
7245
7246         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7247         prepare_to_proceed procedure instead of the hppa-specific one.
7248         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7249
7250 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
7251
7252         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7253         * config.in: Regenerated.
7254         * configure.in: Add test for syscall function and check for
7255         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7256         * configure: Regenerated.
7257         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7258         <sys/syscall.h>.
7259         (kill_lwp): New function that uses tkill syscall or
7260         uses kill, depending on whether threading model is nptl or not.
7261         All callers of kill() changed to use kill_lwp().
7262         (lin_lwp_wait): Make special check when WIFEXITED occurs to
7263         see if all threads have already exited in the nptl model.
7264         (stop_and_resume_callback): New callback function used by the
7265         lin_lwp_wait thread exit handling code.
7266         (stop_wait_callback): Check for threads already having exited and
7267         delete such threads fromt the lwp list when discovered.
7268         (stop_callback): Don't assert retcode of kill call.
7269
7270         Roland McGrath  <roland@redhat.com>
7271         * i386-linux-nat.c (ps_get_thread_area): New function needed by
7272         nptl libthread_db.
7273
7274 2003-06-03  Richard Henderson  <rth@redhat.com>
7275
7276         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7277         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7278         (alpha_sigtramp_frame_prev_register): Likewise.
7279         (alpha_heuristic_frame_prev_register): Likewise.
7280         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7281
7282         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7283         alpha-specific register id names.
7284         (alpha_mdebug_frame_unwind_cache): Likewise.
7285         (alpha_mdebug_frame_prev_register): Likewise.
7286
7287 2003-06-03  Richard Henderson  <rth@redhat.com>
7288
7289         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7290         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7291         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7292         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7293         unwind routines.
7294         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7295         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7296         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7297
7298         * alpha-linux-tdep.c: Remove unnecessary includes.
7299         * Makefile.in (alpha-linux-tdep.o): Update.
7300
7301 2003-06-03  Richard Henderson  <rth@redhat.com>
7302
7303         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7304         (alphabsd_fill_fpreg): Likewise.
7305
7306 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7307
7308         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
7309         references to struct frame_info fields by calls to the equivalent
7310         accessors. Necessary now that frame_info is opaque.
7311
7312 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7313
7314         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7315         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7316         structure, field no longer exists.
7317
7318 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7319
7320         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7321         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7322
7323 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7324
7325         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7326         references to struct frame_info fields by calls to the equivalent
7327         accessors. Necessary now that frame_info is opaque.
7328
7329 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7330
7331         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7332         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7333         structure, field no longer exists.
7334
7335 2003-06-03  Theodore A. Roth  <troth@openavr.org>
7336
7337         * remote.c (init_remote_state): Compute sizeof_g_packet by
7338         accumulation of the size of all registers instead of blindly using
7339         DEPRECATED_REGISTER_BYTES.
7340
7341 2003-06-03  Michael Snyder  <msnyder@redhat.com>
7342
7343         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7344         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7345         for h8300sx.
7346
7347 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7348
7349         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7350         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7351
7352 2003-06-03  Andrew Cagney  <cagney@redhat.com>
7353
7354         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7355         (sparc_convert_to_raw): Delete function.
7356         (sparc_gdbarch_init): Do not set register_convert_to_raw or
7357         register_convert_to_virtual.
7358
7359 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7360
7361         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7362         layer if not dealing with a statically-linked threaded program.
7363
7364 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
7365
7366         * solib.c (solib_open): Update comment to reflect actual search order.
7367
7368 2003-06-03  Andrew Cagney  <cagney@redhat.com>
7369
7370         * frame.c (get_frame_memory_signed): New function.
7371         (get_frame_memory, get_frame_memory_unsigned): New function.
7372         (get_frame_arch): New function.
7373         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7374         (get_frame_memory, get_frame_unsigned_memory): Declare.
7375         * d10v-tdep.c (d10v_frame_unwind_cache): Use
7376         get_frame_memory_unsigned and get_frame_arch.
7377         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7378
7379 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
7380
7381         * MAINTAINERS (write after approval): Add myself.
7382
7383 2003-06-03  Jim Blandy  <jimb@redhat.com>
7384
7385         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7386         elements of gregset_t are 64 bits each, but access registers
7387         are still 32 bits, so they're packed two per gregset_t
7388         element.  Unpack/pack them properly.
7389
7390 2003-06-02  David Carlton  <carlton@bactrian.org>
7391
7392         * linespec.c (find_methods): Break out code into
7393         add_matching_methods and add_constructors.
7394         (add_matching_methods): New.
7395         (add_constructors): Ditto.
7396
7397 2003-06-02  Andrew Cagney  <cagney@redhat.com>
7398
7399         * sparc-tdep.c (sparc_print_registers): Delete call to
7400         REGISTER_CONVERTIBLE.
7401         (sparc_gdbarch_init): Do not set register_convertible.
7402         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7403         * frv-tdep.c (frv_gdbarch_init): Ditto.
7404         * cris-tdep.c (cris_gdbarch_init): Ditto.
7405
7406 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
7407
7408         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7409         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7410         (syms_from_objfile): Ditto.
7411
7412 2003-06-03  Andreas Schwab  <schwab@suse.de>
7413
7414         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7415         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7416
7417 2003-06-02  Richard Henderson  <rth@redhat.com>
7418
7419         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7420         a member of all_reggroup.
7421
7422 2003-06-02  Richard Henderson  <rth@redhat.com>
7423
7424         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7425         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7426         (alpha_lds, alpha_sts): New.
7427         (alpha_convert_register_p): Change from _register_convertible.
7428         (alpha_register_to_value): Change from _convert_to_virtual;
7429         restructure and fail for type sizes other than 4 or 8.
7430         (alpha_value_to_register): Similarly.
7431         (alpha_extract_return_value): Use alpha_sts.
7432         (alpha_store_return_value): Use alpha_lds.
7433         (alpha_gdbarch_init): Update hooks.
7434
7435 2003-06-02  Richard Henderson  <rth@redhat.com>
7436
7437         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7438         regnum identifiers.
7439         (alpha_sigtramp_register_address): Likewise.
7440
7441 2003-06-02  Richard Henderson  <rth@redhat.com>
7442
7443         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7444         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7445         * alpha-tdep.h: Declare them.
7446
7447         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7448         Remove zerobuf.  Don't error on UNIQUE.
7449         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7450         (ALPHA_REGSET_UNIQUE): Provide default.
7451         (supply_gregset): Use alpha_supply_int_regs.
7452         (fill_gregset): Use alpha_fill_int_regs.
7453         (supply_fpregset): Use alpha_supply_fp_regs.
7454         (fill_fpregset): Use alpha_fill_fp_regs.
7455         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7456         (alphabsd_supply_reg): Use alpha_supply_int_regs.
7457         (alphabsd_fill_reg): Use alpha_fill_int_regs.
7458         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7459         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7460         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7461
7462 2003-06-02  Richard Henderson  <rth@redhat.com>
7463
7464         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7465
7466         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7467         (alpha_store_return_value): Likewise.
7468
7469 2003-06-02  David Carlton  <carlton@math.stanford.edu>
7470
7471         * block.c (contained_in): Add 'const' to arguments.
7472         (block_function): Ditto.
7473         * block.h: Update declarations for block_function and
7474         contained_in.
7475
7476 2003-06-02  David Carlton  <carlton@math.stanford.edu>
7477
7478         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7479         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7480         * p-valprint.c (pascal_val_print): Ditto.
7481         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7482
7483 2003-06-02  Richard Henderson  <rth@redhat.com>
7484
7485         * alpha-tdep.c (alpha_push_dummy_call): Use
7486         builtin_type_ieee_double_little instead of builtin_type_double.
7487
7488         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7489         sign-extension of 32-bit values.
7490         (alpha_store_return_value): Similarly.
7491
7492         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7493         (alpha_extract_return_value): Likewise.
7494         (alpha_store_return_value): Likewise.
7495
7496         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7497         (alpha_store_return_value): Error on IEEE Quad floats.
7498
7499         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7500         (alpha_extract_struct_value_address): Likewise.
7501         (alpha_store_return_value): Likewise.
7502         (alpha_store_struct_return): Remove.
7503         (alpha_gdbarch_init): Update hook registration to match.
7504
7505         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7506         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7507         macros where appropriate.
7508         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
7509         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7510
7511         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7512         for SP, GP; void_func_ptr for PC; non-language-specific types
7513         for all others.
7514         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7515
7516 2003-06-02  Richard Henderson  <rth@redhat.com>
7517
7518         * top.h (lim_at_start): Declare.
7519         * main.c (captured_main): Set it.
7520         * top.c (lim_at_start): Define.
7521         (command_loop): Use it instead of &environ.
7522         * event-top.c (command_handler): Likewise.
7523
7524 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
7525
7526         * mipsnbsd-tdep.c: Update copyright years.
7527         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7528
7529 2003-06-01  Richard Henderson  <rth@redhat.com>
7530
7531         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7532         (alpha-linux-tdep.o): Update dependencies.
7533         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7534         * alpha-mdebug-tdep.c: Remove unneeded includes.
7535
7536 2003-06-01  Richard Henderson  <rth@redhat.com>
7537
7538         * alpha-tdep.c (alpha_register_reggroup_p): New.
7539         (alpha_gdbarch_init): Register it.
7540
7541 2003-06-02  Andrew Cagney  <cagney@redhat.com>
7542
7543         * dwarfread.c: Eliminate "register"
7544         (decode_die_type): Eliminate assignment within "if".
7545         (struct_type, decode_array_element_type): Ditto.
7546         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7547         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7548         (decode_modified_type, completedieinfo): Ditto.
7549         * block.c: Eliminate "register".
7550         (blockvector_for_pc_sect): Eliminate assignment within "if".
7551         * cp-support.h (struct symbol): Opaque declaration.
7552         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7553
7554 2003-06-01  Richard Henderson  <rth@redhat.com>
7555
7556         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7557         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7558
7559 2003-06-01  Adam Fedor  <fedor@gnu.org>
7560
7561         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7562         * gdbarch.[ch]: Regenerate.
7563         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7564         (hppa_gdbarch_init): Set it in the gdbarch vector.
7565         * i386-tdep.c (i386_fetch_pointer_argument): New
7566         (i386_gdbarch_init): Set it into gdbarch.
7567         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7568         (rs6000_gdbarch_init): Set it in gdbarch.
7569         * sparc-tdep.c (sparc_fetch_pointer_argument): New
7570         (sparc_gdbarch_init): Set it in gdbarch.
7571
7572 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7573
7574         * defs.h (extract_address): Delete declaration.
7575         * findvar.c (extract_address): Delete function.
7576         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7577         extract_address with the inline equivalent,
7578         extract_unsigned_integer.
7579         (xstormy16_extract_struct_value_address): Ditto.
7580         (xstormy16_pointer_to_address): Ditto.
7581         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7582         * v850-tdep.c (v850_push_arguments): Ditto.
7583         (v850_extract_return_value): Ditto.
7584         (v850_extract_struct_value_address): Ditto.
7585         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7586         (sparcnbsd_get_longjmp_target_64): Ditto.
7587         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7588         (get_longjmp_target): Ditto.
7589         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7590         (sh64_extract_struct_value_address): Ditto.
7591         (sh_push_arguments): Ditto.
7592         (sh64_push_arguments): Ditto.
7593         * remote-vxsparc.c (vx_read_register): Ditto.
7594         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7595         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7596         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7597         * mipsv4-nat.c (get_longjmp_target): Ditto.
7598         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7599         * mips-nat.c (get_longjmp_target): Ditto.
7600         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7601         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7602         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7603         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7604         * irix5-nat.c (get_longjmp_target): Ditto.
7605         * irix4-nat.c (get_longjmp_target): Ditto.
7606         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7607         (ia64_push_arguments): Ditto.
7608         * hpux-thread.c (hpux_thread_store_registers): Ditto.
7609         * h8300-tdep.c (h8300_push_arguments): Ditto.
7610         (h8300_store_return_value): Ditto.
7611         (h8300_extract_struct_value_address): Ditto.
7612         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7613         (frv_push_arguments): Ditto.
7614         * avr-tdep.c (avr_pointer_to_address): Ditto.
7615         (avr_push_arguments): Ditto.
7616         * arm-tdep.c (arm_push_dummy_call): Ditto.
7617         (arm_get_longjmp_target): Ditto.
7618         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7619         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7620         (alpha_get_longjmp_target): Ditto.
7621
7622         * solib-irix.c (extract_mips_address): Inline extract_address,
7623         replacing it with extract_signed_integer.
7624         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7625         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7626         (first_link_map_member, open_symbol_file_object): Ditto.
7627         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7628         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7629         (LM_NEXT, LM_NAME): Ditto.
7630
7631 2003-06-01  Richard Henderson  <rth@redhat.com>
7632
7633         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7634         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7635         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7636         (alpha_cannot_store_register): Likewise.
7637         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7638         * alpha-nat.c (supply_gregset): Likewise.
7639         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7640
7641 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7642
7643         * infcall.c (call_function_by_hand): Update comment on
7644         DEPRECATED_DUMMY_WRITE_SP.
7645
7646         * mips-tdep.c (mips_gdbarch_init): Do not set
7647         deprecated_dummy_write_sp.
7648         (mips_eabi_push_dummy_call): Set the SP register.
7649         (mips_o64_push_dummy_call): Set the SP register.
7650         (mips_o32_push_dummy_call): Set the SP register.
7651         (mips_n32n64_push_dummy_call): Set the SP register.
7652
7653 2003-06-01  Richard Henderson  <rth@redhat.com>
7654
7655         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7656         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7657         (supply_gregset): Likewise.
7658         * alpha-tdep.c (alpha_store_return_value): Likewise.
7659         (alpha_get_longjmp_target): Likewise.
7660         (alpha_register_name): Constify array.
7661         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7662         deprecated_register_size, deprecated_register_bytes,
7663         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7664         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7665         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7666
7667 2003-06-01  Richard Henderson  <rth@redhat.com>
7668
7669         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
7670         from arg_reg_buffer to regcache to avoid double conversion.
7671
7672 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
7673
7674         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7675         SP_REGNUM.
7676         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7677         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7678
7679 2003-06-01  Richard Henderson  <rth@redhat.com>
7680
7681         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7682         (decode_frame_entry): Set it.  Skip FDE augmentation.
7683
7684 2003-06-01  Richard Henderson  <rth@redhat.com>
7685
7686         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7687         not overlapping PC_REGNUM.
7688
7689 2003-06-01  Richard Henderson  <rth@redhat.com>
7690
7691         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7692         alpha_push_arguments.  Don't dump argument register data to
7693         the target stack.  Fix float and 128-bit long double semantics.
7694         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
7695         (alpha_fix_call_dummy): Remove.
7696         (alpha_call_dummy_words): Remove.
7697         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7698
7699 2003-06-01  Richard Henderson  <rth@redhat.com>
7700
7701         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7702
7703 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7704
7705         * mips-tdep.c (is_mips16_addr): New function.
7706         (make_mips16_addr, unmake_mips16_addr): New functions.
7707         (pc_is_mips16, mips_fetch_instruction): Use.
7708         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7709         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7710         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7711         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7712         TARGET_MIPS.
7713         * config/mips/tm-mips.h: Update copyright.
7714         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7715         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7716         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7717         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7718         (TM_PRINT_INSN_MACH): Delete.
7719         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7720
7721         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7722         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7723         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7724         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7725         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
7726         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
7727         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
7728         mips*-*-riscos* and mips*-*-sysv* onto mips.
7729         * config/mips/mips64.mt: New file.
7730         * config/mips/mips.mt: New file.
7731         * config/mips/littlemips.mt: Delete file.
7732         * config/mips/decstation.mt: Delete file.
7733         * config/mips/vr4300el.mt: Delete file.
7734         * config/mips/vr5000el.mt: Delete file.
7735         * config/mips/vr5000.mt: Delete file.
7736         * config/mips/vr4100.mt: Delete file.
7737         * config/mips/vr4xxxel.mt: Delete file.
7738         * config/mips/vr4300.mt: Delete file.
7739         * config/mips/vr4xxx.mt: Delete file.
7740         * config/mips/bigmips.mt: Delete file.
7741         * config/mips/bigmips64.mt: Delete file.
7742         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7743         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7744         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7745         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7746         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7747         "tm-bigmips.h".
7748         * config/mips/tm-irix3.h: Ditto.
7749         * config/mips/tm-mipsv4.h: Ditto.
7750         * config/mips/tm-embed.h: Ditto.
7751         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7752         "tm-bigmips64.h".
7753         * config/mips/tm-vr5000el.h: Delete file.
7754         * config/mips/tm-tx39l.h: Delete file.
7755         * config/mips/tm-vr4300el.h: Delete file.
7756         * config/mips/tm-vr4xxxel.h: Delete file.
7757         * config/mips/tm-vr4300.h: Delete file.
7758         * config/mips/tm-vr4100.h: Delete file.
7759         * config/mips/tm-vr4xxx.h: Delete file.
7760         * config/mips/tm-vr5000.h: Delete file.
7761         * config/mips/tm-embedl64.h: Delete file.
7762         * config/mips/tm-embedl.h: Delete file.
7763         * config/mips/tm-embed64.h: Delete file.
7764         * config/mips/tm-bigmips64.h: Delete file.
7765         * config/mips/tm-bigmips.h: Delete file.
7766
7767 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
7768
7769         Fix gdb/1216.
7770         * shnbsd-nat.c: Include "sh-tdep.h".
7771
7772         From Richard Henderson  <rth@redhat.com>:
7773         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7774
7775 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7776
7777         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
7778         forward declaration.
7779         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7780         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7781         (mips_find_saved_regs): Use set_reg_offset.
7782         (mips_frame_init_saved_regs): Delete function.
7783         (mips_pop_frame): Call mips_find_saved_regs instead of
7784         DEPRECATED_FRAME_INIT_SAVED_REGS.
7785
7786 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7787
7788         * mips-tdep.c (mips_gdbarch_init): Do not set
7789         deprecated_max_register_raw_size, register_virtual_size, and
7790         deprecated_max_register_virtual_size.
7791
7792 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7793
7794         * i386-tdep.c: Include "dwarf2-frame.h".
7795         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7796         * Makefile.in (i386-tdep.o): Update dependencies.
7797
7798         * dwarf2-frame.c, dwarf2-frame.h: New files.
7799         * Makefile.in (SFILES): Add dwarf2-frame.c.
7800         (dwarf2_frame_h): Define.
7801         (COMMON_OBS): Add dwarf2-frame.o.
7802         (dwarf2-frame.o): Add dependencies.
7803
7804 2003-05-31  Andreas Jaeger  <aj@suse.de>
7805
7806         * x86-64-linux-nat.c: Fix comment.
7807
7808 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7809
7810         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7811         function signature.
7812
7813         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7814         have a sigcontext_addr handler.
7815         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7816         sigcontext_addr handler.
7817
7818 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7819
7820         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7821         (print_fp_register_row): Replace do_fp_register_row.
7822         (mips_print_fp_register): Add "file" and "frame" parameters.
7823         (mips_print_register): Add "file" and "frame" parameters.
7824         (mips_print_registers_info): Replace mips_do_registers_info.
7825         (mips_gdbarch_init): Set print_registers_info instead of
7826         deprecated_do_registers_info.
7827         (mips_read_fp_register_single): Add "frame" parameter.
7828         (mips_read_fp_register_double): Add "frame" parameter.
7829
7830 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7831
7832         * i386-tdep.c (i386_register_name): Check for MMX registers first.
7833         Fixes a bug where GDB would print the wrong register names for
7834         targets without SSE.
7835
7836         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7837         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7838         registers.
7839
7840         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7841         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7842         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7843         TDEP->sc_sp_offset.
7844
7845         From Michal Ludvig  <mludvig@suse.cz>:
7846         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7847         and `sc_num_regs'.
7848         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7849         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7850         I386_ST0_REGNUM): Move here from...
7851         * i386-tdep.c: ... here.
7852         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7853         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7854         registers if possible.
7855         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7856         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7857         Remove variables.
7858         (i386bsd_sc_reg_offset): New variable.
7859         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7860         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7861         TDEP->sc_sp_offset.
7862         (i386fbsd_sc_reg_offset): New variable.
7863         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7864         TDEP->sc_num_regs.
7865         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7866         variables.
7867         (i386fbsd4_sc_reg_offset): New variable.
7868         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7869         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7870         TDEP->sc_sp_offset.
7871         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7872         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7873         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7874         Remove variables.
7875         (i386nbsd_sc_reg_offset): New variable.
7876         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7877         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7878         TDEP->sc_sp_offset.
7879         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7880         Remove variables.
7881         (i386obsd_sc_reg_offset): New variable.
7882         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7883         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7884         TDEP->sc_sp_offset.
7885         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7886         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
7887         for frame pointer offset in `struct sigcontext'.
7888
7889 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7890
7891         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7892         architecture methods call_dummy_words, sizeof_call_dummy_words,
7893         push_return_address, store_struct_return, and fix_call_dummy.  Set
7894         push_dummy_call instead of deprecated_push_arguments.
7895         (mips_store_struct_return): Delete function.
7896         (mips_fix_call_dummy): Delete function.
7897         (mips_push_return_address): Delete function.
7898         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7899         RA_REGNUM and T9_REGNUM.
7900         (mips_n32n64_push_dummy_call): Ditto for
7901         mips_n32n64_push_arguments.
7902         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7903         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7904
7905 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7906
7907         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
7908         "dummy_addr" to "bp_addr".
7909         * infcall.c (call_function_by_hand): Pass "funaddr" to
7910         gdbarch_push_dummy_call.
7911         * gdbarch.h, gdbarch.c: Re-generate.
7912         * i386-tdep.c (i386_push_dummy_call): Update.
7913         * arm-tdep.c (arm_push_dummy_call): Update.
7914         * d10v-tdep.c (d10v_push_dummy_call): Update.
7915
7916 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7917
7918         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7919         variable declarations.
7920         (x86_64_register_number, x86_64_register_name): Remove prototypes.
7921         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7922         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7923         x86_64_init_frame_pc, x86_64_init_frame_pc,
7924         x86_64_function_has_prologue): Remove prototypes.
7925         (X86_64_NUM_GREGS): New define.
7926         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7927         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
7928         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7929         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7930         XMM1_REGNUM): Remove defines.
7931         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7932         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7933         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7934         X86_64_XMM1_REGNUM): New defines.
7935         (struct x86_64_register_info): Renamed from `struct
7936         register_info'.  Remove `size' member.
7937         (x86_64_register_info_table): Remove variable.
7938         (x86_64_register_info): New variable.
7939         (X86_64_NUM_REGS): New define.
7940         (X86_64_NUM_GREGS): Remove define.
7941         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7942         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7943         Remove variables.
7944         (x86_54_dwarf2_reg_to_regnum): Remove function.
7945         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7946         (x86_64_dwarf_reg_to_regnum): New function.
7947         (x86_64_register_name): Rewrite.
7948         (x86_64_register_raw_size): Remove function.
7949         (x86_64_register_byte_table): Remove variable.
7950         (x86_64_register_byte): Remove function.
7951         (x86_64_register_virtual_type): Remove function.
7952         (x86_64_register_type): New function.
7953         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7954         x86_64_register_convert_to_raw): Remove functions.
7955         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7956         (x86_64_use_struct_convention): Make static.  Adjust for renamed
7957         defines.
7958         (x86_64_frame_init_saved_regs): Remove function.
7959         (x86_64_push_arguments): Make static.  Change to accept a regcache
7960         as argument.
7961         (x86_64_store_return_value, x86_64_extract_return_value): Make
7962         static.  Rewrite based on i386 counterparts.
7963         (x86_64_push_dummy_call): New function.
7964         (X86_64_NUM_SAVED_REGS): New define.
7965         (x86_64_register_number): Remove function.
7966         (x86_64_store_struct_return): Remove function.
7967         (x86_64_frameless_function_invocation,
7968         x86_64_function_has_prologue): Remove functions.
7969         (PROLOG_BUFSIZE): Remove define.
7970         (struct x86_64_frame_cache): New structure.
7971         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7972         x86_64_frame_cache, x86_64_frame_this_id,
7973         x86_64_frame_prev_register, x86_64_frame_p,
7974         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7975         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7976         functions.
7977         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7978         variables.
7979         (x86_64_skip_prologue): Rewrite in terms of
7980         x86_64_analyze_prologue.
7981         (x86_64_frame_base_address): New function.
7982         (x86_64_frame_base): New variable.
7983         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7984         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
7985         set deprecated_fp_regnum, deprecated_register_size,
7986         deprecated_register_bytes, register_raw_size, register_byte,
7987         register_virtual_type, register_convertiable,
7988         register_convert_to_virtual, convert_to_raw,
7989         deprecated_get_saved_register, deprecated_target_read_fp,
7990         deprecated_push_arguments, deprecated_push_return_address,
7991         deprecated_pop_frame, deprecated_store_struct_return,
7992         deprecated_frame_init_saved_regs, deprecated_frame_chain,
7993         frameless_function_invocation, deprecated_frame_saved_pc,
7994         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7995         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7996         deprecated_init_frame_pc and virtual_frame_pointer.  Call
7997         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7998         and x86_64_frame_p.  Call frame_base_set_default to register
7999         x86_64_frame_base.
8000         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8001         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8002         (_initialize_x86_64_tdep): Remove function.
8003         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8004         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8005         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8006         define.
8007         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8008         (x86_64_linux_sigcontext_addr): Rewrite.
8009         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8010         x86_64_linux_frame_saved_pc): Remove functions.
8011         (x86_64_linux_pc_in_sigtramp): Renamed from
8012         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
8013         trampoline.
8014         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8015         Remove_functions.
8016         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
8017         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8018         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8019         (x86_64_regmap): Rename to regmap.
8020         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8021         x86_64_num_gregs.
8022         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
8023         x86_64_regmap.
8024         (x86_64_fxsave_offset): Remove function.
8025         (supply_fpregset): Simply call x86_64_supply_fxsave.
8026         (fill_fpregset): Simply call x86_64_fill_fxsave.
8027         (fetch_inferior_registers, store_inferior_registers): Avoid
8028         asignment in if-statement.
8029         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8030         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8031         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8032         (fetch_core_registers): Remove function.
8033         (linux_elf_core_fns): Remove.
8034         (offsetoff): Don't define.
8035         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8036         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8037         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8038         add core-regset.o.
8039         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8040         protection against multiple includes instead of NM_X86_64_h.  Add
8041         various comments.  Include "config/nm-linux.h".  Don't include
8042         <signal.h>.
8043         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8044         GET_THREAD_SIGNALS): Remove defines.
8045         (x86_64_register_u_addr, kernel_u_size,
8046         lin_thread_get_thread_signals): Remove prototypes.
8047         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8048         [HAVE_LINK_H]: Don't include "solib.h".
8049         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8050         * config/i386/tm-x86-64linux.h: Fix comments.
8051         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8052         x86-64-tdep.o): Update dependencies.
8053
8054 2003-05-30  Andrew Cagney  <cagney@redhat.com>
8055
8056         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8057         Change parameter type to a "struct regcache *".
8058
8059         * gdbarch.sh: Regardless of the multi-arch level, always define
8060         the macro when not already defined.
8061         * gdbarch.h, gdbarch.c: Re-generate.
8062
8063 2003-05-30  Richard Henderson  <rth@redhat.com>
8064
8065         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8066         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8067         (alpha_mdebug_frame_this_id): Likewise.
8068         (alpha_mdebug_frame_prev_register): Likewise.
8069         (alpha_mdebug_frame_base_address): Likewise.
8070         (alpha_mdebug_frame_locals_address): Likewise.
8071         (alpha_mdebug_frame_args_address): Likewise.
8072         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8073         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8074         (alpha_heuristic_frame_unwind_cache): Make static; add missing
8075         loop increment.
8076         (alpha_heuristic_frame_this_id): Make static.
8077         (alpha_heuristic_frame_prev_register): Likewise.
8078         (alpha_heuristic_frame_base_address): Likewise.
8079         * alpha-tdep.h: Update.
8080
8081 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
8082
8083         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8084         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8085         defenitions.
8086         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8087         * i386-tdep.c: Mark functions that are 64-bit safe as such.
8088         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8089         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8090         I386_ST0_REGNUM): New defines.
8091         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8092         codestream_get): Remove define.
8093         (codestream_next_addr, condestream_addr, condestream_buf,
8094         codestream_off, codestream_cnt): Remove variables.
8095         (codestream_fill, codestream_seek, codestream_read): Remove
8096         functions.
8097         (i386_follow_jump): Rewrite to avoid usage of removed codestream
8098         functionality.
8099         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8100         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8101         i386_frame_saved_pc, i386_saved_pc_after_call,
8102         i386_frame_num_args, i386_frame_init_saved_regs,
8103         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8104         i386_push_arguments): Remove functions.
8105         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8106         functionality.  Use i386_analyze_prologue instead of
8107         i386_get_frame_setup.
8108         (I386_NUM_SAVED_REGS): New define.
8109         (struct i386_frame_cache): New structure.
8110         (i386_alloc_frame_cache, i386_analyze_struct_return,
8111         i386_skip_probe, i386_analyze_frame_setup,
8112         i386_analyze_register_saves, i386_analyze_prologue,
8113         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8114         i386_frame_prev_register, i386_sigtramp_frame_cache,
8115         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8116         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8117         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8118         New functions.
8119         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8120         New variables.
8121         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8122         I386_EAX_REGNUM and I386_EDX_REGNUM.
8123         (i386_extract_return_value, i386_store_return_value): Use
8124         I386_ST0_REGNUM where appropriate.
8125         (i386_extract_struct_value_address): Rewrite to use extract_address.
8126         (i386_svr4_pc_in_sigtramp): Add comment.
8127         (i386_svr4_sigcontext_addr): Rewrite.
8128         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8129         TDEP->sc_sp_offset.
8130         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
8131         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8132         of new defines.  Set push_dummy_call, don't set
8133         deprecated_push_arguments, deprecated_push_return_address,
8134         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
8135         deprecated_frame_chain, deprecated_frame_saved_pc,
8136         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
8137         save_dummy_frame_tos, unwind_pc.  Call
8138         frame_unwind_append_predicate and frame_base_set_default.  Don't
8139         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
8140         Don't set frameless_function_invocation.  Don't set
8141         deprecated_register_bytes, deprecated_register_size,
8142         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8143         * i386-linux-tdep.c: Fix formatting in some comments.
8144         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8145         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8146         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8147         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8148         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8149         redundant parentheses.
8150         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8151         (i386_linux_sigcontext_addr): Use it.  Rewrite.
8152         (find_minsym_and_objfile): Change name of second argument.
8153         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
8154         changed.  Use frame_pc_unwind instead of
8155         DEPRECATED_SAVED_PC_AFTER_CALL.
8156         (i386_linux_init_abi): Don't set deprecated_register_bytes.
8157         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8158         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8159         unwinder.
8160         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8161         "dummy-frame.h".
8162         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8163         (_initialize_i386_cygwin_tdep): New prototype.
8164         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8165         deprecated_frame_chain_valid.
8166         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8167         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8168         Rely on the SVR4 defaults.
8169         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8170         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8171
8172 2003-05-30  Andrew Cagney  <cagney@redhat.com>
8173
8174         * infcall.c (call_function_by_hand): Always call
8175         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8176
8177 2003-05-30  Richard Henderson  <rth@redhat.com>
8178
8179         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8180         increment.
8181
8182 2003-05-29  Jim Blandy  <jimb@redhat.com>
8183
8184         Use gdbarch methods for solib stuff on PowerPC Linux.
8185         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8186         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8187         show through.
8188         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8189         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8190         giving the same effect as the #definitions above.
8191
8192 2003-05-29  Adam Fedor  <fedor@gnu.org>
8193
8194         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8195         (find_implementation_from_class): Replace it with the standard
8196         case i.e. do nothing.
8197
8198 2003-05-29  Richard Henderson  <rth@redhat.com>
8199
8200         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8201         (alpha_linux_sigtramp_offset): Use it.  Make static.
8202         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8203         update for new frame model.
8204         * alpha-mdebug-tdep.c: New file.
8205         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8206         (alpha_osf1_init_abi): Install it.
8207         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8208         (linked_proc_desc_table): Remove.
8209         (alpha_frame_past_sigtramp_frame): Remove.
8210         (alpha_dynamic_sigtramp_offset): Remove.
8211         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8212         (alpha_proc_desc_is_dyn_sigtramp): Remove.
8213         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8214         (push_sigtramp_desc): Remove.
8215         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8216         (alpha_cannot_store_register): Likewise.
8217         (alpha_sigcontext_addr): Remove.
8218         (alpha_find_saved_regs): Remove.
8219         (alpha_frame_init_saved_regs): Remove.
8220         (alpha_init_frame_pc_first): Remove.
8221         (read_next_frame_reg): Remove.
8222         (alpha_frame_saved_pc): Remove.
8223         (alpha_saved_pc_after_call): Remove.
8224         (temp_proc_desc, temp_saved_regs): Remove.
8225         (alpha_about_to_return): Remove.
8226         (cached_proc_desc): Remove.
8227         (alpha_frame_chain): Remove.
8228         (alpha_print_extra_frame_info): Remove.
8229         (alpha_init_extra_frame_info): Remove.
8230         (alpha_frame_locals_address): Remove.
8231         (alpha_frame_args_address): Remove.
8232         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8233         (alpha_push_dummy_frame): Remove.
8234         (alpha_pop_frame): Remove.
8235         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8236         (alpha_read_insn): New.
8237         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8238         for different insn encodings.
8239         (alpha_in_lenient_prologue): Remove.
8240         (struct alpha_sigtramp_unwind_cache): New.
8241         (alpha_sigtramp_frame_unwind_cache): New.
8242         (alpha_sigtramp_register_address): New.
8243         (alpha_sigtramp_frame_this_id): New.
8244         (alpha_sigtramp_frame_prev_register): New.
8245         (alpha_sigtramp_frame_unwind): New.
8246         (alpha_sigtramp_frame_p): New.
8247         (struct alpha_heuristic_unwind_cache): New.
8248         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8249         don't count nop insns that occur between functions.
8250         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8251         heuristic_proc_desc, but without the mdebug wrapping.
8252         (alpha_heuristic_frame_this_id): New.
8253         (alpha_heuristic_frame_prev_register): New.
8254         (alpha_heuristic_frame_unwind): New.
8255         (alpha_heuristic_frame_p): New.
8256         (alpha_heuristic_frame_base_address): New.
8257         (alpha_heuristic_frame_base): New.
8258         (alpha_unwind_dummy_id): New.
8259         (alpha_unwind_pc): New.
8260         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
8261         frame related deprecated initializations; install replacements.
8262         (alpha_dump_tdep): Remove.
8263         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8264         (alpha_read_insn, alpha_after_prologue,
8265         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8266         alpha_heuristic_frame_prev_register,
8267         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8268         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8269         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8270         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8271
8272 2003-05-29  Andrew Cagney  <cagney@redhat.com>
8273
8274         * gdb_assert.h (gdb_assert_fail): Provide different definitions
8275         dependant on the availability of ASSERT_FUNCTION.
8276         (ASSERT_FUNCTION): Do not define when there is no function name.
8277
8278 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
8279
8280         From Jimi X <jimix@watson.ibm.com>:
8281         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8282
8283 2003-05-28  Jim Blandy  <jimb@redhat.com>
8284
8285         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8286         argument to ptrace to int; the system headers should give it the
8287         right type, and pointers don't fit in ints on powerpc64-*-*.
8288
8289 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
8290
8291         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8292         DW_TAG_catch_block.
8293
8294 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
8295
8296         * stabsread.c (dbx_lookup_type): Make static.
8297         (read_type): Ditto.
8298         (add_undefined_type): Ditto.
8299         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8300         not export.
8301
8302 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
8303
8304         * hpread.c (hpread_has_name): Make static.
8305         (hpread_psymtab_to_symtab): Ditto.
8306         (file_exists): Ditto.
8307         (hpread_call_pxdb): Ditto.
8308         (hpread_pxdb_needed): Ditto.
8309         (hpread_quick_traverse): Ditto.
8310         (hpread_get_header): Ditto.
8311         (hpread_get_lntt): Ditto.
8312         (hpread_get_slt): Ditto.
8313         (class_of): Ditto.
8314
8315 2003-05-25  Andreas Schwab  <schwab@suse.de>
8316
8317         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8318         stack_align and deprecated_extra_stack_alignment_needed.
8319         (m68k_stack_align): Delete.
8320
8321         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8322         (m68k_register_virtual_size): Likewise.
8323         (altos_skip_prologue): Remove obsolete function.
8324         (isi_frame_num_args): Likewise.
8325         (news_frame_num_args): Likewise.
8326         (m68k_fix_call_dummy): Make static.
8327         (m68k_push_dummy_frame): Likewise.
8328         (m68k_pop_frame): Likewise.
8329         (m68k_skip_prologue): Likewise.
8330         (m68k_frame_init_saved_regs): Likewise.
8331         (m68k_saved_pc_after_call): Likewise.
8332         (m68k_get_longjmp_target): Make multi-arch.
8333         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8334         structure.  Register m68k_get_longjmp_target if enabled.
8335         * m68k-tdep.h (struct gdbarch_tdep): Define.
8336         * config/m68k/tm-m68k.h: Don't include "regcache.h".
8337
8338         * Makefile.in (config.status): Also depend on configure.tgt
8339         and configure.host.
8340         (m68klinux-tdep.o): Update dependencies.
8341         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8342         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8343         (M68K_LINUX_JB_PC): Define.
8344         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8345         and take additional parameter.
8346         (m68k_linux_sigtramp_saved_pc): Update.
8347         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
8348         m68k_linux_pc_in_sigtramp, in_plt_section,
8349         find_solib_trampoline_target.
8350         * config/m68k/tm-linux.h: Don't include any tm headers.
8351         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8352         (JB_ELEMENT_SIZE): Likewise.
8353         (JB_PC): Likewise.
8354         (GET_LONGJMP_TARGET): Likewise.
8355         (IN_SIGTRAMP): Likewise.
8356         (SVR4_SHARED_LIBS): Define this and include "solib.h".
8357
8358 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
8359
8360         * sparc-tdep.c (sparc32_do_push_arguments): New function.
8361         (sparc32_push_arguments): Re-implement by calling
8362         sparc32_do_push_arguments.
8363
8364 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
8365
8366         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8367         SPARC_O1_REGNUM): New defines.
8368         (sparc32_extract_return_value): Rewrite to operate on a regcache.
8369         (sparc32_store_return_value): New function.
8370         (sparc_extract_struct_value_address): Rewrite to operate on a
8371         regcache.
8372         (sparc_gdbarch_init): Don't set
8373         deprecated_extract_struct_value_address.  Set
8374         extract_struct_value_address instead. Don't set
8375         deprecated_extract_return_value and deprecated_store_return_value
8376         for 32-bit targets.  Set extract_return_value and
8377         store_return_value instead.
8378         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8379         DEPRECATED_EXTRACT_RETURN_VALUE,
8380         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8381         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8382         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8383         (sparc_store_return_value): Remove prototype.
8384         (sparc32_store_return_value): New prototype.
8385         (sparc32_extract_return_value, sparc_extract_struct_value_address):
8386         Adjust prototypes.
8387
8388 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
8389
8390         * sparcnbsd-tdep.c: Include "gdb_string.h".
8391
8392 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8393
8394         * p-valprint.c (pascal_val_print): Replace extract_address with
8395         the inline equivalent extract_unsigned_integer.
8396         * jv-valprint.c (java_value_print): Ditto.
8397         * ada-valprint.c (ada_val_print_1): Ditto.
8398         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8399
8400 2003-05-23  Theodore A. Roth  <troth@openavr.org>
8401
8402         * blockframe.c (frameless_look_for_prologue): Remove unused
8403         after_prologue variable.
8404
8405 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
8406
8407         * blockframe.c (get_pc_function_start): Rewrite to avoid
8408         asignments in if-statements.
8409
8410 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
8411
8412         Committed by Elena Zannoni  <ezannoni@redhat.com>.
8413         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8414         files, don't relocate absolute symbols (and do use mst_abs).
8415
8416 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8417
8418         * objc-lang.c: Include "gdb_assert.h".
8419         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8420         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8421         (gdb_check, gdb_check_fatal): Delete functions.
8422         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8423         gdb_assert.
8424         (parse_selector, parse_method, find_methods, find_imps): Ditto.
8425         * Makefile.in (objc-lang.o): Update dependencies.
8426
8427 2003-05-22  Ian Lance Taylor  <ian@airs.com>
8428
8429         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8430         with fprintf_filtered, not fprintf_unfiltered.
8431
8432 2003-05-22  Andrew Cagney  <cagney@redhat.com>
8433
8434         * stack.c (frame_info): Inline extract_address, replacing it with
8435         extract_unsigned_integer.
8436         * findvar.c (unsigned_pointer_to_address): Ditto.
8437         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8438         * dwarf2expr.c (dwarf2_read_address): Ditto.
8439         * frame.c (frame_pc_unwind): Update comment.
8440         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8441
8442 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
8443
8444         * infptrace.c (detach): Call print_sys_errmsg rather than
8445         perror_with_name to issue warning message when errno is non-zero
8446         after calling ptrace detach.
8447
8448 2003-05-21  J. Brobecker  <brobecker@gnat.com>
8449
8450         * config/pa/tm-hppa.h: Delete some unused macros. Move some
8451         macro definitions from here...
8452         * hppa-tdep.c: ...to there.
8453
8454 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
8455
8456         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8457         register_ptrace_addr().  Fix all callers.
8458
8459 2003-05-21  Andreas Schwab  <schwab@suse.de>
8460
8461         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8462         dependencies.
8463         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8464         end.
8465         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8466         (_initialize_m68k_linux_tdep): New function.
8467         (m68k_linux_frame_saved_pc): Make static.
8468         (m68k_linux_extract_return_value): Likewise.
8469         (m68k_linux_store_return_value): Likewise.
8470         (m68k_linux_extract_struct_value_address): Likewise.
8471         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8472         Remove.
8473         (DEPRECATED_STORE_RETURN_VALUE): Remove.
8474         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8475         (DEPRECATED_FRAME_SAVED_PC): Remove.
8476
8477 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
8478
8479         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8480         regset numbering rather than our own.
8481
8482 2003-05-19  David Carlton  <carlton@bactrian.org>
8483
8484         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8485
8486 2003-05-19  David Carlton  <carlton@bactrian.org>
8487
8488         Partial fix for PR c++/827.
8489         * cp-support.h: Include symtab.h.
8490         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8491         * cp-namespace.c: Update contributors.
8492         (cp_lookup_symbol_nonlocal): New.
8493         (lookup_namespace_scope, cp_lookup_symbol_namespace)
8494         (lookup_symbol_file): Ditto.
8495         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8496         * block.h: Declare block_scope, block_using, block_global_block.
8497         * block.c (block_scope): New.
8498         (block_using, block_global_block): Ditto.
8499         * Makefile.in (cp_support_h): Depend on symtab_h.
8500         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8501
8502 2003-05-19  David Carlton  <carlton@bactrian.org>
8503
8504         * language.h (struct language_defn): Add 'la_value_of_this'
8505         and 'la_lookup_symbol_nonlocal' members.
8506         * symtab.h: Declare basic_lookup_symbol_nonlocal,
8507         lookup_symbol_static, lookup_symbol_global,
8508         lookup_symbol_aux_block.
8509         * symtab.c (lookup_symbol_aux): Call language hooks to determine
8510         if we should search fields of this and how to do static/global
8511         lookup.
8512         (lookup_symbol_aux_block): Make extern.
8513         (basic_lookup_symbol_nonlocal): New.
8514         (lookup_symbol_static, lookup_symbol_global): Ditto.
8515         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8516         'la_lookup_symbol_nonlocal' members.
8517         * c-lang.c (c_language_defn, cplus_language_defn)
8518         (asm_language_defn, minimal_language_defn): Ditto.
8519         * jv-lang.c (java_language_defn): Ditto.
8520         * language.c (unknown_language_defn, auto_language_defn)
8521         (local_language_defn): Ditto.
8522         * m2-lang.c (m2_language_defn): Ditto.
8523         * objc-lang.c (objc_language_defn): Ditto.
8524         * scm-lang.c (scm_language_defn): Ditto.
8525         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8526         * p-lang.c (pascal_language_defn): Ditto for both.
8527         * Makefile.in (f-lang.o): Depend on value_h.
8528         (p-lang.o): Ditto.
8529
8530 2003-05-19  David Carlton  <carlton@bactrian.org>
8531
8532         * block.h: Declare block_static_block.
8533         * block.c (block_static_block): New.
8534         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8535         lookup_symbol_aux_local, calling block_static_block instead.
8536         (lookup_symbol_aux_local): Delete 'static_block' argument.
8537
8538 2003-05-19  David Carlton  <carlton@bactrian.org>
8539
8540         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8541
8542 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
8543
8544         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8545         register numbers mapping.
8546
8547 2003-05-18  Adam Fedor  <fedor@gnu.org>
8548
8549         * symtab.c (completion_list_objc_symbol): New function.
8550         (make_symbol_completion_list): Use it to add ObjC symbols
8551         when looking though the list.
8552         (language_search_unquoted_string): New function.
8553         (make_file_symbol_completion_list): Use it.
8554
8555 2003-05-18  Andreas Schwab  <schwab@suse.de>
8556
8557         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8558         dependencies.
8559         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8560         as m68k_linux_extract_return_value.
8561         (DEPRECATED_STORE_RETURN_VALUE): Define as
8562         m68k_linux_store_return_value.
8563         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8564         m68k_linux_extract_struct_value_address.
8565         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8566         get_next_frame, get_frame_base, get_frame_pc.
8567         (m68k_linux_frame_saved_pc): Use get_frame_base.
8568         (m68k_linux_extract_return_value): New function.
8569         (m68k_linux_store_return_value): New function.
8570         (m68k_linux_extract_struct_value_address): New function.
8571         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8572
8573         * c-exp.y (typebase): Remove duplicate occurence of
8574         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
8575         of lookup_signed_typename.
8576
8577 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
8578
8579         * dwarf2loc.c (find_location_expression): Change type of second
8580         argument to `size_t *'.
8581         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8582         for size variable.
8583
8584 2003-05-18  David Carlton  <carlton@bactrian.org>
8585
8586         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8587         'linkage_name'.  Add comment.
8588         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8589         'linkage_name'.
8590         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8591         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8592         (lookup_block_symbol): Ditto.
8593
8594 2003-05-16  Andrew Cagney  <cagney@redhat.com>
8595
8596         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8597         * gdbarch.h, gdbarch.c: Re-generate.
8598         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8599         * TODO (REGISTER_BYTES): Delete reference.
8600         * alpha-tdep.c (alpha_gdbarch_init): Update.
8601         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8602         * x86-64-tdep.c (x86_64_init_abi): Update.
8603         * vax-tdep.c (vax_gdbarch_init): Update.
8604         * v850-tdep.c (v850_gdbarch_init): Update.
8605         * sparc-tdep.c (sparc_gdbarch_init): Update.
8606         * sh-tdep.c (sh_gdbarch_init): Update.
8607         * s390-tdep.c (s390_gdbarch_init): Update.
8608         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8609         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8610         (ns32k_gdbarch_init_32382): Update.
8611         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8612         * mcore-tdep.c (mcore_gdbarch_init): Update.
8613         * m68k-tdep.c (m68k_gdbarch_init): Update.
8614         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8615         * ia64-tdep.c (ia64_gdbarch_init): Update.
8616         * i386-tdep.c (i386_gdbarch_init): Update.
8617         * i386-linux-tdep.c (i386_linux_init_abi): Update.
8618         * hppa-tdep.c (hppa_gdbarch_init): Update.
8619         * h8300-tdep.c (h8300_gdbarch_init): Update.
8620         * frv-tdep.c (frv_gdbarch_init): Update.
8621         * cris-tdep.c (cris_gdbarch_init): Update.
8622         * avr-tdep.c (avr_gdbarch_init): Update.
8623         * arm-tdep.c (arm_gdbarch_init): Update.
8624         * sparc-tdep.c (sparc_pop_frame): Update.
8625         * rs6000-tdep.c (rs6000_pop_frame): Update.
8626         * remote.c (init_remote_state): Update.
8627         (remote_prepare_to_store): Update.
8628         * remote-vx.c (vx_prepare_to_store): Update.
8629         * remote-sds.c (sds_fetch_registers): Update.
8630         (sds_prepare_to_store): Update.
8631         * remote-array.c: Update.
8632         * regcache.c (init_legacy_regcache_descr): Update.
8633         (init_regcache_descr): Update.
8634         * mips-tdep.c (mips_eabi_extract_return_value): Update.
8635         (mips_o64_extract_return_value): Update.
8636         * irix5-nat.c (fetch_core_registers): Update.
8637         * irix4-nat.c (fetch_core_registers): Update.
8638         * i386-tdep.h: Update.
8639         * hppa-tdep.c (pa_do_registers_info): Update.
8640         (pa_do_strcat_registers_info): Update.
8641         * cris-tdep.c (cris_register_bytes_ok): Update.
8642         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8643         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8644         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8645         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8646         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8647         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8648         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8649         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8650         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8651         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8652         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8653         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8654         (REGISTER_BYTES_OK): Update.
8655         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8656         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8657
8658 2003-05-16  Ian Lance Taylor  <ian@airs.com>
8659
8660         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8661         (vax_print_insn, print_insn_arg): Remove static functions.
8662         (vax_gdbarch_init): Call set_gdbarch_print_insn with
8663         print_insn_vax from opcodes library.
8664         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8665
8666 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8667
8668         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8669         * target.h (memory_breakpoint_from_pc): Delete declaration.
8670         * mem-break.c (memory_breakpoint_from_pc): Delete function.
8671         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8672         * monitor.c (monitor_insert_breakpoint): Use
8673         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8674         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8675         * gdbarch.h, gdbarch.c: Re-generate.
8676         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8677         (sparc_gdbarch_init): Set breakpoint_from_pc to
8678         sparc_breakpoint_from_pc.
8679         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8680         (BREAKPOINT_FROM_PC): Define.
8681         (sparc_breakpoint_from_pc): Declare.
8682         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8683         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8684         (BREAKPOINT_FROM_PC): Define.
8685         (BREAKPOINT): Delete macro.
8686         * target.h: Update comment.
8687         * s390-tdep.c (s390_gdbarch_init): Update comments.
8688         * remote.c: Update comments.
8689         * remote-mips.c: Update comments.
8690         * proc-api.c (write_with_trace): Do not check for a breakpoint.
8691         * mem-break.c: Update comment.
8692         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8693         (ia64_memory_insert_breakpoint): Update.
8694         * config/sparc/tm-sparc.h: Update comment.
8695         * config/pa/tm-hppa64.h: Update comment.
8696         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8697         (rs6000_breakpoint_from_pc): Update.
8698         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8699         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8700         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8701         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8702         (mips_breakpoint_from_pc): Update.
8703         (mips_dump_tdep): Update.
8704
8705         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8706         * minsyms.c (lookup_minimal_symbol): Inline
8707         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
8708
8709         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8710         * p-valprint.c (pascal_object_print_value_fields): Ditto.
8711         * p-lang.c (pascal_printstr): Ditto.
8712         * objc-lang.c (objc_printstr): Ditto.
8713         * m2-lang.c (m2_printstr): Ditto.
8714         * jv-valprint.c (java_print_value_fields): Ditto.
8715         * f-lang.c (f_printstr): Ditto.
8716         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
8717         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8718         for repeat_count_threshold.
8719         * Makefile.in (cp-valprint.o): Update dependencies.
8720
8721 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
8722
8723         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8724         (examine_prologue): Support looking through leaf functions, knowing
8725         they start with mov r2,r12.  Support skipping over indirect stores
8726         of the input registers.  Upon hitting a non-nop branch instruction
8727         or predicated instruction, bail out by setting lim_pc to the current
8728         pc value in the loop.  At the end, if the lim_pc value is still
8729         beyond our calculated value and we have trust_limit set,
8730         use the lim_pc value.
8731
8732 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8733
8734         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8735         generic_find_dummy_frame.
8736         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8737         (deprecated_generic_find_dummy_frame): Update.
8738         (deprecated_read_register_dummy): Update.
8739         * frame.c (deprecated_generic_get_saved_register): Update.
8740
8741 2003-05-15  Theodore A. Roth  <troth@openavr.org>
8742
8743         * avr-tdep.c (avr_breakpoint_from_pc): New function.
8744         (avr_gdbarch_init): Set breakpoint_from_pc method.
8745
8746 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8747
8748         * regcache.c (build_regcache): Set deprecated_register_valid
8749         directly.
8750         (deprecated_grub_regcache_for_register_valid): Delete function.
8751         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8752         declaration.
8753
8754 2003-05-15  David Carlton  <carlton@bactrian.org>
8755
8756         Committed by Elena Zannoni <ezannoni@redhat.com>
8757         * symtab.c (lookup_symbol_aux): Delete calls to
8758         lookup_symbol_aux_minsyms.
8759         (lookup_symbol_aux_minsyms): Comment out function and
8760         prototype. Delete lookup by mangled name.
8761
8762 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
8763
8764         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8765         correctly indicate an empty stack and ``stack_allocated'' to the
8766         indicate the number of elements initially allocated.
8767         (dwarf_expr_grow_stack): Simplify method for computing new
8768         stack size.  Don't loop infinitely if ``stack_len'' is zero.
8769         (execute_stack_op): Move ``ctx->in_reg'' initialization
8770         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8771         be used in conjuction with DW_OP_piece.  Revise error message
8772         accordingly.
8773
8774 2003-05-14  Theodore A. Roth  <troth@openavr.org>
8775
8776         * MAINTAINERS: Update my email address.
8777         * avr-tdep.c: Ditto.
8778
8779 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
8780
8781         * symtab.h (enum domain_enum): Rename from namespace_enum.
8782         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8783         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8784         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8785         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8786         TYPES_NAMESPACE, METHODS_NAMESPACE.
8787         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8788         (struct symbol, struct partial_symbol): Rename field
8789         'namespace_enum namespace' to 'domain_enum domain'.
8790         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8791         Delete old define kludge for namespace.
8792
8793         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8794         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8795         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8796         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8797         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8798         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8799         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8800         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8801         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8802         occurrences of the above.
8803
8804 2003-05-14  Ian Lance Taylor  <ian@airs.com>
8805
8806         * Makefile.in (install-only): Use $(SHELL) when running
8807         mkinstalldirs.
8808
8809 2003-05-13  Ian Lance Taylor  <ian@airs.com>
8810
8811         * MAINTAINERS (write after approval): Add myself.
8812
8813         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8814         second and third arguments.
8815         * ser-tcp.c (_initialize_ser_tcp): Likewise.
8816         * ser-unix.c (_initialize_ser_hardwire): Likewise.
8817
8818 2003-05-13  Andrew Cagney  <cagney@redhat.com>
8819
8820         * defs.h (store_address): Delete declaration.
8821         findvar.c (store_address): Delete function.
8822         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8823         store_unsigned_integer.
8824         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8825         * v850-tdep.c (v850_push_arguments): Ditto.
8826         * sparc-tdep.c (sparc_get_saved_register): Ditto.
8827         * sh-tdep.c (sh64_get_saved_register): Ditto.
8828         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8829         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8830         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8831         (mips_get_saved_register): Ditto.
8832         * ia64-tdep.c (ia64_get_saved_register): Ditto.
8833         (find_func_descr, ia64_push_arguments): Ditto.
8834         * i386-tdep.c (i386_push_arguments): Ditto.
8835         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8836         * frv-tdep.c (frv_push_arguments): Ditto.
8837         * frame.c (legacy_saved_regs_prev_register): Ditto.
8838         (deprecated_generic_get_saved_register): Ditto.
8839         * findvar.c (unsigned_address_to_pointer): Ditto.
8840         * dwarf2read.c (dwarf2_const_value): Ditto.
8841         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8842         * alpha-tdep.c (alpha_push_arguments): Ditto.
8843
8844 2003-05-12  J. Brobecker  <brobecker@gnat.com>
8845
8846         * NEWS: Mention that the hppa-hpux port has been partially
8847         multiarched (32bit ABIT only, so far).
8848
8849 2003-05-11  Andrew Cagney  <cagney@redhat.com>
8850
8851         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8852         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8853         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8854         sim/testsuite/sim/arm/misaligned2.ms, and
8855         sim/testsuite/sim/arm/misaligned3.ms.
8856         * disasm.h (struct ui_file): Add opaque struct declaration.
8857         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8858         * frame.h (struct ui_file): Ditto.
8859
8860 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
8861
8862         * value.h: Pretty print.
8863
8864 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
8865
8866         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8867
8868 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8869
8870         * regcache.h (max_register_size): Delete declaration.
8871         * regcache.c (max_register_size): Delete function.
8872         (struct regcache_descr): Delete field "max_register_size".
8873         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8874         registers fit in MAX_REGISTER_SIZE.
8875         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8876         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8877         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8878         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8879         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8880         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8881         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8882         * dve3900-rom.c, hppa-tdep.c: Ditto.
8883
8884 2003-05-08  David Carlton  <carlton@math.stanford.edu>
8885
8886         * valops.c (push_word): Fix typo.
8887
8888 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8889
8890         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8891         * gdbarch.h: Re-generate.
8892         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8893         (legacy_max_register_raw_size): Delete declaration.
8894         * regcache.c (legacy_max_register_raw_size): Delete function.
8895         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8896         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8897         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8898         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8899         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8900         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8901         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8902         * findvar.c, dwarf2cfi.c: Ditto.
8903
8904 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8905
8906         * mips-tdep.c (read_signed_register): New function, moved to here
8907         from "regcache.c".
8908         (read_signed_register_pid): Ditto.
8909         * regcache.c (read_signed_register_pid): Delete function, moved to
8910         "mips-tdep.c".
8911         (read_signed_register): Ditto.
8912         * regcache.h (read_signed_register): Delete declaration.
8913         (read_signed_register_pid): Delete declaration.
8914
8915 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8916
8917         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8918         * gdbarch.h: Re-generate.
8919         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8920         (legacy_max_register_virtual_size): Delete declaration.
8921         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8922         * d10v-tdep.c (d10v_print_registers_info): Ditto.
8923         * tracepoint.c (memrange_sortmerge): Ditto.
8924         * sparc-tdep.c (sparc_print_registers): Ditto.
8925         * regcache.c (legacy_max_register_virtual_size): Delete function.
8926
8927 2002-05-08  J. Brobecker  <brobecker@gnat.com>
8928
8929         * fork-child.c (escape_bang_in_quoted_argument): New function.
8930         (fork_inferior): Escape '!' characters in quoted arguments
8931         only when needed.
8932
8933 2003-05-08  J. Brobecker  <brobecker@gnat.com>
8934
8935         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8936         the language of the CU is not currently supported by GDB.
8937
8938 2003-05-08  J. Brobecker  <brobecker@gnat.com>
8939
8940         * defs.h (language): Add language_minimal enum value.
8941         * c-lang.c (minimal_language_defn): New language definition.
8942         (_initialize_c_language): Add the new minimal language to the list
8943         of languages known to GDB.
8944
8945 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
8946
8947         * frame.c (get_frame_type): Don't attempt to lazily initialize
8948         frame's unwinder for legacy frames.
8949
8950 2003-05-07  Andrew Cagney  <cagney@redhat.com>
8951
8952         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8953         and "regcache" parameters.
8954         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8955
8956 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
8957
8958         * dwarf2read.c (dwarf_decode_lines): Only use output of
8959         check_cu_functions() when calling record_line().  Do not update
8960         the current address.
8961
8962 2003-05-07  Andrew Cagney  <cagney@redhat.com>
8963
8964         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8965         code.
8966
8967 2003-05-07  Jim Blandy  <jimb@redhat.com>
8968
8969         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8970         'maint info symtabs' and 'maint info psymtabs'.
8971         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8972         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8973         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8974         Declarations updated.
8975         * maint.c (maintenance_list_command): Delete.
8976         (_initialize_maint_cmds): Update calls to add_cmd.
8977         * gdbcmd.h (maintenancelistlist): Delete declaration.
8978         * cli/cli-cmds.c (maintenancelistlist): Delete.
8979         (init_cmd_lists): Don't initialize it.
8980         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8981
8982 2003-05-07  Andrew Cagney  <cagney@redhat.com>
8983
8984         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8985         "regcache".
8986         (d10v_print_registers_info): Update.
8987         (d10v_dmap_register, d10v_imap_register): Delete functions.
8988         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8989         and "imap_register".
8990         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8991         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8992         * arch-utils.c (generic_remote_translate_xfer_address): Add
8993         "regcache" and "gdbarch" parameters.
8994         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8995         parameter.  Change class to multi-arch.
8996         * gdbarch.h, gdbarch.c: Re-generate.
8997         * remote.c (remote_xfer_memory): Use
8998         gdbarch_remote_translate_xfer_address.
8999
9000 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9001
9002         * infrun.c (prev_pc): Move declaration ahead of proceed().
9003         (proceed): Refresh prev_pc value before resuming.
9004         (stop_stepping): Remove code to refresh prev_pc.
9005
9006 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9007
9008         * nto-tdep.c: Removed stray comment.
9009
9010 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9011
9012         * i386-nto-tdep.c: Fix old K&R function definitions.
9013         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9014         Also change add_show_from_set() call to add_setshow_cmd().
9015         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9016
9017 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9018
9019         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9020         (fprint_dummy_frames): New function.
9021         (maintenance_print_dummy_frames): New function.
9022         (_initialize_dummy_frame): Add command "maint print dummy-frames".
9023         * frame.c (fprint_frame_id): Make global.
9024         * frame.h (fprint_frame_id): Declare.
9025         * Makefile.in (dummy-frame.o): Update dependencies.
9026
9027 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9028
9029         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9030         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9031         SIZEOF_CALL_DUMMY_WORDS.
9032         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9033         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9034         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9035         CALL_DUMMY_BREAKPOINT_OFFSET.
9036         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9037         CALL_DUMMY_START_OFFSET.
9038         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9039         * gdbarch.h, gdbarch.c: Re-generate.
9040         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9041         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9042         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9043         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9044         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9045         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9046         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9047         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9048         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9049         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9050         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9051         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9052         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9053         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9054         * config/sparc/tm-sparc.h: Update.
9055
9056 2003-05-05  Kris Warkentin <kewarken@qnx.com>
9057
9058         * configure.tgt: Add i[3456]86-*-nto*.
9059         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
9060         * nto-tdep.c: New file. Neutrino target support routines.
9061         * nto-tdep.h: New file. Neutrino target header.
9062         * config/tm-qnxnto.h: New file.
9063         * config/i386/i386nto.mt: New file.
9064         * config/i386/tm-i386nto.h: New file.
9065
9066 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9067
9068         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9069         (load_infrun_state): Ditto.
9070         (struct thread_info): Drop "prev_func_name" field.
9071         * thread.c (load_infrun_state): Update.
9072         (save_infrun_state): Update.
9073         * infrun.c (prev_func_name): Delete variable.
9074         (init_wait_for_inferior): Do not clear prev_func_name.
9075         (stop_stepping, keep_going, context_switch): Do not swap
9076         prev_func_name.
9077         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9078         instead of PC_IN_SIGTRAMP.
9079
9080 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9081
9082         * sentinel-frame.c (sentinel_frame_prev_register): Replace
9083         REGISTER_BYTE with register_offset_hack.
9084         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9085         that REGISTER_BYTE is consistent with the regcache.
9086         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9087         * gdbarch.h, gdbarch.c: Regenerate.
9088
9089 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
9090
9091         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9092         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9093
9094         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9095
9096 2003-05-03  J. Brobecker  <brobecker@gnat.com>
9097
9098         From Thierry Schneider <tpschneider1@yahoo.com>
9099         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9100         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9101         (mi-cmd-symbol.o): Add rule.
9102
9103 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9104
9105         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9106         comments noteing that it replaces the old FIX_CALL_DUMMY code.
9107         * gdbarch.h, gdbarch.c: Re-generate.
9108         * d10v-tdep.c (d10v_push_dummy_code): New function.
9109         (d10v_gdbarch_init): Set push_dummy_code.
9110         * infcall.c (legacy_push_dummy_code): New function.
9111         (generic_push_dummy_code): New function.
9112         (push_dummy_code): New function.
9113         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
9114         instead of dummy_addr, to push_dummy_call.  Move call to
9115         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9116         switch.
9117         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9118
9119 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9120
9121         * disasm.h (print_insn): Declare.
9122         * disasm.c (init_gdb_disassemble_info): New function.
9123         (gdb_disassembly): Call init_gdb_disassemble_info.
9124         (gdb_print_insn): New function.
9125         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9126         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
9127         * mcore-tdep.c: Include "disasm.h"
9128         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9129         * d10v-tdep.c: Include "disasm.h".
9130         (display_trace): Call gdb_print_insn, instead of print_insn.
9131         (print_insn): Delete function.
9132         * printcmd.c: Include "disasm.h".
9133         (print_insn): Delete function.
9134         (print_formatted): Call gdb_print_insn, instead of print_insn.
9135         * Makefile.in (printcmd.o): Update dependencies.
9136         (mcore-tdep.o, d10v-tdep.o): Ditto.
9137
9138 2003-05-02  Andrew Cagney  <cagney@redhat.com>
9139
9140         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9141         PC_REGNUM, re-indent.
9142         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9143         PC_REGNUM isn't set.
9144
9145         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9146         * gdbarch.h, gdbarch.c: Re-generate.
9147         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9148         register_virtual_size, pc_regnum, or register_bytes.
9149         (D10V_PC_REGNUM): Rename _PC_REGNUM.
9150         (d10v_register_type): Use D10V_PC_REGNUM.
9151         (d10v_print_registers_info, d10v_read_pc): Ditto.
9152         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9153         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9154
9155 2003-05-02  David Carlton  <carlton@bactrian.org>
9156
9157         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9158         the name with mstrsave.
9159
9160 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
9161
9162         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9163         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9164         (host_charset_name, target_charset_name): New vars for use by
9165         set/show commands.
9166         (host_charset_enum, target_charset_enum): New enums for set/show
9167         commands.
9168         (set_charset_sfunc, set_host_charset_sfunc,
9169         set_target_charset_sfunc): New functions.
9170         (set_host_charset, set_target_charset): Make static.
9171         (list_charsets, set_host_charset_command,
9172         set_target_charset_command): Delete functions.
9173         (show_charset_command): Rewrite as....
9174         (show_charset): Hook this up with the set/show command mechanism.
9175         (_initialize_charset): Change names of charsets to match the
9176         set/show enums. Use host_charset_name and target_charset_name.
9177         Use set/show mechanism for charset, host-charset, target-charset
9178         commands. Do not make 'show host-charset' and 'show
9179         target-charset' be aliases of 'show charset'.
9180
9181         * charset.h (set_host_charset, set_target_charset): Don't export,
9182         they are not used outside the file.
9183
9184 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9185
9186         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9187         (gdb_disassembly): Make "di" non static, always initialize and
9188         cleanup.  Always use dis_asm_read_memory.
9189         (gdb_dis_asm_read_memory): Delete function.
9190
9191 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9192
9193         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9194         (d10v_gdbarch_init): Set frame_align instead of stack_align.
9195
9196 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9197
9198         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9199         "tm_print_insn_info".
9200         (TARGET_PRINT_INSN_INFO): Delete macro.
9201         (dis_asm_read_memory): Delete function declaration.
9202         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9203         (tm_print_insn_info): Delete variable definition.
9204         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9205         * gdbarch.h, gdbarch.c: Re-generate.
9206         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9207         "deprecated_tm_print_insn_info".
9208         * mcore-tdep.c (mcore_dump_insn): Ditto.
9209         * mips-tdep.c (mips_gdbarch_init): Ditto.
9210         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9211         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9212         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9213         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9214         instead of TARGET_PRINT_INSN_INFO, add comment.
9215         * s390-tdep.c (s390_get_frame_info): Instead of
9216         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9217         (s390_check_function_end, s390_is_sigreturn): Ditto.
9218         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9219         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9220         * disasm.c: Include "gdbcore.h".
9221         (_initialize_disasm): New function, initialize
9222         "deprecated_tm_print_insn_info".
9223         (deprecated_tm_print_insn_info): New variable.
9224         (dis_asm_read_memory): Moved from "corefile.c", made static.
9225         (dis_asm_print_address, dis_asm_memory_error): Ditto.
9226         * Makefile.in (disasm.o): Update dependencies.
9227
9228 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9229
9230         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9231
9232 2003-04-29  Adam Fedor  <fedor@gnu.org>
9233
9234         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9235         * infcall.c (find_function_addr): Make non-static.
9236         * infcall.h (find_function_addr): Declare.
9237         * Makefile.in (eval.o): Update dependencies.
9238
9239 2003-04-28  Adam Fedor  <fedor@gnu.org>
9240
9241         * symtab.c (symbol_find_demangled_name): Check for and demangle
9242         ObjC symbols.
9243         (symbol_init_demangled_name): Init for language_objc as well.
9244
9245 2003-04-28  Andrew Cagney  <cagney@redhat.com>
9246
9247         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9248         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9249         * gdbarch.h, gdbarch.c: Re-generate.
9250         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9251         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9252         * inferior.h (deprecated_read_fp): Rename read_fp.
9253         (generic_target_read_fp): Delete declaration.
9254         * regcache.c (generic_target_read_fp): Delete function.
9255         (deprecated_read_fp): Replace read_fp, use
9256         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9257         * d10v-tdep.c (d10v_read_fp): Delete function.
9258         (d10v_gdbarch_init): Do not set deprecated_read_fp.
9259
9260         * sparc-tdep.c (sparc_gdbarch_init): Do not set
9261         deprecated_target_read_fp to generic_target_read_fp.
9262         * sh-tdep.c (sh_gdbarch_init): Ditto.
9263         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9264         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9265         * frv-tdep.c (frv_gdbarch_init): Ditto.
9266
9267         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9268         deprecated_fp_regnum.
9269         * x86-64-tdep.c (x86_64_init_abi): Ditto.
9270         * vax-tdep.c (vax_gdbarch_init): Ditto.
9271         * v850-tdep.c (v850_gdbarch_init): Ditto.
9272         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9273         * sh-tdep.c (sh_gdbarch_init): Ditto.
9274         * s390-tdep.c (s390_gdbarch_init): Ditto.
9275         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9276         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9277         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9278         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9279         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9280         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9281         * i386-tdep.c (i386_gdbarch_init): Ditto.
9282         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9283         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9284         * frv-tdep.c (frv_gdbarch_init): Ditto.
9285         * cris-tdep.c (cris_gdbarch_init): Ditto.
9286         * avr-tdep.c (avr_gdbarch_init): Ditto.
9287         * arm-tdep.c (arm_gdbarch_init): Ditto.
9288         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9289
9290         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9291         * v850-tdep.c (v850_gdbarch_init): Ditto.
9292         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9293         * sh-tdep.c (sh_gdbarch_init): Ditto.
9294         * s390-tdep.c (s390_gdbarch_init): Ditto.
9295         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9296         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9297         * mips-tdep.c (mips_gdbarch_init): Ditto.
9298         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9299         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9300         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9301         * frv-tdep.c (frv_gdbarch_init): Ditto.
9302         * avr-tdep.c (avr_gdbarch_init): Ditto.
9303         * arm-tdep.c (arm_gdbarch_init): Ditto.
9304
9305         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9306         DEPRECATED_FP_REGNUM.
9307         (vax_push_dummy_frame, vax_pop_frame): Ditto.
9308         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9309         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9310         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9311         (sparc32_register_virtual_type): Ditto.
9312         * sh-tdep.c (sh64_frame_chain): Ditto.
9313         (sh64_get_saved_register, sh64_pop_frame): Ditto.
9314         (sh_nofp_frame_init_saved_regs): Ditto.
9315         (sh64_nofp_frame_init_saved_regs): Ditto.
9316         (sh_fp_frame_init_saved_regs): Ditto.
9317         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9318         * remote-e7000.c (fetch_regs_from_dump): Ditto.
9319         * procfs.c (procfs_fetch_registers): Ditto.
9320         (procfs_store_registers): Ditto.
9321         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9322         (store_inferior_registers, fetch_core_registers): Ditto.
9323         (fetch_kcore_registers, clear_regs): Ditto.
9324         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9325         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9326         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9327         * nlm/i386.c (do_status): Ditto.
9328         * mipsv4-nat.c (supply_gregset): Ditto.
9329         * mips-tdep.c: Ditto for comments.
9330         * mips-nat.c (fetch_inferior_registers): Ditto.
9331         (store_inferior_registers, fetch_core_registers): Ditto.
9332         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9333         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9334         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9335         (i386_do_pop_frame, i386_register_type): Ditto.
9336         * hppa-tdep.c (hppa_frame_chain): Ditto.
9337         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9338         (hppa_pop_frame, hppa_read_fp): Ditto.
9339         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9340         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9341         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9342         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9343         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9344         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9345         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9346         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9347         * blockframe.c: Ditto for comments.
9348         * arch-utils.h: Ditto for comments.
9349         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9350         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9351         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9352         * alpha-tdep.h: Ditto for comments.
9353         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9354         (alpha_cannot_store_register): Ditto.
9355         (alpha_push_dummy_frame): Ditto.
9356         * alpha-nat.c (supply_gregset): Ditto.
9357
9358         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9359         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9360         * config/sparc/tm-sparc.h: Update comment.
9361
9362         * hppa-tdep.c (hppa_init_extra_frame_info): Use
9363         deprecated_read_fp instead of TARGET_READ_FP.
9364         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9365         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9366         * sparc-tdep.c (sparc_init_extra_frame_info): Use
9367         deprecated_read_fp instead of read_fp.
9368         * s390-tdep.c (s390_push_arguments): Ditto.
9369         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9370         * frame.h: Ditto in comments.
9371         * frame.c (legacy_get_prev_frame): Ditto.
9372         * dummy-frame.c (dummy_frame_this_id): Ditto.
9373         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9374
9375 2003-04-28  Andrew Cagney  <cagney@redhat.com>
9376
9377         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9378         * gdbarch.h, gdbarch.c: Re-generate.
9379         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9380         * vax-tdep.c (_initialize_vax_tdep): Update.
9381         * v850-tdep.c (_initialize_v850_tdep): Update.
9382         * sparc-tdep.c (_initialize_sparc_tdep): Update.
9383         * s390-tdep.c (_initialize_s390_tdep): Update.
9384         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9385         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9386         * mips-tdep.c (_initialize_mips_tdep): Update.
9387         * mcore-tdep.c (_initialize_mcore_tdep): Update.
9388         * m68k-tdep.c (_initialize_m68k_tdep): Update.
9389         * ia64-tdep.c (_initialize_ia64_tdep): Update.
9390         * hppa-tdep.c (_initialize_hppa_tdep): Update.
9391         * h8300-tdep.c (_initialize_h8300_tdep): Update.
9392         * frv-tdep.c (_initialize_frv_tdep): Update.
9393         * cris-tdep.c (cris_delayed_get_disassembler): Update.
9394         (_initialize_cris_tdep): Update.
9395         * arch-utils.c (legacy_print_insn): Update.
9396         * alpha-tdep.c (_initialize_alpha_tdep): Update.
9397
9398 2003-04-26  Adam Fedor  <fedor@gnu.org>
9399
9400         * linespec.c (decode_objc): New function to decode ObjC calls
9401         (decode_line_1): Check for ObjC calls (using decode_objc)
9402         * Makefile (linespec.o): Update dependencies.
9403
9404 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
9405
9406         * breakpoint.h (struct breakpoint_ops): New.
9407         (struct breakpoint): Add ops member.
9408
9409         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9410         (mention): Use new breakpoint ops member.
9411         (set_raw_breakpoint): Initialize ops field to NULL.
9412         (print_exception_catchpoint, print_one_exception_catchpoint)
9413         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9414         (gnu_v3_exception_catchpoint_ops): New.
9415         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9416
9417 2003-04-25  Adam Fedor  <fedor@gnu.org>
9418
9419         * Makefile.in (COMMON_OBS): Add objc-lang.o
9420
9421 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9422
9423         * d10v-tdep.c (print_insn): Delete function.
9424         (display_trace): Use TARGET_PRINT_INSN.
9425         (_initialize_d10v_tdep): Do not set tm_print_insn.
9426         (d10v_gdbarch_init): Set print_insn.
9427
9428 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9429
9430         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9431         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9432         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9433         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9434         (nr_dmap_regs, a0_regnum): ... new functions.
9435         (d10v_print_registers_info): Use a0_regnum, use register_size.
9436         (d10v_register_byte): Delete function.
9437         (d10v_register_raw_size): Delete function.
9438         (d10v_register_type): Use a0_regnum.
9439         (d10v_print_registers_info): Use a0_regnum.
9440         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9441         (d10v_gdbarch_init): Do not set register_byte or
9442         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9443         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9444         extract_address.
9445         (trace_command): Use XCALLOC.
9446         (print_insn): Delete reference to tm_print_insn.
9447         (saved_regs_unwinder): Use store_unsigned_integer instead of
9448         store_address.
9449         * frame.h (FRAME_OBSTACK_CALLOC): Define
9450
9451 2003-04-25  David Carlton  <carlton@bactrian.org>
9452
9453         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9454
9455 2003-04-24  Adam Fedor  <fedor@gnu.org>
9456
9457         * objc-lang.c: Include "valprint.h"
9458         * Makefile.in (objc-lang.o): Update dependencies.
9459
9460 2003-04-24  Adam Fedor  <fedor@gnu.org>
9461
9462         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9463         architecture dependant compilation and mark as unimplemented
9464         (until they get put in the gdbarch vector).
9465
9466 2003-04-23  David Carlton  <carlton@bactrian.org>
9467
9468         * cp-support.c (cp_find_first_component): Accept 'operator' in
9469         more locations.
9470
9471 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9472
9473         * infcall.c (call_function_by_hand): Eliminate redundant
9474         indentation.  Move "saved_async" and "old_cleanups" to where they
9475         are needed.
9476
9477 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9478
9479         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9480         and "buffer".  Move the "name" code to where it is needed.
9481
9482 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9483
9484         * infcall.c (call_function_by_hand): Move variables "start_sp",
9485         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9486         code to ON_STACK switch branch.
9487
9488 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9489
9490         * infcall.c (call_function_by_hand): Make declaration of "i",
9491         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
9492         lint.
9493
9494 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9495
9496         * infcall.c (call_function_by_hand): Delete variable
9497         "n_method_args".  Localize "param_type"'s declaration to the loop
9498         that it is used.  Reinstate code assigning to said variable -
9499         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
9500         Rationalize code using "param_type".
9501
9502 2003-04-22  Andrew Cagney  <cagney@redhat.com>
9503
9504         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9505         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
9506         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
9507         to DEPRECATED_PUSH_RETURN_ADDRESS.
9508
9509 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
9510
9511         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9512         on the DWARF2 register number prior to fetching a register.
9513
9514 2003-04-22  J. Brobecker  <brobecker@gnat.com>
9515
9516         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9517         Update all the tests using SOFT_FLOAT considering the fact that
9518         this macro was always set to 0.
9519         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9520         considering the fact that this macro was always set to 0.
9521         * hppa-tdep.h (hppa_store_return_value): Likewise.
9522         (hppa_extract_return_value): Likewise.
9523
9524 2003-04-22  J. Brobecker  <brobecker@gnat.com>
9525
9526         * config/pa/tm-hppa.h: Remove obsolete code, was used by
9527         the hppa-pro target only.
9528
9529 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9530
9531         Ongoing multi-arch conversion effort for HP/UX:
9532         * config/pa/tm-hppa.h: Move all macro that are no longer
9533         defined now that GDB_MULTI_ARCH is now set to 1 from here...
9534         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9535
9536 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9537
9538         * config/pa/tm-hppa.h: Obsolete a section that was only used
9539         for hppa-pro.
9540
9541 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9542
9543         Ongoing multi-arch conversion for HP/UX.
9544         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9545         if already defined (allows hppa64 to stay non-multiarched for now).
9546         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9547
9548 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9549
9550         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9551
9552 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9553
9554         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9555         "i386_num_mmx_regs".
9556
9557 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9558
9559         * infcall.c: New file.
9560         * infcall.h: New file.
9561         * valarith.c: Include "infcall.h".
9562         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9563         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9564         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9565         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9566         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9567         (SFILES): Add "infcall.c"
9568         (COMMON_OBS): Add "infcall.o".
9569         (infcall.o): Specify dependencies.
9570         * value.h (call_function_by_hand): Delete declaration.
9571         * inferior.h (run_stack_dummy): Delete declaration.
9572         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9573         (run_stack_dummy): Move to "infcall.c", merged into
9574         call_function_by_hand.
9575         * valops.c (call_function_by_hand): Moved to "infcall.c".
9576         (find_function_addr, value_arg_coerce): Ditto.
9577         (unwindonsignal_p, coerce_float_to_double): Ditto.
9578         (_initialize_valops): Move "set/show coerce-float-to-double", and
9579         "set/show unwindonsignal" commands to "infcall.c".
9580         * v850-tdep.c, target.h: Update comments.
9581         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9582         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9583         (sh64_init_extra_frame_info): Update comments.
9584         * mn10300-tdep.c: Update comments.
9585         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9586         * config/sparc/tm-sparc.h: Update comments.
9587         * breakpoint.h: Update comments.
9588         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9589         * arm-tdep.c: Update comment.
9590
9591 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
9592
9593         * i386-tdep.c (i386_num_register_names): New variable.
9594         (i386_num_mmx_regs): Renamed from mmx_num_regs.
9595         (MM0_REGNUM): Remove redundant parentheses in define.
9596         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9597         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9598         i386_mxcsr_regnum_p): Remove redundant parentheses.
9599         (i386_register_name): Use i386_num_register_names.
9600
9601         * i386-tdep.c (i386_extract_return_value,
9602         i386_store_return_value): Correct check for availability of
9603         floating-point registers.
9604
9605         * i386-tdep.c (i386_frame_num_args): Remove function.
9606         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9607
9608         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9609         mmx_regnum_to_fp_regnum.  Adjust all callers.
9610
9611         * i386-tdep.c (i386_get_longjmp_target): Use
9612         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9613         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
9614         extract_address.
9615
9616 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
9617
9618         * core-regset.c: Update comments to reflect reality.  Re-order
9619         includes.
9620         (fetch_core_registers): Use switch instead of if.  Remove
9621         redundant prototype.
9622
9623 2003-04-18  Jim Blandy  <jimb@redhat.com>
9624
9625         * s390-tdep.c (s390_frame_align): New function.
9626         (s390_gdbarch_init): Register it with the gdbarch object.
9627
9628 2003-04-17  Richard Henderson  <rth@redhat.com>
9629
9630         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9631
9632 2003-04-17  Michael Snyder  <msnyder@redhat.com>
9633             Karen Bennet  <bennet@redhat.com>
9634
9635         Committed by Elena Zannoni  <ezannoni@redhat.com>
9636         * gdb_gcore.sh: New script to create a core dump of a process.
9637
9638 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
9639
9640         * values.c (value_being_returned): Don't fetch the return
9641         value if the return type is void.
9642
9643 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
9644
9645         * thread-db.c: Reindented.
9646
9647 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
9648
9649         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9650         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9651         as types.
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
9678
9679         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9680         the size of ``long double'' to 16, instead of 8.
9681
9682 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
9683
9684         * i386-linux-nat.c: Add some whitespace to make things more
9685         readable.
9686         (fetch_register, store_register, fetch_inferior_registers,
9687         store_inferior_registers): Get rid of assignment in if-statement.
9688         (store_register): Fix typo in error message.
9689
9690 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9691
9692         * utils.c (xmmalloc): Always allocate something, matches
9693         libiberty/xmalloc's semantics.
9694         (xmrealloc, xmcalloc): Ditto.
9695
9696 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9697
9698         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9699         update comments.
9700         (get_frame_type): Initialize unwind and type when needed.
9701         (get_frame_id, frame_register_unwind): Ditto.
9702
9703 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9704
9705         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9706         obsolete.
9707         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9708         * sparcl-stub.c: Obsolete file.
9709         * config/sparc/tm-sparclet.h: Obsolete file.
9710         * sparclet-stub.c: Obsolete file.
9711         * sparclet-rom.c: Obsolete file.
9712         * sparcl-tdep.c: Obsolete file.
9713         * config/sparc/tm-sparclite.h: Obsolete file.
9714         * config/sparc/sparclite.mt: Obsolete file.
9715         * config/sparc/sparclet.mt: Obsolete file.
9716         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9717         sparc86x-*-* obsolete.
9718
9719 2003-04-15  David Carlton  <carlton@math.stanford.edu>
9720
9721         * Makefile.in (SFILES): Add cp-namespace.c.
9722         (COMMON_OBS): Add cp-namespace.o.
9723         (block.o): Depend on gdb_obstack_h and cp_support_h.
9724         (buildsym.o): Depend on cp_support_h.
9725         (cp-namespace.o): New.
9726         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9727         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9728         (dwarf2read.o): Depend on cp_support_h.
9729         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9730         * dwarf2read.c (process_die): Set processing_has_namespace_info,
9731         processing_current_namespace.
9732         (read_namespace): Update processing_current_namespace; check for
9733         anonymous namespaces.
9734         (dwarf2_name): New function.
9735         (dwarf2_extension): Ditto.
9736         * cp-support.h: Update copyright, contributors.
9737         Add inclusion guards.
9738         Add opaque declaration for structs obstack, block, symbol.
9739         (struct using_direct): New struct.
9740         Add declarations for cp_find_first_component,
9741         cp_entire_prefix_len, processing_has_namespace_info,
9742         processing_current_namespace, cp_is_anonymous,
9743         cp_add_using_directive, cp_initialize_namespace,
9744         cp_finalize_namespace, cp_set_block_scope,
9745         cp_scan_for_anonymous_namespaces.
9746         * cp-namespace.c: New file.
9747         * cp-support.c: Update copyright.
9748         Include ctype.h, gdb_assert.h, gdbcmd.h.
9749         New variable maint_cplus_cmd_list.
9750         (cp_find_first_component): New function.
9751         (cp_entire_prefix_len, maint_cplus_command)
9752         (first_component_command, _initialize_cp_support): Ditto.
9753         * buildsym.c: Include cp-support.h.
9754         New variable using_list.
9755         (add_symbol_to_list): Check for anonymous namespaces.
9756         (finish_block): Set block's scope.
9757         (start_symtab): Initialize C++ namespace support.
9758         (end_symtab): Finalize C++ namespace support.
9759         * block.h: Add opaque declarations for structs
9760         block_namespace_info, using_direct, and obstack.
9761         Add declarations for block_set_scope and block_set_using.
9762         (struct block): Add 'language_specific' member.
9763         (BLOCK_NAMESPACE): New macro.
9764         * block.c: Include gdb_obstack.h and cp-support.h.
9765         (struct block_namespace_info): New struct.
9766         (block_set_scope): New function.
9767         (block_set_using, block_initialize_namespace): Ditto.
9768
9769 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
9770
9771         * solib-svr4.c (svr4_have_link_map_offsets): New function.
9772         (locate_base): Return early if there aren't any link map offsets.
9773         (svr4_solib_create_inferior_hook): Warn if shared library support
9774         is unavailable.
9775
9776 2003-04-14  David Carlton  <carlton@math.stanford.edu>
9777
9778         * symtab.c (symbol_set_names): Add prefix when storing Java names
9779         in hash table.  Fix for PR java/1039.
9780
9781 2003-04-14  David Carlton  <carlton@math.stanford.edu>
9782
9783         * symtab.c (symbol_set_names): Rename 'name' arg to
9784         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9785         * symtab.h: Change 'name' argument in declaration of
9786         symbol_set_names to 'linkage_name'.
9787         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9788
9789 2003-04-14  Andrew Cagney  <cagney@redhat.com>
9790
9791         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9792         return the fully sign-extended register value.
9793         (get_frame_pointer): Ditto.
9794         (mips_pop_frame): Initialize "proc_desc" after checking for a
9795         dummy frame.
9796
9797 2003-04-14  Andrew Cagney  <cagney@redhat.com>
9798
9799         * mips-tdep.c (mips_push_dummy_frame): Delete function.
9800         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9801         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9802         (mips_push_register): Delete function.
9803         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9804         PUSH_FP_REGNUM.
9805
9806 2003-04-14  Jim Blandy  <jimb@redhat.com>
9807
9808         * symmisc.c: #include "gdb_regex.h".
9809         (maintenance_list_symtabs, maintenance_list_psymtabs): New
9810         functions.
9811         * maint.c (maintenance_list_command): New function.
9812         (_initialize_maint_cmds): Register the above as commands.
9813         * symtab.h (maintenance_list_symtabs,
9814         maintenance_list_psymtabs): New declarations.
9815         * cli/cli-cmds.c (maintenancelistlist): New variable.
9816         (init_cmd_lists): Initialize it.
9817         * cli/cli-cmds.h (maintenancelistlist): New declaration.
9818         * gdbcmd.h (maintenancelistlist): New declaration.
9819         * Makefile.in (symmisc.o): Update dependencies.
9820
9821 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
9822
9823         * s390-nat.c: Include asm/types.h for addr_t.
9824
9825 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
9826
9827         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9828         actually incoming type.
9829
9830 2003-04-13  Andrew Cagney  <cagney@redhat.com>
9831
9832         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9833         get_next_frame and get_frame_saved_regs.
9834
9835 2003-04-13  Andrew Cagney  <cagney@redhat.com>
9836
9837         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9838         of gdbarch_num_regs.
9839
9840 2003-04-13  Andrew Cagney  <cagney@redhat.com>
9841
9842         * frame.h: Mention what replaced what in "struct frame_info".
9843         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9844         deprecated_update_frame_base_hack and
9845         deprecated_update_frame_pc_hack.
9846         * hppa-tdep.c: Ditto.
9847
9848 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
9849
9850         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9851         to read_reg and update its comment.  Remove regnum member.
9852         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9853         Don't call read_reg when setting in_reg.  Call read_reg to get
9854         the frame base if it's in a register.  Return the register number
9855         on the stack instead of in the context.  Remove extra arguments
9856         to read_reg.
9857         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9858         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
9859         the register number on the expression stack.
9860         (needs_frame_read_reg): Remove extra arguments.
9861
9862 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
9863
9864         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9865         made non-static.
9866         (execute_stack_op): All callers updated.
9867         * dwarf2expr.h: Add prototype for dwarf2_read_address.
9868         * dwarf2loc.c (find_location_expression): New function.
9869         (dwarf_expr_frame_base): Call it.
9870         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9871         (dwarf2_tracepoint_var_ref): New function, broken out from
9872         locexpr_tracepoint_var_ref.
9873         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9874         Make static.
9875         (loclist_read_variable, loclist_read_needs_frame): New functions.
9876         (loclist_describe_location, loclist_tracepoint_var_ref): New
9877         functions.
9878         (dwarf2_loclist_funcs): New struct location_funcs.
9879         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9880         (struct dwarf2_locexpr_baton): Add comments.
9881         (dwarf2_loclist_funcs): New extern.
9882         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9883         base_address and base_known.
9884         (dwarf_loc_buffer): New variable.
9885         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9886         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9887         (dwarf2_has_info): Initialize dwarf_loc_offset.
9888         (dwarf2_build_psymtabs): Read in .debug_loc.
9889         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9890         DWARF_LOC_SIZE.
9891         (psymtab_to_symtab_1): Likewise.  Move base address calculation
9892         here, from...
9893         (dwarf2_get_pc_bounds): ... here.  Use the base address from
9894         cu_header.
9895         (dwarf2_symbol_mark_computed): Handle location lists.
9896
9897 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
9898
9899         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9900         if the linkage name demangled successfully.
9901
9902 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
9903
9904         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9905         disassmbly_flavour): Removed.
9906
9907         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9908
9909 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
9910
9911         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9912
9913 2003-04-12  Andrew Cagney  <cagney@redhat.com>
9914
9915         * frame.h (struct frame_info): Move definition from here ...
9916         * frame.c (struct frame_info): ... to here.
9917
9918 2003-04-12  Andrew Cagney  <cagney@redhat.com>
9919
9920         * gdbthread.h (save_infrun_state): Delete parameter
9921         "prev_func_start".
9922         (struct thread_info): Delete field "prev_func_start".
9923         (load_infrun_state): Ditto.
9924         * thread.c (load_infrun_state, save_infrun_state): Update.
9925         * infrun.c (prev_func_start): Delete variable.
9926         (context_switch, init_wait_for_inferior): Update.
9927         (stop_stepping, keep_going): Update.
9928
9929 2003-04-12  Andrew Cagney  <cagney@redhat.com>
9930
9931         * gdbarch.sh: Add missing opaque declarations.
9932         * gdbarch.h: Regnerate.
9933         * symtab.h: Add missing opaque declarations.
9934         * value.h, target.h, symfile.h, stabsread.h: Ditto.
9935         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9936         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9937         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9938         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9939         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9940         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9941         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9942         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9943         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9944         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9945         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9946         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9947
9948 2003-04-11  Andrew Cagney  <cagney@redhat.com>
9949
9950         * frame.c (get_frame_id): Return this frame's "id".
9951         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9952         function start.
9953         (legacy_saved_regs_this_id): Replace function body with
9954         internal-error.
9955         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9956         FRAME_OBSTACK_ZALLOC.
9957         (create_new_frame): Mark the frame ID as valid.
9958
9959 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
9960
9961         * Makefile.in (libbfd_h): Added missing setting.
9962         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9963         according to the selected ABI.
9964
9965 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
9966
9967         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9968
9969 2003-04-11  Andrew Cagney  <cagney@redhat.com>
9970
9971         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9972         SAVED_PC_AFTER_CALL.
9973         * gdbarch.h, gdbarch.c: Regenerate.
9974         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9975         * x86-64-tdep.c (x86_64_init_abi): Update.
9976         * vax-tdep.c (vax_gdbarch_init): Update.
9977         * v850-tdep.c (v850_gdbarch_init): Update.
9978         * sparc-tdep.c (sparc_gdbarch_init): Update.
9979         * sh-tdep.c (sh_gdbarch_init): Update.
9980         * s390-tdep.c (s390_gdbarch_init): Update.
9981         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9982         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9983         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9984         * mips-tdep.c (mips_gdbarch_init): Update.
9985         * mcore-tdep.c (mcore_gdbarch_init): Update.
9986         * m68k-tdep.c (m68k_gdbarch_init): Update.
9987         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9988         * ia64-tdep.c (ia64_gdbarch_init): Update.
9989         (ia64_saved_pc_after_call): Update declaration.
9990         * i386ly-tdep.c (i386lynx_init_abi): Update.
9991         * i386-tdep.c (i386_gdbarch_init): Update.
9992         * hppa-tdep.c (hppa_gdbarch_init): Update.
9993         * h8300-tdep.c (h8300_gdbarch_init): Update.
9994         * frv-tdep.c (frv_gdbarch_init): Update.
9995         * cris-tdep.c (cris_gdbarch_init): Update.
9996         * avr-tdep.c (avr_gdbarch_init): Update.
9997         * arm-tdep.c (arm_gdbarch_init): Update.
9998         * alpha-tdep.c (alpha_gdbarch_init): Update.
9999         * ns32knbsd-nat.c (frame_num_args): Update.
10000         * ns32k-tdep.c (umax_frame_num_args): Update.
10001         * mips-tdep.c (mips_init_frame_pc_first): Update.
10002         * infrun.c (step_over_function): Update.
10003         * i386-linux-tdep.c (skip_hurd_resolver): Update.
10004         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10005         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10006         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10007         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10008         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10009         * arm-linux-tdep.c (skip_hurd_resolver): Update.
10010         * arch-utils.c (init_frame_pc_default): Update.
10011         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10012         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10013         declaration.
10014
10015 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10016
10017         * i387-tdep.c: Update copyright.
10018         (i387_to_double): Delete function.
10019         (double_to_i387): Delete function.
10020
10021 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10022
10023         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10024         frame's function's address.  Simplify.
10025         (d10v_frame_unwind_cache): Check that the frame's function is
10026         non-zero.
10027
10028 2003-04-10  Jim Blandy  <jimb@redhat.com>
10029
10030         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10031         call to set_gdbarch_deprecated_push_arguments.
10032
10033 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10034
10035         * frame.c (fprint_frame_id): New function.
10036         (fprint_frame_type, fprint_frame): New function.
10037         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10038         (create_sentinel_frame, get_frame_id): Ditto.
10039         (frame_id_p, frame_id_eq): Ditto.
10040         (frame_id_inner, create_new_frame): Ditto.
10041         (legacy_get_prev_frame, get_prev_frame): Ditto.
10042         (deprecated_update_frame_pc_hack): Ditto.
10043         (frame_register_unwind): Ditto.
10044         (deprecated_update_frame_base_hack): Ditto.
10045
10046 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10047
10048         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10049         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10050         frame_chain function.
10051         * Makefile.in: Add dependencies due to above change.
10052
10053 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10054
10055         * blockframe.c (legacy_frame_chain_valid): Move call to
10056         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10057         inside_entry_file.
10058
10059 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10060
10061         * frame.h (struct frame_id): Replace "pc" and "base" with
10062         "stack_addr" and "code_addr".  Update comments.
10063         (frame_id_build): Update parameter names and comment.
10064         (struct frame_info): Replace "id_p" and "id" with "this_id".
10065         * dummy-frame.c (dummy_frame_this_id): Update.
10066         * breakpoint.c (print_one_breakpoint): Update.
10067         * frame.c (get_frame_id): Update.
10068         (get_frame_base, frame_id_build): Update.
10069         (create_sentinel_frame, legacy_get_prev_frame): Update.
10070         (deprecated_update_frame_base_hack): Update.
10071         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10072         (frame_id_inner): Ditto.
10073
10074 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10075
10076         * defs.h (gdb_print_host_address): Make "addr" parameter a
10077         pointer constant.
10078         * utils.c (gdb_print_host_address): Update.
10079
10080 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
10081
10082         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10083         register number for R0 is 0.
10084
10085 2003-04-09  J. Brobecker  <brobecker@gnat.com>
10086
10087         * frame.h (struct gdbarch): Add opaque structure definition
10088         to avoid a compilation warning on LynxOS 4.0.
10089
10090 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10091
10092         * frame.h (struct frame_info): Delete field "pc".  Replace
10093         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10094         structure.
10095         * frame.c (frame_pc_unwind): Update.
10096         (create_sentinel_frame): Do not set "pc".
10097         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
10098         (get_frame_pc): Call frame_pc_unwind.
10099         (deprecated_update_frame_pc_hack): Update.
10100         (create_new_frame): Use "pc" not "->pc".
10101
10102 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10103
10104         * frame.c (get_frame_id): Eliminate code updating "frame".
10105         (legacy_get_prev_frame): Ditto.
10106         (get_frame_base): Return id.base directly.
10107         (deprecated_update_frame_base_hack): Update "id.base".
10108         * frame.h (struct frame_info): Delete field "frame".
10109
10110 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10111
10112         * NEWS: Mention that the "Sequent family" is obsolete.
10113         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10114         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10115         * configure.host: Obsolete i[3456]86-sequent-bsd*,
10116         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10117         * config/i386/tm-ptx4.h: Obsolete file.
10118         * config/i386/tm-ptx.h: Obsolete file.
10119         * symm-tdep.c: Obsolete file.
10120         * config/i386/symmetry.mt: Obsolete file.
10121         * config/i386/tm-symmetry.h: Obsolete file.
10122         * symm-nat.c: Obsolete file.
10123         * config/i386/nm-symmetry.h: Obsolete file.
10124         * config/i386/xm-symmetry.h: Obsolete file.
10125         * config/i386/symmetry.mh: Obsolete file.
10126         * config/i386/nm-ptx4.h: Obsolete file.
10127         * config/i386/ptx4.mh: Obsolete file.
10128         * config/i386/ptx.mt: Obsolete file.
10129         * config/i386/ptx.mh: Obsolete file.
10130         * config/i386/xm-ptx4.h: Obsolete file.
10131         * config/i386/xm-ptx.h: Obsolete file.
10132
10133 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10134
10135         Obsolete mips*-*-mach3*.
10136         * NEWS: Mention that mips*-*-mach3* is obsolete.
10137         * m3-nat.c: Obsolete file.
10138         * config/nm-m3.h: Obsolete file.
10139         * config/mips/tm-mipsm3.h: Obsolete file.
10140         * config/mips/mipsm3.mt: Obsolete file.
10141         * config/mips/mipsm3.mh: Obsolete file.
10142         * config/mips/xm-mipsm3.h: Obsolete file.
10143         * mipsm3-nat.c: Obsolete file.
10144         * configure.host: Obsolete mips-dec-mach3*.
10145         * configure.tgt: Obsolete mips*-*-mach3*.
10146
10147 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10148
10149         * doublest.h: Update copyright.
10150         (deprecated_store_floating, deprecated_extract_floating): Rename
10151         store_floating and extract_floating.  Update comments.
10152         * doublest.c: Update copyright.
10153         (extract_floating_by_length): Replace extract_floating.
10154         (store_floating_by_length): Replace store_floating.
10155         (deprecated_extract_floating): New function.
10156         (deprecated_store_floating): New function.
10157         (extract_typed_floating): Call extract_floating_by_length.
10158         (store_typed_floating): Call store_floating_by_length.
10159         * x86-64-tdep.c (x86_64_store_return_value): Update.
10160         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10161         (sh64_extract_return_value): Update.
10162         (sh_sh4_register_convert_to_virtual): Update.
10163         (sh_sh64_register_convert_to_virtual): Update.
10164         (sh_sh4_register_convert_to_raw): Update.
10165         (sh_sh64_register_convert_to_raw): Update.
10166         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10167         (rs6000_register_convert_to_raw): Update.
10168         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10169         (ia64_register_convert_to_raw): Update.
10170         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10171         (REGISTER_CONVERT_TO_VIRTUAL): Update.
10172         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10173         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10174         (alpha_register_convert_to_raw): Update.
10175
10176 2003-04-08  Andrew Cagney  <cagney@redhat.com>
10177
10178         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10179         * gdbarch.h, gdbarch.c: Re-generate.
10180         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10181         (d10v_gdbarch_init): Do not set saved_pc_after_call.
10182         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10183         conditionally, use frame_pc_unwind as an alternative.  Add
10184         comments.
10185         * arch-utils.c (init_frame_pc_default): Only call
10186         SAVED_PC_AFTER_CALL when available.
10187
10188 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10189
10190         * infrun.c (stop_soon): Rename from stop_soon_quietly.
10191         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10192         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10193         (start_remote): Ditto.
10194         (handle_inferior_event): Ditto.
10195         (save_inferior_status): Ditto.
10196         (restore_inferior_status): Ditto.
10197         * infcmd.c (attach_command): Ditto.
10198         * fork-child.c (startup_inferior): Ditto.
10199         * inferior.h (stop_soon): Rename from stop_soon_quietly.
10200         * alpha-tdep.c (heuristic_proc_start): Ditto.
10201         * mips-tdep.c (heuristic_proc_start): Ditto.
10202         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10203         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10204         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10205         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10206         * remote-vx.c (vx_create_inferior): Ditto.
10207
10208 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10209
10210         * infrun.c (stop_soon_quietly): Make it an enum, to better
10211         override the default behavior of handle_inferior_event.
10212         (clear_proceed_status): Update uses of stop_soon_quietly to
10213         reflect that it is now an enum.
10214         (start_remote): Ditto.
10215         (handle_inferior_event): Change logic a bit if stop_soon_quietly
10216         is set to handle the new GNU/Linux kernel behavior for
10217         attach/sigstop.  Update uses of stop_soon_quietly.
10218         * inferior.h (enum stop_kind): New enum.
10219         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10220         Reset normal handle_inferior_event behavior, afterwards.
10221         * fork-child.c (startup_inferior): Update.
10222         * alpha-tdep.c (heuristic_proc_start): Update.
10223         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10224         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10225         * solib-osf.c (osf_solib_create_inferior_hook): Update.
10226         * solib-irix.c (irix_solib_create_inferior_hook): Update.
10227         * remote-vx.c (vx_create_inferior): Update.
10228         * mips-tdep.c (heuristic_proc_start): Update.
10229
10230 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
10231
10232         * disasm.c (dump_insns):  Move variables inside loop, or they will
10233         be freed more than once, causing wild memory corruptions.
10234         (gdb_disassembly): Look for the substring "-thread",
10235         instead of "-threads" in the target name, to make sure to find
10236         the 'multi-thread' target.  Also, make sure we do the right thing
10237         with the "core" target.
10238
10239 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
10240
10241         * mips-tdep.c (mips_print_fp_register): New function, created from
10242         do_fp_register_row().  Registers are now (also) printed as hex.
10243         Only one register is printed per row.
10244         (mips_print_register, do_fp_register_row): Print floating point
10245         registers with mips_print_fp_register().
10246
10247 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10248
10249         * valprint.h (inspect_it): Add extern declaration.
10250         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10251         (selectors_info, classes_info): Ditto.
10252         (find_objc_msgcall): Fix indentation.
10253         (objc_printstr): Delete extern declarations.
10254
10255         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10256
10257 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10258
10259         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10260         Update comment.
10261         * frame.c (legacy_saved_regs_this_id): Update.
10262         (legacy_get_prev_frame): Update.
10263         * xstormy16-tdep.c: Update comment.
10264         * sparc-tdep.c (sparc_frame_chain): Update comment.
10265         * blockframe.c (legacy_frame_chain_valid): Update.
10266
10267 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10268
10269         * valprint.c (val_print_type_code_int): Delete #ifdef
10270         PRINT_TYPELESS_INTEGER code.
10271
10272         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10273         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10274         multi-arch definition.
10275         * gdbarch.h: Re-generate.
10276
10277 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10278
10279         Eliminate FRAME_FIND_SAVED_REGS.
10280         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10281         Change FSR parameter to a pointer.
10282         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10283         Assume FSR parameter is a pointer.
10284         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10285         Make fsr a pointer.
10286         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10287         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
10288         saved_regs a pointer.
10289         (hppa_frame_saved_pc): Ditto.
10290         (find_dummy_frame_regs): Make frame_saved_regs a pointer
10291         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
10292         pointer.
10293         (restore_pc_queue): Make fsr a pointer.
10294         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10295         (hppa_frame_chain): Make saved_regs a pointer, call
10296         hppa_frame_init_saved_regs.
10297         * sparc-tdep.c: Include "gdb_assert.h".
10298         (sparc_frame_find_saved_regs): Replace internal_error with
10299         gdb_assert.
10300         * remote-vxsparc.c (vx_read_register): Delete reference to
10301         FRAME_FIND_SAVED_REGS.
10302         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10303         * gdbarch.h: Regenerate.
10304         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10305         (deprecated_get_frame_saved_regs): Delete declaration.
10306         (struct frame_saved_regs): Delete definition.
10307         * frame.c (deprecated_get_frame_saved_regs): Delete function.
10308         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10309         (hppa_frame_find_saved_regs): Delete declaration.
10310         (FRAME_FIND_SAVED_REGS): Delete macro.
10311         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10312         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10313         FRAME_FIND_SAVED_REGS in comment.
10314
10315 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10316
10317         * frame.c (frame_func_unwind, get_frame_func): New functions.
10318         * frame.h (get_frame_func, frame_func_unwind): Declare.
10319         (struct frame_info): Add field "prev_func" for caching the
10320         previous frame's function address.
10321         * arm-tdep.c (arm_frameless_function_invocation): Combine
10322         get_pc_function_start and get_frame_pc into get_frame_func.
10323         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10324         (sh64_nofp_frame_init_saved_regs): Ditto.
10325         * s390-tdep.c (s390_function_start): Ditto.
10326         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10327         (rs6000_frameless_function_invocation): Ditto.
10328         (rs6000_frame_saved_pc): Ditto.
10329         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10330         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10331         * i386-tdep.c (i386_frameless_signal_p): Ditto.
10332         (i386_frame_init_saved_regs): Ditto.
10333         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10334         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10335         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10336         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10337         * blockframe.c (frameless_look_for_prologue): Ditto.
10338
10339 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10340
10341         * frame.c (legacy_get_prev_frame): Link prev to next at the
10342         function start.  Update comments.
10343
10344 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10345
10346         * frame.c (get_frame_id): Update comment.
10347         (legacy_get_prev_frame): Update comment.
10348         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10349         * gdbarch.h: Regenerate.
10350         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10351         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10352
10353 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10354
10355         * stack.c (print_frame_info): Use get_frame_pc.
10356
10357 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10358
10359         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
10360         the frame's type from the unwinder.
10361         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10362         (create_new_frame, legacy_get_prev_frame): When the unwinder's
10363         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10364         (get_frame_base_address): Use get_frame_type.
10365         (get_frame_locals_address, get_frame_args_address): Ditto.
10366         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10367         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10368         (struct frame_info): Add comment explaining why the frame contains
10369         a "type" field.
10370         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10371         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10372         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10373         NORMAL_FRAME.
10374         * frame-unwind.h: Include "frame.h".
10375         (struct frame_unwind): Add "type" field.
10376         * Makefile.in (frame_unwind_h): Add $(frame_h).
10377
10378 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10379
10380         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10381         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10382         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10383         get_frame_base.
10384         (d10v_unwind_dummy_id): Use frame_id_build.
10385         * frame.c (find_frame_sal): Use get_frame_pc.
10386         (create_new_frame): Use deprecated_update_frame_pc_hack and
10387         deprecated_update_frame_base_hack.
10388         (create_sentinel_frame): Add comment about ->pc going away.
10389         (get_prev_frame): Add comment about ->pc going away.
10390         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10391         frame_id_build, deprecated_update_frame_pc_hack and
10392         deprecated_update_frame_base_hack.
10393         (select_frame): Use get_frame_pc.
10394         (legacy_saved_regs_this_id): Use frame_id_build.
10395
10396 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
10397
10398         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10399         signed integer case.
10400         (classify_argument): Handle enumerations and references.
10401
10402 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10403
10404         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10405         ID to NULL.
10406
10407 2003-04-01  Adam Fedor  <fedor@gnu.org>
10408
10409         * gdb/objc-lang.c (selectors_info): Replace calls to
10410         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10411         SYMBOL_NATURAL_NAME.
10412         (classes_info, find_methods): Likewise.
10413
10414 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
10415
10416         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10417         ``mach'' to the value determined by bfd_default_set_arch_mach().
10418
10419 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
10420
10421         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10422         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10423         (mi-cmd-file.o): Update dependencies.
10424
10425 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
10426
10427         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10428         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10429
10430 2003-04-01  Adam Fedor  <fedor@gnu.org>
10431
10432         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10433         * language.h (struct language_defn): Add la_demangle.
10434         (language_demangle): Declare.
10435         * language.c (language_demangle): New function.
10436         (unk_lang_demangle): Likewise.
10437         (unknown_language_defn, auto_language_defn, local_language_defn):
10438         Add ukn_lang_demangle.
10439         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10440         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10441         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10442         (cplus_language_defn): Add cplus_demangle for la_demangle element.
10443         * jv-lang.c (java_demangle): New function
10444         (java_language_defn): Use it for la_demangle element.
10445         * objc-lang.c (objc_demangle): Add options argument
10446         (objc_language_defn): Use objc_demangle for la_demangle element.
10447         * maint.c (maintenance_demangle): Replace switch with
10448         call to language_demangle.
10449         * utils.c (fprintf_symbol_filtered): Likewise.
10450
10451 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10452
10453         * printcmd.c (print_frame_nameless_args): Delete #ifdef
10454         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10455         PRINT_TYPELESS_INTEGER.
10456         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10457         PUSH_RETURN_ADDRESS.
10458
10459 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10460
10461         * Makefile.in (d10v-tdep.o): Update dependencies.
10462         * d10v-tdep.c: Include "frame-base.h".
10463         (d10v_frame_unwind): Make constant.
10464         (d10v_frame_base_address): New function.
10465         (d10v_frame_base): New variable.
10466         (d10v_gdbarch_init): Set frame_base default.
10467         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
10468         comment for base.
10469         (d10v_frame_unwind_cache): Set and use "prev_sp".
10470         (d10v_frame_this_id): Use the previous frame's inner most stack
10471         address and this frame's func address for the frame ID.  Use
10472         frame_id_build.  Don't analyze beyond the current instruction.
10473
10474 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10475
10476         * frame.h (get_frame_locals_address, get_frame_args_address):
10477         Refer to the base address, instead of the address of the first
10478         local or parameter.
10479
10480 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10481
10482         Add frame debug info addresses:
10483         * frame-base.c: New file.
10484         * frame-base.h: New file.
10485         * frame.h (struct frame_base): Add opaque declaration.
10486         (get_frame_base): Update comment.
10487         (get_frame_base_address): Declare.
10488         (get_frame_locals_address): Declare.
10489         (get_frame_args_address): Declare.
10490         (struct frame_info): Add "base" and "base_cache".  Update
10491         comments on the unwinder.
10492         * frame.c: Include "frame-base.h".
10493         (get_frame_locals_address): New function.
10494         (get_frame_base_address): New function.
10495         (get_frame_args_address): New function.
10496         * findvar.c (read_var_value): Use get_frame_locals_address and
10497         get_frame_args_address.
10498         * stack.c (frame_info): Use get_frame_locals_address and
10499         get_frame_args_address.
10500         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10501         moved to "frame-base.c".
10502         * printcmd.c (print_frame_nameless_args): Ditto.
10503         * symtab.h (address_class): Update comments.
10504         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10505         get_frame_base_address.
10506         * dwarf2expr.c (execute_stack_op): Ditto.
10507         * Makefile.in (frame_base_h): Define.
10508         (frame.o): Update dependencies.
10509         (frame-base.o): Add dependencies.
10510         (SFILES): Add frame-base.c.
10511         (COMMON_OBS): Add frame-base.o.
10512
10513 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10514
10515         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10516         CALL_DUMMY_LENGTH): Ditto.
10517         * gdbarch.c: Re-generate.
10518         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10519         (CALL_DUMMY_LENGTH): Delete macro.
10520         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10521         * arm-tdep.c (arm_gdbarch_init): Ditto.
10522         * avr-tdep.c (avr_gdbarch_init): Ditto.
10523         * cris-tdep.c (cris_gdbarch_init): Ditto.
10524         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10525         * frv-tdep.c (frv_gdbarch_init): Ditto.
10526         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10527         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10528         * i386-tdep.c (i386_gdbarch_init): Ditto.
10529         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10530         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10531         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10532         * mips-tdep.c (mips_gdbarch_init): Ditto.
10533         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10534         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10535         * s390-tdep.c (s390_gdbarch_init): Ditto.
10536         * sh-tdep.c (sh_gdbarch_init): Ditto.
10537         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10538         * v850-tdep.c (v850_gdbarch_init): Ditto.
10539         * vax-tdep.c (vax_gdbarch_init): Ditto.
10540         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10541
10542 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
10543
10544         * frame.c (get_prev_frame): Disable call to inside_entry_file().
10545
10546 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10547
10548         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10549         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10550         * gdbarch.h, gdbarch.c: Re-generate.
10551         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10552         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10553         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10554         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10555         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10556         * infcmd.c (run_stack_dummy): Simplify assuming
10557         CALL_DUMMY_BREAKPOINT_OFFSET_P.
10558         * infrun.c (handle_inferior_event): Ditto.
10559         * alpha-tdep.c (alpha_gdbarch_init): Do not set
10560         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10561         * arm-tdep.c (arm_gdbarch_init): Ditto.
10562         * avr-tdep.c (avr_gdbarch_init): Ditto.
10563         * cris-tdep.c (cris_gdbarch_init): Ditto.
10564         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10565         * frv-tdep.c (frv_gdbarch_init): Ditto.
10566         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10567         * i386-tdep.c (i386_gdbarch_init): Ditto.
10568         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10569         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10570         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10571         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10572         * mips-tdep.c (mips_gdbarch_init): Ditto.
10573         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10574         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10575         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10576         * s390-tdep.c (s390_gdbarch_init): Ditto.
10577         * sh-tdep.c (sh_gdbarch_init): Ditto.
10578         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10579         * v850-tdep.c (v850_gdbarch_init): Ditto.
10580         * vax-tdep.c (vax_gdbarch_init): Ditto.
10581         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10582
10583 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
10584
10585         * symfile.c (symfile_relocate_debug_section): Update call to
10586         bfd_simple_get_relocated_section_contents.
10587
10588 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10589
10590         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10591         * gdbarch.h, gdbarch.c: Regenerate.
10592         * inferior.h (FIX_CALL_DUMMY): Delete macro.
10593         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10594         available.
10595         * frame.h (generic_fix_call_dummy): Delete declaration.
10596         * dummy-frame.h: Update comment.
10597         * dummy-frame.c (generic_fix_call_dummy): Delete function.
10598         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10599         fix_call_dummy.
10600         * sh-tdep.c (sh_gdbarch_init): Ditto.
10601         * s390-tdep.c (s390_gdbarch_init): Ditto.
10602         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10603         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10604         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10605         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10606         * i386-tdep.c (i386_gdbarch_init): Ditto.
10607         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10608         * frv-tdep.c (frv_gdbarch_init): Ditto.
10609         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10610         * cris-tdep.c (cris_gdbarch_init): Ditto.
10611         * avr-tdep.c (avr_gdbarch_init): Ditto.
10612         * arm-tdep.c (arm_gdbarch_init): Ditto.
10613
10614 2003-03-31  J. Brobecker  <brobecker@gnat.com>
10615
10616         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10617         (INIT_FRAME_AP): Likewise.
10618         (EXTRA_FRAME_INFO): Likewise.
10619
10620 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10621
10622         * gdbarch.sh: Include "symfile.h".
10623         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10624         * gdbarch.h, gdbarch.c: Re-generate.
10625         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10626         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10627         call_dummy_address, the default is at entry_point_address.
10628         * v850-tdep.c (v850_gdbarch_init): Ditto.
10629         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10630         * sh-tdep.c (sh_gdbarch_init): Ditto.
10631         * s390-tdep.c (s390_gdbarch_init): Ditto.
10632         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10633         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10634         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10635         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10636         * i386-tdep.c (i386_gdbarch_init): Ditto.
10637         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10638         * frv-tdep.c (frv_gdbarch_init): Ditto.
10639         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10640         * cris-tdep.c (cris_gdbarch_init): Ditto.
10641         * arm-tdep.c (arm_gdbarch_init): Ditto.
10642
10643 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10644
10645         * gdbarch.sh (CALL_DUMMY_P): Delete.
10646         * gdbarch.h, gdbarch.c: Re-generate.
10647         * inferior.h (CALL_DUMMY_P): Delete macro.
10648         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10649         * vax-tdep.c (vax_gdbarch_init): Update.
10650         * v850-tdep.c (v850_gdbarch_init): Update.
10651         * sparc-tdep.c (sparc_gdbarch_init): Update.
10652         * sh-tdep.c (sh_gdbarch_init): Update.
10653         * s390-tdep.c (s390_gdbarch_init): Update.
10654         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10655         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10656         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10657         * mips-tdep.c (mips_gdbarch_init): Update.
10658         * mcore-tdep.c (mcore_gdbarch_init): Update.
10659         * m68k-tdep.c (m68k_gdbarch_init): Update.
10660         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10661         * ia64-tdep.c (ia64_gdbarch_init): Update.
10662         * i386-tdep.c (i386_gdbarch_init): Update.
10663         * h8300-tdep.c (h8300_gdbarch_init): Update.
10664         * frv-tdep.c (frv_gdbarch_init): Update.
10665         * d10v-tdep.c (d10v_gdbarch_init): Update.
10666         * cris-tdep.c (cris_gdbarch_init): Update.
10667         * breakpoint.c (deprecated_frame_in_dummy): Update.
10668         * avr-tdep.c (avr_gdbarch_init): Update.
10669         * alpha-tdep.c (alpha_gdbarch_init): Update.
10670         * arm-tdep.c (arm_gdbarch_init): Update.
10671         * dummy-frame.c (dummy_frame_this_id): Update comments.
10672         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10673         * frame.c (legacy_get_prev_frame): Ditto.
10674         * valops.c (call_function_by_hand): Delete function.
10675         (hand_function_call): Rename to call_function_by_hand
10676
10677 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10678
10679         2002-11-10 Klee Dienes <kdienes@apple.com>
10680         * value.h (struct value): Update comment.
10681
10682 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10683
10684         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10685         D10V_FP_REGNUM.
10686         (d10v_gdbarch_init): Do not set fp_regnum.
10687
10688         * frame.c (get_frame_base): Force ID initialization.
10689         (get_prev_frame): Move computation of the frame ID from here ...
10690         (get_frame_id): ... to here.
10691         (legacy_get_prev_frame): Mark the frame ID as valid.
10692         * frame.h (struct frame_info): Add field "id_p".
10693
10694 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
10695
10696         * i386-tdep.c (i386_store_struct_return): Removed.
10697         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10698
10699 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10700
10701         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10702         * gdbarch.h, gdbarch.c: Regenerate.
10703         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10704         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10705         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10706         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10707         * i386-tdep.c (i386_gdbarch_init): Ditto.
10708         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10709         * cris-tdep.c (cris_gdbarch_init): Ditto.
10710         * vax-tdep.c (vax_gdbarch_init): Ditto.
10711         * s390-tdep.c (s390_gdbarch_init): Ditto.
10712         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10713         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10714         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10715         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10716         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10717         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10718         * sparc-tdep.c (sparc_gdbarch_init): Update.
10719         * sh-tdep.c (sh_gdbarch_init): Update.
10720         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10721         * mips-tdep.c (mips_gdbarch_init): Update.
10722         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10723         * ia64-tdep.c (ia64_gdbarch_init): Update.
10724         * frv-tdep.c (frv_gdbarch_init): Update.
10725         * avr-tdep.c (avr_gdbarch_init): Update.
10726         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10727         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
10728         instead of when push_dummy_call is not available.
10729
10730 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10731
10732         * infttrace.c: Include "gdbthread.h".
10733         (parent_attach_all): Fix function signature.
10734         (call_ptrace): Update call.
10735         * Makefile.in (infttrace.o): Update dependencies.
10736
10737 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10738
10739         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10740         PUSH_RETURN_ADDRESS.
10741         * gdbarch.h, gdbarch.c: Regenerate.
10742         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10743         * x86-64-tdep.c (x86_64_init_abi): Update.
10744         * v850-tdep.c (v850_gdbarch_init): Update.
10745         * sparc-tdep.c (sparc_gdbarch_init): Update.
10746         * sh-tdep.c (sh_gdbarch_init): Update.
10747         * s390-tdep.c (s390_gdbarch_init): Update.
10748         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10749         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10750         * mips-tdep.c (mips_gdbarch_init): Update.
10751         * mcore-tdep.c (mcore_gdbarch_init): Update.
10752         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10753         * ia64-tdep.c (ia64_gdbarch_init): Update.
10754         * i386-tdep.c (i386_gdbarch_init): Update.
10755         * h8300-tdep.c (h8300_gdbarch_init): Update.
10756         * frv-tdep.c (frv_gdbarch_init): Update.
10757         * cris-tdep.c (cris_gdbarch_init): Update.
10758         * avr-tdep.c (avr_gdbarch_init): Update.
10759         * arm-tdep.c (arm_gdbarch_init): Update.
10760         * valops.c (hand_function_call): Update.
10761
10762 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10763
10764         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10765         sizeof_call_dummy_words.
10766         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10767         define.
10768         * gdbarch.h: Regenerate.
10769
10770 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10771
10772         * infttrace.h: New file.
10773         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10774         (hpread_get_textlow): Detect an uninitialized dn_bufp.
10775         (hpread_read_doc_function_type): Detect an initialized type1.
10776         (hpread_quick_traverse): Initialize mod_name_string.
10777         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10778         (som_solib_get_solib_by_pc): Declare.
10779         (so_lib_thread_start_addr): Declare.
10780         (no_shared_libraries): Declare.
10781         * somread.c (init_import_symbols): Make static.  Add forward
10782         declaration.
10783         * config/pa/nm-hppah.h: Include "infttrace.h" for
10784         parent_attach_all.
10785         (hppa_insert_hw_watchpoint): Declare.
10786         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10787         * hppah-nat.c: Include "gdb_string.h".
10788         (parent_attach_all): Delete extern declaration, moved to
10789         "infttrace.h".
10790         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10791         int.
10792         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10793         * Makefile.in (infttrace_h): Define.
10794         (hpread.o): Update dependencies.
10795         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10796         * hppa-hpux-tdep.c: Include "gdb_string.h".
10797         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10798         * infrun.c (handle_inferior_event): Always initialize
10799         stepped_after_stopped_by_watchpoint.  Add default and remove
10800         fallthrough in switch statement.
10801         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10802         parameter to int.
10803         (hppa_remove_hw_watchpoint): Ditto.
10804
10805 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10806
10807         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10808         offset.
10809
10810 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
10811
10812         * arm-tdep.c (arm_push_arguments): Delete.
10813         (struct stack_item): New type.
10814         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10815         (arm_store_struct_return): Delte.
10816         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
10817         arm_push_arguments or arm_store_struct_return.
10818
10819 2003-03-28  Andrew Cagney  <cagney@redhat.com>
10820
10821         * Makefile.in (d10v-tdep.o): Update dependencies.
10822         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10823         * d10v-tdep.c: Include "remote.h".
10824         (target_resume_hook): Delete extern declaration.
10825         (target_wait_loop_hook): Ditto.
10826         (tdisassemble_command): Eliminate assignment in "if" conditional.
10827         (d10v_ts2_register_sim_regno): Eliminate call to
10828         legacy_register_sim_regno.
10829         (d10v_ts3_register_sim_regno): Ditto.
10830
10831 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
10832
10833         * thread.c: Reindented.
10834         * lin-lwp.c: Ditto.
10835         * linux-proc.c: Ditto.
10836
10837 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
10838
10839         * MAINTAINERS (write after approval): Add myself.
10840
10841 2003-03-27  Theodore A. Roth  <troth@openavr.org>
10842
10843         * objc-exp.y: Add missing semi-colons.
10844
10845 2003-03-27  Andrew Cagney  <cagney@redhat.com>
10846
10847         * regcache.c (write_sp): Delete function and references.
10848         * inferior.h (write_sp): Delete declaration.
10849         * valops.c (hand_function_call): Replace write_sp with
10850         TARGET_WRITE_SP.
10851         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10852         (sparc_pop_frame): Ditto.
10853
10854 2003-03-27  Andrew Cagney  <cagney@redhat.com>
10855
10856         * NEWS: Mention removal of support for hppa*-*-bsd* and
10857         hppa*-*-osf* natives, and hppa*-*-pro* target.
10858         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10859         * config/pa/xm-pa.h: Obsolete file.
10860         * config/pa/xm-hppab.h: Obsolete file.
10861         * config/pa/nm-hppab.h: Obsolete file.
10862         * config/pa/tm-hppab.h: Obsolete file.
10863         * config/pa/tm-hppao.h: Obsolete file.
10864         * config/pa/nm-hppao.h: Obsolete file.
10865         * config/pa/tm-pro.h: Obsolete file.
10866         * config/pa/hppaosf.mt: Obsolete file.
10867         * config/pa/hppaosf.mh: Obsolete file.
10868         * config/pa/hppapro.mt: Obsolete file.
10869         * config/pa/hppabsd.mt: Obsolete file.
10870         * config/pa/hppabsd.mh: Obsolete file.
10871         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10872         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10873         hppa*-*-osf*.
10874
10875 2003-03-27  Andrew Cagney  <cagney@redhat.com>
10876
10877         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10878         push_arguments.  Don't set push_return_address or write_sp.
10879         (d10v_push_dummy_call): Replace d10v_push_arguments.
10880         (d10v_push_return_address, d10v_write_sp): Delete function,
10881         handled by push_dummy_call.
10882
10883 2003-03-26  Andrew Cagney  <cagney@redhat.com>
10884
10885         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10886         (push_dummy_call): New pure multi-arch replacement with gdbarch,
10887         regcache and dummy_addr parameters.
10888         * gdbarch.h, gdbarch.c: Re-generate.
10889         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10890         available; assume it will handle stack alignment and return
10891         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
10892         legacy_push_arguments.
10893         (legacy_push_arguments): Rename default_push_arguments.
10894         * value.h (legacy_push_arguments): Rename default_push_arguments.
10895         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10896         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10897         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10898         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10899         * config/i386/tm-symmetry.h: Update.
10900         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10901         * x86-64-tdep.c (x86_64_init_abi): Update.
10902         * v850-tdep.c (v850_gdbarch_init): Update.
10903         * sparc-tdep.c (sparc_gdbarch_init): Update.
10904         * sh-tdep.c (sh_gdbarch_init): Update.
10905         * s390-tdep.c (s390_gdbarch_init): Update.
10906         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10907         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10908         * mips-tdep.c (mips_gdbarch_init): Update.
10909         * mcore-tdep.c (mcore_gdbarch_init): Update.
10910         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10911         * ia64-tdep.c (ia64_gdbarch_init): Update.
10912         * i386-tdep.c (i386_gdbarch_init): Update.
10913         * hppa-tdep.c (hppa_gdbarch_init): Update.
10914         * h8300-tdep.c (h8300_gdbarch_init): Update.
10915         * frv-tdep.c (frv_gdbarch_init): Update.
10916         * d10v-tdep.c (d10v_gdbarch_init): Update.
10917         * cris-tdep.c (cris_gdbarch_init): Update.
10918         * avr-tdep.c (avr_gdbarch_init): Update.
10919         * arm-tdep.c (arm_gdbarch_init): Update.
10920         * arm-linux-tdep.c (arm_linux_init_abi): Update.
10921         * alpha-tdep.c (alpha_gdbarch_init): Update.
10922
10923 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10924
10925         * signals/signals.c (do_target_signal_to_host): Correct realtime
10926         signal range test.
10927
10928 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10929
10930         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10931         (struct sal_chain, map_catch_names): Remove.
10932         (catch_exception_command_1): Don't call
10933         handle_gnu_4_16_catch_command.
10934
10935 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10936
10937         From Mark Dettinger <dettinge@de.ibm.com>:
10938         * dwarf2cfi.c (read_2u): Increment pointer by two.
10939
10940 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10941
10942         * signals/signals.c: Fix typos in last change.
10943
10944 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10945
10946         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10947         not already defined.  Use __SIGRTMIN if available.
10948         (target_signal_from_host): Remove SIGRTMIN block.
10949         (do_target_signal_to_host): Remove SIGRTMIN block; check that
10950         the signal is within the realtime range.
10951
10952 2003-03-25  Adam Fedor  <fedor@gnu.org>
10953
10954         * Makefile.in (infrun.o): Add $(language_h)
10955         * infrun.c (handle_inferior_event): Use skip_language_trampoline
10956         for language specific trampolines.
10957         * language.h (struct language_defn): Add skip_trampoline.
10958         (skip_language_trampoline): Declare.
10959         * language.c (unk_lang_trampoline, skip_language_trampoline):
10960         New functions.
10961         (unknown_language_defn, auto_language_defn, local_language_defn):
10962         Add ukn_lang_trampoline.
10963         * ada-lang.c (ada_language_defn): Add NULL for language
10964         specific skip_trampoline.
10965         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10966         scm-lang.c: Likewise.
10967         * objc-lang.c (objc_skip_trampoline): New function.
10968         (objc_language_defn): Add objc_skip_trampoline.
10969
10970 2003-03-25  Andrew Cagney  <cagney@redhat.com>
10971
10972         * frame.c (get_prev_frame): Delay validating a frame's ID -
10973         non-NULL, didn't go backwards - until an attempt to unwind it to
10974         the previous frame.
10975
10976 2003-03-25  Andrew Cagney  <cagney@redhat.com>
10977
10978         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10979         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
10980         * gdbarch.h, gdbarch.c: Re-generate.
10981         * config/sparc/tm-sparc.h
10982         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10983         * sparc-tdep.c (sparc_gdbarch_init): Set
10984         deprecated_extra_stack_alignment_needed.
10985         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10986         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10987         extra_stack_alignment_needed.
10988         * v850-tdep.c (v850_gdbarch_init): Ditto.
10989         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10990         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10991         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10992         * cris-tdep.c (cris_gdbarch_init): Ditto.
10993         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10994         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10995
10996 2003-03-25  Andrew Cagney  <cagney@redhat.com>
10997
10998         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10999         STORE_STRUCT_RETURN.
11000         * gdbarch.h, gdbarch.c: Regenerate.
11001         * d10v-tdep.c (d10v_store_struct_return): Delete function.
11002         (d10v_push_arguments): Set the struct return register.
11003         (d10v_gdbarch_init): Update.
11004         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11005         * x86-64-tdep.c (x86_64_init_abi): Update.
11006         * vax-tdep.c (vax_gdbarch_init): Update.
11007         * v850-tdep.c (v850_gdbarch_init): Update.
11008         * sparc-tdep.c (sparc_gdbarch_init): Update.
11009         * sh-tdep.c (sh_gdbarch_init): Update.
11010         * s390-tdep.c (s390_gdbarch_init): Update.
11011         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11012         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11013         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11014         * mips-tdep.c (mips_gdbarch_init): Update.
11015         * mcore-tdep.c (mcore_gdbarch_init): Update.
11016         * m68k-tdep.c (m68k_gdbarch_init): Update.
11017         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11018         * ia64-tdep.c (ia64_gdbarch_init): Update.
11019         * i386-tdep.c (i386_gdbarch_init): Update.
11020         * hppa-tdep.c (hppa_gdbarch_init): Update.
11021         * h8300-tdep.c (h8300_gdbarch_init): Update.
11022         * frv-tdep.c (frv_gdbarch_init): Update.
11023         * cris-tdep.c (cris_gdbarch_init): Update.
11024         * avr-tdep.c (avr_gdbarch_init): Update.
11025         * arm-tdep.c (arm_gdbarch_init): Update.
11026         * alpha-tdep.c (alpha_gdbarch_init): Update.
11027
11028 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11029
11030         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11031         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11032         CALL_DUMMY_STACK_ADJUST with a predicate variable.
11033         * gdbarch.h, gdbarch.c: Regenerate.
11034         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11035         call_dummy_stack_adjust_p.
11036         * vax-tdep.c (vax_gdbarch_init): Ditto.
11037         * v850-tdep.c (v850_gdbarch_init): Ditto.
11038         * sh-tdep.c (sh_gdbarch_init): Ditto.
11039         * s390-tdep.c (s390_gdbarch_init): Ditto.
11040         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11041         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11042         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11043         * mips-tdep.c (mips_gdbarch_init): Ditto.
11044         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11045         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11046         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11047         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11048         * i386-tdep.c (i386_gdbarch_init): Ditto.
11049         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11050         * frv-tdep.c (frv_gdbarch_init): Ditto.
11051         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11052         * cris-tdep.c (cris_gdbarch_init): Ditto.
11053         * avr-tdep.c (avr_gdbarch_init): Ditto.
11054         * arm-tdep.c (arm_gdbarch_init): Ditto.
11055         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11056         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11057         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11058         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11059         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
11060         call_dummy_stack_adjust_p.
11061         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11062         (CALL_DUMMY_STACK_ADJUST): Delete macro.
11063         * sparc-tdep.c (sparc32_push_arguments): Update.
11064         * valops.c (hand_function_call): Update.
11065
11066 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
11067
11068         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11069         set_gdbarch_char_signed.
11070
11071 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11072
11073         PR cli/548
11074         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11075
11076 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11077
11078         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11079         (_initialize_arm_tdep): Don't set tm_print_insn.
11080
11081 2003-03-24  Adam Fedor  <fedor@gnu.org>
11082
11083         * Makefile.in (YYOBJ): Add objc-exp.tab.o
11084         * objc-lang.h: Add multiple inclusion protection.
11085         (start_msglist, add_msglist, end_msglist): Additional declarations.
11086
11087 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
11088
11089         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11090         value was renamed to ARM_FLOAT_SOFT_FPA.
11091
11092 2003-03-23  Andrew Cagney  <cagney@redhat.com>
11093
11094         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11095         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11096         * gdbarch.h, gdbarch.c: Regenerate.
11097         * valops.c (hand_function_call): Update.
11098         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11099         * frame.c (legacy_saved_regs_this_id): Update.
11100         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11101         * dummy-frame.h: Update.
11102         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11103         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11104         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11105         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11106         * config/m68k/tm-sun3.h: Update.
11107         * blockframe.c (inside_main_func, frame_chain_valid): Update.
11108         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11109         * x86-64-tdep.c (x86_64_init_abi): Update.
11110         * vax-tdep.c (vax_gdbarch_init): Update.
11111         * v850-tdep.c (v850_gdbarch_init): Update.
11112         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11113         * sh-tdep.c (sh_gdbarch_init): Update.
11114         * s390-tdep.c (s390_gdbarch_init): Update.
11115         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11116         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11117         (frame_get_saved_regs): Update.
11118         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11119         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11120         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11121         * mips-tdep.c (mips_gdbarch_init): Update.
11122         * mcore-tdep.c (mcore_gdbarch_init): Update.
11123         * m68k-tdep.c (m68k_gdbarch_init): Update.
11124         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11125         * ia64-tdep.c (ia64_gdbarch_init): Update.
11126         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11127         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11128         (i386_interix_back_one_frame): Update.
11129         * hppa-tdep.c (hppa_gdbarch_init): Update.
11130         (hppa_init_extra_frame_info): Update.
11131         * h8300-tdep.c (h8300_gdbarch_init): Update.
11132         * frv-tdep.c (frv_gdbarch_init): Update.
11133         * cris-tdep.c (cris_gdbarch_init): Update.
11134         * avr-tdep.c (avr_gdbarch_init): Update.
11135         * arm-tdep.c (arm_gdbarch_init): Update.
11136         * alpha-tdep.c (alpha_gdbarch_init): Update.
11137
11138 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11139
11140         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11141         (arm_get_fp_model): Declare.
11142         * arm-tdep.c (fp_model_strings): New string array.
11143         (arm_fp_model, current_fp_model): New variables.
11144         (arm_get_fp_model): New function.
11145         (arm_set_fp): New function.
11146         (set_fp_model_sfunc): New function.
11147         (show_fp_model): New function.
11148         (_initialize_arm_tdep): Add new command to set/show the FPU.
11149         (arm_extract_return_value): Use arm_get_fp_model.
11150         (arm_store_return_value): Likewise.
11151         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
11152         to initialize the floating-point data types.
11153         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11154         model is FPA.
11155
11156 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11157
11158         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
11159         the current setting of each value.
11160         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11161         new_set and new_show.  Use add_setshow_cmd_full and
11162         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
11163         commands and add new version as subcommands of "set/show arm".
11164
11165 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11166
11167         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11168         (set_arm_command, show_arm_command): New functions.
11169         (_initialize_arm_tdep): Add them.
11170         (num_disassembly_options): Renamed from num_flavor_options.
11171         (valid_disassembly_styles): Renamed from valid_flavors.
11172         (disassembly_style): Renamed from disassembly_flavor.
11173         (set_disassembly_style_sfunc): Renamed from
11174         set_disassembly_flavor_sfunc.
11175         (set_disassembly_style): Renamed from set_disassembly_flavor.
11176         (arm_othernames): Updated.
11177         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11178         command.  Add "set/show arm disassembly" commands.  Deprecate
11179         "othernames" command.
11180
11181 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11182
11183         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11184         (arm-tdep.o): Depend on elf_arm_h.
11185
11186 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11187
11188         * Makefile.in (coff_internal_h): Define.
11189         (arm-tdep.o): Update dependencies.
11190
11191 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11192
11193         * arm-tdep.c (prologue_cache): Delete.
11194         (check_prologue_cache, save_prologue_cache): Delete.
11195         (arm_scan_prologue): Don't check or update the prologue_cache.
11196         (arm_gdb_arch_init): Don't initialize it.
11197         (_initialize_arm_tdep): Likewise.
11198
11199 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
11200
11201         * MAINTAINERS (tui): Maintainer of tui code.
11202
11203 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
11204
11205         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11206         (i386-cygwin-tdep.o): Add dependencies.
11207         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11208         * i386-cygwin-tdep.c: New file.
11209         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11210         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11211
11212 2003-03-20  Andrew Cagney  <cagney@redhat.com>
11213
11214         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11215         (handle_inferior_event): Remove code calling
11216         DYNAMIC_TRAMPOLINE_NEXTPC.
11217
11218         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11219         already has a full path.
11220
11221         * main.c (gdb_main): Return 1.
11222         (captured_main): Call error to report an invalid interpreter.
11223
11224         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11225         * alpha-osf1-tdep.c: Include "gdb_string.h".
11226
11227 2003-03-19  J. Brobecker  <brobecker@gnat.com>
11228
11229         Continuing work to convert the hppa targets to multiarch partial.
11230
11231         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11232         method, now that hppa_push_dummy_frame has a conformant prototype.
11233         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11234         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11235         for the switch to multiarch partial.
11236
11237 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
11238
11239         * mdebugread.c (parse_symbol): For stEnd, we're done counting
11240         when iss is issNull.
11241
11242 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11243
11244         * mips-tdep.c (mips_register_name): Fix fencepost error involving
11245         NUM_REGS bounds check.
11246
11247 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11248
11249         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11250         * mips-tdep.c (gdb_assert.h): Include.
11251         (mips_generic_reg_names, mips_processor_reg_names): Make static.
11252         (mips_register_name): Handle integer registers explicitly.  Add
11253         bounds checking.
11254         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11255         (mips_lsi33k_reg_names): Don't list integer registers; they're
11256         handled by mips_register_name() now.
11257         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11258         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11259         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11260         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11261         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11262
11263 2003-03-18  Andrew Cagney  <cagney@redhat.com>
11264
11265         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11266         a void pointer.
11267         * gdbtypes.h (print_scalar_formatted): Update declaration.
11268         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11269
11270 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11271
11272         * infrun.c (observer.h): Add #include.
11273         (normal_stop): Add call to observer_notify_normal_stop.
11274         * Makefile.in (infrun.o): Add dependency on observer.h.
11275
11276 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11277
11278         Continuing work to convert the hppa targets to multiarch partial.
11279         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11280         parameter. Reformat comment.
11281         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11282         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11283         to match new profile.
11284
11285 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11286
11287         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11288         appear to be working in any case.
11289
11290 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11291
11292         * observer.c (observer_test_first_observer): New static variable.
11293         (observer_test_second_observer): Likewise.
11294         (observer_test_third_observer): Likewise.
11295         (observer_test_first_notification_function): New static function.
11296         (observer_test_second_notification_function): Likewise.
11297         (observer_test_third_notification_function): Likewise.
11298
11299 2003-03-17  J. Brobecker  <brobecker@gnat.com>
11300
11301         * hppa-tdep.c (gdb_assert.h): Add missing #include.
11302         * somsolib.c (gdb_assert.h): Likewise.
11303         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11304         (somsolib.o): Likewise.
11305
11306 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11307
11308         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11309         BFD.  Simplify setting of di.endian.
11310
11311 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11312
11313         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11314         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11315
11316         From Elena Zannoni  <ezannoni@redhat.com>
11317         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11318         vector and floating-point parameters.
11319         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11320         convention.
11321         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11322
11323 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
11324
11325         * MAINTAINERS: Remove my name from several maintainership roles.
11326
11327 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11328
11329         Fix frame off-by-one bug.
11330         * frame-unwind.h (frame_this_id_ftype): Replace
11331         frame_unwind_id_ftype.
11332         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11333         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
11334         with "prev_register".
11335         * frame-unwind.c (frame_unwind_find_by_pc): Return
11336         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
11337         comment.
11338         * dummy-frame.c (cached_find_dummy_frame): Delete function.
11339         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11340         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11341         (dummy_frame_unwind): Update.
11342         * sentinel-frame.c (sentinel_frame_prev_register): Replace
11343         sentinel_frame_register_unwind.
11344         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11345         (sentinel_frame_unwinder): Update.
11346         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11347         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11348         * frame.c (create_sentinel_frame): Update. Initialize
11349         "prologue_cache" instead of "unwind_cache".
11350         (frame_register_unwind): Call this frame's prev_register with the
11351         next frame and this frame's prologue cache.
11352         (get_prev_frame): Simplify.  Always call prev frame's this_id with
11353         this frame and prev frame's prologue cache.  Document that this
11354         call is shifted one to the left when compared to the
11355         frame_register_unwind call.
11356         (legacy_saved_regs_prev_register): Replace
11357         frame_saved_regs_register_unwind.
11358         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11359         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11360         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11361         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11362         (d10v_frame_unwind): Update.
11363         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11364         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11365         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11366         "saved_regs" with "this_saved_regs".
11367
11368 2003-03-16  Andrew Cagney  <cagney@redhat.com>
11369
11370         * frame.c (frame_pop): Don't call target_store_registers.  Fix
11371         problem reported by Mark Kettenis.
11372
11373 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
11374
11375         * i386-tdep.c (i386_register_type): Renamed from
11376         i386_register_virtual_type.  Adjust function signature.
11377         (i386_gdbarch_init): Set register_type instead of
11378         deprecated_max_register_raw_size,
11379         deprecated_max_register_virtual_size and register_virtual_type.
11380
11381 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11382
11383         * frame.c (get_prev_frame): When a legacy frame, always call
11384         legacy_get_prev_frame.  Simplify unwind code using assumption that
11385         the unwinder is new.
11386         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11387         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11388         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11389
11390 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11391
11392         * frame.c (get_saved_register): Delete function.
11393         * frame.h (get_saved_register): Delete declaration.
11394         * xstormy16-tdep.c: Update comment.
11395         * regcache.h: Update comments.
11396         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11397         get_saved_register and extract_address, use
11398         frame_read_unsigned_register.
11399         (sparc_frame_saved_pc): Ditto.
11400         (sparc_get_saved_register): Instead of get_saved_register, use
11401         frame_register.
11402         (sparc_pop_frame): Ditto.
11403         * findvar.c: Update comments.
11404         (value_of_register): Call frame_register instead of
11405         get_saved_register.
11406         (value_from_register): Ditto.
11407         * config/sparc/tm-sparc.h: Update comment.
11408         * breakpoint.c: Update comment.
11409
11410 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11411
11412         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11413         GET_SAVED_REGISTER.
11414         * gdbarch.h, gdbarch.c: Re-generate.
11415         * frame.h: Update comments.
11416         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11417         * x86-64-tdep.c (x86_64_init_abi): Update.
11418         * sparc-tdep.c (sparc_gdbarch_init): Update.
11419         * sh-tdep.c (sh_gdbarch_init): Update.
11420         * mips-tdep.c (mips_gdbarch_init): Update.
11421         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11422         * cris-tdep.c (cris_gdbarch_init): Update.
11423         * ia64-tdep.c (ia64_gdbarch_init): Update.
11424         * frame.c (frame_register): Update.
11425         (get_saved_register): Update.
11426         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11427
11428 2003-03-13  Andrew Cagney  <cagney@redhat.com>
11429
11430         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11431         * gdbarch.h, gdbarch.c: Regenerate.
11432         * valops.c (hand_function_call): Update comment.
11433         * stack.c (return_command): Update comment.
11434         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11435         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11436         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11437         * x86-64-tdep.c (x86_64_init_abi): Update.
11438         * vax-tdep.c (vax_gdbarch_init): Update.
11439         * v850-tdep.c (v850_gdbarch_init): Update.
11440         * sparc-tdep.c (sparc_gdbarch_init): Update.
11441         * sh-tdep.c (sh_gdbarch_init): Update.
11442         * s390-tdep.c (s390_gdbarch_init): Update.
11443         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11444         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11445         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11446         * mips-tdep.c (mips_gdbarch_init): Update.
11447         * mcore-tdep.c (mcore_gdbarch_init): Update.
11448         * m68k-tdep.c (m68k_gdbarch_init): Update.
11449         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11450         * ia64-tdep.c (ia64_gdbarch_init): Update.
11451         * i386-tdep.c (i386_gdbarch_init): Update.
11452         * hppa-tdep.c (hppa_gdbarch_init): Update.
11453         * h8300-tdep.c (h8300_gdbarch_init): Update.
11454         * frv-tdep.c (frv_gdbarch_init): Update.
11455         * cris-tdep.c (cris_gdbarch_init): Update.
11456         * avr-tdep.c (avr_gdbarch_init): Update.
11457         * arm-tdep.c (arm_gdbarch_init): Update.
11458         * alpha-tdep.c (alpha_gdbarch_init): Update.
11459
11460 2003-03-13  Andrew Cagney  <cagney@redhat.com>
11461
11462         * frame.c (legacy_frame_p): New function.
11463         (get_prev_frame): Use legacy_frame_p.
11464         * frame.h (legacy_frame_p): Declare.
11465
11466 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11467
11468         * MAINTAINERS (write after approval): Alphabetically
11469         listing corrected.
11470
11471 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11472
11473         * MAINTAINERS (write after approval): Add myself.
11474
11475 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11476
11477         * frame.c (get_prev_frame): Rename the frame parameter to
11478         "this_frame".
11479         (get_next_frame, legacy_get_prev_frame): Ditto.
11480
11481 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11482
11483         * frame.c (get_current_frame): Check target_has_registers before
11484         checking target_has_stack.
11485         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11486         instead of deprecated_selected_frame.
11487         * findvar.c (value_of_register): Pass "frame", not
11488         deprecated_selected_frame, to value_of_builtin_reg.
11489
11490 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11491
11492         * regcache.c (regcache_cooked_write_signed): New function.
11493         (regcache_cooked_write_unsigned): New function.
11494         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11495         (regcache_cooked_read_signed): Fix regnum in range assertion.
11496         * regcache.h (regcache_cooked_write_signed): Declare.
11497         (regcache_cooked_write_unsigned): Declare.
11498
11499 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11500
11501         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11502         * gdbarch.h, gdbarch.c: Re-generate.
11503         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11504         * x86-64-tdep.h: Update.
11505         * x86-64-tdep.c (x86_64_init_abi): Update.
11506         * v850-tdep.c (v850_gdbarch_init): Update.
11507         * sparc-tdep.c (sparc_gdbarch_init): Update.
11508         * sh-tdep.c (sh_gdbarch_init): Update.
11509         * s390-tdep.c (s390_gdbarch_init): Update.
11510         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11511         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11512         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11513         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11514         * mips-tdep.c (mips_gdbarch_init): Update.
11515         * mcore-tdep.c (mcore_gdbarch_init): Update.
11516         * m68k-tdep.c (m68k_gdbarch_init): Update.
11517         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11518         * ia64-tdep.c (ia64_gdbarch_init): Update.
11519         * i386-tdep.c (i386_gdbarch_init): Update.
11520         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11521         * hppa-tdep.c (hppa_gdbarch_init): Update.
11522         * h8300-tdep.c (h8300_gdbarch_init): Update.
11523         * frv-tdep.c (frv_gdbarch_init): Update.
11524         * cris-tdep.c (cris_gdbarch_init): Update.
11525         * avr-tdep.c (avr_gdbarch_init): Update.
11526         * arm-tdep.c (arm_gdbarch_init): Update.
11527         * alpha-tdep.c (alpha_gdbarch_init): Update.
11528         * sh-tdep.c (sh_init_extra_frame_info): Update.
11529         (sh64_init_extra_frame_info): Update.
11530         * ns32knbsd-nat.c (frame_num_args): Update.
11531         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11532         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11533         (xstormy16_frame_chain_valid): Update.
11534         * vax-tdep.c (vax_saved_pc_after_call): Update.
11535         * v850-tdep.c (v850_frame_chain): Update.
11536         (v850_pop_frame): Update.
11537         (v850_init_extra_frame_info): Update.
11538         * sparc-tdep.c (setup_arbitrary_frame): Update.
11539         * ns32k-tdep.c (umax_frame_num_args): Update.
11540         * s390-tdep.c (s390_pop_frame_regular): Update.
11541         * mn10300-tdep.c (mn10300_frame_chain): Update.
11542         (mn10300_pop_frame_regular): Update.
11543         (mn10300_init_extra_frame_info): Update.
11544         * mips-tdep.c (mips_init_frame_pc_first): Update.
11545         (mips_frame_chain): Update.
11546         (mips_pop_frame): Update.
11547         * mcore-tdep.c (mcore_frame_chain): Update.
11548         (mcore_pop_frame): Update.
11549         (mcore_init_extra_frame_info): Update.
11550         * arch-utils.c (init_frame_pc_default): Update.
11551         * m68k-tdep.c (isi_frame_num_args): Update.
11552         (delta68_frame_num_args): Update.
11553         (news_frame_num_args): Update.
11554         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11555         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11556         (alpha_frame_chain): Update.
11557         (alpha_pop_frame): Update.
11558         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11559         (hppa_init_extra_frame_info): Update.
11560         (hppa_frame_chain): Update.
11561         (hppa_frame_chain_valid): Update.
11562         * cris-tdep.c (cris_init_extra_frame_info): Update.
11563         * avr-tdep.c (avr_init_extra_frame_info): Update.
11564         * arm-tdep.c (arm_frame_chain_valid): Update.
11565         (arm_init_extra_frame_info): Update.
11566         (arm_pop_frame): Update.
11567         * frame.c (frame_pc_unwind): Update.
11568         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11569         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11570         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11571         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11572         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11573         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11574
11575 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11576
11577         Eliminate the need for POP_FRAME.
11578         * frame.c (do_frame_unwind_register): New function.
11579         (frame_pop): When no POP_FRAME, pop the frame using register
11580         unwind and a scratch regcache.
11581         (frame_saved_regs_pop): Delete function.
11582         (trad_frame_unwinder): Update.
11583         * d10v-tdep.c (d10v_frame_pop): Delete function.
11584         (d10v_frame_unwind): Update.
11585         * sentinel-frame.c (sentinel_frame_pop): Delete function.
11586         (sentinel_frame_unwinder): Update.
11587         * dummy-frame.c (dummy_frame_pop): Delete function.
11588         (dummy_frame_unwind): Update.
11589         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11590         (struct frame_unwind): Update.
11591
11592 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
11593
11594         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11595         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11596         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11597         Do range checks on register number obtained from debugging info.
11598         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11599         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
11600         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11601         mapping function.
11602         (do_fp_register_row): Fix typo which caused double type to be
11603         used when attempting to unpack a float.
11604
11605 2003-03-11  J. Brobecker  <brobecker@gnat.com>
11606
11607         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11608
11609 2003-03-11  Andrew Cagney  <cagney@redhat.com>
11610
11611         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11612         frame.  Problem found by Corinna Vinschen.
11613
11614 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
11615
11616         * doublest.c (floatformat_from_length): Accept also
11617         the real size of 'long double' type.
11618
11619 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
11620
11621         From Klee Dienes <kdienes@apple.com>:
11622         * breakpoint.c (bpstat_copy): Copy the command lines as well
11623         as the old value, to match what is freed in bpstat_clear.
11624
11625 2003-03-10  David Carlton  <carlton@math.stanford.edu>
11626
11627         * minsyms.c (add_minsym_to_hash_table): Replace
11628         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11629         (compare_minimal_symbols, compact_minimal_symbols)
11630         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11631         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11632         of DEPRECATED_SYMBOL_MATCHES_NAME.
11633         (lookup_minimal_symbol_solib_trampoline): Ditto.
11634
11635 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11636
11637         * regcache.h (regcache_cooked_read_ftype): Define.
11638         (regcache_save, regcache_restore): Add a cooked_read parameter.
11639         * regcache.c (regcache_save, regcache_restore): Update.
11640         (do_cooked_read): New function.
11641         (regcache_cpy): Pass do_cooked_read to regcache_save and
11642         regcache_restore.
11643
11644 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11645
11646         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11647         * gdbarch.h, gdbarch.c: Re-generate.
11648         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11649         * x86-64-tdep.h: Update.
11650         * x86-64-tdep.c (x86_64_init_abi): Update.
11651         * v850-tdep.c (v850_gdbarch_init): Update.
11652         * sparc-tdep.c (sparc_gdbarch_init): Update.
11653         * sh-tdep.c (sh_gdbarch_init): Update.
11654         * s390-tdep.c (s390_gdbarch_init): Update.
11655         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11656         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11657         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11658         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11659         * mips-tdep.c (mips_gdbarch_init): Update.
11660         * mcore-tdep.c (mcore_gdbarch_init): Update.
11661         * m68k-tdep.c (m68k_gdbarch_init): Update.
11662         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11663         * ia64-tdep.c (ia64_gdbarch_init): Update.
11664         * i386-tdep.c (i386_gdbarch_init): Update.
11665         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11666         * hppa-tdep.c (hppa_gdbarch_init): Update.
11667         * h8300-tdep.c (h8300_gdbarch_init): Update.
11668         * frv-tdep.c (frv_gdbarch_init): Update.
11669         * cris-tdep.c (cris_gdbarch_init): Update.
11670         * avr-tdep.c (avr_gdbarch_init): Update.
11671         * arm-tdep.c (arm_gdbarch_init): Update.
11672         * alpha-tdep.c (alpha_gdbarch_init): Update.
11673         * sh-tdep.c (sh_init_extra_frame_info): Update.
11674         (sh64_init_extra_frame_info): Update.
11675         * ns32knbsd-nat.c (frame_num_args): Update.
11676         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11677         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11678         (xstormy16_frame_chain_valid): Update.
11679         * vax-tdep.c (vax_saved_pc_after_call): Update.
11680         * v850-tdep.c (v850_frame_chain): Update.
11681         (v850_pop_frame): Update.
11682         (v850_init_extra_frame_info): Update.
11683         * sparc-tdep.c (setup_arbitrary_frame): Update.
11684         * ns32k-tdep.c (umax_frame_num_args): Update.
11685         * s390-tdep.c (s390_pop_frame_regular): Update.
11686         * mn10300-tdep.c (mn10300_frame_chain): Update.
11687         (mn10300_pop_frame_regular): Update.
11688         (mn10300_init_extra_frame_info): Update.
11689         * mips-tdep.c (mips_init_frame_pc_first): Update.
11690         (mips_frame_chain): Update.
11691         (mips_pop_frame): Update.
11692         * mcore-tdep.c (mcore_frame_chain): Update.
11693         (mcore_pop_frame): Update.
11694         (mcore_init_extra_frame_info): Update.
11695         * arch-utils.c (init_frame_pc_default): Update.
11696         * m68k-tdep.c (isi_frame_num_args): Update.
11697         (delta68_frame_num_args): Update.
11698         (news_frame_num_args): Update.
11699         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11700         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11701         (alpha_frame_chain): Update.
11702         (alpha_pop_frame): Update.
11703         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11704         (hppa_init_extra_frame_info): Update.
11705         (hppa_frame_chain): Update.
11706         (hppa_frame_chain_valid): Update.
11707         * cris-tdep.c (cris_init_extra_frame_info): Update.
11708         * avr-tdep.c (avr_init_extra_frame_info): Update.
11709         * arm-tdep.c (arm_frame_chain_valid): Update.
11710         (arm_init_extra_frame_info): Update.
11711         (arm_pop_frame): Update.
11712         * frame.c (frame_pc_unwind): Update.
11713         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11714         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11715         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11716         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11717         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11718         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11719
11720 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11721
11722         * gdbarch.sh (gdbarch_unwind_pc): New method.
11723         * gdbarch.h, gdbarch.c: Regenerate.
11724         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
11725         but use read_pc and FRAME_SAVED_PC as fall backs.
11726         (frame_saved_regs_pc_unwind): Delete function.
11727         (trad_frame_unwinder): Update.
11728         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11729         (struct frame_unwind): Update.
11730         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11731         (dummy_frame_unwind): Update.
11732         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11733         (sentinel_frame_unwinder): Update.
11734         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11735         (d10v_frame_unwind): Update.
11736         (d10v_unwind_pc): New function.
11737         (d10v_gdbarch_init): Set unwind_pc.
11738
11739 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11740
11741         * gdbarch.h: Re-generate.
11742
11743         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11744         PC.
11745         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11746         the PC register.
11747
11748 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
11749
11750         * gdbarch.sh (save_dummy_frame_tos): Add comment.
11751
11752 2003-03-08  Andrew Cagney  <cagney@redhat.com>
11753
11754         * cli-out.c: Update copyright.
11755         (cli_out_data): Define typedef.  Use instead of ui_out_data.
11756
11757 2003-03-08  Andrew Cagney  <cagney@redhat.com>
11758
11759         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11760         the result.
11761
11762 2003-03-07  Andrew Cagney  <cagney@redhat.com>
11763
11764         * gdbarch.sh: Don't generate two macro definitions when an
11765         undefined macro taking no arguments.
11766         * gdbarch.h: Regenerate.
11767
11768 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
11769
11770         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11771         (x86_64_unwind_dummy_id): New functions.
11772         (x86_64_init_abi): Register these two new functions.
11773
11774 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
11775
11776         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11777         (x86_64_skip_prologue): Move prologue detection to
11778         separate function.
11779         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11780
11781 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11782
11783         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11784         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11785         * frame.c (get_prev_frame): Restructure the frame ID unwind code
11786         to use unwind_dummy_id when a dummy frame.
11787         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11788         predicate.
11789         * gdbarch.h, gdbarch.c: Regneerate.
11790
11791 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11792
11793         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11794         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11795         Do not use d10v_read_sp or d10v_read_fp when obtaining register
11796         values.
11797
11798 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11799
11800         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11801         (struct d10v_unwind_cache): Delete field "frameless".  Replace
11802         "next_addr" with "sp_offset".  Add "r11_offset".
11803         (d10v_frame_unwind_cache): Update.
11804         (prologue_find_regs): Update.  When "mv r11, sp", save the
11805         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
11806         RN was saved in r11_offset.
11807
11808 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11809
11810         * frame.c (deprecated_update_frame_pc_hack): Also update the the
11811         cached PC value in the next frame.
11812
11813 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11814
11815         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11816         "id_unwind_cache" with "id".
11817         (frame_id_unwind): Delete declaration.
11818         * frame.c (frame_id_unwind): Delete function.
11819         (get_prev_frame): Call the frame id unwind method directly.  Store
11820         the returned next frame's ID value in NEXT_FRAME.  Note that there
11821         is a problem with the wrong unwind ID being called with the wrong
11822         unwind cache.
11823
11824 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
11825
11826         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11827
11828 2003-03-05  James Ingham <jingham@apple.com>
11829             Daniel Jacobowitz  <drow@mvista.com>
11830
11831         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11832         (auto_cp_abi): New variable.
11833         (current_cp_abi, num_cp_abis): Make static.
11834         (CP_ABI_MAX): Define.
11835         (cp_abis): Turn into an array.
11836         (value_virtual_fn_field): Fix formatting.
11837         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
11838         takes a pointer.
11839         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11840         (list_cp_abis, _initialize_cp_abi): New functions.
11841         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
11842         declarations for cp_abis, num_cp_abis, current_cp_abi, and
11843         switch_to_cp_abi.  Update prototype for register_cp_abi.
11844         * Makefile.in (cp-abi.o): Update dependencies.
11845         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11846         instead of switch_to_cp_abi.
11847         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
11848         register_cp_abi.
11849         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11850         register_cp_abi.
11851         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11852
11853 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
11854
11855         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11856         * dwarf2loc.c: Include "regcache.h".
11857         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
11858         register_size.
11859         * Makefile.in (dwarf2loc.o): Update dependencies.
11860
11861 2003-03-04  Theodore A. Roth  <troth@openavr.org>
11862
11863         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11864         number of io registers reported by remote target is not a multiple of
11865         step.
11866
11867 2003-03-04  David Carlton  <carlton@math.stanford.edu>
11868
11869         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11870         (lookup_symbol_aux_psymtabs): Update call to
11871         lookup_partial_symbol.
11872         (lookup_transparent_type, find_main_psymtab)
11873         (make_symbol_overload_list): Ditto.
11874
11875 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
11876
11877         * MAINTAINERS (Write after approval): Update my email address.
11878
11879 2003-03-03  Andrew Cagney  <cagney@redhat.com>
11880
11881         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11882         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11883         predicate.  Replace MAX_REGISTER_RAW_SIZE.
11884         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11885         MAX_REGISTER_VIRTUAL_SIZE.
11886         * regcache.c (legacy_max_register_raw_size): New function.
11887         (legacy_max_register_virtual_size): New function.
11888         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11889         (MAX_REGISTER_RAW_SIZE): Define.
11890         (legacy_max_register_raw_size): Declare.
11891         (legacy_max_register_virtual_size): Declare.
11892         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11893         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11894         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11895         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11896         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11897         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11898         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11899         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11900         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11901         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11902         * vax-tdep.c (vax_gdbarch_init): Update.
11903         * v850-tdep.c (v850_gdbarch_init): Update.
11904         * sparc-tdep.c (sparc_gdbarch_init): Update.
11905         * sh-tdep.c (sh_gdbarch_init): Update.
11906         * s390-tdep.c (s390_gdbarch_init): Update.
11907         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11908         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11909         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11910         * mips-tdep.c (mips_gdbarch_init): Update.
11911         * mcore-tdep.c (mcore_gdbarch_init): Update.
11912         * m68k-tdep.c (m68k_gdbarch_init): Update.
11913         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11914         * ia64-tdep.c (ia64_gdbarch_init): Update.
11915         * i386-tdep.c (i386_gdbarch_init): Update.
11916         * hppa-tdep.c (hppa_gdbarch_init): Update.
11917         * h8300-tdep.c (h8300_gdbarch_init): Update.
11918         * frv-tdep.c (frv_gdbarch_init): Update.
11919         * cris-tdep.c (cris_gdbarch_init): Update.
11920         * avr-tdep.c (avr_gdbarch_init): Update.
11921         * arm-tdep.c (arm_gdbarch_init): Update.
11922         * alpha-tdep.c (alpha_gdbarch_init): Update.
11923         * d10v-tdep.c (d10v_gdbarch_init): Do not set
11924         max_register_raw_size or max_register_virtual_size.
11925
11926 2003-03-03  David Carlton  <carlton@math.stanford.edu>
11927
11928         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11929         SYMBOL_MATCHES_NAME, add comment.
11930         (SYMBOL_MATCHES_NATURAL_NAME): New.
11931         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11932         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11933         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11934         * symtab.c (lookup_partial_symbol): Use
11935         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
11936         unhelpful comment.
11937         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11938         SYMBOL_MATCHES_NAME.
11939         Fix for PR c++/33.
11940
11941 2003-03-03  David Carlton  <carlton@math.stanford.edu>
11942
11943         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11944         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11945         by regexp matching against SYMBOL_NATURAL_NAME.
11946
11947 2003-03-03  David Carlton  <carlton@math.stanford.edu>
11948
11949         * linespec.c (find_method): Extract code into collect_methods.
11950         (collect_methods): New.
11951
11952 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
11953
11954         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11955         get_frame_base.
11956
11957         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11958         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11959
11960 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
11961
11962         * arch-utils.c (generic_register_byte): Fix to use the loop index
11963         and not regnum when summing the size of all registers up to regnum.
11964
11965 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11966
11967         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11968         FRAME_INIT_SAVED_REGS.
11969         * gdbarch.h, gdbarch.c: Regenerate.
11970         * stack.c (frame_info): Update.
11971         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11972         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11973         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11974         * ns32k-tdep.c (ns32k_pop_frame): Update.
11975         * mips-tdep.c (mips_pop_frame): Update.
11976         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11977         * ia64-tdep.c (ia64_frame_chain): Update.
11978         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11979         (ia64_frameless_function_invocation): Update.
11980         (ia64_init_extra_frame_info): Update.
11981         (ia64_pop_frame_regular): Update.
11982         * frame.h (struct frame_info): Update comment.
11983         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11984         * frame.c (frame_saved_regs_register_unwind): Update.
11985         (frame_saved_regs_register_unwind): Update.
11986         (deprecated_generic_get_saved_register): Update.
11987         * cris-tdep.c: Update comment.
11988         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11989         Rename macro.
11990         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11991         * x86-64-tdep.c (x86_64_init_abi): Update.
11992         * vax-tdep.c (vax_gdbarch_init): Update.
11993         * v850-tdep.c (v850_gdbarch_init): Update.
11994         * sparc-tdep.c (sparc_gdbarch_init): Update.
11995         * sh-tdep.c (sh_gdbarch_init): Update.
11996         * s390-tdep.c (s390_gdbarch_init): Update.
11997         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11998         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11999         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12000         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12001         * mips-tdep.c (mips_gdbarch_init): Update.
12002         * mcore-tdep.c (mcore_gdbarch_init): Update.
12003         * m68k-tdep.c (m68k_gdbarch_init): Update.
12004         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12005         * ia64-tdep.c (ia64_gdbarch_init): Update.
12006         * i386-tdep.c (i386_gdbarch_init): Update.
12007         * frv-tdep.c (frv_gdbarch_init): Update.
12008         * avr-tdep.c (avr_gdbarch_init): Update.
12009         * arm-tdep.c (arm_gdbarch_init): Update.
12010         * alpha-tdep.c (alpha_gdbarch_init): Update.
12011
12012 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12013
12014         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12015         option enum and switch.  When no windows, set the interpreter to
12016         INTERP_CONSOLE.
12017
12018 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12019
12020         * main.c (captured_main): Replace magic option characters with an
12021         enum.
12022
12023 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12024
12025         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12026         INIT_EXTRA_FRAME_INFO.
12027         * gdbarch.h, gdbarch.c: Regenerate.
12028         * arm-tdep.c: Update comments.
12029         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12030         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12031         * frame.h, avr-tdep.c: Ditto.
12032         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12033         (create_new_frame, legacy_get_prev_frame): Ditto.
12034         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12035         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12036         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12037         deprecated_init_extra_frame_info instead of init_extra_frame_info.
12038         * x86-64-tdep.c (x86_64_init_abi): Ditto.
12039         * v850-tdep.c (v850_gdbarch_init): Ditto.
12040         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12041         * sh-tdep.c (sh_gdbarch_init): Ditto.
12042         * s390-tdep.c (s390_gdbarch_init): Ditto.
12043         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12044         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12045         * mips-tdep.c (mips_gdbarch_init): Ditto.
12046         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12047         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12048         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12049         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12050         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12051         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12052         * frv-tdep.c (frv_gdbarch_init): Ditto.
12053         * cris-tdep.c (cris_gdbarch_init): Ditto.
12054         * avr-tdep.c (avr_gdbarch_init): Ditto.
12055         * arm-tdep.c (arm_gdbarch_init): Ditto.
12056         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12057         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12058
12059 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12060
12061         * gdbarch.sh (register_type): New function with predicate.
12062         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12063         * gdbarch.h, gdbarch.c: Re-generate.
12064         * arch-utils.c (generic_register_byte): Use generic_register_size.
12065         (generic_register_size): When available, use
12066         gdbarch_register_type.
12067         * regcache.c (init_regcache_descr): When available, initialize the
12068         register type array using gdbarch_register_type.  If the
12069         architecture supplies gdbarch_register_type, do not use the legacy
12070         regcache layout.
12071         * d10v-tdep.c (d10v_register_type): Replace
12072         d10v_register_virtual_type.
12073         (d10v_gdbarch_init): Set register_type instead of
12074         register_virtual_type.
12075
12076 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12077
12078         * Makefile.in (ax-gdb.o): Update dependencies.
12079         * ax-gdb.c: Include "regcache.h".
12080         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12081         * findvar.c (value_of_register): Ditto.
12082         * infcmd.c (default_print_registers_info): Ditto.
12083
12084 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12085
12086         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12087         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12088
12089 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12090
12091         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12092         of STREQ.
12093
12094 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
12095
12096         * Makefile.in (dwarf2loc.o): Update dependencies.
12097         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12098         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12099         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12100         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12101         (locexpr_tracepoint_var_ref): New function.
12102         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12103
12104 2003-02-28  Andrew Cagney  <cagney@redhat.com>
12105
12106         * regcache.c (register_size): New function.
12107         * regcache.h (register_size): Declare
12108         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12109         max_register_size instead of MAX_REGISTER_RAW_SIZE.
12110
12111 2003-02-28  David Carlton  <carlton@math.stanford.edu>
12112
12113         * linespec.c (decode_compound): Extract code into find_method.
12114         (find_method): New.
12115
12116 2003-02-28  J. Brobecker  <brobecker@gnat.com>
12117
12118         * Makefile.in: Add rules to build and link in observer.o.
12119
12120 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12121
12122         * observer.c: Minor comments edits.
12123
12124 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12125
12126         * observer.h, observer.c: New file.
12127
12128 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12129
12130         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12131
12132 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
12133
12134         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12135         (M6812_OP_STS_EXT): Likewise.
12136         (m6811_prologue): Use the above to recognize prologue.
12137         (m6812_prologue): Likewise.
12138
12139 2003-02-27  David Carlton  <carlton@math.stanford.edu>
12140
12141         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12142         SYMBOL_PRINT_NAME.
12143         (compare_psymbols): Ditto.
12144         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12145
12146 2003-02-27  Michael Snyder  <msnyder@redhat.com>
12147
12148         * f-lang.c (build_fortran_types): New function.
12149         (_initialize_f_language): Gdbarch-register built-in fortran types.
12150         * doublest.c (extract_floating): Fix warning text.
12151
12152 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12153
12154         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12155         predicate.  Replaces PUSH_DUMMY_FRAME.
12156         * gdbarch.h, gdbarch.c: Regnerate.
12157         * valops.c (hand_function_call): Update.  Call
12158         generic_push_dummy_frame directly.
12159         * vax-tdep.c (vax_gdbarch_init): Update.
12160         * sparc-tdep.c (sparc_gdbarch_init): Update.
12161         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12162         * m68k-tdep.c (m68k_gdbarch_init): Update.
12163         * hppa-tdep.c (hppa_gdbarch_init): Update.
12164         * alpha-tdep.c (alpha_gdbarch_init): Update.
12165         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12166         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12167         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12168         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12169         push_dummy_frame to generic_push_dummy_frame.
12170         * v850-tdep.c (v850_gdbarch_init): Ditto.
12171         * sh-tdep.c (sh_gdbarch_init): Ditto.
12172         * s390-tdep.c (s390_gdbarch_init): Ditto.
12173         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12174         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12175         * mips-tdep.c (mips_gdbarch_init): Ditto.
12176         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12177         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12178         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12179         * i386-tdep.c (i386_gdbarch_init): Ditto.
12180         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12181         * frv-tdep.c (frv_gdbarch_init): Ditto.
12182         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12183         * cris-tdep.c (cris_gdbarch_init): Ditto.
12184         * avr-tdep.c (avr_gdbarch_init): Ditto.
12185         * arm-tdep.c (arm_gdbarch_init): Ditto.
12186
12187 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
12188
12189         * mips-tdep.c (show_mips_abi): New function.
12190         (_initialize_mips_tdep): Use show_mips_abi() to implement the
12191         command ``show mips abi''.
12192
12193 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
12194
12195         From Elena Zannoni  <ezannoni@redhat.com>
12196         * dbxread.c (process_one_symbol): Only record line 0 if one or
12197         more sline entries have been seen for the function.
12198
12199 2003-02-26  Michael Chastain  <mec@shout.net>
12200
12201         * configure: Regenerate with autoconf 000227.
12202
12203 2003-02-26  Michael Chastain  <mec@shout.net>
12204
12205         Close PR build/660.
12206         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12207         for old libc5/glibc.
12208         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12209
12210 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
12211
12212         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12213         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12214
12215 2003-02-26  Michael Chastain  <mec@shout.net>
12216
12217         * configure.in: New variable HAVE_UINTPTR_T.
12218         * configure, config.in: Regenerated.
12219
12220 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
12221
12222         Fix PR build/1097.
12223         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12224
12225 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12226
12227         * frame.c (get_prev_frame): Add comment on check for
12228         inside_entry_func. Only check for inside_entry_file when not a
12229         dummy and not a sentinel.  Check that the new frame is not inner
12230         to the old frame.
12231
12232 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12233
12234         * frame.c (frame_debug): New variable.
12235         (_initialize_frame): Add "set/show debug frame" command.
12236         (get_prev_frame): When frame_debug, print reason why unwind
12237         failed.
12238
12239 2003-02-25  Michael Chastain  <mec@shout.net>
12240
12241         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12242         to avoid uintptr_t definition problems.
12243
12244 2003-02-25  David Carlton  <carlton@math.stanford.edu>
12245
12246         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12247         (SYMBOL_LINKAGE_NAME): Ditto.
12248         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12249         SYMBOL_LINKAGE_NAME.
12250         (struct general_symbol_info): Expand comment.
12251         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12252         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12253         (SYMBOL_MATCHES_REGEXP): Ditto.
12254         * symtab.c (symbol_natural_name): New function.
12255         * objfiles.h: Replace all uses of SYMBOL_NAME by
12256         DEPRECATED_SYMBOL_NAME.
12257         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12258         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12259         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12260         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12261         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12262         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12263         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12264         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12265         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12266         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12267         * ada-exp.y: Ditto.
12268         * ada-exp.y: Update copyright.
12269         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12270         * cp-valprint.c: Ditto.
12271
12272 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
12273
12274         * infptrace.c (detach): Do not flag error if ptrace detach fails
12275         and errno is set to ESRCH.
12276
12277 2003-02-24  Andrew Cagney  <cagney@redhat.com>
12278
12279         * infptrace.c (udot_info): Change type of udot_off to long.  Use
12280         paddr when printing udot_off's value.
12281
12282 2003-02-24  David Carlton  <carlton@math.stanford.edu>
12283
12284         * symtab.c (make_symbol_overload_list): Only read in partial
12285         symtabs containing a matching partial symbol.
12286
12287 2003-02-24  David Carlton  <carlton@math.stanford.edu>
12288
12289         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12290         do the comparison, not strcmp.
12291         * symfile.c (compare_psymbols): Ditto.
12292         * defs.h: Declare strcmp_iw_ordered.
12293         * utils.c (strcmp_iw_ordered): New function.
12294
12295 2003-02-24  Jim Blandy  <jimb@redhat.com>
12296
12297         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12298         support, shared libs): Remove my name from here, to better reflect
12299         reality.
12300
12301 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12302
12303         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12304         (target_ops): Add to_have_continuable_watchpoint.
12305         * target.c (update_current_target): Add INHERIT line for
12306         to_have_continuable_watchpoint.
12307         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12308         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12309         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12310         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12311
12312 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
12313
12314         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12315         maintainership.
12316
12317 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12318
12319         * solib.c (solib_open): Call target defined search function after
12320         failing with solib-search-path.
12321         * solist.h (target_so_ops): Add find_and_open_solib function hook and
12322         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12323
12324 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12325
12326         * MAINTAINERS: Add myself to Write After section.
12327
12328 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
12329
12330         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12331
12332 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
12333
12334         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12335         (m68hc11_add_reggroups): New function.
12336         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12337         (m68hc11_gdbarch_init): Install the reggroups.
12338         (_initialize_m68hc11_tdep): Initialize them.
12339
12340 2003-02-21  James E Wilson  <wilson@tuliptree.org>
12341
12342         * MAINTAINERS: Update my email address.
12343
12344 2003-02-21  David Carlton  <carlton@math.stanford.edu>
12345
12346         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12347
12348 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
12349
12350         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12351         * symtab.h: Add opaque declarations of struct axs_value and
12352         struct agent_expr.
12353         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12354         (struct location_funcs): New type.
12355         (struct symbol): Add "loc" to aux_value.
12356         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12357         * dwarf2read.c: Include "dwarf2expr.h".
12358         (dwarf2_symbol_mark_computed): New function.
12359         (read_func_scope): Use it.
12360         (var_decode_location): New function.
12361         (new_symbol): Use it.
12362         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12363
12364         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12365         (dwarf2expr_h, dwarf2loc_h): New variables.
12366         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12367         (dwarf2expr.o, dwarf2loc.o): New rules.
12368         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12369         * buildsym.c (finish_block): Handle LOC_COMPUTED and
12370         LOC_COMPUTED_ARG.
12371         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12372         * m2-exp.y (yylex): Likewise.
12373         * printcmd.c (address_info, print_frame_args): Likewise.
12374         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12375         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12376         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12377         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12378         * symtab.c (lookup_block_symbol): Likewise.
12379
12380 2003-02-20  Adam Fedor  <fedor@gnu.org>
12381
12382         * symtab.h: Remove objc_specific struct
12383         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12384         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12385         Have language_objc use cplus_specific struct.
12386
12387 2003-02-20  Tom Tromey  <tromey@redhat.com>
12388
12389         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12390         TYPE_NAME, when printing a String value.  PR java/1075.
12391
12392 2003-02-20  Adam Fedor  <fedor@gnu.org>
12393
12394         * objc-lang.h (find_methods): Remove declaration.
12395         * objc-lang.c (find_methods): Make static.
12396
12397 2003-02-20  Christopher Faylor  <cgf@redhat.com>
12398
12399         * win32-nat.c (get_image_name): Check return value from
12400         ReadProcessMemory.
12401         (child_xfer_memory): Ditto.
12402
12403 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
12404
12405         * configure.in (TARGET_SYSTEM_ROOT): Set default to
12406         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
12407         '${exec_prefix}' (in addition to the expansion thereof) as
12408         relocatable.
12409         * configure: Rebuilt.
12410
12411 2003-02-20  David Carlton  <carlton@math.stanford.edu>
12412
12413         * symtab.c (search_symbols): Revert the search_symbols part of my
12414         2002-12-23 patch.  Add comment.
12415
12416 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12417
12418         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12419         * dbxread.c (elfstab_build_psymtabs): Don't call
12420         install_minimal_symbols.
12421         (stabsect_build_psymtabs): Likewise.
12422         * elfread.c (elf_symfile_read): Call install_minimal_symbols
12423         earlier.
12424         * somread.c (som_symfile_read): Call install_minimal_symbols
12425         and do_cleanups earlier.
12426         * nlmread.c (nlm_symfile_read): Likewise.
12427         * mdebugread.c (elfmdebug_build_psymtabs): Call
12428         install_minimal_symbols and make appropriate cleanups.
12429
12430 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
12431
12432         * solib.c (reload_shared_libraries): New function.
12433         (_initialize_solib): Add callbacks for ``set solib-search-path''
12434         and ``set solib-absolute-prefix''.
12435
12436 2003-02-20  David Carlton  <carlton@math.stanford.edu>
12437
12438         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12439         expand comment.
12440         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12441         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12442         * ada-typeprint.c (ada_typedef_print): Ditto.
12443         * ax-gdb.c (gen_var_ref): Ditto.
12444         * breakpoint.c (print_one_breakpoint): Ditto.
12445         * buildsym.c (finish_block): Ditto.
12446         * c-valprint.c (c_val_print): Ditto.
12447         * expprint.c (print_subexp): Ditto.
12448         * findvar.c (locate_var_value): Ditto.
12449         * infcmd.c (jump_command): Ditto.
12450         * linespec.c (decode_line_2, decode_compound): Ditto.
12451         * maint.c (maintenance_translate_address): Ditto.
12452         * objc-lang.c (compare_selectors, compare_classes): Ditto.
12453         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12454         Ditto.
12455         * p-valprint.c (pascal_val_print): Ditto.
12456         * stabsread.c (define_symbol): Ditto.
12457         * stack.c (print_frame, frame_info, print_block_frame_locals)
12458         (print_frame_arg_vars, return_command): Ditto.
12459         * symfile.c (compare_symbols, compare_psymbols): Ditto.
12460         * symmisc.c (print_symbol): Ditto.
12461         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12462         (compare_search_syms, print_symbol_info, print_msymbol_info)
12463         (rbreak_command): Ditto.
12464         * tracepoint.c (tracepoints_info): Ditto.
12465         * typeprint.c (typedef_print): Ditto.
12466         * valops.c (value_of_variable, hand_function_call): Ditto.
12467         * cli/cli-cmds.c (edit_command, list_command): Ditto.
12468         * ada-typeprint.c: Update Copyright.
12469         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12470         * tracepoint.c, cli/cli-cmds.c: Ditto.
12471
12472 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
12473
12474         * frame.c (generic_unwind_get_saved_register): Make non-static.
12475         * frame.h (generic_unwind_get_saved_register): Declare.
12476         * mips-tdep.c (read_next_frame_reg): Fetch register from
12477         current regcache when frame is NULL.
12478         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12479         that must be NULL.
12480         (mips_get_saved_register): Call generic_unwind_get_saved_register()
12481         instead of frame_register_unwind().
12482
12483 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
12484
12485         * remote-sim.c (gdbsim_insert_breakpoint)
12486         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12487         code.
12488
12489 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
12490
12491         * remote.c (_initialize_remote): Add commands "set/show remote
12492         hardware-watchpoint-limit" and "set/show remote
12493         hardware-breakpoint-limit".
12494         (remote_hw_watchpoint_limit): Initialize to -1.
12495         (remote_hw_breakpoint_limit): Ditto.
12496         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12497
12498 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
12499
12500         * coff-pe-read.c: New file - support reading of minimal symbols from a
12501         portable executable using the export table.
12502         * coff-pe-read.h: New file.
12503         * coffread.c: Include coff-pe-read.h.
12504         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12505         debugging symbols found.
12506         * Makefile.in (SFILES): Add coff-pe-read.o.
12507         (coff_pe_read_h): Define.
12508         (COMMON_OBS): Add coff-pe-read.o.
12509         (coffread.o): Add coff_pe_read_h dependency.
12510         (coff-pe-read.o): New target.
12511
12512 2003-02-19  David Carlton  <carlton@math.stanford.edu>
12513
12514         * Makefile.in (SFILES): Add block.c.
12515         (block_h): New.
12516         (COMMON_OBS): Add block.o.
12517         (block.o): New.
12518         (x86-64-tdep.o): Add $(block_h).
12519         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12520         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12521         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12522         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12523         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12524         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12525         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12526         * value.h: Add opaque declaration for struct block.
12527         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12528         * ada-lang.h: Ditto.
12529         * x86-64-tdep.c: #include "block.h"
12530         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12531         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12532         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12533         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12534         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12535         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12536         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12537         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12538         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12539         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12540         * symtab.c (block_function): Ditto.
12541         (contained_in): Ditto.
12542         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12543         block.h.  Add opaque declaration for struct block.
12544         * symtab.h: Move block_function and contained_in declarations to
12545         block.h.  Add opaque declarations for struct block, struct
12546         blockvector.
12547         (struct block): Move to block.h.
12548         (struct blockvector): Ditto.
12549         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12550         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12551         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12552         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12553         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12554         Ditto.
12555         * block.c: New file.
12556         * block.h: New file.
12557
12558 2003-02-19  Theodore A. Roth  <troth@openavr.org>
12559
12560         * avr-tdep.c (avr_extract_return_value): Remove function.
12561         (avr_store_return_value): Remove function.
12562         (avr_extract_struct_value_address): Remove function.
12563         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12564
12565 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
12566
12567         * rs6000-tdep.c: Include "gdb_assert.h".
12568         (registers_e500): Add "acc" and "spefscr".
12569         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12570         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12571         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
12572         really is "r0".
12573         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12574
12575 2003-02-18  Keith Seitz  <keiths@redhat.com>
12576
12577         * Makefile.in: Add gdbtk-interps.c.
12578
12579 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
12580
12581         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12582         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12583
12584 2003-02-18  Andrew Cagney  <cagney@redhat.com>
12585
12586         * symtab.h (struct objfile): Add opaque declaration.
12587
12588 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
12589
12590         From Jim Ingham   <jingham@apple.com>:
12591         * dbxread.c (process_one_symbol): Use last_function_start rather
12592         than function_start_offset to find the real beginning of the
12593         current function.  The latter is just the text section offset on
12594         some systems, the former is always the real function start.
12595
12596 2003-02-17  Andrew Cagney  <cagney@redhat.com>
12597
12598         * configure.in: Revert ${target} != ${host}.
12599
12600 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
12601
12602         * configure.in (Makefile): Use the test ${target} != ${host},
12603         instead of the absence of the "nm.h" file, to determine of the
12604         configuration non-native.
12605         * configure: Regenerate.
12606
12607 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
12608
12609         From Brian Ford  <ford@vss.fsi.com>
12610
12611         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12612         conditionalize tui_active test.
12613         (lookup_cmd_1): Ditto.
12614
12615 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
12616
12617         * configure.in: Add check for _etext.
12618         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12619         available.
12620         * config.in, configure: regenerated.
12621
12622 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
12623
12624         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12625
12626 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
12627
12628         * main.c (tui_version): Delete variable.
12629         (captured_main): When --tui, set interpreter_p to "tui" instead of
12630         enabling tui_version.
12631         * printcmd.c (display_command) [TUI]: Test tui_active instead of
12632         tui_version.
12633         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12634         * cli/cli-cmds.c (disassemble_command): Ditto.
12635         * defs.h (tui_version): Delete declaration.
12636         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12637         (tui-interp.o): Add rules.
12638         (SUBDIR_TUI_OBS): Add "tui-interp.o".
12639
12640 2003-02-14  Christopher Faylor  <cgf@redhat.com>
12641
12642         * win32-nat.c (register_loaded_dll): Correctly set address range for
12643         just-loaded dll.
12644
12645 2003-02-12  Jason Molenda  (jmolenda@apple.com)
12646
12647         * symmisc.c (print_objfile_statistics): Include information about
12648         the number of psymtabs and symtabs in each object file.
12649
12650 2003-02-13  Keith R Seitz  <keiths@redhat.com>
12651
12652         * main.h (struct captured_main_args): Add interpreter_p.
12653         * main.c (captured_main): Initialize interpreter_p from context.
12654         * gdb.c (main): Set interpreter_p argument.
12655         * Makefile.in (gdb.o): Add dependency for interps.h.
12656
12657 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
12658
12659         * event-top.c (cli_command_loop): Delete declaration.
12660         (_initialize_event_loop): Delete function setting event_loop_hook.
12661         * event-top.h (cli_command_loop): Declare.  Update copyright.
12662         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
12663         * interps.c (current_interp_command_loop): When event_loop_p, call
12664         cli_command_loop.
12665
12666 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
12667
12668         * interps.h (interp_command_loop_ftype): Change return type to
12669         void.
12670
12671 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
12672
12673         * x86-64-tdep.c (x86_64_extract_return_value)
12674         (x86_64_store_return_value): Use regcache instead of regbuf.
12675         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12676         * x86-64-linux-nat.c (fill_gregset): Use regcache.
12677
12678 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
12679
12680         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12681         * aclocal.m4: Regenerate.
12682         * configure: Regenerate.
12683
12684         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12685         TCL_LD_SEARCH_FLAGS.
12686
12687 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
12688
12689         * dwarf2cfi.c: Reindented.
12690
12691 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
12692
12693         * interps.c (clear_interpreter_hooks): Convert function definition
12694         to ISO C.
12695
12696 2003-02-07  David Carlton  <carlton@math.stanford.edu>
12697
12698         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12699
12700 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
12701
12702         * gdbtypes.h (struct main_type): Move ``length'' field from here...
12703         (struct type): ...to here.
12704         (TYPE_LENGTH): Adjust to reflect different location of ``length''
12705         field.
12706         * gdbtypes.c (make_qualified_type): Set length on newly created type.
12707         (replace_type): Set length on all type variants for a given type.
12708
12709 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
12710
12711         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12712         <sys/stat.h>.
12713         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12714
12715 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
12716
12717         * Makefile.in (symm-nat.o): Update dependencies.
12718         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12719         (lynx-nat.o, ia64-linux-nat.): Ditto.
12720         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12721         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12722         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12723
12724         * Makefile.in (inflow_h): Define.
12725         (procfs.o, inflow.o, procfs.o): Update dependencies.
12726         * inftarg.c (child_stop): Delete extern declaration of
12727         inferior_process_group.  Include "inflow.h".
12728         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
12729         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12730         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
12731         (our_process_group, inferior_process_group): Extern declarations.
12732
12733         * procfs.c: Include "gdb_assert.h".
12734
12735         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12736         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12737         * jv-typeprint.c (java_type_print_base): Ditto.
12738         * typeprint.c (typedef_print): Eliminate STREQ.
12739         * cli/cli-script.c (define_command, define_command): Ditto.
12740         * main.c (captured_main): Ditto.
12741         * values.c (lookup_internalvar): Ditto.
12742         * utils.c (safe_strerror, parse_escape): Eliminate assignment
12743         within `if' conditional.
12744         * linespec.c (decode_line_2): Ditto.
12745         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12746         (bfd_openw_with_cleanup): Ditto.
12747
12748 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
12749
12750         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12751         legacy_extract_return_value and store_return_value to
12752         legacy_return_value.
12753
12754 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
12755
12756         * win32-nat.c (get_relocated_section_addrs): New function.  Find
12757         section load addresses for symbol handling in relocated DLLs.
12758         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12759
12760 2003-02-05  Fred Fish  <fnf@intrinsity.com>
12761
12762         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12763         '=' and '!='.
12764         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12765         with '&' and '=='.
12766         (angel_RDI_info): Ditto.
12767         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12768         with '&' and '!='.
12769         (threads_continue_all_with_signals): Ditto.
12770
12771 2003-02-05  Jim Ingham <jingham@apple.com>
12772             Keith Seitz  <keiths@redhat.com>
12773             Elena Zannoni  <ezannoni@redhat.com>
12774             Andrew Cagney  <ac131313@redhat.com>
12775
12776         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12777         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12778         (SUBDIR_MI_OBS): Add "mi-interp.o".
12779         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12780         (SFILES): Add "interps.c".
12781         (COMMON_OBS): Add "interps.o".
12782         (interps_h, mi_main_h): Define.
12783         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12784         (mi-main.o, main.o, event-top.o): Update dependencies.
12785         * cli/cli-interp.c: New file.
12786         * interps.h, interps.c: New files.
12787         * top.c: (gdb_init): Don't install the default interpreter, handed
12788         by captured_main.
12789         * main.c: Include "interps.h".
12790         (interpreter_p): Note that it should malloc'ed.
12791         (captured_command_loop): Call current_interp_command_loop.
12792         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
12793         xfree and xstrdup when updating interpreter_p.  Install the
12794         default interpreter.  Add hack to stop mi1's copyright notice
12795         being encoded.
12796         * event-top.h (gdb_setup_readline): Declare.
12797         (gdb_disable_readline): Declare.
12798         * event-top.c: Include "interps.h".
12799         (display_gdb_prompt): Call current_interp_display_prompt_p.
12800         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12801         gdb_stdlog, and gdb_stdtarg.
12802         (_initialize_event_loop): Don't call gdb_setup_readline.
12803         * cli-out.c (cli_out_set_stream): New function.
12804         * cli-out.h (cli_out_set_stream): Declare.
12805
12806 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
12807
12808         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12809         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
12810         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12811         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12812         config/i386/i386v42mp.mt: Removed.
12813
12814 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
12815
12816         * configure.tgt (*-*-solaris*): Set gdb_osabi to
12817         GDB_OSABI_SOLARIS.
12818
12819 2003-02-05  Michael Chastain  <mec@shout.net>
12820
12821         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12822         2.12.1 and earlier versions.
12823
12824 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
12825
12826         Remove orphaned hosts, targets and files.
12827         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12828         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12829         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12830         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12831         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12832         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12833         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12834         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12835         * config/sparc/tm-sp64sim.h: Delete.
12836         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12837         hosts.
12838         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12839         mips*-dec-mach3* targets.
12840
12841 2003-02-04  Michael Chastain  <mec@shout.net>
12842
12843         * NEWS: Fix typo: sepcifying -> specifying.
12844
12845 2003-02-04  Michael Chastain  <mec@shout.net>
12846
12847         * dwarfread.c: Add documentation on the state of dwarf-1,
12848         looking towards obsoletion.
12849
12850 2003-02-03  Michael Chastain  <mec@shout.net>
12851
12852         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12853         gdb/testsuite/gdb.c++/pr-1023.exp.
12854
12855 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12856
12857         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12858         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12859
12860         * utils.c (init_page_info): Delete reference to MPW in comments.
12861         * main.c (captured_main): Delete #ifdef MPW.
12862
12863 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12864
12865         * NEWS: Note that the m32r-*-elf* is obsolete.
12866         * monitor.c (monitor_expect): Obsolete reference to m32r.
12867         * configure.tgt: Mark m32r-*-elf* as obsolete.
12868         * MAINTAINERS: Mark m32k as obsolete.
12869         * m32r-rom.c: Obsolete file.
12870         * config/m32r/m32r.mt: Obsolete file.
12871         * config/m32r/tm-m32r.h: Obsolete file.
12872         * m32r-stub.c: Obsolete file.
12873         * m32r-tdep.c: Obsolete file.
12874
12875 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12876
12877         * NEWS: Mention that the z8k-zilog-none is obsolete.
12878         * MAINTAINERS: Mark z8k as obsolete.
12879         * configure.tgt: Obsolete the z8k-*-coff* target.
12880         * config/z8k/z8k.mt: Obsolete file.
12881         * config/z8k/tm-z8k.h: Obsolete file.
12882         * z8k-tdep.c: Obsolete file.
12883
12884 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12885
12886         * NEWS: Mention that the mn10200-elf is obsolete.
12887         * configure.tgt: Obsolete mn10200-*-* target.
12888         * breakpoint.c (update_breakpoints_after_exec): Update comment to
12889         mention that the mn10200 is obsolete.
12890         * breakpoint.h: Ditto.
12891         * MAINTAINERS: Mark the mn10200-elf as obsolete.
12892         * config/mn10200/mn10200.mt: Obsolete file.
12893         * config/mn10200/tm-mn10200.h: Obsolete file.
12894         * mn10200-tdep.c: Obsolete file.
12895
12896 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12897
12898         * MAINTAINERS: Mark h8500 as obsolete.
12899         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12900         * findvar.c (value_from_register): Ditto.
12901         * h8500-tdep.c: Mark file as obsolete.
12902         * config/h8500/h8500.mt: Ditto.
12903         * config/h8500/tm-h8500.h: Ditto.
12904         * NEWS: Mention that h8500 is obsolete.
12905
12906 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12907
12908         * objfiles.c (allocate_objfile): Always set name.  Add comment at
12909         start of function.
12910         * jv-lang.c (get_dynamics_objfile): Add comment.
12911
12912 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12913
12914         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12915         * printcmd.c (build_address_symbolic): Replace uses of
12916         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12917         SYMBOL_NAME, and asm_demangle.
12918         Update copyright.
12919
12920 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12921
12922         * linespec.c (decode_compound): Extract code into
12923         lookup_prefix_sym.
12924         (lookup_prefix_sym): New function.
12925
12926 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12927
12928         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12929         FLOAT_COERCION_BADNESS.
12930         * gdbtypes.c (rank_one_type): Replace all uses of
12931         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12932
12933 2003-02-04  Jim Blandy  <jimb@redhat.com>
12934
12935         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12936         section, let dwarf_macinfo_section point to it, not
12937         dwarf_loc_section.
12938
12939 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
12940
12941         Pointed out by Anton Blanchard <anton@samba.org>.
12942         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12943         (ppc_linux_at_sigtramp_return_path): Use it.
12944
12945 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
12946
12947         * defs.h (streq): Add prototype.
12948         * utils.c (streq): New function.
12949
12950         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12951         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12952         * mdebugread.c (new_symbol): Likewise.
12953         * stabsread.c (define_symbol): Likewise.
12954         * coffread.c (process_coff_symbol): Likewise.
12955         * dwarfread.c (new_symbol): Likewise.
12956
12957         * minsyms.c (prim_record_minimal_symbol_and_info): Use
12958         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
12959         here.
12960         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12961         SYMBOL_INIT_DEMANGLED_NAME.
12962         * objfiles.c: Include "hashtab.h".
12963         (allocate_objfile): Call htab_set_functions_ex for the
12964         demangled_names_hash.
12965         (free_objfile): Call htab_delete for the demangled_names_hash.
12966         * objfiles.h (struct htab): Add declaration.
12967         (struct objfile): Add demangled_names_hash.
12968         * symfile.c: Include "hashtab.h".
12969         (reread_symbols): Call htab_delete for the demangled_names_hash.
12970         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12971         SYMBOL_NAME in the bcache.
12972         * symtab.c: Include "hashtab.h".  Update comments.
12973         (create_demangled_names_hash, symbol_set_names): New functions.
12974         (symbol_find_demangled_name): New function, broken out from
12975         symbol_init_demangled_names.
12976         (symbol_init_demangled_names): Use it.
12977         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12978         (SYMBOL_SET_NAMES): New macro.
12979         (symbol_set_names): Add prototype.
12980
12981 2003-02-03  Jim Blandy  <jimb@redhat.com>
12982
12983         Use a single, consistent representation for an empty minimal
12984         symbol table in an objfile.
12985         * objfiles.c (terminate_minimal_symbol_table): New function.
12986         (allocate_objfile): Call it.
12987         * objfiles.h (terminate_minimal_symbol_table): New declaration.
12988         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12989         non-NULL.
12990         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12991         objfile has minimal symbols, compare minimal_symbol_count to zero,
12992         instead of comparing msymbols with NULL.
12993         * objfiles.c (have_minimal_symbols): Same.
12994         * solib-sunos.c (solib_add_common_symbols): Call
12995         terminate_minimal_symbol_table.
12996         * symfile.c (reread_symbols): Same.
12997
12998 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
12999
13000         * s390-tdep.c (s390_address_class_type_flags)
13001         (s390_address_class_type_flags_to_name)
13002         (s390_address_class_name_to_type_flags): New functions.
13003         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13004         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13005
13006 2003-02-03  Michael Snyder  <msnyder@redhat.com>
13007
13008         * arm-tdep.c: Fix spell-o in comment.
13009
13010 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
13011
13012         * dwarf2cfi.c (pointer_encoding): Added new parameter.
13013         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13014         error messages to contain BFD filename.
13015
13016 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
13017
13018         Fix PR gdb/742 gdb/743 gdb/877
13019         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13020         (do_mixed_source_and_assembly): Use
13021         make_cleanup_ui_out_tuple_begin_end and
13022         make_cleanup_ui_out_tuple_begin_end.
13023         (do_mixed_source_and_assembly): Ditto.
13024         * thread.c (do_captured_list_thread_ids): Ditto.
13025         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13026         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13027         ui_out_tuple_end): Delete prototypes.
13028         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13029         ui_out_list_end, ui_out_tuple_end): Delete.
13030
13031         From Kevin Buettner  <kevinb@redhat.com>:
13032         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13033         * ui-out.c (make_cleanup_ui_out_table_begin_end)
13034         (do_cleanup_table_end):  New functions.
13035         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13036         Use cleanups to invoke_ui_out_tuple_end().
13037         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13038         * cli/cli-setshow.c (cmd_show_list): Use
13039         make_cleanup_ui_out_tuple_begin_end.
13040
13041 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13042
13043         * frame.c (frame_unwind_register): New function.
13044         (frame_unwind_unsigned_register): Use.
13045         (frame_unwind_signed_register): Use.
13046         (frame_read_register): New function.
13047         * frame.h (frame_unwind_register): Declare.
13048         (frame_read_register): Declare.
13049
13050         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13051         and frame_unwind_register instead of read_memory, write_register
13052         and deprecated_write_register_bytes.
13053
13054 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13055
13056         * frame.h: Note that namelen can be negative.
13057         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13058         NAME's length.
13059
13060         * NEWS: Mention that the d10v's `regs' command is deprecated.
13061         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13062         (d10v_print_registers_info): New function.
13063         (show_regs): Call d10v_print_registers_info.
13064         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13065
13066 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
13067
13068         * stack.c (print_frame_info): Restore call to annotate_frame_begin
13069         lost in the previous patch.
13070
13071 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13072
13073         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13074         * stack.c (print_frame_info_base): Output complete FRAME tuple
13075         for synthesized frames.
13076
13077 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13078
13079         * mips-nat.c (zerobuf): Delete.
13080         (fetch_inferior_registers): Alloc local zerobuf.
13081         (fetch_core_registers): Alloc local zerobuf.
13082         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13083         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13084         * thread-db.c (thread_db_store_registers): Ditto.
13085         * sh-tdep.c (sh_do_register): Ditto.
13086         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13087         * remote-sim.c (gdbsim_store_register): Ditto.
13088         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13089         * remote-e7000.c (fetch_regs_from_dump): Ditto.
13090         * monitor.c (monitor_supply_register): Ditto.
13091         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13092         * mips-nat.c (fetch_inferior_registers): Ditto.
13093         * m68klinux-nat.c (fetch_register): Ditto.
13094         * lynx-nat.c (fetch_inferior_registers): Ditto.
13095         (fetch_inferior_registers): Ditto.
13096         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13097         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13098         (hpux_thread_store_registers): Ditto.
13099         * hppah-nat.c (fetch_register): Ditto.
13100         * hppab-nat.c (fetch_register): Ditto.
13101         * hppa-tdep.c (pa_register_look_aside): Ditto.
13102         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13103         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13104
13105 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13106
13107         * gdbarch.sh: Explictly specify all method levels.  When a
13108         variable with an empty level, provide a non-multi-arch default.
13109         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13110         * gdbarch.h: Re-generate.
13111         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
13112         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13113
13114 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13115
13116         * defs.h (host_pointer_to_address): Delete declaration.
13117         (address_to_host_pointer): Delete declaration.
13118         * utils.c (host_pointer_to_address): Delete function.
13119         (address_to_host_pointer): Delete function.
13120         * procfs.c (procfs_address_to_host_pointer): New function.
13121         * procfs.c (proc_set_watchpoint): Use.
13122         (procfs_can_use_hw_breakpoint): Update comments.
13123         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13124         (som_solib_add): Use.
13125         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13126         * hppa-tdep.c (unwind_command): Use.
13127
13128 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13129
13130         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13131         strlen d_name.
13132
13133         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13134         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13135         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13136         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13137         (define_symbol): Update.
13138         * symfile.c (generic_load): Remove references to nindy.
13139         * symtab.c: Remove references to nindy.
13140
13141 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13142
13143         * infcmd.c (print_float_info): Delete code conditional on
13144         FLOAT_INFO.
13145         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
13146         * config/m68k/nm-apollo68b.h: Ditto.
13147         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
13148         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13149         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13150
13151 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
13152
13153         * config/i386/tm-i386os9k.h: Removed.
13154
13155         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13156         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13157         they're identical to i[3456]86-*-sysv* now.
13158         * config/i386/i386v32.mh: Removed.
13159         * config/i386/xm-i386v32.h: Removed.
13160         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13161
13162         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13163
13164         * config/i386/i386dgux.mh: Removed.
13165         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13166
13167         * configure.in: Fix typo.
13168         * configure: Regenerated.
13169
13170 2003-01-31  David Carlton  <carlton@math.stanford.edu>
13171
13172         * dwarf2read.c (dwarf2_locate_sections): Set
13173         dwarf_ranges_section.
13174
13175 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
13176
13177         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13178         * utils.c: Update comments documenting legitimate uses of PTR.
13179
13180         * utils.c: Re-indent.
13181
13182         * config/djgpp/fnchange.lst: Delete nindy files.
13183         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13184         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13185         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13186         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13187         * nindy-share/README, nindy-share/Onindy.c: Delete files.
13188         * nindy-tdep.c, nindy-share/Makefile: Delete files.
13189         * Makefile.in (init.c): Remove nindy references.
13190         (saber_gdb): Delete rule.
13191         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13192         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13193         and a68v-nat.c.
13194         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13195         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13196         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13197         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13198         nindy-share/stop.h.
13199         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13200         * saber.suppress: Delete file.
13201
13202 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
13203
13204         * dbxread.c (stabs_data): New static variable.
13205         (fill_symbuf): Support an in-memory buffer for stabs data.
13206         (stabs_seek): New function.
13207         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13208         (read_ofile_symtab): Use stabs_seek.
13209         (elfstab_build_psymtabs): Take an asection* instead of
13210         an offset and size.  Relocate the stabs data if necessary.
13211         Save the section* for dbx_psymtab_to_symtab.
13212         * dwarf2read.c: Add section variables for each debug section.
13213         (dwarf2_locate_sections): Fill them in.
13214         (dwarf2_read_section): Take an asection* argument.
13215         Relocate the section contents if necessary.
13216         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13217         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13218         it to dwarf2_read_section.
13219         (dwarf2_build_frame_info): Update callers.
13220         * elfread.c (elf_symfile_read): Update call to
13221         elfstab_build_psymtabs.
13222         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13223         (DBX_STAB_SECTION): New macro.
13224         * stabsread.h (elfstab_build_psymtabs): Update prototype.
13225         * symfile.c (symfile_dummy_outputs): New function.
13226         (symfile_relocate_debug_section): New function.
13227         * symfile.h (symfile_relocate_debug_section): Add prototype.
13228
13229 2003-01-31  Richard Henderson  <rth@redhat.com>
13230
13231         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13232         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
13233         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13234         * alpha-tdep.c (alpha_register_name): Add "unique".
13235         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13236         (ALPHA_UNIQUE_REGNUM): New.
13237         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13238
13239 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
13240
13241         * README: Remove reference to Ericsson 1800 monitor.
13242         * Makefile.in (remote-es.o): Delete rule.
13243         (ALLDEPFILES): Delete remote-es.c.
13244         * remote-es.c: Delete file.
13245         * config/m68k/es1800.mt: Delete file.
13246         * config/djgpp/fnchange.lst: Update.
13247         * configure.tgt: Delete m68*-ericsson-* target.
13248
13249 2003-01-31  Adam Fedor  <fedor@gnu.org>
13250
13251         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13252         Remove duplicate/shadowing variable of same name.
13253
13254 2003-01-30  Jim Blandy  <jimb@redhat.com>
13255
13256         * symfile.c (find_separate_debug_file): Assert that the objfile's
13257         directory name we compute ends with a slash, and then assume that
13258         that's so everywhere we use it.
13259
13260 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
13261
13262         * valops.c (value_assign): Flush frame cache after stores to memory
13263         also.
13264
13265 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13266
13267         * Makefile.in (mon960-rom.o): Delete rule.
13268         * mon960-rom.c: Delete file.
13269
13270 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13271
13272         * d10v-tdep.c: Include "frame-unwind.h".
13273         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13274         list.
13275         (next_addr, uses_frame): Delete.
13276         (struct d10v_unwind_cache): Define.
13277         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13278         Use info instead of next_addr and uses_frame globals.
13279         (d10v_frame_init_saved_regs): Delete function.
13280         (d10v_init_extra_frame_info): Delete function.
13281         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13282         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13283         init_frame_pc or frame_saved_pc.
13284         (d10v_pop_frame): Delete function.
13285         (do_d10v_pop_frame): Delete function.
13286         (d10v_frame_chain): Delete function.
13287         (d10v_frame_chain_valid): Delete function.
13288         (d10v_frame_pc_unwind): New function.
13289         (d10v_frame_id_unwind): New function.
13290         (saved_regs_unwinder): New function.
13291         (d10v_frame_register_unwind): New function.
13292         (d10v_frame_pop): New function.
13293         (d10v_frame_unwind): New variable.
13294         (d10v_frame_p): New function.
13295         (d10v_frame_saved_pc): Delete function.
13296         * Makefile.in (d10v-tdep.o): Update dependencies.
13297
13298 2003-01-30  J. Brobecker  <brobecker@gnat.com>
13299
13300         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13301         causing some regressions due to a change in the default value
13302         for this macro.
13303
13304 2003-01-29  Richard Henderson  <rth@redhat.com>
13305             Elena Zannoni  <ezannoni@redhat.com>
13306             Daniel Jacobowitz  <drow@mvista.com>
13307
13308         Fix PR gdb/961.
13309         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
13310         variables.
13311         (RANGES_SECTION): New.
13312         (dwarf_ranges_buffer): New variable.
13313         (struct comp_unit_head): Add member "die".
13314         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13315         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13316         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13317         (dwarf2_locate_sections): Likewise.
13318         (dwarf2_build_psymtabs): Read .debug_ranges.
13319         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13320         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
13321         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13322         Look for DW_AT_ranges and return the bounding box.
13323
13324 2003-01-29  Brian Ford <ford@vss.fsi.com>
13325
13326         * win32-nat.c (cygwin_pid): Removed as unused.
13327         (child_attach): Try fall back to Cygwin pid.
13328
13329 2003-01-29  Jim Blandy  <jimb@redhat.com>
13330
13331         * objfiles.h (struct objfile): Doc fix.
13332
13333 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
13334
13335         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13336         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13337         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13338         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13339         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13340         (FRAME_SAVED_PC): Change to a function with predicate.
13341         * gdbarch.h, gdbarch.c: Re-generate.
13342
13343 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
13344
13345         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13346
13347         * complaints.c (complain): Delete function.
13348         * complaints.h (struct deprecated_complaint): Delete definition.
13349         (complain): Delete declaration.
13350
13351 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
13352
13353         * mips-tdep.c (mips_init_extra_frame_info): Return early for
13354         dummy frames.
13355
13356 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
13357
13358         * sentinel-frame.h, sentinel-frame.c: New files.
13359         * Makefile.in (frame.o): Update dependencies.
13360         (SFILES): Add sentinel-frame.c.
13361         (sentinel_frame_h): Define.
13362         (COMMON_OBS): Add sentinel-frame.o.
13363         (sentinel-frame.o): Specify dependencies.
13364         * frame.c: Include "sentinel-frame.h".
13365         (frame_register_unwind): Rewrite assuming that there is always a a
13366         ->next frame.
13367         (frame_register, generic_unwind_get_saved_register): Ditto.
13368         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13369         (create_sentinel_frame, unwind_to_current_frame): New functions.
13370         (get_current_frame): Rewrite using create_sentinel_frame and
13371         unwind_to_current_frame.  When possible, always create a frame.
13372         (create_new_frame): Set next to the sentinel frame.
13373         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
13374         (deprecated_update_frame_pc_hack): Update the next frame's PC and
13375         ID cache when necessary.
13376         (frame_saved_regs_id_unwind): Use frame_relative_level.
13377         (deprecated_generic_get_saved_register): Use frame_relative_level,
13378         get_frame_saved_regs, get_frame_pc, get_frame_base and
13379         get_next_frame.
13380         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13381         frame_register.
13382
13383 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13384
13385         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13386
13387 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13388
13389         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13390         (maintenance_set_profile_cmd): Use error () instead of warning ().
13391
13392 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13393
13394         * configure.in: Check that -pg works if using --enable-profiling.
13395         Check for monstartup and _mcleanup regardless of --enable-profiling.
13396         * maint.c: Check for monstartup and _mcleanup before using them.
13397         * config.in: Regenerated.
13398         * configure: Regenerated.
13399
13400 2003-01-24  Nick Clifton  <nickc@redhat.com>
13401
13402         * Add sh2e support:
13403
13404         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
13405
13406                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13407                 (sh2e_show_regs): New.
13408                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13409                 * config/sh/tm-sh.h: Added sh2e to comments.
13410
13411 2003-01-23  Jim Blandy  <jimb@redhat.com>
13412
13413         * symfile.c (syms_from_objfile): Don't print the "(no debugging
13414         symbols found)" message here; we haven't checked for a separate
13415         debug info file yet, so we don't know yet.
13416         (symbol_file_add_with_addrs_or_offsets): Print it here, after
13417         we've looked everywhere.  Also, there's no need to print a special
13418         message when we're loading the separate debug info file: the one
13419         symbol_file_add prints is fine.
13420
13421 2003-01-23  Alexander Larsson <alexl@redhat.com>
13422             Jim Blandy  <jimb@redhat.com>
13423
13424         Add support for executables whose debug info has been separated
13425         out into a separate file, leaving only a link behind.
13426         * objfiles.h (struct objfile): New fields: separate_debug_objfile
13427         and separate_debug_objfile_backlink.
13428         (put_objfile_before): New declaration.
13429         * symfile.c: #include "filenames.h".
13430         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13431         debug info in a separate file, read that, too. Save the addrs
13432         argument, so we can use it again to read the separated debug info;
13433         syms_from_objfile modifies the table we pass it.
13434         (reread_symbols): After re-reading an objfile, call
13435         reread_separate_symbols to refresh its separate debug info
13436         objfile, if it has one.
13437         (reread_separate_symbols, find_separate_debug_file,
13438         get_debug_link_info, separate_debug_file_exists): New functions.
13439         (debug_file_directory): New global var.
13440         (_initialize_symfile): Initialize debug_file_directory, and
13441         provide the new `set debug-file-directory' command to let the user
13442         change it.
13443         * objfiles.c (free_objfile): If this objfile has its debug info in
13444         a separate objfile, free that one too.  If this is itself a
13445         separate debug info objfile, clear our parent's backlink.
13446         (put_objfile_before): New function.
13447         * utils.c (gnu_debuglink_crc32): New function.
13448         * defs.h (gnu_debuglink_crc32): New declaration.
13449         * Makefile.in (symfile.o): Note dependency on "filenames.h".
13450         * configure.in: Handle --with-separate-debug-dir config option.
13451         * acinclude.m4 (AC_DEFINE_DIR): New macro.
13452         * acconfig.h (DEBUGDIR): New macro.
13453         * configure, aclocal.m4, config.in: Regenerated.
13454
13455 2003-01-22  Jim Blandy  <jimb@redhat.com>
13456
13457         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13458         like the old symbol_file_add, but taking new arguments: you can
13459         now pass in either a `struct section_addr_info' list to say where
13460         each section is loaded, or a `struct section_offsets' table.  Pass
13461         these new arguments through to syms_from_objfile as appropriate.
13462         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13463         with the appropriate quiescent values for the new arguments.
13464
13465         * symfile.c: #include "gdb_assert.h".
13466         (syms_from_objfile): Add the ability to pass in a section offset
13467         table directly, as an alternative to the section_addr_info table.
13468         Document arguments better.
13469         (symbol_file_add): Pass extra arguments to syms_from_objfile.
13470         * symfile.h (syms_from_objfile): Update declaration.
13471         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13472         syms_from_objfile.
13473         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13474
13475 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
13476
13477         Original patch by Tom Tromey <tromey@cygnus.com> and
13478         Jason Molenda <jmolenda@apple.com>.
13479         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13480         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13481         * NEWS: Mention profiling.
13482         * configure.in (--enable-gdbtk): Fix typo.
13483         (--enable-profiling): New.  Set PROFILE_CFLAGS.
13484         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13485         Fill in function.
13486         (profiling_state): New variable.
13487         (mcleanup_wrapper): New function.
13488         (_initialize_maint): Remove NOTYET, fix call to
13489         add_setshow_boolean_cmd for "maint set profile".
13490         * configure: Regenerated.
13491
13492 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
13493
13494         * Makefile.in (install-gdbtk): Install PNG images too.
13495
13496 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
13497
13498         * exec.c (text_start): Delete global variable.
13499         (exec_file_attach): Make text_start local to the function.
13500         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13501         * valops.c (hand_function_call): Delete code that handles
13502         BEFORE_TEXT_END and AFTER_TEXT_END.
13503         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13504         of CALL_DUMMY_LOCATION.
13505         * gdbarch.c: Regenerate.
13506         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13507         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13508         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13509         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13510         (text_end): Delete extern declaration.
13511
13512 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
13513
13514         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13515         * blockframe.c (backtrace_below_main): Move to "frame.c".
13516         (frame_chain_valid): Delete check for backtrace_below_main.
13517         (_initialize_blockframe): Delete initialization, move ``set
13518         backtrace-below-main'' command to "frame.c".
13519         (do_flush_frames_sfunc): Delete function.
13520         * frame.c: Include "command.h" and "gdbcmd.h".
13521         (frame_type_from_pc): New function.
13522         (create_new_frame): Use frame_type_from_pc.
13523         (legacy_get_prev_frame): New function.
13524         (get_prev_frame): Rewrite.  When an old style frame, call
13525         legacy_get_prev_frame.  Otherwize, unwind the PC first.
13526         (_initialize_frame): Add ``set backtrace-below-main'' command.
13527         * Makefile.in (frame.o): Update dependencies.
13528
13529 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13530
13531         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13532         DEPRECATED_REGISTERS_INFO.
13533
13534 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13535
13536         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13537         Maintainers'.  Update `Various Maintainers'.
13538
13539 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13540
13541         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13542         * gdbarch.sh (POP_FRAME): Change to function with predicate.
13543         Suppress actual parameters when `-'.
13544         * gdbarch.h, gdbarch.c: Regenerate.
13545
13546 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13547
13548         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13549         code handling dummy frames.
13550
13551 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13552
13553         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13554         (struct frame_unwind): Add field pop.
13555         * frame.h (frame_pop): Declare.
13556         * frame.c (frame_saved_regs_pop): New function.
13557         (trad_frame_unwinder): Add frame_saved_regs_pop.
13558         (frame_pop): New function.
13559         * dummy-frame.c (dummy_frame_pop): New function.
13560         (discard_innermost_dummy): New function.
13561         (generic_pop_dummy_frame): Use discard_innermost_dummy.
13562         (dummy_frame_unwind): Add dummy_frame_pop.
13563         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13564         * valops.c (hand_function_call): Ditto.
13565         * stack.c (return_command): Ditto.
13566
13567 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13568
13569         * cris-tdep.c: Fix function declaration indentation.
13570         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13571         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13572         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13573         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13574         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13575         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13576
13577 2003-01-18  Michael Chastain  <mec@shout.net>
13578
13579         * README (Unpacking and Installation -- quick overview):
13580         Warn against ".../gdb-5.3/gdb/configure".
13581
13582 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13583
13584         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13585         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13586         (struct frame_unwind): Declare opaque.
13587         (dummy_frame_p): Declare function.
13588         * dummy-frame.c (dummy_frame_id_unwind): Make static.
13589         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13590         * dummy-frame.c: Include "frame-unwind.h".
13591         (dummy_frame_p): New function.
13592         (dummy_frame_unwind): New variable.
13593         * frame.c: Include "frame-unwind.h".
13594         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13595         to use the new unwind field.
13596         (set_unwind_by_pc): Delete function.
13597         (create_new_frame, get_prev_frame): Set unwind field using
13598         frame_unwind_find_by_pc.
13599         (trad_frame_unwind, trad_frame_unwinder): New variables.
13600         * frame.h (trad_frame_unwind): Declare variable.
13601         (frame_id_unwind_ftype): Delete declaration.
13602         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13603         (struct frame_unwind): Declare opaque.
13604         (struct frame_info): Replace the fields id_unwind, pc_unwind and
13605         register_unwind with a single unwind pointer.
13606         * frame-unwind.h, frame-unwind.c: New files.
13607         * Makefile.in (SFILES): Add frame-unwind.c.
13608         (frame_unwind_h): Define.
13609         (COMMON_OBS): Add frame-unwind.o.
13610         (frame-unwind.o): Specify dependencies.
13611         (frame.o, dummy-frame.o): Update dependencies.
13612
13613 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13614
13615         * ada-valprint.c: Eliminate PTR.
13616         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13617         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13618         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13619         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13620         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13621         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13622         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13623
13624 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
13625
13626         * main.c (captured_main): Don't use PTR.
13627         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13628         * gdbtypes.c (lookup_primitive_typename): Ditto.
13629         (lookup_struct_elt_type): Ditto.
13630         * f-valprint.c (info_common_command): Ditto.
13631         (list_all_visible_commons): Ditto.
13632         * jv-typeprint.c (java_type_print_base): Ditto.
13633
13634         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13635         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13636         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
13637         i386-interix-nat.c and i386-interix-tdep.c.  Rename
13638         m68klinux-nat.c and m68klinux-tdep.c.  Rename
13639         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
13640         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
13641         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13642         * main.c (captured_main): Use xfree, not free.
13643
13644 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
13645
13646         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13647         ID back using a parameter.
13648         * frame.c (frame_id_unwind): Update call.
13649         (frame_saved_regs_id_unwind): Update.
13650         * dummy-frame.c (dummy_frame_id_unwind): Update function.
13651         * dummy-frame.h (struct frame_id): Add opaque declaration.
13652         (dummy_frame_id_unwind): Update declaration.
13653
13654 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
13655
13656         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13657
13658 2003-01-15  Stephen P. Smith <ischis2@cox.net>
13659
13660         * MAINTAINERS (Stephen P. Smith): Updated email address.
13661
13662 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
13663
13664         Fix PR gdb/898
13665         * breakpoint.c (until_break_command): Add new argument.  Use it to
13666         decide whether to stop only at the current frame or not.
13667         * breakpoint.h (until_break_command): Update prototype.
13668         * infcmd.c (until_command): Add new argument to until_break_command
13669         call.
13670         (advance_command): New function.
13671         (_initialize_infcmd): Update help string for 'until' command.
13672         Add new 'advance' command.
13673
13674 2003-01-14  David Carlton  <carlton@math.stanford.edu>
13675
13676         * linespec.c (decode_line_1): Normalize comments.
13677         (set_flags): Ditto.
13678         (locate_first_half): Ditto.
13679         (decode_compound): Ditto.
13680         (symtab_from_filename): Ditto.
13681         (decode_all_digits): Ditto.
13682         (decode_dollar): Ditto.
13683         (find_methods): Ditto.
13684         (find_toplevel_char): Ditto.
13685
13686 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13687
13688         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13689         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13690         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13691         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13692         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13693         * language.c, language.h, m32r-tdep.c: Update copyright.
13694         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13695         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13696         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13697         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13698         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13699         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13700
13701 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
13702
13703         * stabsread.h (process_later, resolve_cfront_continuation):
13704         Obsolete.
13705         Update copyright years.
13706         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13707         Update copyright year.
13708         * dbxread.c(struct cont_elem): Obsolete.
13709         (process_later, process_now): Obsolete functions.
13710         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13711         Update copyright year.
13712         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13713         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13714         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13715         (parse_partial_symbols): Obsolete cfront support.
13716         * stabsread.c
13717         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13718         macros.
13719         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13720         read_cfront_baseclasses, read_cfront_member_functions,
13721         resolve_cfront_continuation,read_cfront_static_fields,
13722         copy_cfront_struct_fields): Obsolete functions.
13723         (define_symbol, read_one_struct_field): Obsolete cfront support.
13724         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13725         Update Copyright year.
13726
13727 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
13728
13729         * stack.c (print_frame_info, print_stack_frame_base_stub,
13730         print_stack_frame_base, show_and_print_stack_frame_stub,
13731         show_and_print_stack_frame, print_only_stack_frame_stub,
13732         print_only_stack_frame): Delete functions.
13733         (print_stack_frame_stub): Call print_frame_info instead of
13734         print_frame_info_base.
13735         (print_frame_info_base): Rename to print_frame_info.
13736         (backtrace_command_1): Call print_frame_info, instead of
13737         print_frame_info_base.
13738         (current_frame_command): Call print_stack_frame, instead of
13739         print_only_stack_frame.
13740         (frame_command): Call print_stack_frame, instead of
13741         show_and_print_stack_frame.
13742         (up_command): Ditto.
13743         (down_command): Ditto.
13744         * frame.h (print_only_stack_frame): Delete prototype.
13745         * infrun.c (normal_stop): Call print_stack_frame, instead of
13746         show_and_print_stack_frame.
13747         * thread.c (info_threads_command): Call print_stack_frame, instead
13748         of print_only_stack_frame.
13749
13750 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13751
13752         * README (Graphical interface to GDB): Update URL.  Point at
13753         gdb/links/.
13754
13755         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
13756         version match.
13757
13758 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13759
13760         * symtab.c (find_pc_sect_line): Don't consider end-of-function
13761         lines.
13762
13763 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13764
13765         * thread-db.c (attach_thread): Prototype.
13766         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
13767         thread information (ti), and valid flags (th_valid, ti_valid).
13768         (attach_thread): Move target_pid_to_str call to after the thread
13769         is added to GDB's list.  Initialize the cache.
13770         (thread_get_info_callback, thread_db_map_id2thr)
13771         (thread_db_get_info): New functions.
13772         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13773         (thread_db_store_registers, thread_db_thread_alive)
13774         (thread_db_get_thread_local_address): Use them.
13775         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
13776         of calling error() for threads in unknown state.
13777
13778         (clear_lwpid_callback): New function.
13779         (thread_db_resume): Use it to clear the cache.
13780
13781 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13782
13783         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13784         (resume_callback): Remove dead code.
13785
13786 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13787
13788         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13789         predicate.
13790         * gdbarch.h, gdbarch.c: Regenerate.
13791         * stack.c (frame_info): Only initialize the saved registers when
13792         FRAME_INIT_SAVED_REGS_P.
13793         * frame.c (frame_saved_regs_register_unwind): Assert
13794         FRAME_INIT_SAVED_REGS_P.
13795         (deprecated_generic_get_saved_register): Ditto.
13796
13797 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13798
13799         * source.c (openp): Squelch warning about "filename".
13800
13801 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13802
13803         * source.c (openp): If the file does not exist don't necessarily
13804         search the path.
13805
13806 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13807
13808         Fix PR gdb/872.
13809         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13810         (integer_types_same_name_p): New function.
13811         (rank_one_type): Use it.
13812         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13813
13814 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13815
13816         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13817         variables.
13818         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13819         * configure.in: Add --with-sysroot.
13820         * configure: Regenerated.
13821         * main.c (gdb_sysroot): New variable.
13822         (captured_main): Initialize gdb_sysroot.
13823         * defs.h (gdb_sysroot): New extern declaration.
13824         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13825
13826 2003-01-12  Michael Chastain  <mec@shout.net>
13827
13828         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13829
13830 2003-01-12  Michael Chastain  <mec@shout.net>
13831
13832         * top.c (print_gdb_version): Bump copyright year to 2003.
13833
13834 2003-01-12  David Carlton  <carlton@bactrian.org>
13835
13836         * linespec.c (symtab_from_filename): Rename variable 's' to
13837         'file_symtab'.
13838
13839 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
13840
13841         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13842         dummy frame.
13843         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13844
13845 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
13846
13847         * d10v-tdep.c: Include "gdb_assert.h".
13848         (d10v_store_return_value): Rewrite to match current interface.
13849         (d10v_extract_struct_value_address): Ditto.
13850         (d10v_extract_return_value): Ditto.
13851         (d10v_gdbarch_init): Set store_restore_value,
13852         extract_struct_value_address and extract_return_value.
13853
13854 2003-01-12  J. Brobecker  <brobecker@gnat.com>
13855
13856         * hpread.c (set_namestring): New procedure replacing the
13857         SET_NAMESTRING macro.
13858         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13859         by calls to set_namestring.
13860
13861 2003-01-11  J. Brobecker  <brobecker@gnat.com>
13862
13863         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13864         a compilation warning.
13865         (hpread_process_one_debug_symbol): Likewise.
13866
13867 2003-01-10  David Carlton  <carlton@math.stanford.edu>
13868
13869         * linespec.c (decode_line_1): Rename variable 's' to
13870         'file_symtab'.
13871         (decode_all_digits): Rename argument 's' to 'file_symtab'.
13872         (decode_dollar): Ditto.
13873         (decode_variable): Ditto.
13874         (symbol_found): Ditto.
13875
13876 2003-01-09  Michael Chastain  <mec@shout.net>
13877
13878         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13879
13880 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
13881
13882         * win32-nat.c (set_process_privilege): New function.
13883         (child_attach): Call set_process_privilege() to enable the
13884         SE_DEBUG_NAME user privilege if available in process token.
13885
13886 2003-01-10  J. Brobecker  <brobecker@gnat.com>
13887
13888         * hpread.c (hpread_process_one_debug_symbol): Fix a small
13889         compilation error in the previous revision.
13890
13891 2003-01-09  David Carlton  <carlton@math.stanford.edu>
13892
13893         * linespec.c: Update copyright.
13894
13895 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
13896
13897         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13898         than inferior_ptid.
13899         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13900
13901 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
13902
13903         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13904         Update comments.
13905         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13906         (frame_saved_regs_zalloc): Update.
13907         (frame_saved_regs_register_unwind): Update.
13908         (create_new_frame): Update.
13909         (get_prev_frame): Update.
13910         (frame_extra_info_zalloc): Update.
13911         (deprecated_get_frame_saved_regs): Update.
13912         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13913         * cris-tdep.c: Update comment.
13914
13915         * somsolib.h: Fix function indentation.
13916         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13917         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13918         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13919         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13920         * somsolib.c, inftarg.c: Remove assignment in if conditional.
13921
13922         * infrun.c (follow_fork): Use ISO C definition.
13923         * expprint.c (print_subexp): Use xfree instead of free.
13924         * charset.c: Include "gdb_string.h" instead of <string.h>.
13925         (register_iconv_charsets): Use ISO C definition.
13926         (host_charset, target_charset): Ditto.
13927         * Makefile.in (charset.o): Update dependencies.
13928         (mi-cmd-env.o): Update dependencies.
13929
13930 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13931
13932         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13933         get_frame_base.
13934
13935 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
13936
13937         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
13938         build directories.  Save edited gdb output in Mbuild.log.  If a
13939         build fails, remove any final GDB executable.
13940
13941 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
13942
13943         * gdb_mbuild.sh: Edit the output of `maint print architecture'
13944         replacing hex constants with function names and stripping leading
13945         file name directory prefixes.
13946
13947 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13948
13949         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13950         get_frame_base.
13951
13952 2003-01-08  David Carlton  <carlton@math.stanford.edu>
13953
13954         * linespec.c (decode_line_1): Move code into decode_variable.
13955         (decode_variable): New function.
13956
13957 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
13958
13959         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13960
13961 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13962
13963         * cris-tdep.c (cris_frame_init_saved_regs): Use
13964         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13965         saved_regs buffer.
13966         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13967         (sh64_nofp_frame_init_saved_regs): Ditto.
13968         (sh_fp_frame_init_saved_regs): Ditto.
13969         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13970         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13971         * mcore-tdep.c (analyze_dummy_frame): Ditto.
13972         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13973
13974 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
13975
13976         * minsyms.c (lookup_minimal_symbol): Update comment.
13977         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
13978         (lookup_minimal_symbol_solib_trampoline): Likewise.
13979
13980 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13981
13982         * d10v-tdep.c (d10v_init_extra_frame_info): Use
13983         frame_relative_level.
13984
13985         * alpha-tdep.c: Use get_frame_extra_info.
13986         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13987         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13988         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13989         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13990
13991         * alpha-tdep.c: Use get_next_frame.
13992         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13993         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13994         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13995         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13996         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13997         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13998         * xstormy16-tdep.c: Ditto.
13999
14000 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14001
14002         * alpha-tdep.c: Use get_frame_base.
14003         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14004         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14005         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14006         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14007         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14008         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14009         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14010         * config/sparc/tm-sparc.h: Ditto.
14011
14012 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14013
14014         * frame.c (deprecated_get_frame_context): New function.
14015         (deprecated_set_frame_context): New function.
14016         * frame.h (deprecated_get_frame_context): Declare.
14017         (deprecated_set_frame_context): Declare.
14018         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14019         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14020
14021 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14022
14023         * frame.c (deprecated_set_frame_next_hack): New function.
14024         (deprecated_set_frame_prev_hack): New function.
14025         * frame.h (deprecated_set_frame_next_hack): Declare.
14026         (deprecated_set_frame_prev_hack): Declare.
14027         * mcore-tdep.c (analyze_dummy_frame): Use
14028         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14029         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14030
14031 2003-01-07  David Carlton  <carlton@math.stanford.edu>
14032
14033         * linespec.c (decode_line_1): Move code into decode_dollar.
14034         (decode_dollar): New function.
14035
14036 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14037
14038         * arm-tdep.c (arm_init_extra_frame_info): Use
14039         deprecated_update_frame_base_hack.
14040         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14041         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14042         (fix_frame_pointer): Ditto.
14043         (mn10300_analyze_prologue): Ditto.
14044
14045 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14046
14047         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14048         extra_info using frame_extra_info_zalloc.
14049         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14050         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14051         (sh64_init_extra_frame_info): Ditto.
14052         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14053         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14054         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14055         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14056         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14057         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14058         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14059         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14060         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14061         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14062         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14063         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14064
14065         * mn10300-tdep.c (analyze_dummy_frame): Use
14066         deprecated_set_frame_extra_info_hack.
14067         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14068
14069 2003-01-07  J. Brobecker  <brobecker@gnat.com>
14070
14071         * mdebugread.c (parse_symbol): Skip stProc entries which storage
14072         class is not scText. These do not define "real" procedures.
14073         (parse_partial_symbols): Likewise.
14074
14075 2003-01-06  Michael Snyder  <msnyder@redhat.com>
14076
14077         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14078
14079 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
14080
14081         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14082         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14083         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14084         deprecated_frame_xmalloc_with_cleanup.
14085         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14086         deprecated_frame_xmalloc.
14087         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14088         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14089
14090 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14091
14092         * x86-64-linux-tdep.c: Include "osabi.h".
14093         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14094
14095         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14096
14097 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14098
14099         * MAINTAINERS (Target Instruction Set Architectures): Update
14100         arm-elf.  Can be built with -Werror, has been multiarched.
14101
14102         * value.h (unpack_long): Make buffer parameter constant.
14103         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14104         * scm-lang.h (scm_parse): Ditto.
14105         * defs.h (extract_typed_address, extract_address): Ditto.
14106         (extract_long_unsigned_integer): Ditto.
14107         * inferior.h (unsigned_pointer_to_address): Ditto.
14108         (signed_pointer_to_address): Ditto.
14109         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14110         * gdbarch.h, gdbarch.c: Regenerate.
14111         * findvar.c (extract_long_unsigned_integer): Update.
14112         (extract_address): Update.
14113         (extract_typed_address): Update.
14114         (unsigned_pointer_to_address): Update.
14115         * values.c (unpack_long): Update.
14116         (unpack_double): Update.
14117         (unpack_pointer): Update.
14118         (unpack_field_as_long): Update.
14119         * d10v-tdep.c (d10v_pointer_to_address): Update.
14120         * avr-tdep.c (avr_pointer_to_address): Update.
14121         * scm-lang.c (scm_unpack): Update.
14122         * findvar.c (signed_pointer_to_address): Update.
14123
14124 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
14125
14126         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14127         since it is in i386-tdep.c.
14128
14129 2003-01-06  J. Brobecker  <brobecker@gnat.com>
14130
14131         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14132         failure introduced in the previous change.
14133
14134 2003-01-05  Michael Chastain  <mec@shout.net>
14135
14136         * README: Remove references to deleted remote-*.c files:
14137         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14138         remote-nrom.c, remote-os9k.c, remote-udi.c.
14139
14140 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
14141
14142         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14143         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14144         i386_get_longjmp_target.
14145
14146 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
14147
14148         * arm-tdep.c (prologue_cache): Change to a pointer.
14149         (_initialize_arm_tdep): Allocate prologue_cache.
14150         (check_prologue_cache): Update.
14151         (save_prologue_cache): Update.
14152         (arm_gdbarch_init): Update.
14153
14154 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14155
14156         * stabsread.c (update_method_name_from_physname): Call complaint()
14157         instead of error.
14158
14159 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14160
14161         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
14162         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14163         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14164
14165         * blockframe.c: Include "gdbcmd.h" and "command.h".
14166         (backtrace_below_main): New variable.
14167         (file_frame_chain_valid, func_frame_chain_valid)
14168         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14169         (generic_func_frame_chain_valid): Remove functions.
14170         (frame_chain_valid, do_flush_frames_sfunc): New functions.
14171         (_initialize_blockframe): New function.
14172         * Makefile.in (blockframe.o): Update dependencies.
14173         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14174         comment.  Call frame_chain_valid ().
14175         * frame.h: Remove old prototypes.  Add prototype for
14176         frame_chain_valid and update comments to match.
14177         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14178         Remove old comment.
14179         * gdbarch.h: Regenerated.
14180         * gdbarch.c: Regenerated.
14181
14182         * alpha-tdep.c (alpha_gdbarch_init): Don't call
14183         set_gdbarch_frame_chain_valid.
14184         * avr-tdep.c (avr_gdbarch_init): Likewise.
14185         * cris-tdep.c (cris_gdbarch_init): Likewise.
14186         * frv-tdep.c (frv_gdbarch_init): Likewise.
14187         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14188         * i386-tdep.c (i386_svr4_init_abi): Likewise.
14189         (i386_nw_init_abi): Likewise.
14190         (i386_gdbarch_init): Likewise.
14191         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14192         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14193         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14194         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14195         * mips-tdep.c (mips_gdbarch_init): Likewise.
14196         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14197         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14198         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14199         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14200         * s390-tdep.c (s390_gdbarch_init): Likewise.
14201         * sh-tdep.c (sh_gdbarch_init): Likewise.
14202         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14203         * v850-tdep.c (v850_gdbarch_init): Likewise.
14204         * vax-tdep.c (vax_gdbarch_init): Likewise.
14205         * x86-64-tdep.c (x86_64_init_abi): Likewise.
14206
14207         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14208         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14209         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14210         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14211         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14212         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14213         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14214         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14215
14216 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14217
14218         * Makefile.in (acconfig_h): Remove incorrect macro.
14219         (config_h): Define.
14220         (osabi.o): Update dependencies.
14221         * configure.tgt: Set gdb_osabi based on target triplet.
14222         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14223         * configure: Regenerated.
14224         * config.in: Regenerated.
14225         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14226         (GDB_OSABI_DEFAULT): Define if not already defined.
14227         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14228         (set_osabi_string): New variables.
14229         (gdbarch_register_osabi): Add new OS ABI to
14230         gdb_osabi_available_names.
14231         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14232         (set_osabi, show_osabi): New functions.
14233         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14234
14235 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14236
14237         * arch-utils.c (gdbarch_info_init): Set osabi to
14238         GDB_OSABI_UNINITIALIZED.
14239         * gdbarch.sh: Add osabi to struct gdbarch and to struct
14240         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
14241         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14242         * gdbarch.c: Regenerated.
14243         * gdbarch.h: Regenerated.
14244         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14245         there's no BFD.
14246         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14247         * osabi.h (enum gdb_osabi): Move to defs.h.
14248         (gdbarch_init_osabi): Update prototype.
14249         * defs.h (enum gdb_osabi): Moved here.
14250         * Makefile.in: Update dependencies.
14251
14252         * alpha-tdep.h: Don't include "osabi.h".
14253         (struct gdbarch_tdep): Remove osabi member.
14254         * alpha-tdep.c: Include "osabi.h".
14255         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14256         iterate over arches.  Update call to gdbarch_init_osabi.
14257         (alpha_dump_tdep): Don't dump osabi.
14258         * alpha-linux-tdep.c: Include "osabi.h".
14259         * alpha-osf1-tdep.c: Include "osabi.h".
14260         * alphafbsd-tdep.c: Include "osabi.h".
14261         * alphanbsd-tdep.c: Include "osabi.h".
14262
14263         * arm-tdep.h: Don't include "osabi.h".
14264         (struct gdbarch_tdep): Remove osabi member.
14265         * arm-tdep.c: Include "osabi.h".
14266         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14267         iterate over arches.  Update call to gdbarch_init_osabi.
14268         (arm_dump_tdep): Don't dump osabi.
14269         * arm-linux-tdep.c: Include "osabi.h".
14270         * armnbsd-tdep.c: Include "osabi.h".
14271
14272         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14273         Update call to gdbarch_init_osabi.
14274
14275         * i386-tdep.h: Don't include "osabi.h".
14276         (struct gdbarch_tdep): Remove osabi member.
14277         * i386-tdep.c: Include "osabi.h".
14278         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14279         iterate over arches.  Update call to gdbarch_init_osabi.
14280         (i386_dump_tdep): Don't dump osabi.
14281         * i386-linux-tdep.c: Include "osabi.h".
14282         * i386-sol2-tdep.c: Include "osabi.h".
14283         * i386bsd-tdep.c: Include "osabi.h".
14284         * i386gnu-tdep.c: Include "osabi.h".
14285         * i386ly-tdep.c: Include "osabi.h".
14286         * i386nbsd-tdep.c: Include "osabi.h".
14287         * i386obsd-tdep.c: Include "osabi.h".
14288
14289         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14290         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14291         check osabi when iterating over arches.  Update call to
14292         gdbarch_init_osabi.
14293         (mips_dump_tdep): Don't dump osabi.
14294
14295         * ns32k-tdep.h: Don't include "osabi.h".
14296         (struct gdbarch_tdep): Remove.
14297         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14298         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
14299         allocate tdep.  Update call to gdbarch_init_osabi.
14300         (ns32k_dump_tdep): Remove.
14301         (_initialize_ns32k_tdep): Update call to gdbarch_register.
14302         * ns32knbsd-tdep.c: Include "osabi.h".
14303
14304         * ppc-tdep.h: Don't include "osabi.h".
14305         (struct gdbarch_tdep): Remove osabi member.
14306         * rs6000-tdep.c: Include "osabi.h".
14307         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
14308         osabi when iterating over arches.  Update call to
14309         gdbarch_init_osabi.
14310         (rs6000_dump_tdep): Don't dump osabi.
14311         * ppc-linux-tdep.c: Include "osabi.h".
14312         * ppcnbsd-tdep.c: Include "osabi.h".
14313
14314         * sh-tdep.h: Don't include "osabi.h".
14315         (struct gdbarch_tdep): Remove osabi member.
14316         * sh-tdep.c: Include "osabi.h".
14317         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14318         iterate over arches.  Update call to gdbarch_init_osabi.
14319         (sh_dump_tdep): Don't dump osabi.
14320         * shnbsd-tdep.c: Include "osabi.h".
14321
14322         * sparc-tdep.c: Include "osabi.h".
14323         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14324         iterate over arches.  Update call to gdbarch_init_osabi.
14325         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
14326         tdep structure.
14327
14328         * vax-tdep.h: Don't include "osabi.h".
14329         (struct gdbarch_tdep): Remove.
14330         * vax-tdep.c: Include "osabi.h".
14331         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14332         iterate over arches.  Don't allocate tdep.  Update call
14333         to gdbarch_init_osabi.
14334         (vax_dump_tdep): Remove.
14335         (_initialize_vax_tdep): Update call to gdbarch_register.
14336
14337 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14338
14339         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14340         entirely.
14341         (breakpoint_re_set_one): Don't fetch the value for a disabled
14342         watchpoint.
14343
14344 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14345
14346         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14347         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14348         (COERCE_FLOAT_TO_DOUBLE): Remove.
14349         * gdbarch.c: Regenerate.
14350         * gdbarch.h: Regenerate.
14351         * Makefile.in: Remove value_h from gdbarch_h.
14352         * valops.c (coerce_float_to_double): New variable.
14353         (default_coerce_float_to_double): Remove.
14354         (standard_coerce_float_to_double): Remove.
14355         (value_arg_coerce): Use coerce_float_to_double.
14356         (_initialize_valops): Add "set coerce-float-to-double".
14357         * value.h (default_coerce_float_to_double): Remove prototype.
14358         (standard_coerce_float_to_double): Remove prototype.
14359
14360         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14361         prototyped.
14362         * mdebugread.c (parse_symbol): Likewise.
14363         * stabsread.c (define_symbol): Mark all functions as prototyped.
14364
14365         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14366         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14367         set_gdbarch_coerce_float_to_double.
14368         * arm-tdep.c (arm_gdbarch_init): Likewise.
14369         * frv-tdep.c (frv_gdbarch_init): Likewise.
14370         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14371         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14372         * mips-tdep.c (mips_gdbarch_init): Likewise.
14373         (mips_coerce_float_to_double): Remove.
14374         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14375         (rs6000_coerce_float_to_double): Remove.
14376         * s390-tdep.c (s390_gdbarch_init): Likewise.
14377         * sh-tdep.c (sh_gdbarch_init): Likewise.
14378         (sh_coerce_float_to_double): Remove.
14379         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14380         (sparc_coerce_float_to_double): Remove.
14381         * v850-tdep.c (v850_gdbarch_init): Likewise.
14382         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14383         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14384         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14385         (hppa_coerce_float_to_double): Remove prototype.
14386         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14387
14388 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14389
14390         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14391
14392 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14393
14394         Suggested by Stewart Brown <sb24@avaya.com>:
14395         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14396         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
14397         (c_type_print_varspec_suffix): Likewise.
14398
14399 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14400
14401         * configure.in: Don't set and AC_SUBST SUBDIRS.
14402         * configure: Regenerated.
14403
14404         * configure.in: Remove code dealing with shared libraries.
14405         * Makefile.in: Remove HLDFLAGS and HLDENV.
14406         * configure: Regenerated.
14407
14408 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
14409
14410         * frame.c (deprecated_frame_xmalloc): New function.
14411         (deprecated_set_frame_saved_regs_hack): New function.
14412         (deprecated_set_frame_extra_info_hack): New function.
14413         * frame.h (deprecated_frame_xmalloc): Declare.
14414         (deprecated_set_frame_saved_regs_hack): Declare.
14415         (deprecated_set_frame_extra_info_hack): Declare.
14416
14417 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14418
14419         * configure.in: Move code that provides the --enable-gdbtk option
14420         right after the code that handles the --enable-tui option, and
14421         polish it somewhat.
14422         * configure: Regenerated.
14423
14424         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
14425         AC_CHECK_FUNCS and remove the old check for pread64.
14426         * acinclude.m4 (AC_GNU_SOURCE): New macro.
14427         * acconfig.h (_GNU_SOURCE): Add.
14428         (HAVE_PREAD64): Remove.
14429         * configure, aclocal.m4, config.in: Regenerated.
14430
14431 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
14432
14433         * alpha-tdep.c: Use get_frame_saved_regs.
14434         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14435         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14436         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14437         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14438         * vax-tdep.c, xstormy16-tdep.c: Ditto.
14439
14440 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14441
14442         * configure.in: Remove all use of the SUBDIRS variable; add
14443         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
14444         code providing the --enable-multi-ice option, and move it right in
14445         front of the code that checks whether gdbserver is supported.
14446         Polish that too.
14447         * configure: Regenerated.
14448         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14449         @SUBDIRS@.
14450
14451 2003-01-03  Andrew Cagney  <cagney@redhat.com>
14452
14453         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14454         * avr-tdep.c, cris-tdep.c: Ditto.
14455         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14456         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14457
14458 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14459
14460         * configure.in: Remove --enable-netrom option.
14461         * configure: Regenerated.
14462
14463 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14464
14465         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14466         declaration for `struct re_pattern_buffer' instead.
14467         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14468
14469 2003-01-03  J. Brobecker  <brobecker@gnat.com>
14470
14471         * mdebugread.c (parse_symbol): Count until the stEnd matching
14472         the structure name.
14473
14474 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14475
14476         * configure.in: Remove --with-cpu option.
14477         subscripts.  Remove evil changequotes here.
14478         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14479         * config.in, configure: Regenerated.
14480
14481         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14482         * configure.in: Cleanup section that sources GDB and BFD configure
14483         subscripts.  Remove evil changequotes here.
14484         * config.in, configure: Regenerated.
14485
14486 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14487
14488         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14489         frame accessor methods.
14490         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14491         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14492         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14493         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14494         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14495         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14496         * z8k-tdep.c: Ditto.
14497
14498 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14499
14500         * configure.in: Remove UI_OUT configuration code.
14501         * ada-lang.c: Update assuming UI_OUT is always true.
14502         * Makefile.in (UIOUT_CFLAGS): Remove.
14503         * configure: Regenerated.
14504         * TODO: Remove blurb about elimination of -DUI_OUT.
14505
14506         * configure.in: Move code that provides the --enable-gdbcli,
14507         --enable-gdbmi options right before the code that handles the
14508         --enable-tui option.  Polish a bit.
14509         * configure: Regenerated.
14510
14511         * configure.in: Rewrite check for GNU regex and the
14512         --without-included regex option, and move it into the "Checks for
14513         library functions" section.  This makes us use the system regex
14514         again by default on systems with version 2 of the GNU C library.
14515         This was apparently broken.
14516         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14517         * acconfig.h (USE_INCLUDED_REGEX): Remove.
14518         * config.in, configure: Regenerated.
14519
14520         * configure.in: Move code that provides the --enable-tui option
14521         before the "Checks for libraries" section.  Polish the code
14522         somewhat and set need_curses to yes if we build the TUI.  Rewrite
14523         code that looks for a library providing termcap functionality to
14524         match more closely what's done in the Readline library, and move
14525         it into to the "Checks for libraries" section.
14526         * configure: Regenerated.
14527         * Makefile.in (TERMCAP): Remove variable.
14528         * config/i386/go32.mh (TERMCAP): Remove variable.
14529
14530 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14531
14532         * MAINTAINERS: Mention gdb_mbuild.sh.
14533         * gdb_mbuild.sh: Rewrite.
14534
14535 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14536
14537         * configure.in: Fix typo in last change.
14538         * config.in, configure: Regenerated.
14539
14540 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14541
14542         * valarith.c (value_binop): Delete obsolete code and comments.
14543         * configure.host: Ditto.
14544         * buildsym.h (make_blockvector): Ditto.
14545         * buildsym.c (make_blockvector): Ditto.
14546         * defs.h (enum language): Ditto.
14547         (chill_demangle): Ditto.
14548         * elfread.c (elf_symtab_read): Ditto.
14549         * dwarfread.c (CHILL_PRODUCER): Ditto.
14550         (set_cu_language): Ditto.
14551         (handle_producer): Ditto.
14552         * expprint.c (print_subexp): Ditto.
14553         * gdbtypes.c (chill_varying_type): Ditto.
14554         * gdbtypes.h (builtin_type_chill_bool): Ditto.
14555         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14556         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14557         (chill_varying_type): Ditto.
14558         * language.h (_LANG_chill): Ditto.
14559         * language.c (binop_result_type, integral_type): Ditto.
14560         (character_type, string_type, structured_type): Ditto.
14561         (lang_bool_type, binop_type_check): Ditto.
14562         * stabsread.h (os9k_stabs): Ditto.
14563         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14564         (define_symbol, read_type, read_struct_fields): Ditto.
14565         (read_array_type, read_enum_type, read_huge_number): Ditto.
14566         (read_range_type, start_stabs): Ditto.
14567         * symfile.c (init_filename_language_table): Ditto.
14568         (add_psymbol_with_dem_name_to_list): Ditto.
14569         * symtab.c (symbol_init_language_specific): Ditto.
14570         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14571         * symtab.h (struct general_symbol_info): Ditto.
14572         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14573         * typeprint.c (typedef_print): Ditto.
14574         * utils.c (fprintf_symbol_filtered): Ditto.
14575         * valops.c (value_cast, search_struct_field, value_slice): Delete
14576         obsolete code.
14577         (varying_to_slice): Delete function.
14578         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14579         (varying_to_slice): Delete declaration.
14580         * MAINTAINERS: Update.
14581
14582 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14583
14584         * configure.in: Reorganize "Checks for library functions section"
14585         a bit.  Remove check for `btowc' and `isascii' functions.
14586         * configure: Regenerated.
14587
14588         * acconfig.h (_MSE_INT_H): Remove.
14589         * configure.in: Create "Checks for header files" section, and move
14590         appropriate tests there.  Don't check for objlist.h, wchar.h,
14591         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
14592         misdetection fix.  Also add "Checks for types", "Checks for
14593         compiler characteristics" and "Checks for library functions"
14594         sections.
14595         * config.in, configure: Regenerated.
14596
14597         * configure.in: Create "Checks for programs" section, and move
14598         appropriate tests there.
14599
14600 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
14601
14602         * configure.in: Create "Checks for libraries" section, and move
14603         appropriate tests there.  Cleanup check for wctype in libw.  Use
14604         AC_SEARCH_LIBS to see whether we need libsocket.
14605         * configure: Regenerated.
14606
14607 For older changes see ChangeLog-2002
14608 \f
14609 Local Variables:
14610 mode: change-log
14611 left-margin: 8
14612 fill-column: 74
14613 version-control: never
14614 End: