* cp-namespace.c: Doc fix.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-11-13  Jim Blandy  <jimb@redhat.com>
2
3         * cp-namespace.c: Doc fix.
4
5 2003-11-12  Michael Snyder  <msnyder@redhat.com>
6
7         * sh64_tdep.c: Regularize some names.
8         (sh_sh64_register_name): Rename to sh64_register_name.
9         (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
10         (sh_sh64_register_byte): Rename to sh64_register_byte.
11         (sh_sh64_build_float_register_type): 
12         Rename to sh64_build_float_register_type.
13         (sh_sh64_register_convert_to_virtual): 
14         Rename to sh64_register_convert_to_virtual.
15         (sh_sh64_register_convert_to_raw): 
16         Rename to sh64_register_convert_to_raw.
17
18         * sh64-tdep.c (translate_insn_rn, is_media_pseudo, 
19         sh64_media_reg_base_num, sh64_compact_reg_base_num, 
20         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
21         sh64_extract_return_value, sh64_show_media_regs, 
22         sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type, 
23         sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
24         sh64_pseudo_register_read, sh64_pseudo_register_write, 
25         sh64_do_pseudo_register, sh_compact_print_registers_info):
26         Delete unused variable 'tdep'.
27
28         * sh64-tdep.c: Coding standard and spelling comment fixes.
29         (sh64_extract_return_value): Replace deprecated_store_floating
30         with store_typed_floating.
31         (sh_sh64_register_convert_to_raw): Replace 
32         deprecated_store_floating with store_typed_floating.
33         (sh_sh64_register_virtual_type): Convert to sh64_register_type.
34         (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
35         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
36         sh64_extract_struct_value_address, sh64_pop_frame, 
37         sh64_extract_return_value, sh64_store_return_value,
38         sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read, 
39         sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
40         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
41         Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
42         (sh64_gdbarch_init): Don't set deprecated_register_bytes,
43         deprecated_register_virtual_type, deprecated_register_raw_size,
44         deprecated_max_register_raw_size, or 
45         deprecated_max_register_virtual_size.  Instead, just set
46         gdbarch_register_type.
47         (sh_sh64_register_raw_size): Delete.
48         (sh_sh64_register_virtual_size): Delete.
49
50 2003-11-12  Daniel Jacobowitz <drow@mvista.com>
51
52         * dwarf2read.c (struct dwarf2_cu): New type.
53
54         (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
55         dwarf2_cu structure to pass down.
56
57         (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
58         (add_partial_enumeration, locate_pdi_sibling, process_die)
59         (read_file_scope, read_func_scope)
60         (read_lexical_block_scope, dwarf2_get_pc_bounds)
61         (dwarf2_add_field, dwarf2_attach_fields_to_type)
62         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
63         (read_structure_scope, read_enumeration, read_array_type)
64         (read_common_block, read_namespace, read_tag_pointer_type)
65         (read_tag_ptr_to_member_type, read_tag_reference_type)
66         (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
67         (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
68         (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
69         (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
70         (read_full_die. read_attribute_value, read_attribute)
71         (read_address, dwarf_decode_line_header, dwarf_decode_lines)
72         (var_decode_location, new_symbol, dwarf2_const_value, die_type)
73         (die_containing_type, type_at_offset, tag_type_to_type)
74         (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
75         (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
76
77 2003-11-12  Daniel Jacobowitz  <drow@mvista.com>
78
79         PR breakpoints/1450
80         * breakpoint.c (insert_bp_location): Fix a logic error by returning
81         0 after a catchpoint fails.
82
83 2003-11-11  Michael Chastain  <mec.gnu@mindspring.com>
84
85         * mips-tdep.c (msymbol_size): Delete.
86
87 2003-11-07  Michael Chastain  <mec@shout.net>
88
89         * symtab.h (struct minimal_symbol): Add size.
90         * dbxread.c: Use it.
91         * elfread.c: (record_minimal_symbol_and_info): Do not use info.
92         Rename to record_minimal_symbol.
93         (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
94         * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
95         (install_minimal_symbols): Ditto.
96         * objfiles.c (terminate_minimal_symbol_table): Ditto.
97         * arm-tdep.c: Delete unused MSYMBOL_SIZE.
98         * m68hc11-tdep.c: Ditto.
99         * mips-tdep.c: Ditto.
100         * sh64-tdep.c: Ditto.
101
102 2003-11-10  Michael Chastain  <mec.gnu@mindspring.com>
103
104         * MAINTAINERS: Change my e-mail address.
105
106 2003-11-10  Andrew Cagney  <cagney@redhat.com>
107
108         * gdbarch.sh (return_value): Replace "inval" and "outval" with
109         "readbuf" and "writebuf".
110         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
111         * d10v-tdep.c (d10v_return_value): Ditto.
112         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
113         (ppc_sysv_abi_broken_return_value): Ditto.
114         (ppc64_sysv_abi_return_value): Ditto.
115         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
116         (ppc_sysv_abi_return_value): Ditto.
117         (ppc_sysv_abi_broken_return_value): Ditto.
118         (ppc64_sysv_abi_return_value): Ditto.
119         * values.c (register_value_being_returned): Update call.
120         * stack.c (return_command): Update call.
121         * gdbarch.h, gdbarch.c: Re-generate.
122
123         * target.h (struct target_ops): Order xfer buffer parameters "read
124         write" not "write read".
125         * bfd-target.c (target_bfd_xfer_partial): Update.
126         * remote.c (remote_xfer_partial): Update.
127         * inftarg.c (child_xfer_partial): Update.
128         * target.c (default_xfer_partial): Update.
129         (target_read_partial, target_write_partial): Update.
130         (debug_to_xfer_partial): Update.
131
132         * arch-utils.h, arch-utils.c: Fix typo in comment.
133
134         * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
135         (gdbarch_from_bfd): Call gdbarch_find_by_info.
136         (set_gdbarch_from_file): Call
137         "deprecated_current_gdbarch_select_hack".
138
139 2003-11-09  Andrew Cagney  <cagney@redhat.com>
140
141         * arch-utils.c (gdbarch_update_p): New function.
142         * gdbarch.sh (gdbarch_update_p): Delete function.
143         (find_arch_by_info, gdbarch_find_by_info): New functions.
144         (deprecated_current_gdbarch_select_hack): New function.
145         * gdbarch.c: Re-generate.
146
147         * gdbarch.sh (clear_gdbarch_swap): Delete function.
148         (swapout_gdbarch_swap): Delete function.
149         (swapin_gdbarch_swap): Delete function.
150         (init_gdbarch_swap): Delete function.
151         (initialize_non_multiarch): Delete function.
152         (current_gdbarch_swap_in_hack): New function.
153         (current_gdbarch_swap_out_hack): New function.
154         (current_gdbarch_swap_init_hack): New function.
155         * gdbarch.c: Re-generate.
156
157         * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
158         parameter to "current_gdbarch".  Add comment explaining why.
159         (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
160         (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
161         * gdbarch.c: Re-generate.
162         
163         * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
164         * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
165         * config/s390/xm-linux.h: Delete file.
166         * config/m88k/xm-delta88v4.h: Delete stray.
167
168         * Makefile.in (arch-utils.o): Update dependencies.
169         * arch-utils.c: Include "osabi.h".
170         (gdbarch_info_fill): New function.
171         * arch-utils.h (gdbarch_info_fill): Declare.
172         * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
173         * gdbarch.c: Re-generate.
174
175 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
176             David S. Miller  <davem@redhat.com>
177
178         * glibc-tdep.c, glibc-tdep.h: New files.
179         * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
180         * config/i386/linux.mt (TDEPFILES): Likewise.
181         * i386-linux-tdep.c (glibc-tdep.h): Include.
182         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
183         (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
184         * arm-linux-tdep.c (glibc-tdep.h): Include.
185         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
186         (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
187         * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
188         (glibc_tdep_h): Define.
189         (glibc-tdep.o): Add dependencies.
190         (arm-linux-tdep.o): Update dependencies.
191         (i386-linux-tdep.o): Likewise.
192
193 2003-11-09  Andrew Cagney  <cagney@redhat.com>
194
195         * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
196         * config/mips/nm-irix6.h: Delete file.
197         * config/mips/nm-linux.h: Update copyright.
198         (MIPS_GNULINUX_TARGET): Delete macro.
199         * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
200         * config/mips/xm-irix6.h: Delete file.
201         * config/mips/linux.mh (XM_FILE): Delete definition.
202         * config/mips/xm-linux.h: Delete file.
203
204 2003-11-09  Andrew Cagney  <cagney@redhat.com>
205
206         * d10v-tdep.c (d10v_return_value): New function.
207         (d10v_use_struct_convention): Delete function.
208         (d10v_store_return_value): Delete function.
209         (d10v_extract_struct_value_address): Delete function.
210         (d10v_gdbarch_init): Set "return_value" instead of
211         "extract_return_value", "store_return_value",
212         "extract_struct_value_address", and "use_struct_convention".
213         (RET1_REGNUM): Delete const.
214
215 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
216
217         From David S. Miller  <davem@redhat.com>:
218         * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
219         * gdbarch.c, gdbarch.h: Regenerated.
220         * arch-utils.c (generic_skip_solib_resolver): New function.
221         * arch-utils.h (generic_skip_solib_resolver): New prototype.
222         * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
223
224 2003-11-07  Andrew Cagney  <cagney@redhat.com>
225
226         * top.c (print_gdb_version): Replace STREQ with strcmp.
227         * valops.c (value_struct_elt_for_reference): Ditto.
228         (value_struct_elt_for_reference): Ditto.
229         * symtab.c (gdb_mangle_name): Ditto.
230         (find_line_symtab): Ditto.
231         * symmisc.c (maintenance_print_symbols): Ditto.
232         * symfile.c (symbol_file_command): Ditto.
233         * stabsread.c (define_symbol, read_type): Ditto.
234         (cleanup_undefined_types, scan_file_globals): Ditto.
235         * solib.c (solib_map_sections): Ditto.
236         * solib-svr4.c (bfd_lookup_symbol): Ditto.
237         * rs6000-tdep.c (skip_prologue): Ditto.
238         * p-valprint.c (pascal_value_print): Ditto.
239         (pascal_object_is_vtbl_ptr_type): Ditto.
240         * objfiles.c (in_plt_section): Ditto.
241         * minsyms.c (lookup_minimal_symbol): Ditto.
242         (compact_minimal_symbols): Ditto.
243         (find_solib_trampoline_target): Ditto.
244         * mdebugread.c (parse_type): Ditto.
245         * language.c (set_language_command): Ditto.
246         (set_type_command, set_range_command): Ditto.
247         * f-lang.c (add_common_block): Ditto.
248         (add_common_block): Ditto.
249         (find_first_common_named): Ditto.
250         (patch_all_commons_by_name): Ditto.
251         * elfread.c (elf_locate_sections): Ditto.
252         (elf_locate_sections): Ditto.
253         (elfstab_offset_sections): Ditto.
254         * dwarf2read.c (dwarf2_locate_sections): Ditto.
255         * dbxread.c (add_old_header_file): Ditto.
256         (find_corresponding_bincl_psymtab): Ditto.
257         (read_dbx_symtab, process_one_symbol): Ditto.
258         * coffread.c (patch_opaque_types): Ditto.
259         * cli/cli-decode.c (delete_cmd): Ditto.
260         * cli/cli-cmds.c (pwd_command, list_command): Ditto.
261         * c-typeprint.c (c_type_print_base): Ditto.
262         * breakpoint.c (bpstat_stop_status): Ditto.
263         (clear_command, breakpoint_re_set_one): Ditto.
264
265 2003-11-07  Andrew Cagney  <cagney@redhat.com>
266
267         * bcache.h: Update copyright.  Add comments on bcache VS hashtab.
268         * bcache.c (struct bstring): Make "length" an unsigned short, add
269         "half_hash".
270         (struct bcache): Add "half_hash_error_count".
271         (bcache): Compute and save the "half_hash".  Compare the
272         "half_hash" before comparing the length.  Update
273         half_hash_error_count.
274
275 2003-11-07  Andrew Cagney  <cagney@redhat.com>
276
277         * inftarg.c (child_xfer_partial): New function
278         (init_child_ops): Set "to_xfer_partial".
279
280 2003-11-07  Andrew Cagney  <cagney@redhat.com>
281
282         * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
283         set "return_value" instead of "use_struct_convention".
284         (ppc_linux_use_struct_convention): Delete function.
285         (ppc_linux_return_value): New function.
286         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
287         (ppc_sysv_abi_broken_return_value): New function.
288         (do_ppc_sysv_return_value): Add "gdbarch" parameter.
289         (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
290         static.
291         (ppc_sysv_abi_extract_return_value): Delete function.
292         (ppc_sysv_abi_broken_extract_return_value): Delete function.
293         (ppc_sysv_abi_store_return_value): Delete function.
294         (ppc_sysv_abi_broken_store_return_value): Delete function.
295         (ppc_sysv_abi_use_struct_convention): Delete function.
296         (ppc64_sysv_abi_use_struct_convention): Delete function.
297         (ppc64_sysv_abi_extract_return_value): Delete function.
298         (ppc64_sysv_abi_store_return_value): Delete function.
299         * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
300         (ppcnbsd_init_abi): Set "return_value", instead of
301         "use_struct_convention", "extract_return_value", and
302         "store_return_value".
303         (ppcnbsd_use_struct_convention): Delete function.
304         * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
305         (ppc_sysv_abi_return_value): Declare.
306         (ppc_sysv_abi_broken_return_value): Declare.
307         (ppc_sysv_abi_use_struct_convention): Delete.
308         (ppc_sysv_abi_store_return_value): Delete.
309         (ppc_sysv_abi_extract_return_value): Delete.
310         (ppc_sysv_abi_broken_store_return_value): Delete.
311         (ppc_sysv_abi_broken_extract_return_value): Delete.
312         (ppc64_sysv_abi_use_struct_convention): Delete.
313         (ppc64_sysv_abi_extract_return_value): Delete.
314         (ppc64_sysv_abi_store_return_value): Delete.
315         * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
316         set "return_value" instead of "extract_return_value",
317         "store_return_value", and "use_struct_convention".
318
319 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
320
321         * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
322
323         * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
324         fscanf.
325
326 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
327
328         * fbsd-proc.c: Fix formatting.
329
330 2003-11-06  Kevin Buettner  <kevinb@redhat.com>
331
332         * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
333         Define.
334         (new_variant): Set name for iacc0_regnum.
335         (frv_register_name): Accommodate pseudo-registers.
336         (frv_register_type): Add case for iacc0_regnum.
337         (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
338         (frv_gdbarch_init): Set number of pseudo registers.  Establish
339         pseudo-register read/write methods.
340
341 2003-11-06  Andrew Cagney  <cagney@redhat.com>
342
343         * valops.c (destructor_name_p): Replace STREQN with strncmp.
344         * top.c (command_line_input): Ditto.
345         * objc-exp.y (yylex): Ditto.
346         * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
347         * jv-exp.y (yylex): Ditto.
348         * f-exp.y (yylex): Ditto.
349         * event-top.c (command_line_handler): Ditto.
350         * environ.c (get_in_environ): Ditto.
351         (set_in_environ): Ditto.
352         * dwarfread.c (handle_producer): Ditto.
353         * dbxread.c (process_one_symbol): Ditto.
354         * c-typeprint.c (c_type_print_base): Ditto.
355         * c-exp.y (yylex): Ditto.
356
357 2003-11-06  Andrew Cagney  <cagney@redhat.com>
358             Jeff Johnston  <jjohnstn@redhat.com>
359
360         * target.c (add_target): Only set "to_xfer_partial" when NULL.
361         (init_dummy_target): Set "to_xfer_partial".
362
363 2003-11-06  Andrew Cagney  <cagney@redhat.com>
364
365         * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
366         REGISTER_CONVENTION.
367
368 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
369
370         * breakpoint.c (insert_bp_location, allocate_bp_location): Make
371         static.
372
373 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
374
375         * breakpoint.c (remove_breakpoint): Take an bp_location
376         instead of a breakpoint argument.  Check the bp_location's type.
377         Fix a reversed condition for hardware breakpoints.
378
379         (insert_bp_location): Update call to remove_breakpoint.
380         (remove_breakpoints): Likewise.  Use ALL_BP_LOCATIONS.
381         (remove_hw_watchpoints): Likewise.
382         (reattach_breakpoints): Likewise.
383         (detach_breakpoints): Likewise.
384         (delete_breakpoint): Likewise.
385
386 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
387
388         * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
389         (beakpoint_init_inferior): Likewise.
390         (breakpoint_here_p): Likewise.  Only check addresses for software
391         or hardware breakpoints.
392         (breakpoint_inserted_here_p): Likewise.
393         (breakpoint_thread_match): Likewise.  Correct comment.
394         (bpstat_have_active_hw_watchpoints): Likewise.
395         (check_duplicates): Likewise.
396
397 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
398
399         * breakpoints.c (insert_bp_location): New function, broken out
400         from insert_breakpoints.  Work on an bp_location instead of a
401         breakpoint.
402         (insert_breakpoints): Use it.
403
404 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
405
406         * breakpoint.h (struct bp_location): Add section.
407         (struct breakpoint): Remove section.
408         * breakpoint.c (insert_breakpoints, remove_breakpoint)
409         (breakpoint_here_p, breakpoint_inserted_here_p)
410         (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
411         (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
412         (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
413         section through loc.
414
415 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
416
417         * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
418         instead of ALL_BREAKPOINTS.  Check for software breakpoints only.
419
420 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
421
422         * breakpoint.c (allocate_bp_location): Take bpt and bp_type
423         arguments.  Initialize owner and type for the new breakpoint
424         location item.
425         (set_raw_breakpoint): Update call to allocate_bp_location.
426
427 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
428
429         * breakpoint.h (struct bp_location): Add a chain pointer.
430         * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
431         macros.
432         (bp_location_chain): New variable.
433         (allocate_bp_location): New function.
434         (set_raw_breakpoint): Use it.
435         (delete_breakpoint): Remove ->loc from the bp_location_chain.
436
437 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
438
439         * breakpoint.h (enum bp_loc_type, struct bp_location): New.
440         (struct breakpoint): Remove address, shadow_contents, inserted,
441         requested_address, and duplicate.  Add a struct bp_location.
442         * breakpoint.c (condition_command, read_memory_nobpt)
443         (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
444         (reattach_breakpoints, update_breakpoints_after_exec)
445         (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
446         (breakpoint_init_inferior, breakpoint_here_p)
447         (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
448         (breakpoint_thread_match, bpstat_stop_status)
449         (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
450         (describe_other_breakpoints, check_duplicates)
451         (make_breakpoint_permanent, create_thread_event_breakpoint)
452         (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
453         (set_longjmp_resume_breakpoint, mention, create_breakpoints)
454         (watch_command_1, print_one_exception_catchpoint)
455         (clear_command, breakpoint_re_set_one): Adjust member accesses to
456         use the breakpoint's ->loc.
457         (set_raw_breakpoint): Likewise.  Initialize ->loc.
458         (delete_breakpoint): Likewise.  Free ->loc.
459
460 2003-11-05  Andrew Cagney  <cagney@redhat.com>
461
462         * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
463         macro.
464         * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
465         * config/i386/tm-cygwin.h
466         (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
467         * config/powerpc/tm-linux.h
468         (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
469         (at_subroutine_call_instruction_target): Delete declaration.
470         * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
471         * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
472         * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
473
474         * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
475         "struct bfd_section" and "struct bfd".
476         * target.h (struct section_table): Ditto.
477         * rs6000-nat.c (xcoff_relocate_core): Ditto.
478         * solib-svr4.c (elf_locate_base): Ditto.
479         * pa64solib.c (dld_cache_t): Ditto.
480         * objfiles.h (struct obj_section): Ditto.
481         * objfiles.c (add_to_objfile_sections): Ditto.
482         * exec.c (bfdsec_to_vmap): Ditto.
483         (add_to_section_table): Ditto.
484         (build_section_table): Ditto.
485         * corelow.c (get_core_register_section): Ditto.
486         * coffread.c (find_linenos): Ditto.
487         * elfread.c (elf_interpreter): Delete #if0'd function.
488
489         * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
490         * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
491         * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
492         * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
493
494         * arch-utils.h (generic_cannot_extract_struct_value_address):
495         Delete declaration.
496         * wince.c (_initialize_wince): Fix multi-line string.
497         * ia64-tdep.c (floatformat_valid): Convert to ISO C.
498
499 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
500
501         * top.c (execute_command): Fix broken logic for command execution
502         while inferior is running in async mode.
503
504 2003-11-06  Mark Kettenis  <kettenis@gnu.org>
505
506         * dwarf2-frame.c (execute_cfa_program): Mark register as
507         REG_SAVED_REG for DW_CFA_register opcode.
508
509 2003-11-05  Mark Kettenis  <kettenis@gnu.org>
510
511         * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
512         %rsp, %rip and %eflags to match ABI-change.
513
514 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
515
516         * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
517         (ia64_gdbarch_init): Don't bother calculating the os.  
518         Instead use the gdbarch_info struct and look at the osabi field.  
519         Also use gdbarch_list_lookup_by_info() to look for a 
520         candidate gdbarch. 
521
522 2003-11-05  Kevin Buettner  <kevinb@redhat.com>
523
524         * frv-tdep.c (frv_register_byte): Delete.
525         (frv_extract_return_value, frv_store_return_value)
526         (frv_extract_struct_value_address): Don't call frv_register_byte().
527         Convert to non-deprecated form.
528         (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
529         Convert calls to set_gdbarch_deprecated_extract_return_value(),
530         set_gdbarch_deprecated_store_return_value(), and
531         set_gdbarch_deprecated_extract_struct_value_address() into
532         non-deprecated forms.
533
534 2003-11-05  Andrew Cagney  <cagney@redhat.com>
535
536         * mips-tdep.c (mips_dump_tdep): Do not print
537         PRINT_EXTRA_FRAME_INFO.
538         * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
539         Rename PRINT_EXTRA_FRAME_INFO.
540         * mips-tdep.c (mips_print_extra_frame_info): Delete function.
541         * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
542         (mips_print_extra_frame_info): Delete declaration.
543         * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
544
545 2003-11-05 Elena Zannoni  <ezannoni@redhat.com>
546
547         * coffread.c (coff_symtab_read): Remove passing of info parameter
548         to prim_record_minimal_symbol_and_info.
549
550 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
551
552         * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
553         (decode_base_type): Delete ifdeffed out code.
554
555 2003-11-04  Andrew Cagney  <cagney@redhat.com>
556
557         * symtab.c (find_active_alias): Delete function.
558         (lookup_block_symbol): Delete alias code.
559         * stabsread.c (resolve_live_range): Delete function.
560         (add_live_range): Delete function.
561         (resolve_symbol_reference): Delete function.
562         (define_symbol): Delete live range and alias code.
563         (scan_file_globals): Delete alias code.
564         * symtab.h (SYMBOL_RANGES): Delete macro.
565         (struct range_list): Delete structure.
566         (struct symbol): Delete field "ranges".
567         (SYMBOL_ALIASES): Delete macro.
568         (struct alias_list): Delete structure.
569         (struct symbol): Delete field "aliases".
570
571 2003-11-04  Michael Snyder  <msnyder@redhat.com>
572
573         * MAINTAINERS: Remove myself as owner of breakpoints and 
574         of sparc/solaris.
575
576 2003-11-03  Corinna Vinschen  <vinschen@redhat.com>
577
578         * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
579         (sh_sh4al_dsp_register_name): Ditto.
580         (sh4_nofpu_show_regs): Ditto.
581         (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
582         bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
583
584 2003-11-03  Andrew Cagney  <cagney@redhat.com>
585
586         * bcache.c: Include "gdb_assert.h".
587         (struct bcache): Add fields "expand_count" and
588         "expand_hash_count".
589         (expand_hash_table): Update the expand counts.
590         (print_bcache_statistics): Use XCALLOC, not alloca.  Print stats
591         on object sizes and hashes.
592         * Makefile.in (bcache.o): Update dependencies.
593
594 2003-11-03  Andrew Cagney  <cagney@redhat.com>
595
596         * exec.c (xfer_memory): Eliminate xfer_fn.
597
598 2003-10-31  Kevin Buettner  <kevinb@redhat.com>
599
600         * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
601         (opcodes/frv-desc.h): Include.
602         (iacc0h_regnum, iacc0l_regnum): Define.
603         (last_spr_regnum, frv_num_regs): Update.
604         (new_variant): Don't supply default names for holes in the SPRs.
605         Supply names for iacc0h_regnum and iacc0l_regnum.
606         (frv_register_type): Use symbolic constants first_fpr_regnum and
607         last_fpr_regnum instead of hardcoded constants 64 and 127.  Use
608         builtin_type_int instead of builtin_type_int32.
609         (frv_register_sim_regno): New function.
610         (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
611         * Makefile.in (gdb_sim_frv_h): Define.
612         (frv-tdep.o): Update dependencies.
613
614 2003-10-31  Andrew Cagney  <cagney@redhat.com>
615
616         * avr-tdep.c (avr_frame_this_id): Do not call
617         deprecated_inside_entry_file.
618         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
619         * m32r-tdep.c (m32r_frame_this_id): Ditto.
620         * d10v-tdep.c (d10v_frame_this_id): Ditto.
621         * arm-tdep.c (arm_prologue_this_id): Ditto.
622         * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
623
624 2003-10-31  Jim Blandy  <jimb@redhat.com>
625
626         * elfread.c (elf_symtab_read): Allocate correct number of tail
627         elements to sectinfo structure.  (Fix from Woody LaRue.)
628
629 2003-10-31  Andrew Cagney  <cagney@redhat.com>
630
631         * stack.c (return_command): Use get_frame_type, instead of
632         CALL_DUMMY_HAS_COMPLETED.
633         * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
634         * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
635
636 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
637
638         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
639         explicitly specify size of array.
640         (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
641         TDEP->sc_num_regs.
642
643 2003-10-31  Andrew Cagney  <cagney@redhat.com>
644
645         * s390-tdep.c (s390_cannot_extract_struct_value_address): New
646         function.
647         (s390_gdbarch_init): Set extract_struct_value_address.
648         * arch-utils.c (generic_cannot_extract_struct_value_address):
649         Delete function.
650         * arch-utils.h (generic_cannot_extract_struct_value_address):
651         Delete definition.
652
653 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
654
655         * i386-linux-nat.c (fetch_core_registers): Remove.
656         (linux_elf_core_fns): Remove.
657         (_initialize_i386_linux_nat): Remove.
658
659 2003-10-31  Andrew Cagney  <cagney@redhat.com>
660
661         * solib-svr4.c: Update copyright.  Include "bfd-target.h" and
662         "exec.h".
663         (exec_entry_point): New function.
664         (enable_break): Create a "tmp_bfd_target", use that and
665         entry_point_address when computing the relocation offset.
666         (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
667         * Makefile.in (solib-svr4.o): Update dependencies.
668
669 2003-10-31  Andrew Cagney  <cagney@redhat.com>
670
671         * defs.h (XZALLOC): Define.
672         * target.h (struct target_ops): Add "to_data";
673         * bfd-target.h, bfd-target.c: New files.
674         * Makefile.in (SFILES): Add "bfd-target.c".
675         (COMMON_OBS): Add "bfd-target.o".
676         (bfd-target.o): Specify dependencies.
677         (bfd_target_h): Define.
678         * defs.h (XZALLOC): Define.
679
680 2003-10-31  Andrew Cagney  <cagney@redhat.com>
681
682         * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
683         adjust_breakpoint_address.
684         * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
685         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
686         * ppc-sysv-tdep.c: Include "target.h".  Update copyright.
687         (ppc64_sysv_abi_adjust_breakpoint_address): New function.
688
689 2003-10-31  Andrew Cagney  <cagney@redhat.com>
690
691         * target.h (struct target_ops): Replace "to_read_partial" and
692         "to_write_partial" with "to_xfer_partial".  Update comments.
693         * target.c (debug_to_write_partial): Delete function.
694         (debug_to_xfer_partial): Replace debug_to_read_partial.
695         (add_target, update_current_target, setup_target_debug): Set
696         "to_xfer_partial" instead of "to_read_partial" and
697         "to_write_partial".
698         (default_xfer_partial): Replace "default_write_partial".
699         (default_read_partial): Delete.
700         (target_read_partial, target_write_partial): Call
701         "to_xfer_partial".
702         * remote.c (init_remote_ops): Set "to_xfer_partial".
703         (init_remote_async_ops): Ditto.
704         (remote_xfer_partial): Replace "remote_read_partial".
705
706 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
707
708         * i386-tdep.c (i386_supply_fpregset): Support floating-point
709         registers in `fxsave' format.
710         (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
711
712 2003-10-30  Mark Kettenis  <kettenis@gnu.org>
713
714         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
715         (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
716         TDEP->gregset_num_regs and tdep->sizeof_gregset.
717
718         * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
719         specify size of array.
720         (i386_linux_init_abi): Remove initialization of
721         TDEP->num_xmm_regs.  Use I386_LINUX_NUM_REGS for number of
722         registers.  Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
723
724         * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
725         * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
726         core-regset.o.
727
728         * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
729         the ELF header.
730
731 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
732
733         * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
734         * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
735         core-regset.o.
736
737         * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
738
739         * corelow.c: Include "arch-utils.h", "regset.h" and
740         "gdb_assert.h".
741         (core_gdbarch): New variable.
742         (sniff_core_bfd): Don't sniff if we have support for register sets
743         in CORE_GDBARCH.
744         (core_close): Reset CORE_GDBARCH.
745         (core_open): Initialize CORE_GDBARCH.
746         (get_core_register_section): Use register sets if they are
747         supported by CORE_GDBARCH.
748         (get_core_registers): Don't print error message if we have support
749         for register sets in CORE_GDBARCH.
750
751 2003-10-29  Andrew Cagney  <cagney@redhat.com>
752
753         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
754         default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
755
756 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
757
758         * objfiles.h (clear_objfile_data): New prototype.
759         * objfiles.c (clear_objfile_data): New function.
760         * symfile.c (reread_symbols): Clear per-objfile data.
761
762 2003-10-28  Jeff Johnston  <jjohnstn@redhat.com>
763  
764         * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
765         printf_unfiltered instead of printf_filtered for output messages.
766         (add_symbol_file_command): Ditto.
767         (reread_symbols): Ditto.
768         (overlay_auto_command): Ditto.
769         (overlay_manual_command): Ditto.
770         (overlay_off_command): Ditto.
771
772 2003-10-27  Mark Kettenis  <kettenis@gnu.org>
773
774         * arch-utils.c (deprecated_select_gdbarch_hack): New function.
775         (gdbarch_from_bfd): New function.
776         (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
777         deprecated_select_gdbarch_hack.
778         * arch-utils.h (gdbarch_from_bfd): New prototype.
779
780 2003-10-27  Andrew Cagney  <cagney@redhat.com>
781
782         * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
783         arch_info.  Use warning instead of fprintf_filtered.  Do not use
784         deprecated bfd_printable_arch_mach.
785
786 2003-10-26  Kevin Buettner  <kevinb@redhat.com>
787
788         * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
789         Delete.
790         (frv_register_type): Rename from frv_register_virtual_type.  Add
791         ``struct gdbarch *'' parameter.
792         (frv_gdbarch_init): Delete calls to the following functions:
793         set_gdbarch_deprecated_size(),
794         set_gdbarch_deprecated_register_bytes(),
795         set_gdbarch_deprecated_register_raw_size(),
796         set_gdbarch_deprecated_max_register_raw_size(),
797         set_gdbarch_deprecated_register_virtual_size(),
798         set_gdbarch_deprecated_max_register_virtual_size(),
799         set_gdbarch_deprecated_register_virtual_size(),
800         set_gdbarch_deprecated_register_virtual_type().
801         Add call to function set_gdbarch_register_type().
802
803 2003-10-26  Mark Kettenis  <kettenis@gnu.org>
804
805         * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
806         FDOFF_REGNUM): Remove defines.
807         * win32-nat.c (do_child_fetch_inferior_registers): Include
808         "i387-tdep.h".
809         (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
810         I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM.  Define and
811         undefine I387_ST0_REGNUM.
812
813         * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
814         * x86-64-tdep.c (x86_64_store_return_value): Use
815         I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
816
817         Change register numbers to enumartion values.
818         * i386-tdep.h (enum i386_regnum): New.
819         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
820         I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
821         I386_ST0_REGNUM): Remove defines.
822         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
823         I386_EDI_REGNUM): Remove defines.
824
825 2003-10-24  Andrew Cagney  <cagney@redhat.com>
826
827         * target.c: Include "gdbcore.h".
828         (get_target_memory, get_target_memory_unsigned): New functions.
829         * target.h (get_target_memory, get_target_memory_unsigned): Declare.
830         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
831         Use get_target_memory_unsigned.
832         * Makefile.in (target.o): Update dependencies.
833
834 2003-10-24  Andrew Cagney  <cagney@redhat.com>
835
836         * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
837         * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
838         * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
839         * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
840         * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
841
842         * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
843         (can_run_code_for): Use the OO term "singleton".
844
845 2003-10-23  Andrew Cagney  <cagney@redhat.com>
846
847         * Makefile.in (stack.o): Add $(regcache_h).
848         * stack.c: Include "regcache.h"
849         (return_command): Rewrite.  Use get_frame_id and
850         get_selected_frame.  Eliminate "deprecated_selected_frame".  Warn
851         about unhandled return-values.
852         * value.h (set_return_value): Delete declaration.
853         * values.c (set_return_value): Delete function.
854
855 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
856
857         * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
858         (pseudo_regs): Add comment regarding register stack registers.
859         (ia64_alloc_frame_cache):  Initialize new prev_cfm field to 0.
860         (floatformat_valid): New static routine.
861         (floatformat_ia64_ext): Add name field and set up is_valid routine
862         to floatformat_valid().
863         (examine_prologue):  For the previous cfm, use
864         frame_unwind_register()
865         if the cfm is not stored in a register-stack register.  Save the
866         previous cfm value in the prev_cfm field.  Add debug output.
867         (ia64_frame_this_id): Use frame_id_build_special() to also register
868         the bsp.  Add debug output.
869         (ia64_sigtramp_frame_this_id): Ditto.
870         (ia64_frame_prev_register):  Look at cache saved_regs for a few more
871         registers and also add some checks for framelessness before accepting
872         current register values for fields such as return address.  For cfm,
873         use the cached prev_cfm field if available.  Add comment to explain
874         PSR logic.  Add debug output.
875         (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
876         as part of initialization.
877         (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
878         calculated.  Cache the bsp and cfm values.
879         (ia64_sigtramp_frame_prev_register): Add logic to this routine out
880         instead of using ia64_frame_prev_register() which doesn't expect most
881         registers to be saved.  The saved values for bsp and sp
882         can be taken from the cache.  Add debug output.
883         (ia64_push_dummy_call): Use frame_id_build_special() to also register
884         the bsp.
885
886 2003-10-23  Jim Blandy  <jimb@redhat.com>
887
888         * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
889         architecture the current arch can run code for --- but not if it's
890         a superset.
891         (can_run_code_for): New function.
892
893 2003-10-22  James E Wilson  <wilson@specifixinc.com>
894
895         * MAINTAINERS: Move myself from paper trail section back to write
896         after approval section.
897
898 2003-10-22  Andrew Cagney  <cagney@redhat.com>
899
900         * exec.h: New file.
901         * win32-nat.c: Include "exec.h".
902         * solib.c: Include "exec.h".
903         * target.h (build_section_table): Delete declaration.
904         * somsolib.c: Include "exec.h".
905         (exec_ops): Delete extern declaration.
906         * rs6000-nat.c: Update copyright.  Include "exec.h".
907         (exec_ops): Delete extern declaration.
908         * pa64solib.c: Update copyright.  Include "exec.h".
909         (exec_ops): Delete extern declaration.
910         * exec.c: Update copyright.  Include "exec.h".
911         * corelow.c: Update dependencies.  Include "exec.h".
912         * Makefile.in (exec_h): Define.
913         (exec.o, somsolib.o): Update dependencies.
914         (pa64solib.o, corelow.o): Update dependencies.
915
916 2003-10-22  Andrew Cagney  <cagney@redhat.com>
917
918         * target.c: Include "gdb_assert.h" (target_read): Call
919         "target_read_partial", not "target_write_partial".
920         (default_read_partial, default_write_partial): New function.
921         (target_read_partial, target_write_partial): Simplify, assume that
922         there is always a read/write method.
923         (update_current_target, add_target): Always set "to_read_partial"
924         and "to_write_partial".
925         (target_write, target_read): Fail on a zero byte transfer.
926         * Makefile.in (target.o): Update dependencies.
927         * target.h: Update copyright date.
928         (target_object): Fix typo.
929
930 2003-10-22  Andrew Cagney  <cagney@redhat.com>
931
932         * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
933         multi-arch method, add "targ" parameter.
934         (struct target_ops): Declare.   
935         * gdbarch.h, gdbarch.c: Re-generate.
936         * Makefile.in (c-valprint.o): Update dependencies.
937         * arch-utils.h: Update copyright.
938         (convert_from_func_ptr_addr_identity): Declare.
939         * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
940         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
941         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
942         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
943         * infcall.c (find_function_addr, call_function_by_hand): Update.
944         * c-valprint.c: Include "target.h".
945         (print_function_pointer_address): Update.
946
947 2003-10-22  Andrew Cagney  <cagney@redhat.com>
948
949         * target.c (target_close): New function.
950         (debug_to_close): Use "target_close".
951         (push_target): Use "target_close".
952         (unpush_target): Use "target_close".
953         (pop_target): Use "target_close".
954         * target.h (struct target_ops): Add "to_xclose".
955         (target_open): Delete macro.  Move comment to "to_open".
956         (target_close): Replace macro with function that takes a target.
957         * top.c (quit_target): Pass "current_target" to "target_close".
958
959 2003-10-21  Elena Zannoni  <ezannoni@redhat.com>
960
961         * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
962         Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
963         * symtab.h (lookup_minimal_symbol_text): Update.
964         * breakpoint.c (create_overlay_event_breakpoint,
965         create_longjmp_breakpoint): Update callers.
966         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
967         * symtab.c (find_pc_sect_line): Ditto.
968
969 2003-10-21  Andrew Cagney  <cagney@redhat.com>
970
971         * target.c (errno): Delete extern declaration.
972
973 2003-10-20  Jeff Johnston  <jjohnstn@redhat.com>
974
975         * ia64-tdep.c: Change all occurrences of
976         DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
977         (ia64_frame_prev_register): Minor whitespace change.
978
979 2003-10-20  Michael Chastain  <mec@shout.net>
980
981         * config/djgpp/fnchange.lst: Add lines for:
982         sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
983         sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
984         sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
985         sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
986         sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
987         sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
988         sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
989
990 2003-10-20  Andrew Cagney  <cagney@redhat.com>
991
992         * values.c (register_value_being_returned): Update comments.  Use
993         "gdbarch_return_value" when available.
994         (using_struct_return): Ditto.
995         (set_return_value): Ditto.  Use "gdbarch_return_value" when
996         available..  Print a warning, and not an error, when an unhandled
997         return type is encountered.
998         * infcmd.c: Include "gdb_assert.h".
999         (print_return_value): When gdbarch_return_value_p, and using
1000         struct return, assume that the value is not available.
1001         * defs.h (return_value_convention): Define.
1002         * gdbarch.sh (gdbarch_return_value): New predicate method.
1003         * gdbarch.h, gdbarch.c: Re-generate
1004         * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1005
1006 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1007
1008         * symtab.c: Replace "struct sec" with "struct bfd_section".
1009         * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1010
1011 2003-10-19  Michael Chastain  <mec@shout.net>
1012
1013         * config/djgpp/fnchange.lst: Add lines for:
1014         gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1015         gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1016         gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1017
1018 2003-10-19  Mark Kettenis  <kettenis@gnu.org>
1019
1020         * amd64fbsd-nat.c (fetch_inferior_registers,
1021         store_inferior_registers): Remove functions.
1022         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1023
1024 2003-10-18  Mark Kettenis  <kettenis@gnu.org>
1025
1026         Add NetBSD/amd64 native configuration:
1027         * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1028         * amd64nbsd-tdep.c: New file.
1029         * amd64nbsd-nat.c: New file.
1030         * amd64bsd-nat.c: New file.
1031         * config/i386/nbsd64.mh: New file.
1032         * config/i386/nbsd64.mt: New file.
1033         * configure.host: Add x86_64-*-netbsd*.
1034         * configure.tgt: Add x86_64-*-netbsd*.
1035         * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1036         New targets.
1037         * NEWS (New native configurations): Mention NetBSD/amd64.
1038
1039 2003-10-17  Michael Chastain  <mec@shout.net>
1040
1041         * config/djgpp/fnchange.lst: Remove dead lines for:
1042         bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1043         bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1044         bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1045         gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1046         gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1047         gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1048         gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1049         gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1050         gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1051         gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1052         gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1053         gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1054         gdb/config/sparc/tm-sparclite.h,
1055         gdb/gdbtk/generic/ChangeLog-2001,
1056         gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1057         gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1058         gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1059         gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1060         gdb/testsuite/gdb.mi/mi0-var-block.exp,
1061         gdb/testsuite/gdb.mi/mi0-var-child.exp,
1062         gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1063         gdb/testsuite/gdb.mi/mi0-var-display.exp,
1064         itcl/iwidgets3.0.0/demos/extfileselectionbox,
1065         itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1066         itcl/iwidgets3.0.0/demos/fileselectionbox,
1067         itcl/iwidgets3.0.0/demos/fileselectiondialog,
1068         itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1069         itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1070         itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1071         itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1072         itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1073         itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1074         itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1075         itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1076         itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1077         itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1078         itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1079         itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1080         itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1081         itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1082         itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1083         itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1084         itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1085         itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1086         itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1087         itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1088         itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1089         itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1090         itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1091         itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1092         itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1093         itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1094         itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1095         itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1096         itcl/iwidgets3.0.0/demos/html/shell.n.html,
1097         itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1098         itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1099         itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1100         itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1101         itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1102         itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1103         itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1104         itcl/iwidgets3.0.0/demos/scrolledcanvas,
1105         itcl/iwidgets3.0.0/demos/scrolledframe,
1106         itcl/iwidgets3.0.0/demos/scrolledhtml,
1107         itcl/iwidgets3.0.0/demos/scrolledlistbox,
1108         itcl/iwidgets3.0.0/demos/scrolledtext,
1109         itcl/iwidgets3.0.0/demos/selectionbox,
1110         itcl/iwidgets3.0.0/demos/selectiondialog,
1111         itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1112         itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1113         itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1114         itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1115         itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1116         itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1117         itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1118         itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1119         itcl/iwidgets3.0.0/doc/scrolledframe.n,
1120         itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1121         itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1122         itcl/iwidgets3.0.0/doc/scrolledtext.n,
1123         itcl/iwidgets3.0.0/doc/selectionbox.n,
1124         itcl/iwidgets3.0.0/doc/selectiondialog.n,
1125         itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1126         itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1127         itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1128         itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1129         itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1130         itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1131         itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1132         itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1133         itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1134         itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1135         itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1136         itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1137         itcl/iwidgets3.0.0/generic/selectionbox.itk,
1138         itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1139         itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1140         itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1141         itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1142         itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1143         itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1144         itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1145         itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1146         itcl/iwidgets3.0.0/tests/scrolledframe.test,
1147         itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1148         itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1149         itcl/iwidgets3.0.0/tests/scrolledtext.test,
1150         itcl/iwidgets3.0.0/tests/selectionbox.test,
1151         itcl/iwidgets3.0.0/tests/selectiondialog.test,
1152         itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1153         itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1154         tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1155         tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1156         tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1157         tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1158         tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1159         tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1160         tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1161         tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1162         tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1163         tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1164         tk/mac/tkMacProjects.sit.hqx.
1165
1166 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1167
1168         * target.c (target_section_by_addr): New function.
1169         (do_xfer_memory): Use "target_section_by_addr".
1170         * target.h (target_section_by_addr): Declare.
1171
1172         * target.h (struct target_ops): Add "to_read_partial" and
1173         "to_write_partial", delete "to_query".
1174         (target_read_partial, target_write_partial): Declare.
1175         (target_read, target_write): Declare.
1176         (target_query): Delete macro.
1177         * target.c (target_read_partial): New function.
1178         (target_write_partial, target_read, target_write): New function.
1179         (update_current_target): Delete inheritance of "to_query".  Add
1180         comments about "to_read_partial" and "to_write_partial".
1181         (debug_to_partial_read, debug_to_partial_write): New functions.
1182         (debug_to_query): Delete function.
1183         (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1184         instead of "to_query".
1185         * remote.c (remote_read_partial): Replace "remote_query".
1186         (init_remote_ops): Set "to_read_partial" instead of "to_query".
1187         (init_remote_async_ops): Ditto.
1188         * kod.c (gdb_kod_query): Make "bufsize" a LONGEST.  Use
1189         "target_read_partial" instead of "target_query".
1190         * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1191         Use "target_read_partial" instead of "target_query".
1192
1193 2003-10-17  Jeff Johnston  <jjohnstn@redhat.com>
1194
1195         * frame.h (struct frame_id): Add new field: special_addr.
1196         (frame_id_build_special): New prototype.
1197         * frame.c (frame_id_build_special): New function.
1198         (frame_id_build): Change to call frame_id_build_special().
1199         (frame_id_eq): Change to also test special_addr field. 
1200         (frame_id_inner): Update comment. 
1201
1202 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1203
1204         * target.c (update_current_target): Perform the target cleanup.
1205         Put the target stack beneath the squashed "current_target".
1206         (add_target): Delete disabled call to "cleanup_target".
1207         (cleanup_target): Delete function.
1208         (push_target, unpush_target): Do not call "cleanup_target".
1209
1210 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1211
1212         * target.c (target_stack): Change to a static target_ops.
1213         (update_current_target): Walk the "struct target_ops" stack.
1214         (pop_target, do_xfer_memory, target_info): Ditto.
1215         (find_target_beneath): Ditto.
1216         (push_target): Rewrite to use the "struct target_ops" stack.
1217         (unpush_target): Ditto.
1218         * target.h (struct target_stack_item): Delete definition.
1219         (target_stack): Delete declaration.
1220         (struct target_ops): Add field "beneath".
1221
1222 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
1223
1224         * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1225         declaration.
1226         * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1227         (h8300_examine_prologue): Use h8300_normal_mode flag
1228         (h8300_gdbarch_init): Set architecture info for normal mode
1229
1230 2003-10-16  Daniel Jacobowitz  <drow@mvista.com>
1231
1232         * remote.c (remote_protocol_vcont): New variable.
1233         (set_remote_protocol_vcont_packet_cmd): New function.
1234         (show_remote_protocol_vcont_packet_cmd): New function.
1235         (init_all_packet_configs): Handle remote_protocol_vcont.
1236         (remote_vcont_probe): New function.
1237         (remote_vcont_resume): New function.
1238         (remote_resume): Use it.
1239         (remote_async_resume): Call remote_resume.
1240         (_initialize_remote): Add verbose-resume packet commands.
1241
1242 2003-10-16  Andrew Cagney  <cagney@redhat.com>
1243
1244         * infrun.c (handle_inferior_event): Add comment about
1245         "frame_id_inner" being too weak.
1246
1247 2003-10-16  Elena Zannoni  <ezannoni@redhat.com>
1248
1249         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1250         second parameter, which is always null. Remove
1251         SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1252         * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1253         accordingly.
1254         * somsolib.c (som_solib_create_inferior_hook,
1255         som_solib_desire_dynamic_linker_symbols): Update callers.
1256         * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1257
1258 2003-10-16  Kei Sakamoto  <sakamoto.kei@renesas.com>
1259
1260         * remote-m32r-sdi.c : New file, interface to m32r on-chip
1261         debug interface, SDI (Scalable Debug Interface).
1262         * NEWS: Mention m32r SDI protocol was supported.
1263         * Makefile.in (remote-m32r-sdi.o): Add build rule.
1264         * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1265
1266 2003-10-15  Jeff Johnston  <jjohnstn@redhat.com>
1267
1268         * ia64-linux-tdep.c: Include gdbcore.h.
1269         (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1270         (ia64_linux_sigcontext_register_addr): Find the address of the
1271         sigcontext area stored in the sigframe instead of using
1272         a magic offset constant. 
1273
1274 2003-10-15  Andrew Cagney  <cagney@redhat.com>
1275
1276         * remote.c (remote_search): Delete function.
1277         * target.h (target_search): Delete disabled macro.
1278         (struct target_ops): Delete disabled field "to_search".
1279
1280 2003-10-14  Kevin Buettner  <kevinb@redhat.com>
1281
1282         * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1283         instead of deprecated_inside_entry_file().
1284
1285 2003-10-14  Corinna Vinschen  <vinschen@redhat.com>
1286
1287         * sh-tdep.c: Fix copy/paste hangover in comment.
1288         (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1289         mode.
1290         (sh3e_sh4_extract_return_value): Ditto.
1291
1292 2003-10-13  Richard Henderson  <rth@redhat.com>
1293
1294         * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1295         * f-valprint.c (f_val_print): Likewise.  Tweak TYPE_CODE_PTR to
1296         match c_val_print a bit closer.
1297
1298 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1299
1300         * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1301         (frv_gdbarch_adjust_breakpoint_address): New function.
1302         (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1303         method.
1304
1305 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1306
1307         * breakpoint.h (struct breakpoint): Add new member
1308         ``requested_address''.
1309         * breakpoint.c (breakpoint_adjustment_warning)
1310         (adjust_breakpoint_address): New static functions.
1311         (print_it_typical): Issue warning if breakpoint's address is different
1312         from its requested address.
1313         (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1314         (breakpoint_re_set_one):  Set breakpoint's
1315         ``requested_address'' field.  Set ``address'' field to the
1316         result of calling adjust_breakpoint_address() on the requested
1317         address.
1318
1319 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1320
1321         * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1322         * gdbarch.h, gdbarch.c: Regenerate.
1323
1324 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
1325
1326         * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1327         TDEP->sc_num_regs.
1328
1329         * i386fbsd-tdep.c: New file.
1330         (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1331         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1332         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1333         i386bsd-tdep.c.
1334         (_initialize_i386fbsd_tdep): New function.
1335         (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1336         (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1337         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1338         TDEP->sizeof_fpregset.  Use ARRAY_SIZE to initialize
1339         TDEP->sc_num_regs.
1340         (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1341         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1342         to initialize TDEP->sc_num_regs.
1343         * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1344         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1345         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1346         (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1347         FreeBSD ELF OS/ABI's here.
1348         * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1349         (i386fbsd-tdep.o): New target.
1350         * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1351         * config/i386/fbsd64.mt (TDEPFILES):  Add i386fbsd-tdep.o.
1352
1353         * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1354         (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1355         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1356         in initialization of TDEP->sc_num_regs.
1357
1358         * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1359         (x86_64_init_abi): Initialize regset_from_core_section if
1360         appropriate.
1361
1362         * i386-tdep.c (i386_regset_from_core_section): New function.
1363         (i386_gdbarch_init): Initialize regset_from_core_section if
1364         appropriate.
1365         * i386-tdep.h (i386_regset_from_core_section): New declaration.
1366
1367         * i386-tdep.h (struct regset): Declare opaque.
1368
1369         * gdbarch.sh (regset_from_core_section): New method.
1370         (struct regset): Declare opaque.
1371         * gdbarch.c, gdbarch.h: Regenerated.
1372
1373 2003-10-11  Alan Modra  <amodra@bigpond.net.au>
1374
1375         * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1376         _cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
1377         Correct test for pc within section.
1378
1379 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
1380
1381         * gdbarch.sh: Remove trailing whitepsace from comments.
1382
1383 2003-10-08  Roland McGrath  <roland@redhat.com>
1384
1385         * gcore.c (make_mem_sec): Function removed, folded into ...
1386         (gcore_create_callback): ... here.  To omit a section, clear its
1387         SEC_LOAD bit rather than zeroing its size.
1388         Omit read-only sections only if they correspond to a known disk file.
1389         (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1390
1391 2003-10-10  Michael Snyder  <msnyder@redhat.com>
1392
1393         * d10v-tdep.c: Fix typo in comment.
1394
1395 2003-10-10  Andrew Cagney  <cagney@redhat.com>
1396
1397         * rs6000-tdep.c (e500_store_return_value): Delete function.
1398         (e500_extract_return_value): Delete function.
1399         (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1400         "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1401         "ppc_sysv_abi_restore_return_value" where applicable.
1402         * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1403         (ppc_sysv_abi_extract_return_value): Declare.
1404         (ppc_sysv_abi_broken_store_return_value): Declare.
1405         (ppc_sysv_abi_broken_extract_return_value): Declare.
1406         (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1407         * ppc-sysv-tdep.c (return_value_convention): Move definition to
1408         start of file.
1409         (do_ppc_sysv_return_value): New function.
1410         (ppc_sysv_abi_extract_return_value): New function.
1411         (ppc_sysv_abi_store_return_value): New function.
1412         (ppc_sysv_abi_broken_extract_return_value): New function.
1413         (ppc_sysv_abi_broken_store_return_value): New function.
1414         (ppc_sysv_abi_use_struct_convention): Call
1415         do_ppc_sysv_return_value.
1416
1417 2003-10-10  J. Brobecker  <brobecker@gnat.com>
1418
1419         * blockframe.c (inside_main_func): No longer use symbol_lookup()
1420         to lookup the main function symbol.
1421
1422 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
1423
1424         * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1425         types correctly.
1426         (sh_push_dummy_call_fpu): Fix argument passing rules.
1427         (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1428         float types.
1429         (sh3e_sh4_store_return_value): Ditto.
1430
1431 2003-10-10  Elena Zannoni  <ezannoni@redhat.com>
1432
1433         * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1434         comment.
1435
1436 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
1437
1438         * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1439         more readable code.  Accomodate passing of bitfields.
1440
1441 2003-10-10  Andrew Cagney  <cagney@redhat.com>
1442
1443         * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1444         * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1445         push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1446         * ppc-sysv-tdep.c: Include "gdb_assert.h".
1447         (ppc64_sysv_abi_push_dummy_call): New function.
1448         (ppc64_sysv_abi_broken_push_dummy_call): New function.
1449         * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1450         (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1451
1452 2003-10-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
1453
1454         * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1455         * README: Ditto.
1456         * d10v-tdep.c: Ditto.
1457         * h8300-tdep.c: Ditto.
1458         * remote-e7000.c: Ditto.
1459         * remote-hms.c: Ditto.
1460         * ser-e7kpc.c: Ditto.
1461         * sh-stub.c: Ditto.
1462         * sh-tdep.c: Ditto.
1463         * sh-tdep.h: Ditto.
1464         * sh3-rom.c: Ditto.
1465         * sh64-tdep.c: Ditto.
1466         * top.c: Ditto.
1467         * wince.c: Ditto.
1468         * config/d10v/d10v.mt: Ditto.
1469         * config/sh/embed.mt: Ditto.
1470         * config/sh/linux.mt: Ditto.
1471         * config/sh/tm-linux.h: Ditto.
1472         * config/sh/tm-sh.h: Ditto.
1473         * config/sh/wince.mt: Ditto.
1474
1475 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1476
1477         * ppc-tdep.h (struct type): Declare opaque.
1478         * x86-64-tdep.h (struct regcache): Declare opaque.
1479         * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1480         coding style.
1481
1482 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1483
1484         Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1485         * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1486         (SOFTWARE_SINGLE_STEP_P): Ditto.
1487         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1488         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1489         (SOFTWARE_SINGLE_STEP_P): Ditto.
1490         * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1491         software_single_step to rs6000_software_single_step.
1492
1493 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1494
1495         * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1496
1497 2003-10-09  Michael Snyder  <msnyder@redhat.com>
1498
1499         * frame.h: Fix typo in comment.
1500         * dummy-frame.c: Fix typo in comment.
1501         * d10v-tdep.c: Random whitespace/comment tweaks.
1502
1503 2003-10-09  Elena Zannoni  <ezannoni@redhat.com>
1504
1505         * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1506         (sh_push_dummy_code): Delete function, it's only used for dummy calls
1507         on stack.
1508
1509         Based on input by Stephen Clarke (stephen.clarke@superh.com):
1510         * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1511         in detail.
1512
1513 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
1514
1515         * remote-mips.c (mips_initialize): Remove unneeded call to
1516         get_selected_frame.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1517
1518 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
1519
1520         * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1521         a memory pointer.
1522
1523 2003-10-08  Jeff Johnston  <jjohnstn@redhat.com>
1524
1525         * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1526         for any lwp we resume.
1527         (running_callback): Add lwps that have pending status events
1528         against them to be considered running.
1529
1530 2003-10-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
1531
1532         * m32r-tdep.c : Include "dis-asm.h".
1533         * Makefile.in (m32r-tdep.o): Update dependencies.
1534
1535 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1536
1537         * completer.h (get_gdb_completer_word_break_characters): Delete.
1538         * completer.c: include language.h.
1539         (gdb_completer_word_break_characters): Delete.
1540         (get_gdb_completer_word_break_characters): Delete.
1541         (location_completer): Use the word break characters of the current
1542         language.
1543         (complete_line): Likewise.
1544         (line_completion_function): Likewise.
1545         (skip_quoted_chars): Likewise.
1546         * Makefile.in (completer.o): Add dependency on language.h.
1547         * top.c (init_main): Set the readline word break characters
1548         to GDB's default word break characters.
1549
1550 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1551
1552         * language.h (language_defn): new field, la_word_break_characters.
1553         * language.c (unknown_language_defn): Set new field to
1554         default_word_break_characters.
1555         (auto_language_defn): Likewise.
1556         (local_language_defn): Likewise.
1557         * ada-lang.c (ada_language_defn): Likewise.
1558         * c-lang.c (c_language_defn): Likewise.
1559         (cplus_language_defn): Likewise.
1560         (asm_language_defn): Likewise.
1561         (minimal_language_defn): Likewise.
1562         * f-lang.c (f_language_defn): Likewise.
1563         * jv-lang.c (java_language_defn): Likewise.
1564         * m2-lang.c (m2_language_defn): Likewise.
1565         * objc-lang.c (objc_language_defn): Likewise.
1566         * p-lang.c (pascal_language_defn): Likewise.
1567         * scm-lang.c (scm_language_defn): Likewise.
1568
1569 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1570
1571         * ppc-sysv-tdep.c: Re-indent.
1572
1573 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1574
1575         * language.h (default_word_break_characters): Add prototype.
1576         * language.c (default_word_break_characters): New function.
1577
1578 2003-10-06  Andreas Schwab  <schwab@suse.de>
1579
1580         * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1581         with %eax.
1582
1583 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1584
1585         * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1586         "h8500-tdep.c".
1587         (z8k-tdep.o): Delete custom build rule.
1588
1589 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1590
1591         * Makefile.in: Update all dependencies.
1592
1593         * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1594         No longer list PA as as obsolete candidate.  List m32r as
1595         broken instead of obsolete.
1596
1597         * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1598         * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1599         * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1600         * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1601         * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1602         * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1603         * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1604         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1605         * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1606         * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1607         * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1608         * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1609         * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1610         * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1611         * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1612         * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1613         * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1614         * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1615         * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1616         * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1617         * config/z8k/z8k.mt: Ditto.
1618
1619         * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1620         h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1621         mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1622         i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1623         sparclite were removed.
1624         * configure.host, configure.tgt: Remove corresponding tuples.
1625
1626         * breakpoint.c, breakpoint.h: Remove obsolete code.
1627         * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1628         * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1629         * stabsread.h, xcoffread.c: Ditto.
1630
1631         * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1632         * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1633         * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1634         * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1635
1636 2003-10-06  David Lecomber  <dsl@sources.redhat.com>
1637
1638         * f-valprint.c: Reformatting
1639
1640 2003-10-06  Mark Kettenis  <kettenis@gnu.org>
1641
1642         * x86-64-tdep.c: Remove duplicate comment.
1643
1644         * x86-64-tdep.c (x86_64_store_return_value): Don't use
1645         DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
1646         names for return values.  This fixes a bug since we looked at %rbx
1647         instead of %rdx.
1648
1649 2003-10-05  Mark Kettenis  <kettenis@gnu.org>
1650
1651         * x86-64-tdep.c: Include "regset.h".
1652
1653         * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1654         gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1655         sizeof_fpregset.
1656         * i386-tdep.c: Include "regset.h".
1657         (i386_supply_gregset): New function.
1658         (i386_supply_fpregset): New function.
1659         (i386_gdbarch_init): Initialze register set-related members of
1660         TDEP.
1661         * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1662         (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1663
1664 2003-10-03  Andrew Cagney  <cagney@redhat.com>
1665
1666         * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1667         set extract_return_value, store_return_value and
1668         use_struct_convention to ppc64_sysv_abi_extract_return_value,
1669         ppc64_sysv_abi_store_return_value and
1670         ppc64_sysv_abi_use_struct_convention.
1671         * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1672         (ppc64_sysv_abi_store_return_value): Declare.
1673         (ppc64_sysv_abi_use_struct_convention): Declare.
1674         * ppc-sysv-tdep.c (enum return_value_convention): Define.
1675         (ppc64_sysv_abi_extract_return_value): New function.
1676         (ppc64_sysv_abi_store_return_value): New function.
1677         (ppc64_sysv_abi_use_struct_convention): New function.
1678         (ppc64_sysv_abi_return_value): New function.
1679
1680 2003-10-03  Andrew Cagney  <cagney@redhat.com>
1681
1682         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1683         convert a descriptor to a function when it's in the ".opd"
1684         section.
1685
1686 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
1687
1688         * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1689         reg_size to keep GCC silent.
1690
1691 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
1692
1693         * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1694         base for DW_EH_PE_textrel encodings.
1695         (read_encoded_value): Add a DW_EH_PE_textrel case.
1696         (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1697         section.
1698
1699 2003-10-03  Mark Kettenis  <kettenis@gnu.org>
1700
1701         * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1702
1703 2003-10-02  Andrew Cagney  <cagney@redhat.com>
1704
1705         * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1706         REGISTER_RAW_SIZE.
1707         * gdbarch.h, gdbarch.c: Re-generate.
1708         * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1709         * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1710         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1711         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1712         * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1713         * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1714         * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1715         * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1716         * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1717         * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1718         * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1719         * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1720         * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1721         * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1722         * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1723         * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1724
1725 2003-10-02  Jim Blandy  <jimb@redhat.com>
1726
1727         * dwarf2read.c (struct die_info): Doc fix.
1728
1729 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
1730
1731         * sh-tdep.c: Running thru gdb_indent.sh.
1732
1733 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
1734
1735         * sh-tdep.c (sh_justify_value_in_reg): New function.
1736         (sh_stack_allocsize): Ditto.
1737         (flt_argreg_array): New array used for floating point argument
1738         passing.
1739         (sh_init_flt_argreg): New function.
1740         (sh_next_flt_argreg): Ditto.
1741         (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1742         "pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
1743         Fix argument passing strategy.
1744         (sh_push_dummy_call_nofpu): Ditto.
1745
1746 2003-10-01  Andrew Cagney  <cagney@redhat.com>
1747
1748         * value.h (register_value_being_returned): Declare.  Replace
1749         "value_being_returned".
1750         * infcall.c (call_function_by_hand): Use
1751         register_value_being_returned.
1752         * infcmd.c (print_return_value): Call
1753         "register_value_being_returned", handle struct return locally.
1754         * values.c (register_value_being_returned): New function.  Replace
1755         "value_being_returned".
1756
1757 2003-09-30  Elena Zannoni  <ezannoni@redhat.com>
1758
1759         * linux-proc.c (linux_do_registers): New function.
1760         (linux_make_note_section): Use linux_do_registers in case of
1761         single threaded inferior programs.
1762
1763 2003-10-01  Andrew Cagney  <cagney@redhat.com>
1764
1765         * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1766         use STRUCT_ADDR.  When not using "struct return convention", pass
1767         "0" to "value_being_returned".  Add FIXMEs.
1768         * infcmd.c (print_return_value): Pass an explicit 0/1 to
1769         value_being_returned.  Add comments.
1770         * values.c (value_being_returned): Add fixme.
1771         * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1772         (hppa_value_returned_from_stack): Add FIXME.
1773
1774 2003-09-30  David Carlton  <carlton@kealia.com>
1775
1776         * dwarf2read.c (struct die_info): Add 'parent' field; replace
1777         'has_children' and 'next' by 'child' and 'sibling'.
1778         (read_comp_unit): Rework algorithm, breaking body into
1779         read_die_and_children and read_die_and_siblings.
1780         (read_die_and_children, read_die_and_siblings): New.
1781         (read_full_die): Add 'has_children' argument; set it instead of
1782         the die's 'has_children' field.  Minor formatting cleanup.
1783         (free_die_list): Use die->child and die->sibling instead of
1784         die->next.
1785         (dump_die_list): Ditto.
1786         (sibling_die): Use die->sibling.
1787         (psymtab_to_symtab_1): Use die's 'child' field in place of its
1788         'has_children' and 'next' fields.
1789         (process_die, read_file_scope, read_func_scope)
1790         (read_lexical_block_scope, read_structure_scope)
1791         (read_enumeration, read_array_type, read_common_block)
1792         (read_namespace, read_subroutine_type, dump_die): Ditto.
1793
1794 2003-09-30  Andrew Cagney  <cagney@redhat.com>
1795
1796         * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1797         to 224, not 220.
1798
1799 2003-09-30  Andrew Cagney  <cagney@redhat.com>
1800
1801         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1802         REGISTER_VIRTUAL_SIZE.
1803         * gdbarch.h, gdbarch.c: Regenerate.
1804         * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1805         * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1806         * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1807
1808 2003-09-29  Andrew Cagney  <cagney@redhat.com>
1809
1810         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1811         REGISTER_VIRTUAL_TYPE.
1812         * gdbarch.h, gdbarch.c: Regenerate.
1813         * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1814         * sh64-tdep.c, sparc-tdep.c: Update.
1815
1816         * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1817         * remote-vxmips.c (vx_read_register): Ditto.
1818         * remote-vx68.c (vx_read_register): Ditto.
1819         * gnu-nat.c (inf_validate_procs): Ditto.
1820
1821 2003-09-29  J. Brobecker  <brobecker@gnat.com>
1822
1823         * infcall.c (call_function_by_hand): Fix build failure
1824         introduced in the previous change to this file.
1825
1826 2003-09-29  Andrew Cagney  <cagney@redhat.com>
1827
1828         * NEWS: Mention Objective-C.
1829
1830 2003-09-29  Jerome Guitton  <guitton@act-europe.fr>
1831
1832         * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1833         test if the register has been saved on the stack.
1834         (arm_scan_prologue_cache): When analysing the instruction
1835         "str lr, [sp, #-4]", save the address where lr has been stored.
1836
1837 2003-09-28  Andrew Cagney  <cagney@redhat.com>
1838
1839         * frame.c (frame_read_unsigned_register): Delete function.
1840         * frame.h (frame_read_unsigned_register): Delete declaration.
1841         * sparc-tdep.c (sparc_init_extra_frame_info): Use
1842         get_frame_register_unsigned.
1843         (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1844         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1845         * d10v-tdep.c (d10v_print_registers_info): Ditto.
1846
1847         * frame.h (frame_read_register): Delete declaration.
1848         * frame.c (frame_read_register): Delete function.
1849         * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1850         * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1851         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1852         * mips-tdep.c (mips_register_to_value): Ditto.
1853         * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1854         * d10v-tdep.c (d10v_print_registers_info): Ditto.
1855
1856         * frame.c (frame_read_signed_register): Delete function.
1857         (frame_read_unsigned_register): Update comments.
1858         * frame.h (frame_read_signed_register): Delete declaration.
1859         * h8300-tdep.c (h8300_print_register): Use
1860         get_frame_register_signed.
1861         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1862
1863         * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1864         Rename VALUE_RETURNED_FROM_STACK.
1865         * infcmd.c (print_return_value): Update.
1866         * infcall.c (call_function_by_hand): Update.
1867
1868 2003-09-28  Mark Kettenis  <kettenis@gnu.org>
1869
1870         * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1871         regcache argument and reverse the order of the other two
1872         arguments.  Remove local regcache variable.  Determine
1873         architecture from REGCACHE.  Update comments.
1874         * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1875         reverse the order of the other two arguments.  Remove local
1876         regcache variable.  Determine architecture from REGCACHE.  Update
1877         comments.
1878         * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1879         prototypes.  Update comments.
1880         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype.  Adjust
1881         comment.
1882         * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1883         Update.
1884         * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1885         * i386-interix-nat.c (supply_fpregset): Update.
1886         * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1887         * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1888         * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1889         * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1890         * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1891         Update.
1892         * i386obsd-tdep.c (fetch_core_registers): Update.
1893         * i386v4-nat.c (supply_fpregset): Update.
1894         * x86-64-linux-nat.c (supply_fpregset): Update.
1895         * x86-64-linux-tdep.c (fetch_core_registers): Update.
1896
1897 2003-09-27  Mark Kettenis  <kettenis@gnu.org>
1898
1899         * i386-tdep.h: Put opaque declarations in alphabetical
1900         order.  Remove spurious whitespace.
1901         (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1902         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1903         * i386-tdep.c (MM0_REGNUM): Remove define.
1904         (i386_mmx_regnum_p): Add gdbarch argument.
1905         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1906         Rewrite using new macro definitions for FPU/SSE registers.
1907         (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1908         definitions from i387-tdep.h.
1909         (i386_register_name): Update.
1910         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1911         new macro definitions for FPU/SSE registers.
1912         (i386_extract_return_value): Determine whether floating-point
1913         registers are present by examining REGCACHE's architecture.
1914         (i386_store_return_value): Likewise.  Use I386_MAX_REGISTER_SIZE
1915         instead of FPU_REG_RAW_SIZE.  Use new macro definitions for
1916         FPU/SSE registers.
1917         (i386_register_type): Update.
1918         (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1919         definitions for FPU registers.  Use REGCACHE's architecture to
1920         determine the appropriate register numbers.
1921         (i386_pseudo_register_read, i386_pseudo_register_write,
1922         i386_register_reggroup_p): Update.
1923         (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1924         TDEP->mm0_regnum.
1925         * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1926         I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1927         I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1928         I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1929         (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1930         i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1931         *' to `void *'.
1932         * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1933         i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1934         i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1935         definitions for FPU/SSE registers.
1936         (FXSAVE_MXCSR_ADDR): New define.
1937         * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1938         TDEP->mm0_regnum.
1939         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1940         (I387_ST0_REGNUM): Define.
1941
1942         * regcache.h (get_regcache_arch): New prototype.
1943         * regcache.c (get_regcache_arch): New function.
1944
1945         * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1946         whitespace.
1947
1948         * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1949         Initialize using ARRAY_SIZE.
1950
1951 2003-09-27  Andrew Cagney  <cagney@redhat.com>
1952
1953         * arch-utils.c (deprecated_init_frame_pc_default): Rename
1954         "init_frame_pc_default".
1955         * arch-utils.h (deprecated_init_frame_pc_default): Update.
1956         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1957         * vax-tdep.c (vax_gdbarch_init): Update.
1958         * v850-tdep.c (v850_gdbarch_init): Update.
1959         * sh64-tdep.c (sh64_gdbarch_init): Update.
1960         * s390-tdep.c (s390_gdbarch_init): Update.
1961         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1962         * mcore-tdep.c (mcore_gdbarch_init): Update.
1963         * h8300-tdep.c (h8300_gdbarch_init): Update.
1964         * cris-tdep.c (cris_gdbarch_init): Update.
1965         * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1966
1967 2003-09-26  Mark Kettenis  <kettenis@gnu.org>
1968
1969         * regset.h: New file.
1970         * Makefile.in (regset_h): Add.
1971
1972 2003-09-25  Andrew Cagney  <cagney@redhat.com>
1973
1974         * frame.h (deprecated_frame_saved_regs): Rename
1975         get_frame_saved_regs.
1976         * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1977         * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1978         * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1979         * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1980         * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1981
1982 2003-09-25  Andrew Cagney  <cagney@redhat.com>
1983
1984         * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1985         file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1986         and Java.
1987         * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1988         arm*-*-* do not use the new frame code.
1989
1990 2003-09-25  David Carlton  <carlton@kealia.com>
1991
1992         * c-exp.y: Remove 'register' declarations.
1993         * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1994
1995 2003-09-25  David Carlton  <carlton@kealia.com>
1996
1997         * c-exp.y: Include cp-support.h.  Add qualified_type.
1998         (yylex): Delete nested type hack; add comments.
1999         * cp-namespace.c (cp_lookup_nested_type): New function.
2000         * cp-support.h: Declare cp_lookup_nested_type.
2001         * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2002         instead of value_struct_elt_for_reference.
2003         * valops.c: Include cp-support.h.
2004         (value_aggregate_elt): New function.
2005         (value_namespace_elt): Ditto.
2006         (value_struct_elt_for_reference): Make static.
2007         * value.h: Delete declaration of value_struct_elt_for_reference;
2008         add declaration for value_aggregate_elt.
2009         * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2010         (valops.o): Ditto.
2011
2012 2003-09-25  Daniel Jacobowitz  <drow@mvista.com>
2013
2014         * stack.c: Include "reggroups.h".
2015         (frame_info): Only display registers in all_reggroup.
2016         * Makefile.in (stack.o): Update dependencies.
2017
2018 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2019
2020         * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2021         "add ip, sp #n" in the prologue.
2022         (arm_scan_prologue): Ditto.
2023
2024 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2025
2026         * MAINTAINERS (write after approval): Add myself.
2027
2028 2003-09-25  Andreas Schwab  <schwab@suse.de>
2029
2030         * m68k-tdep.c: Include "dwarf2-frame.h".
2031         (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2032         * Makefile.in (m68k-tdep.o): Update dependencies.
2033
2034 2003-09-25  Corinna Vinschen  <vinschen@redhat.com>
2035
2036         * sh-tdep.c (struct frame_extra_info): Remove.
2037         (struct sh_frame_cache): New structure.
2038         (GET_SOURCE_REG): New macro extracting source register of an opcode.
2039         (GET_TARGET_REG): Ditto but target register.
2040         (GET_PUSHED_REG): Remove.
2041         (IS_MOV_ARG_TO_REG): New macro.
2042         (IS_MOV_ARG_TO_IND_R14): New macro.
2043         (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2044         (IS_MOVW_PCREL_TO_REG): New macro.
2045         (IS_MOVL_PCREL_TO_REG): New macro.
2046         (IS_SUB_REG_FROM_SP): New macro.
2047         (IS_ARG_MOV): Remove.
2048         (IS_MOV_TO_R14): Remove.
2049         (IS_RESTORE_FP): New macro.
2050         (IS_RTS): New macro.
2051         (IS_LDS): New macro.
2052         (IS_MOV_FP_SP): New macro.
2053         (IS_ADD_REG_TO_FP): New macro.
2054         (IS_ADD_IMM_FP): New macro.
2055         (sh_skip_prologue_hard_way): Remove.
2056         (sh_saved_pc_after_call): Remove.
2057         (sh_frame_chain): Remove.
2058         (sh_find_callers_reg): Remove.
2059         (sh_nofp_frame_init_saved_regs): Remove.
2060         (sh_fp_frame_init_saved_regs): Remove.
2061         (sh_init_extra_frame_info): Remove.
2062         (sh_analyze_prologue): New function.
2063         (sh_skip_prologue): Remove deprecated code.  Rely on new function
2064         sh_analyze_prologue when after_prologue fails.
2065         (sh_frame_saved_pc): Remove.
2066         (sh_alloc_frame_cache): New function.
2067         (sh_frame_cache): Ditto.
2068         (sh_frame_prev_register): Ditto.
2069         (sh_frame_this_id): Ditto.
2070         (sh_frame_unwind): New structure defining the heuristic frame
2071         sniffer interface.
2072         (sh_frame_sniffer): New function.
2073         (sh_unwind_sp): Ditto.
2074         (sh_unwind_pc): Ditto.
2075         (sh_unwind_dummy_id): Ditto.
2076         (sh_frame_base_address): Ditto.
2077         (sh_frame_base): New structure defining new frame base code.
2078         (sh_in_function_epilogue_p): New function.
2079         (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2080         code and to call all new code instead.  Initialize dwarf2 and
2081         heuristic frame sniffer.
2082
2083 2003-09-24  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
2084
2085         * parser-defs.h (struct exp_descriptor): New definition, containing
2086         language-specific info for printing, prefixifying, dumping, and
2087         evaluating expressions.
2088         (exp_descriptor_standard): Declare new variable.
2089         (print_subexp): Make global and declare here (from expprint.c).
2090         (dump_subexp): Ditto.
2091         (dump_subexp_body_standard): Declare.
2092         (operator_length_standard): Declare.
2093         (op_name_standard): Declare.
2094         (print_subexp): Declare.
2095         (print_subexp_standard): Declare.
2096
2097         * language.h (struct language_defn): Add la_exp_desc field to hold
2098         pointer to table for language-specific operators.
2099         Remove evaluate_exp field, which is now in struct exp_descriptor.
2100
2101         * parse.c (operator_length): Move most code to new
2102         operator_length_standard function.  Use language-specific information.
2103         (operator_length_standard): New function taking most code from
2104         operator_length.
2105         (exp_descriptor_standard): New constant.
2106
2107         * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2108         and OP_EXTENDED_LAST.
2109
2110         * expprint.c (print_subexp): Use language-specific print_subexp.
2111         Make global; remove static declaration.
2112         Move most code to print_subexp_standard.
2113         (print_subexp_standard): New function, containing code formerly in
2114         print_subexp.
2115         (op_name): Add expression to argument signature.
2116         Use langauge-specific op_name.
2117         Move most code to op_name_standard.
2118         (op_name_standard): New function, containing code formerly in op_name.
2119         (dump_subexp):  Use new version of op_name function.
2120         Use language-specific dump_subexp_body, and move most existing code to
2121         dump_subexp_body_standard.
2122         (dump_raw_expression): Use new op_name interface.
2123         (dump_subexp_body): Move most code to dump_subexp_body_standard.
2124         (dump_subexp_body_standard): New function, containing code formerly
2125         in dump_subexp_body.
2126
2127         * language.c (unknown_language): Add default la_exp_desc field and
2128         remove evaluate_exp field.
2129         (auto_language): Ditto.
2130         (local_language): Ditto.
2131         * f-lang.c (f_language_defn): Ditto.
2132         * c-lang.c (c_language_defn): Ditto.
2133         (cplus_language_defn): Ditto.
2134         (asm_language_defn): Ditto.
2135         (minimal_language_defn): Ditto.
2136         * p-lang.c (pascal_language_defn): Ditto.
2137         * m2-lang.c (m2_language_defn): Ditto.
2138         * objc-lang.c (objc_language_defn): Ditto.
2139
2140         * jv-lang.c (exp_descriptor_java): New variable, containing
2141         Java-specific expression evaluator.
2142         (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2143         field.
2144         * scm-lang.c (exp_descriptor_scm): New variable, containing
2145         Scheme-specific expression evaluator.
2146         (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2147         field.
2148         * objc-lang.c (print_object_command): Take evaluate_exp from the
2149         la_exp_desc field.
2150
2151         * Makefile.in (eval.o): Add dependency on parser-defs.h.
2152
2153         * eval.c: Include parser-defs.h for the full declaration of
2154         la_exp_desc's type.
2155         (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2156
2157 2003-09-23  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
2158
2159         * parser-defs.h (operator_length): Declare.
2160
2161         * parse.c (length_of_subexp): Use operator_length to get operator
2162         lengths and arities for operators.
2163         Move most code to new operator_length function.
2164         (operator_length): New function absorbing most code from
2165         length_of_subexp.
2166         (prefixify_subexp): Remove large case and use operator_length instead.
2167         (parse_exp_1): Use renamings:
2168         dump_prefix_expression => dump_raw_expression and
2169         dump_postfix_expression => dump_prefix_expression.
2170
2171         * expression.h (dump_prefix_expression): Rename to ...
2172         (dump_raw_expression): New name.
2173         (dump_postfix_expression): Rename to ...
2174         (dump_prefix_expression): New name.
2175
2176         * expprint.c (dump_subexp): Make global.  Add comment.
2177         Move most existing code to dump_subexp_body.
2178         (dump_subexp_body): New function.
2179         (dump_prefix_expression): Rename to dump_raw_expression.
2180         Remove attempt to print the expression via print_expression: it can't
2181         work before the expression is prefixified.
2182         (dump_raw_expression): Renamed from dump_prefix_expression.
2183         (dump_postfix_expression): Rename to dump_prefix_expression, since
2184         that's what it does.
2185         Remove 'note' parameter, since this routine must be used on
2186         prefixified expression.
2187         (dump_prefix_expression): Renamed from dump_postfix_expression.
2188
2189 2003-09-22  Jim Blandy  <jimb@redhat.com>
2190
2191         * dwarf2read.c (read_array_type): When building the type for an
2192         array of unspecified length, make sure to choose the upper bound
2193         so that the array's total length comes out to be zero --- that's
2194         how we represent such arrays.
2195
2196 2003-09-22  Michael Chastain  <mec@shout.net>
2197
2198         * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2199
2200 2003-09-22  Jeff Johnston  <jjohnstn@redhat.com>
2201
2202         * top.c (quit_force): Fix indirect call to quit_target so
2203         a struct qt_args pointer is passed.
2204
2205 2003-09-22  Andrew Cagney  <cagney@redhat.com>
2206
2207         * arch-utils.h (init_frame_pc_noop): Delete declaration.
2208         * arch-utils.c (init_frame_pc_noop): Delete function.
2209         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2210         "init_frame_pc".
2211         * mips-tdep.c (mips_gdbarch_init): Ditto.
2212         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2213         * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2214         declaration.
2215         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2216         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2217         declaration.
2218         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2219
2220 2003-09-22  Anthony Green  <green@redhat.com>
2221
2222         * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2223         declaration.
2224
2225 2003-09-20  Andrew Cagney  <cagney@redhat.com>
2226
2227         * breakpoint.c: Eliminate ARGSUSED.
2228         * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2229         * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2230         * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2231         * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2232         * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2233         * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2234         * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2235         * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2236         * wince.c, remote-vx.c: Ditto.
2237
2238         * cli/cli-script.c: Remove "register" attributes.
2239         * config/pa/tm-hppa.h: Ditto.
2240         * cli/cli-decode.c: Ditto.
2241         * cli/cli-cmds.c: Ditto.
2242
2243 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2244
2245         * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2246         DEPRECATED_NPC_REGNUM.
2247         * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2248
2249 2003-09-19  Christopher Faylor  <cgf@redhat.com>
2250
2251         * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2252
2253 2003-09-19  Jim Blandy  <jimb@redhat.com>
2254
2255         * macrotab.c (macro_include): Use the correct comparison to find
2256         the appropriate place for this inclusion in the list.
2257
2258 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2259
2260         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2261         (DEPRECATED_HPUX_TEXT_END): Define.
2262         (deprecated_hpux_text_end): Declare.
2263         (struct target_ops): Declare opaque.
2264         * hppah-nat.c (text_end): Make static.
2265         (deprecated_hpux_text_end): New function.
2266         * exec.c (text_end): Delete global variable.
2267         (NEED_TEXT_START_END): Do not define.
2268         (exec_file_attach): Replace code computing "text_end" code with
2269         call to DEPRECATED_HPUX_TEXT_END.
2270
2271 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2272
2273         * utils.c (align_up, align_down): New functions.
2274         * defs.h (align_up, align_down): Declare.
2275         * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2276         * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2277         and "align_down".
2278         (round_up, round_down): Delete functions.
2279         * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2280         "align_down".
2281         (ROUND_DOWN, ROUND_UP): Delete macros.
2282         (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2283         * h8300-tdep.c: Replace "round_up" and "round_down" with
2284         "align_up" and "align_down".
2285         (round_up, round_down): Delete macros.
2286         * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2287         "align_down".
2288         (ROUND_UP, ROUND_DOWN): Delete macros.
2289
2290 2003-09-18  J. Brobecker  <brobecker@gnat.com>
2291
2292         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2293         hard-coded constant. Use the proper machine name instead.
2294
2295 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2296
2297         * sparc-tdep.c (legacy_register_name): Delete function.
2298         * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2299         (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2300         * infcmd.c (gdb_register_name): Delete variable.
2301         * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2302         REGISTER_NAME and "tm.h".
2303         * gdbarch.h, gdbarch.c: Regenerate.
2304         * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2305         REGISTER_NAMES in comments.
2306         * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2307         * m68klinux-nat.c (regmap): Ditto.
2308
2309 2003-09-17  Jim Blandy  <jimb@redhat.com>
2310
2311         * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2312
2313 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2314
2315         * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2316         (ppcnbsd_init_abi): Set "use_struct_convention" to
2317         "ppcnbsd_use_struct_convention".
2318
2319 2003-09-17  Mark Kettenis  <kettenis@gnu.org>
2320
2321         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2322         * gdbarch.h, gdbarch.c: Regenerate.
2323         (stabs_argument_has_addr): New architecture method.
2324         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2325         * arch-utils.c: Include "buildsym.h".
2326         (default_stabs_argument_has_addr): New function.
2327         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2328         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2329
2330 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2331
2332         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2333         * gdbarch.h, gdbarch.c: Regenerate.
2334         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2335         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2336         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2337         * sparcnbsd-tdep.c: Update.
2338
2339 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2340
2341         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2342         * gdbarch.h, gdbarch.c: Regenerate.
2343         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2344         * d10v-tdep.c, frame.c: Update.
2345         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2346         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2347         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2348         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2349         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2350         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2351         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2352         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2353         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2354         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2355         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2356         * config/pa/nm-hppah.h: Update.
2357
2358 2003-09-16  Andrew Cagney  <cagney@redhat.com>
2359
2360         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2361         "use_struct_convention" to "ppc_linux_use_struct_convention".
2362         (ppc_linux_use_struct_convention): New function.
2363         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2364         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2365         "rs6000_use_struct_convention".
2366         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2367         declaration.
2368         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2369         Delete function.
2370
2371 2003-09-16  Andrew Cagney  <cagney@redhat.com>
2372
2373         * buildsym.c: Remove more occurances of "register".
2374         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2375         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2376         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2377         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2378         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2379         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2380         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2381         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2382
2383 2003-09-16  Corinna Vinschen  <vinschen@redhat.com>
2384
2385         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
2386         numbers to enumeration values.
2387         * sh-tdep.c: Accomodate above change.
2388         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2389         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2390         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2391         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2392         (IS_FPUSH): Rename from IS_FMOV.
2393         (sh_extract_struct_value_address): Remove useless comment.
2394         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2395         instead of own local values.
2396         (sh_dump_tdep): Remove.
2397         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2398         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2399
2400 2003-09-15  Andrew Cagney  <cagney@redhat.com>
2401
2402         * doublest.c (convert_floatformat_to_doublest): No longer need to
2403         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
2404
2405 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
2406
2407         * values.c (unpack_double): Call floatformat_is_valid.
2408
2409 2003-09-15  Mark Kettenis  <kettenis@gnu.org>
2410
2411         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2412         ps_strings into a long.
2413
2414         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2415         _initialize_am64fbsd_nat.
2416
2417 2003-09-15  Kevin Buettner  <kevinb@redhat.com>
2418
2419         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2420         associated with DW_AT_ranges attribute is out of bounds.
2421
2422 2003-09-15  David Lecomber  <dsl@sources.redhat.com>
2423
2424         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2425
2426 2003-09-14  Michael Chastain  <mec@shout.net>
2427
2428         * config/m68k/nm-apollo68v.h: Delete.
2429         * config/m68k/xm-apollo68v.h: Delete.
2430
2431 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2432
2433         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2434         * dcache.c: Update copyrights and descriptions.
2435         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2436
2437 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2438
2439         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2440         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2441
2442 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2443
2444         * alpha-nat.c: Remove some occurances of "register".
2445         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2446         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2447         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2448         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2449         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2450         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2451         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2452         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2453         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2454         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2455         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2456         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2457         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2458         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2459         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2460         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2461         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2462         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2463         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2464         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2465         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2466         * values.c, vax-tdep.c, xcoffread.c: Ditto.
2467
2468 2003-09-13  Andrew Cagney  <cagney@redhat.com>
2469
2470         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2471         * ppc-tdep.h (struct regcache): Declare opaque.
2472         * objfiles.h (struct objfile_data): Declare opaque.
2473         * cp-support.h (struct objfile): Declare opaque.
2474         * linux-nat.h (target_waitstatus): Declare opaque.
2475
2476 2003-09-14  Mark Kettenis  <kettenis@gnu.org>
2477
2478         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2479         (stabs_argument_has_addr): New architecture method.
2480         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2481         * arch-utils.c: Include "buildsym.h".
2482         (default_stabs_argument_has_addr): New function.
2483         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2484         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2485
2486         * cris-tdep.c (cris_gdbarch_init): Set
2487         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2488         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2489         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2490         * mips-tdep.c (mips_gdbarch_init): Likewise.
2491         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2492         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2493
2494 2003-09-13  Andrew Cagney  <cagney@redhat.com>
2495
2496         * values.c (using_struct_return): Delete "function" and "funcaddr"
2497         parameters.
2498         * value.h (using_struct_return): Update declaration.
2499         * infcmd.c (finish_command_continuation): Update.
2500         (finish_command): Update.
2501         * infcall.c (call_function_by_hand): Update.
2502         * eval.c (evaluate_subexp_standard): Update.
2503
2504 2003-09-13  Christopher Faylor  <cgf@redhat.com>
2505
2506         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2507         SSE registers since gdb will not operate correctly without this.
2508         Restore include file ordering munged in previous change.
2509         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2510
2511 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
2512
2513         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2514         REG_STRUCT_HAS_ADDR.
2515         * gdbarch.c, gdbarch.h: Updated.
2516         * infcall.c (call_function_by_hand): Update.
2517         * stabsread.c (define_symbol): Updated.
2518
2519         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2520
2521 2003-09-12  Christopher Faylor  <cgf@redhat.com>
2522
2523         * win32-nat.c: Reorganize so that defines used by target headers are
2524         actually defined by the system headers.
2525         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2526         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2527
2528 2003-09-12  Jim Blandy  <jimb@redhat.com>
2529
2530         * dbxread.c (read_dbx_symtab): Don't report an internal error if
2531         the file has no .data, .bss, or .rodata sections.  Instead wait
2532         until we see a variable alleged to live in one of those sections.
2533
2534         * dbxread.c (read_dbx_symtab): If we have no .data section and no
2535         .bss section, presume that any variables we find live in the
2536         .rodata section.
2537
2538         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2539         offsets for global and static variables.
2540
2541         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2542         symbol types are, by definition, in the .data section, so it is
2543         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2544         If there is no .data section, there should be no N_DATA or N_DATA
2545         | N_EXT symbols.
2546
2547 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
2548
2549         * amd64fbsd-tdep.c: Fix sigtramp recognition.
2550         (amd64fbsd_sigcontext_addr): Rewrite.
2551         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2552         with correct values.
2553         (amd64fbsd_sc_reg_offset): Initialize with correct values.
2554         (amd64fbsd_init_abi): Fix typo.
2555
2556 2003-09-12  Andrew Cagney  <cagney@redhat.com>
2557
2558         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2559         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2560
2561 2003-09-12  Andrew Cagney  <cagney@redhat.com>
2562
2563         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2564         "entry_file_highpc".  Update comments.
2565         * defs.h (deprecated_inside_entry_file): Rename
2566         "inside_entry_file".
2567         * blockframe.c (deprecated_inside_entry_file): Rename
2568         "inside_entry_file".
2569         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
2570         * vax-tdep.c (vax_frame_chain): Update.
2571         * sh64-tdep.c (sh64_frame_chain): Update.
2572         * sh-tdep.c (sh_frame_chain): Update.
2573         * rs6000-tdep.c (rs6000_frame_chain): Update.
2574         * ns32k-tdep.c (ns32k_frame_chain): Update.
2575         * mips-tdep.c (mips_frame_chain): Update.
2576         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2577         * m32r-tdep.c (m32r_frame_this_id): Update.
2578         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2579         * frv-tdep.c (frv_frame_this_id): Update.
2580         * d10v-tdep.c (d10v_frame_this_id): Update.
2581         * cris-tdep.c (cris_frame_chain): Update.
2582         * blockframe.c (legacy_frame_chain_valid): Update.
2583         * avr-tdep.c (avr_frame_this_id): Update.
2584         * arm-tdep.c (arm_prologue_this_id): Update.
2585         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2586         * objfiles.c (objfile_relocate): Update.
2587         * mipsread.c (mipscoff_symfile_read): Update.
2588         (mipscoff_symfile_read): Update.
2589         * mdebugread.c (parse_partial_symbols): Update.
2590         * dwarfread.c (read_file_scope): Update.
2591         * dwarf2read.c (read_file_scope): Update.
2592         * dbxread.c (read_dbx_symtab): Update.
2593         (read_dbx_symtab): Update.
2594         * coffread.c (complete_symtab): Update.
2595
2596 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
2597
2598         * top.c (quit_target): New static helper function.
2599         (quit_force): Moved code to quit_target().  Call quit_target()
2600         via catch_errors() to catch errors during quit.
2601
2602 2003-09-11  David Carlton  <carlton@kealia.com>
2603
2604         * buildsym.c (finish_block): Use allocate_block to allocate the
2605         block.
2606         * mdebugread.c (new_block): Add FIXME.
2607
2608 2003-09-11  David Carlton  <carlton@kealia.com>
2609
2610         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2611         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2612         (recursive_dump_type): Ditto.
2613         * printcmd.c (print_formatted): Ditto.
2614         * typeprint.c (print_type_scalar): Ditto.
2615         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2616         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2617         * cp-support.h: Declare cp_check_possible_namespace_symbols,
2618         maint_cplus_cmd_list.
2619         * cp-support.c: Make maint_cplus_cmd_list extern.
2620         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2621         command.h.
2622         (lookup_symbol_file): Look in possible namespace blocks when
2623         appropriate.
2624         (initialize_namespace_symtab): New.
2625         (get_possible_namespace_block, free_namespace_block)
2626         (check_possible_namespace_symbols)
2627         (check_possible_namespace_symbols_loop)
2628         (check_one_possible_namespace_symbol)
2629         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2630         (_initialize_cp_namespace): Ditto.
2631         * block.h: Declare allocate_block.
2632         * block.c (allocate_block): New.
2633         * jv-lang.c (get_java_class_symtab): Allocate blocks via
2634         allocate_block.
2635         * symfile.h: Update declaration of add_psymbol_to_list.
2636         * symfile.c (add_psymbol_to_list): Return the partial symbol in
2637         question.
2638         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2639         scan_partial_symbols_call.
2640         (scan_partial_symbols): Add NAMESPACE argument; update calls to
2641         helper functions.
2642         (add_partial_symbol): If necessary, scan mangled names for names
2643         of namespaces.
2644         (add_partial_namespace): Add NAMESPACE argument; generate partial
2645         symbols associated  to namespaces.
2646         (add_partial_enumeration): Add NAMESPACE argument.
2647         (new_symbol): Allow namespace syms.
2648         (read_namespace): Generate namespace syms.
2649         * objfiles.h: Add opaque declaration of struct symtab.
2650         (struct objfile): Add cp_namespace_symtab member.
2651         * objfiles.c (allocate_objfile): Set
2652         objfile->cp_namespace_symtab.
2653         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2654         dictionary_h, command_h.
2655
2656 2003-09-11  Andrew Cagney  <cagney@redhat.com>
2657
2658         * rs6000-tdep.c (rs6000_push_dummy_call): Use
2659         regcache_raw_write_signed to set SP_REGNUM, move the operation to
2660         near the function's end.
2661         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2662         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2663         regcache_raw_write_signed to set SP_REGNUM.
2664
2665 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
2666
2667         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2668         orig_addrs is set up properly.
2669
2670 2003-09-11  Andrew Cagney  <cagney@redhat.com>
2671
2672         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2673         * gdbarch.h, gdbarch.c: Re-generate.
2674         * infcall.c (call_function_by_hand): Update.
2675         * hppa-tdep.c (hppa_push_arguments): Update.
2676         * ada-lang.c (place_on_stack): Update.
2677         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2678         * sparc-tdep.c (sparc_gdbarch_init): Update.
2679         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2680         * hppa-tdep.c (hppa_gdbarch_init): Update.
2681         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2682         stack_align.
2683
2684 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
2685
2686         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2687         register do need a frame.
2688
2689 2003-09-11  Andrew Cagney  <cagney@redhat.com>
2690
2691         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2692         buildable since GDB 5.0.
2693         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2694         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2695         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2696         * irix4-nat.c: Delete file.
2697         * config/mips/irix4.mh: Delete file.
2698         * config/mips/irix3.mh: Delete file.
2699         * config/mips/irix3.mt: Delete file.
2700         * config/mips/tm-irix3.h: Delete file.
2701         * config/mips/nm-irix3.h: Delete file.
2702         * config/mips/xm-irix3.h: Delete file.
2703         * config/mips/nm-irix4.h: Delete file.
2704         * config/mips/xm-irix4.h: Delete file.
2705         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2706
2707 2003-09-10  J. Brobecker  <brobecker@gnat.com>
2708
2709         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2710         * Makefile.in (hppa-tdep.o): Update dependencies.
2711
2712 2003-09-10  James E Wilson  <wilson@specifixinc.com>
2713
2714         * MAINTAINERS: Change my e-mail address.  Move to paper trail
2715         section.
2716
2717 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
2718
2719         * MAINTAINERS (frv): New ISA entry.
2720
2721 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
2722
2723         * frv-tdep.c (dis-asm.h): Include.
2724         * Makefile.in (frv-tdep.o): Update dependencies.
2725
2726 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
2727
2728         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2729         Fix typo for high range of floating registers.
2730
2731 2003-09-09  David Carlton  <carlton@kealia.com>
2732
2733         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2734         highpc initialization here out of scan_partial_symbols.
2735         (scan_partial_symbols): Restructure into a recursive version,
2736         calling add_partial_namespace and add_partial_enumeration when
2737         appropriate.
2738         (add_partial_namespace): New.
2739         (add_partial_enumeration, locate_pdi_sibling): Ditto.
2740
2741 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2742
2743         * rs6000-tdep.c (ppc_push_return_address): Delete function.
2744         (rs6000_push_dummy_call): Set LR to BP_ADDR.
2745         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2746         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2747
2748         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2749         (rs6000_push_dummy_call): Set the "TOC" register.
2750
2751         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2752         methods "max_register_raw_size", "max_register_virtual_size" or
2753         "register_virtual_size".
2754
2755 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
2756
2757         * MAINTAINERS: Update my e-mail address.
2758
2759 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2760
2761         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2762         (rs6000_push_dummy_call): Store the struct return address.
2763         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2764
2765 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2766
2767         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2768         "ppc_sysv_abi_push_arguments".
2769         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2770         "ppc_sysv_abi_push_arguments".
2771         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2772         instead of "push_arguments".
2773         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2774
2775 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2776
2777         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2778         instead of CALL_DUMMY_ADDRESS.
2779
2780 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
2781
2782         * p-lang.c: Eliminate "register".
2783         * c-lang.c: Ditto.
2784         * expprint.c: Ditto.
2785         * f-lang.c: Ditto.
2786         * jv-lang.c: Ditto.
2787         * language.c: Ditto.
2788         * m2-lang.c: Ditto.
2789         * parse.c: Ditto.
2790         * scm-lang.c: Ditto.
2791         * objc-lang.c: Ditto.
2792
2793 2003-09-09  Nick Clifton  <nickc@redhat.com>
2794
2795         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2796
2797 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2798
2799         * avr-tdep.c: Include "dis-asm.h".
2800         * cris-tdep.c: Include "dis-asm.h".
2801         (cris_delayed_get_disassembler): Use "struct disassemble_info"
2802         instead of corresponding typedef.
2803         * h8300-tdep.c: Include "dis-asm.h".
2804         * ia64-tdep.c: Include "dis-asm.h".
2805         * i386-tdep.c: Include "dis-asm.h".
2806         (i386_print_insn): Use "struct disassemble_info" instead of
2807         corresponding typedef.
2808         * m68k-tdep.c: Include "dis-asm.h".
2809         * mcore-tdep.c: Include "dis-asm.h".
2810         * mips-tdep.c: Include "dis-asm.h".
2811         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2812         instead of corresponding typedef.
2813         * ns32k-tdep.c: Include "dis-asm.h".
2814         * s390-tdep.c: Include "dis-asm.h".
2815         * sparc-tdep.c: Include "dis-asm.h".
2816         * vax-tdep.c: Include "dis-asm.h".
2817         * v850-tdep.c: Include "dis-asm.h".
2818         * mn10300-tdep.c: Include "dis-asm.h".
2819         * rs6000-tdep.c: Include "dis-asm.h".
2820         * xstormy16-tdep.c: Include "dis-asm.h".
2821         (_initialize_xstormy16_tdep): Delete "extern" declaration of
2822         print_insn_xstormy16.
2823         * Makefile.in (v850-tdep.o): Update dependencies.
2824         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2825         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2826         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2827         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2828         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2829         (gdbarch_h): Remove $(dis_asm_h).
2830         * disasm.c: Include "dis-asm.h".
2831         (dis_asm_read_memory): Use "struct disassemble_info" instead of
2832         corresponding typedef.
2833         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2834         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2835         * gdbarch.sh: Do not include "dis-asm.h".
2836         (struct disassemble_info): Declare opaque.
2837         (TARGET_PRINT_INSN): Update declaration.
2838         * gdbarch.h, gdbarch.c: Re-generate.
2839
2840 2003-09-08  Andrew Cagney  <cagney@redhat.com>
2841
2842         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2843         CALL_DUMMY_ADDRESS, change to a predicate.
2844         * gdbarch.h, gdbarch.c: Re-generate.
2845         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2846         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2847         * infcall.c (call_function_by_hand): Ditto.
2848         * sparc-tdep.c (sparc_push_return_address): Ditto.
2849         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2850         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2851         CALL_DUMMY_ADDRESS with entry_point_address.
2852         * v850-tdep.c (v850_push_return_address): Ditto.
2853         * s390-tdep.c (s390_push_return_address): Ditto.
2854         * rs6000-tdep.c (ppc_push_return_address): Ditto.
2855         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2856         * mcore-tdep.c (mcore_push_return_address): Ditto.
2857         * cris-tdep.c (cris_push_return_address): Ditto.
2858         * arm-tdep.c (arm_push_return_address): Ditto.
2859
2860 2003-09-08  Andrew Cagney  <cagney@redhat.com>
2861
2862         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2863         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2864         and REG_UNMODIFIED to REG_SAME_VALUE.
2865         (execute_cfa_program): Update.
2866         (dwarf2_frame_cache): Update.  Initialize table to
2867         REG_UNSPECIFIED, complain if CFI fails to specify a register's
2868         location.
2869         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
2870
2871 2003-09-08  Andrew Cagney  <cagney@redhat.com>
2872
2873         * gnu-nat.c: Remove "inline" function attribute.
2874         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2875
2876 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
2877
2878         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2879         target.
2880
2881 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
2882
2883         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2884         (frame_extra_info): Rename this struct to frv_unwind_cache.
2885         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2886         Add fields ``prev_sp'' and ``base''.
2887         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2888         (frv_saved_pc_after_call, frv_init_extra_frame_info)
2889         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2890         Delete.
2891         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2892         Revise all callers.  Fill in the unwind cache argument and make
2893         other adjustments to account for new frame mechanisms.
2894         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2895         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2896         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2897         (frv_frame_unwind, frv_frame_base): New structs.
2898         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
2899         additional arguments expected by this method and adjust function
2900         body accordingly.
2901         (frv_gdbarch_init): Remove calls to the following functions:
2902         set_gdbarch_deprecated_init_frame_pc(),
2903         set_gdbarch_deprecated_saved_pc_after_call(),
2904         set_gdbarch_deprecated_frame_chain(),
2905         set_gdbarch_deprecated_frame_saved_pc(),
2906         set_gdbarch_deprecated_frame_init_saved_regs(),
2907         set_gdbarch_deprecated_push_arguments(),
2908         set_gdbarch_deprecated_push_return_address(),
2909         set_gdbarch_deprecated_pop_frame(),
2910         set_gdbarch_deprecated_call_dummy_words(),
2911         set_gdbarch_deprecated_sizeof_call_dummy_words(),
2912         set_gdbarch_deprecated_init_extra_frame_info(),
2913         set_gdbarch_deprecated_dummy_write_sp(), and
2914         set_gdbarch_deprecated_pc_in_call_dummy().
2915         Add calls to the following functions:
2916         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2917         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2918         frame_base_set_default().
2919         * Makefile.in (frv-tdep.o): Update dependencies.
2920
2921 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
2922
2923         * dwarf2-frame.c (read_encoded_value): Add support for
2924         DW_EH_PE_aligned encoding.
2925
2926 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
2927
2928         * infrun.c (normal_stop): Don't print a message if the inferior
2929         has exited.
2930
2931 2003-09-08  Jim Blandy  <jimb@redhat.com>
2932
2933         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2934         * dbxread.c: #include "gdb_assert.h".
2935         (read_dbx_symtab): If the objfile has no .data section, use the
2936         section index for the .bss section instead.
2937
2938 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
2939
2940         * frame.c (deprecated_safe_get_selected_frame): New function.
2941         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2942         * findvar.c (read_var_value): Call it.
2943
2944 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
2945
2946         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2947         (sh64-tdep.o): Add dependencies.
2948         * configure.tgt: Add FIXME to sh-*-linux*.
2949         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2950         (sh_gdbarch_init): Always set correct sh_show_regs function
2951         pointer.  Call sh64_gdbarch_init() if machine type is sh5.
2952         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2953         * sh64-tdep.c: New file, containing all sh64 related code from
2954         sh-tdep.c.
2955         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2956         * config/sh/linux.mt (TDEPFILES): Ditto.
2957         * config/sh/nbsd.mt (TDEPFILES): Ditto.
2958         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2959         * config/sh/wince.mt (TDEPFILES): Ditto.
2960
2961 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
2962
2963         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2964         (stop_wait_callback): Handle !lp->signalled also.
2965         (lin_lwp_has_pending, flush_callback): New functions.
2966         (lin_lwp_wait): Call flush_callback.
2967         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2968         (linux_proc_pending_signals): New function.
2969         * linux-nat.h (linux_proc_pending_signals): Add prototype.
2970
2971 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
2972
2973         From Nick Kelsey <nickk@ubicom.com>:
2974         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2975         when the stop PC is at the beginning of a function also.
2976
2977 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
2978
2979         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2980         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2981
2982 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
2983
2984         * sol-thread.c: Include "gdb_string.h".
2985
2986 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
2987
2988         * gcore.c: Reorder include files in alphabetical order.  Include
2989         "gdb_assert.h".  Various coding style fixes.
2990         (derive_stack_segment, derive_heap_segment): Replace check for
2991         non-null BOTTOM and TOP with gdb_assert.
2992         (derive_heap_segment): Replace check for successful creation of
2993         ZERO with gdb_assert.
2994         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2995
2996 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2997
2998         * thread-db.c (verbose_dlsym): New function.
2999         (thread_db_load): Use verbose_dlsym
3000         (thread_db_new_objfile): Print that libthread_db was loaded, and
3001         that thread debugging was enabled.
3002
3003 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3004
3005         * configure.tgt: Add "mips64*-*-*" target.  Delete
3006         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3007         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3008         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3009         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3010         mips*-sony-*, and mips64*-*-elf* targets.
3011         * config/mips/embedl.mt: Delete file.
3012         * config/mips/embedl64.mt: Delete file.
3013         * config/mips/mips.mt: Delete file.
3014         * config/mips/mips64.mt: Delete file.
3015         * config/mips/tm-embed.h: Delete file.
3016         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3017         * config/mips/embed64.mt: Delete out-of-date comment.
3018
3019 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3020
3021         * hppa-tdep.c (hppa_gdbarch_init): Set
3022         "have_nonsteppable_watchpoint".
3023         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3024         * mips-tdep.c (mips_dump_tdep): Do not print
3025         HAVE_NONSTEPPABLE_WATCHPOINT.
3026         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3027         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3028         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3029         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3030
3031 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3032
3033         * breakpoint.c (watchpoint_check): Remove accidentally checked in
3034         unused code.  Add comment.
3035
3036 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3037
3038         * breakpoint.c (watchpoint_check): Check for pc being in an
3039         epilogue if watchpoint frame couldn't be found.
3040
3041 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3042
3043         * Makefile.in: Re-generate all dependencies.
3044
3045 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3046
3047         * arch-utils.h (legacy_print_insn): Delete declaration.
3048         * arch-utils.c (legacy_print_insn): Delete function.
3049         * disasm.c (deprecated_tm_print_insn_info): Delete.
3050         (_initialize_disasm): Delete function, contained code initializing
3051         deprecated_tm_print_insn_info.
3052         * gdbarch.sh (deprecated_tm_print_insn): Delete.
3053         (deprecated_tm_print_insn_info): Delete.
3054         (TARGET_PRINT_INSN): Do not provide a default.
3055         * gdbarch.h, gdbarch.c: Re-generate.
3056
3057 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3058
3059         * disasm.c (fprintf_disasm): New function.
3060         (gdb_disassemble_info): Call "init_disassemble_info", instead of
3061         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
3062         reverts 2003-08-14 change.
3063         (_initialize_disasm): Call "init_disassemble_info", instead of
3064         INIT_DISASSEMBLE_INFO_NO_ARCH.
3065
3066 2003-09-03  Michael Snyder  <msnyder@redhat.com>
3067
3068         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3069
3070 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3071
3072         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3073         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3074         * symfile.c (syms_from_objfile): Update.
3075         (reread_symbols): `Update
3076         * exec.c (exec_file_attach): Update.
3077         (exec_file_attach): Update.
3078         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3079         2003-08-29 change.
3080         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3081
3082 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3083
3084         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3085         trad-frame.h.
3086         (arm_get_cache): Delete macro.
3087         (struct arm_prologue_cache): Update comments.  Make saved_regs into
3088         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
3089         to prev_sp.
3090         (thumb_scan_prologue): Update for cache changes.  Don't call
3091         DEPRECATED_PC_IN_CALL_DUMMY.
3092         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
3093         argument and use it in desperation search for our prologue.  Do not
3094         search past the specified PC.
3095         (arm_make_prologue_cache): Simplify.
3096
3097         (arm_prologue_this_id, arm_prologue_prev_register)
3098         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3099         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3100         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3101         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3102         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3103
3104         (arm_frame_chain_valid, arm_find_callers_reg)
3105         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3106         (arm_pop_frame): Delete obsolete methods.
3107         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3108
3109         (arm_gdbarch_init): Update for new frame methods.  Register prologue
3110         and sigtramp unwinders.  Set the default frame base method.
3111
3112         * Makefile.in (arm-tdep.o): Update dependencies.
3113         * varobj.c (find_frame_addr_in_frame_chain): Call
3114         get_frame_base_address.
3115         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3116
3117 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3118
3119         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3120         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
3121         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3122         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3123         Take NEXT_FRAME and CACHE arguments.  Call
3124         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3125         Set unwound_pc in CACHE instead of modifying the frame argument.
3126         Don't bother checking the frame type when looking for sigtramp
3127         frames.
3128         (arm_make_prologue_cache, arm_frame_chain)
3129         (arm_init_extra_frame_info): New functions.
3130
3131 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3132
3133         * arm-tdep.c (arm_get_cache): Define.
3134         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
3135         unwound_sp, unwound_pc, and saved_regs.
3136         (thumb_scan_prologue): Take a cache instead of the frame.
3137         (arm_scan_prologue): Likewise.
3138         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3139         instead of a temporary frame.
3140         (arm_init_extra_frame_info): Allocate and use a cache.
3141         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3142
3143 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3144
3145         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3146         * config/mips/wince.mt (TM_CLIBS): Ditto.
3147         * config/sh/wince.mt (TM_CLIBS): Ditto.
3148         * config/pa/hppa64.mt (TM_CLIBS): Delete.
3149         * config/sparc/sp64.mt (CC): Delete.
3150
3151 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3152
3153         * defs.h: Do not include "arch-utils.h".
3154         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3155         GDB_MULTI_ARCH_PURE.
3156         * configure.in (GDB_MULTI_ARCH): Do not define.
3157         * configure, config.in: Regenerate.
3158         * configure.tgt: Do not set variable "gdb_multi_arch".
3159         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3160         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3161         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3162         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3163         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3164         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3165         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3166         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3167         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3168         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3169         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3170         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3171         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3172         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3173         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3174         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3175         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3176         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3177
3178 2003-08-30  Michael Chastain  <mec@shout.net>
3179
3180         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3181         * config/m68k/nm-hp300hpux.h: Delete.
3182         * config/m68k/tm-hp300hpux.h: Delete.
3183         * config/m68k/xm-hp300hpux.h: Delete.
3184         * config/m68k/xm-hp300bsd.h: Delete.
3185         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3186         tm-hp300hpux.h, xm-hp300hpux.h.
3187         * somsolib.c: Remove comment about hp300 shared libraries.
3188
3189 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
3190
3191         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3192         Only define PTRACE_GET_THREAD_AREA is not already defined.
3193         Various style fixes in code and comments and some additional
3194         spelling fixes in comments.  Move after functions dealing with
3195         debug registers.
3196         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3197         Fix coding-style.
3198
3199         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3200         frame_unwind_register_unsigned instead of
3201         frame_unwind_unsigned_register.
3202
3203 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
3204
3205         * configure.in: Search for gethostbyname in libnsl.
3206         * configure: Regenerated.
3207
3208 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
3209
3210         * configure.in: Remove redundant AC_MSG_RESULT in check for
3211         uintptr_t in stdint.h.
3212         * configure: Regenerated.
3213
3214         * amd64-nat.h (struct regcache): Add opaque declaration.
3215
3216         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3217         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3218         Change "register array" to "register cache" in comments.
3219         (x86_64_linux_gregset64_reg_offset): New variable.
3220         (GETREGS_SUPPLIES): Remove macro.
3221         (supply_gregset): Call amd64_supply_native_gregset instead of
3222         x86_64_linux_supply_gregset.
3223         (fill_gregset): Rename `regno' to `regnum'.  Call
3224         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3225         (store_regs): Rename `regno' to `regnum'.
3226         (store_fpregs): Rename `regno' to `regnum'.
3227         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
3228         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3229         Reorganize function a bit.
3230         (store_inferior_registers): Rename `regno' to `regnum'.  Use
3231         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3232         Reorganize function a bit.
3233         (_initialize_x86_64_linux_nat): New function.
3234         * config/i386/x86-64linux.mh.
3235
3236 2003-08-29  Andrew Cagney  <cagney@redhat.com>
3237
3238         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3239         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3240         (target_remove_watchpoint): Delete macro.
3241         (target_insert_watchpoint): Delete macro.
3242         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3243         (remote_mips_stopped_by_watchpoint): Delete declaration.
3244         (remote_mips_remove_watchpoint): Delete declaration.
3245         (remote_mips_set_watchpoint): Delete declaration.
3246         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3247         * remote-mips.c (_initialize_remote_mips): Set
3248         "to_insert_watchpoint", "to_stopped_by_watchpoint",
3249         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3250         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3251         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3252         (mips_stopped_by_watchpoint): Rename
3253         remote_mips_stopped_by_watchpoint.
3254         (mips_can_hardware_watchpoint): Rename
3255         remote_mips_can_use_hardware_watchpoint, update function
3256         signature.
3257
3258 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
3259
3260         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3261         USER_DS.  We haven't given them a register number yet.
3262
3263         * amd64-nat.h: New file.
3264         * amd64-nat.c: New file.
3265         * amd64fbsd-nat.c: Include "amd64-nat.h".
3266         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3267         (amd64fbsd32_r_reg_offset): New variable.
3268         (supply_gregset): Simply call amd64_supply_native_gregset.
3269         (fill_gregset): Rename `regno' to `regnum'.  Simply call
3270         amd64_collect_native_gregset.
3271         (fill_fpregset): Rename `regno' to `regnum'.
3272         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
3273         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3274         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3275         `fpregset_t'.  Call amd64_supply_native_gregset instead of
3276         supply_gregset.  Call x86_64_supply_fxsave instead of
3277         supply_fpregset.
3278         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
3279         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3280         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3281         `fpregset_t'.  Call amd64_collect_native_gregset instead of
3282         fill_gregset.  Call x86_64_collect_fxsave instead of
3283         fill_fpregset.
3284         (_initialize_am64fbsd_nat): Initialize
3285         amd64_native_gregset32_reg_offset and
3286         amd64_native_gregset64_reg_offset.
3287         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3288
3289         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3290         null pointer.  Fix typo in comment.
3291
3292         * regcache.c (supply_register): Reimplement to call
3293         regcache_raw_supply.
3294         (regcache_collect): Reimplement by calling regcache_raw_collect.
3295
3296 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
3297
3298         * regcache.c (register_buffer): Consitify first argument.
3299         (regcache_raw_supply, regcache_raw_collect): New
3300         functions.
3301
3302 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
3303
3304         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
3305         by Nathan J. Williams.
3306
3307 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
3308
3309         * lin-lwp.c (wait_lwp): New function, copied from
3310         stop_wait_callback.  Clean up.
3311         (stop_wait_callback): Use wait_lwp.
3312
3313 2003-08-28  Andrew Cagney  <cagney@redhat.com>
3314
3315         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3316         flavour and disassembler options.
3317         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3318         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
3319         deprecated_tm_print_insn_info.
3320
3321 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3322
3323         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3324         Use target_read_memory.
3325         (s390_get_frame_info): Update.  Do not reference
3326         deprecated_tm_print_insn_info.
3327         (s390_check_function_end, s390_is_sigreturn): Ditto.
3328
3329 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3330
3331         * Makefile.in (cris-tdep.o): Update dependencies.
3332         * cris-tdep.c: Include "gdb_assert.h".
3333         (cris_gdbarch_init): Set print_insn.
3334         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3335         (cris_delayed_get_disassembler): Simplify, directly call the
3336         disassembler returned by cris_get_disassembler.
3337         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3338         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3339         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3340         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3341         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3342         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3343         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3344         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3345         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3346         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3347         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3348         (gdb_print_insn_sparc): Delete function.
3349         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3350         deprecated_tm_print_insn_info.
3351         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3352         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3353         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3354         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3355         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3356         * s390-tdep.c (gdb_print_insn_s390): Delete function.
3357         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3358         (s390_gdbarch_init): Set print_insn.
3359
3360 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3361
3362         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3363         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3364         * infcall.c (call_function_by_hand): Convert the entry point
3365         address into a code address.
3366
3367 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3368
3369         * dsrec.c: Include "gdb_string.h".
3370         * Makefile.in (dsrec.o): Update dependencies.
3371
3372 2003-08-27  Michael Chastain  <mec@shout.net>
3373
3374         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3375
3376 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3377
3378         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3379         (alpha_osf1_init_abi): Do not set call_dummy_address.
3380
3381 2003-08-27  David Carlton  <carlton@kealia.com>
3382
3383         From Randolph Chung  <tausq@debian.org>:
3384         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3385         compiles with -Wformat-nonliteral -Werror.
3386
3387 2003-08-26  Jim Blandy  <jimb@redhat.com>
3388
3389         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3390         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3391         bfd_lookup_symbol, since we only want symbols in code sections.
3392         (look_for_base): Pass zero as the SECT_FLAGS argument to
3393         bfd_lookup_symbol, since we're not concerned about which section
3394         the symbol is in.
3395
3396 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3397
3398         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3399         we are frameless or the return address register is already known.
3400
3401 2003-08-26  Andrew Cagney  <cagney@redhat.com>
3402
3403         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3404         in size.  Add comments.
3405
3406 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3407
3408         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3409         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3410
3411 2003-08-26  Jason Merrill  <jason@redhat.com>
3412
3413         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3414         case out of #ifdef MIPS block.
3415
3416 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
3417
3418         PR java/1322
3419         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3420         available before calling SECT_OFF_TEXT.
3421         * PROBLEMS: Remove description of java/1322.
3422
3423 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
3424
3425         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3426         bof, and nat0-nat127 as pseudo-registers.
3427         (ia64_frame_cache): New struct used to cache frame info.
3428         (ia64_register_reggroup_p): New routine used to override default
3429         register grouping so registers without names are still saved and
3430         restored.
3431         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3432         pseudo values.
3433         (ia64_pseudo_register_read): New routine to read pseudo-registers.
3434         (ia64_pseudo_register_write): New routine to write pseudo-registers.
3435         (ia64_alloc_frame_cache): New routine to create a new
3436         ia64_frame_cache.
3437         (examine_prologue): Change prototype to add next_frame pointer.
3438         Assume frameless until otherwise proven.  Verify that the cfm for
3439         current frame matches the cfm that should occur for the prologues
3440         alloc insn and if equal, mark as not frameless.  At end of routine,
3441         if not frameless, calculate registers for the previous frame and store
3442         in the cache, if a cache is provided.
3443         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
3444         and pass 0 for next_frame.
3445         (ia64_store_return_value): Change to use convert_typed_floating()
3446         instead of calling ia64_convert_to_raw().
3447         (ia64_extract_return_value): Change to use convert_typed_floating()
3448         instead of calling ia64_convert_to_virtual().
3449         (ia64_frame_cache): New routine to support new frame model.
3450         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3451         (ia64_frame_sniffer): Ditto.
3452         (ia64_sigtramp_frame_init_saved_regs): Ditto.
3453         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3454         (ia64_sigtramp_frame_prev_register): Ditto.
3455         (ia64_sigtramp_frame_sniffer): Ditto.
3456         (ia64_frame_base_address): Ditto.
3457         (ia64_extract_struct_value_address): Change to issue error message.
3458         (ia64_frame_align): New routine to align sp.
3459         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3460         (ia64_push_arguments): Removed.  Logic moved to
3461         ia64_push_dummy_call().
3462         (ia64_push_return_address): Ditto.
3463         (ia64_unwind_dummy_id): New function.
3464         (ia64_unwind_pc): Ditto.
3465         (ia64_convert_register_p): Ditto.
3466         (ia64_register_to_value): Ditto.
3467         (ia64_value_to_register): Ditto.
3468         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3469         (ia64_register_byte, ia64_register_raw_size): Ditto.
3470         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3471         (ia64_saved_pc_after_call): Ditto.
3472         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3473         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3474         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3475         (ia64_register_convert_to_raw): Ditto.
3476         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3477         (ia64_init_extra_frame_info): Ditto.
3478         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3479         (ia64_gdbarch_init): Remove registering of deprecated functions that
3480         are no longer used.  Add registration of new gdbarch functions.
3481         Remove registering deprecated_write_sp.  Replace
3482         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3483         Delete set_gdbarch_deprecated_register_convertible(),
3484         set_gdbarch_deprecated_register_convert_to_virtual(), and
3485         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
3486         set_gdbarch_deprecated_register_size(),
3487         set_gdbarch_deprecated_register_bytes(),
3488         set_gdbarch_pcregnum(),
3489         set_gdbarch_deprecated_register_byte(),
3490         set_gdbarch_deprecated_register_raw_size(),
3491         set_gdbarch_deprecated_max_register_raw_size(),
3492         set_gdbarch_deprecated_register_virtual_size(),
3493         and set_gdbarch_deprecated_max_register_virtual_size() calls.
3494         Replace set_gdbarch_deprecated_extract_return_value() with
3495         set_gdbarch_extract_return_value().  Remove calls to:
3496         set_gdbarch_deprecated_saved_pc_after_call();
3497         set_gdbarch_deprecated_frame_chain(),
3498         set_gdbarch_deprecated_frame_saved_pc(),
3499         set_gdbarch_deprecated_frame_init_saved_regs(),
3500         set_gdbarch_deprecated_get_saved_register(),
3501         set_gdbarch_deprecated_call_dummy_words(),
3502         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3503         set_gdbarch_deprecated_init_extra_frame_info(),
3504         set_gdbarch_deprecated_frame_args_address(),
3505         set_gdbarch_deprecated_frame_locals_address(),
3506         and set_gdbarch_deprecated_dummy_write_sp().
3507         Add set_gdbarch_convert_register_p(),
3508         set_gdbarch_register_to_value(),
3509         set_gdbarch_value_to_register(),
3510         set_gdbarch_push_dummy_call(),
3511         set_gdbarch_frame_align(),
3512         set_gdbarch_unwind_dummy_id(),
3513         set_gdbarch_unwind_pc(),
3514         frame_unwind_append_sniffer(),
3515         frame_unwind_append_sniffer(),
3516         and frame_base_set_default().
3517
3518 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
3519
3520         * configure.tgt: Document need for special "mipsisa64" handling.
3521         (mipsisa64*-*-linux64): Handle as target linux64.
3522         (mipsisa64*-*-*): Handle as target embed64.
3523
3524 2003-08-18  Michael Chastain  <mec@shout.net>
3525
3526         * PROBLEMS: Document pr gdb/1322, the Java anonymous
3527         objfile bug.
3528
3529 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
3530
3531         * i387-tdep.h: Update copyright date.
3532         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3533
3534         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3535         CFLAGS games to reflect reality.
3536
3537 2003-08-24  Andrew Cagney  <cagney@redhat.com>
3538
3539         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3540         GDB_MULTI_ARCH is always non-zero.
3541         * osabi.c (_initialize_gdb_osabi): Ditto.
3542         (gdbarch_init_osabi): Ditto.
3543         * sparc-tdep.c: Ditto for #if code.
3544
3545 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
3546
3547         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3548         Update comments.
3549         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
3550         comments.
3551         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3552         x86_64_supply_fxsave.
3553         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3554         x86_64_supply_fxsave.
3555         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3556         x86_64_supply_fxsave.
3557
3558 2003-08-23  Andreas Jaeger  <aj@suse.de>
3559
3560         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3561         i387_supply_fxsave.
3562
3563 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
3564
3565         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3566         i387_supply_register.
3567         (go32_fetch_registers): Adjust call to i387_supply_fsave.
3568         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3569         i387_supply_fsave.
3570         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3571         i387_supply_fxsave.
3572         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3573         i387_supply_fsave.
3574         * i386bsd-nat.c (supply_fpregset): Adjust call to
3575         i387_supply_fsave.
3576         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
3577         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
3578         supply_fpregset.
3579         (store_inferior_registers): Remove extraneous whitespace.  Call
3580         i387_fill_fsave instead of fill_fpregset.
3581         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3582         (supply_fpregset): Likewise.
3583         * i386v4-nat.c (supply_fpregset): Adjust call to
3584         i387_supply_fsave.
3585         * i386-interix-nat.c (supply_fpregset): Adjust call to
3586         i387_supply_fsave.
3587         * i386-linux-nat.c (supply_fpregset): Adjust call to
3588         i387_supply_fsave.
3589         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3590         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3591         i387supply_fsave and i387_supply_fxsave.
3592         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3593         Incorporate code from `i387_supply_register.
3594         (i387_supply_register): Remove.
3595         (i387_supply_fxsave): Add `regnum' argument.
3596         Update comments.
3597         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3598         prototype.
3599         (i387_supply_register): remove prototype.
3600         Update comments.
3601
3602 2003-08-22  Michael Chastain  <mec@shout.net>
3603
3604         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3605         Add lines for files in gdb/testsuite/gdb.cp/* that are
3606         still not 8.3 unique.
3607
3608 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
3609
3610         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3611         TYPE_VPTR_FIELDNO is valid.
3612
3613 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
3614
3615         * utils.c (set_width_command): Remove prototypes.
3616         (set_screen_size): New prototype.
3617         (init_page_info): Simplify by fetching the screen size from
3618         Readline.  Call set_screen_size.
3619         (set_screen_size): New function.
3620         (set_width): Add missing whitespace in comment.
3621         (set_width_command): Call set_screen_size.
3622         (set_height_command): New function.
3623         (initialize_utils): Fix formatting.  Make "set height" command
3624         call set_height_command.  Remove redundant code that turns off
3625         pagination if output isn't a terminal.  Remove redundant call to
3626         set_width_command.
3627
3628 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
3629
3630         * sparc64-tdep.h (sparc64_regnum): Fix comment.
3631         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3632         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3633         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3634         `case' keyword.
3635         (sparc64_register_info): Give the reister with number
3636         SPARC64_STATE_REGNUM a name.
3637         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3638         %asi and %ccr.
3639         (sparc64_push_dummy_call): Take BIAS into account when checking
3640         stcak alignment.
3641         (sparc_software_single_step): Remove assertions that check whether
3642         NPC and NNPC were zero.
3643         (sparc_supply_rwindow): Make public.  Merge functionality with
3644         sparc64_supply_rwindow.
3645         (sparc_fill_rwindow): Make public.  Merge functionality with
3646         sparc64_fill_rwindow.
3647         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3648         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3649         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3650         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3651         sparc_supply_rwindow instead of sparc64_supply_rwindow.
3652
3653         * reggroups.c: Add whitespace after declarations of local
3654         variables in functions.
3655
3656 2003-08-21  Michael Chastain  <mec@shout.net>
3657
3658         * gdbtypes.h: Change array bound type from an int to enum.
3659
3660 2003-08-21  Andrew Cagney  <cagney@redhat.com>
3661
3662         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3663         * config/sparc/tm-sparc.h: Ditto.
3664         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3665         unconditionally.
3666         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3667
3668 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
3669
3670         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3671         (register_objfile_data, set_objfile_data, objfile_data): New
3672         prototypes.
3673         * objfiles.c (objfile_alloc_data, objfile_free_data): New
3674         prototypes.
3675         (allocate_objfile): Call objfile_alloc_data.
3676         (free_objfile): Call objfile_free_data.
3677         (struct objfile_data): New.
3678         (struct objfile_data_registration): New.
3679         (struct objfile_data_registry): New.
3680         (objfile_data_registry): New variable.
3681         (register_objfile_data): New function.
3682         (objfile_alloc_data, objfile_free_data): New functions.
3683         (set_objfile_data, objfile_data): New functions.
3684         * dwarf2-frame.c (dwarf2_frame_data): New variable.
3685         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3686         (_initialize_dwarf2_frame): New function and prototype.
3687
3688 2003-08-21  Andrew Cagney  <cagney@redhat.com>
3689
3690         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3691         a specific architecture.
3692         * arch-utils.h (set_architecture_from_arch_mach): Delete
3693         declaration.
3694         (target_architecture_hook): Delete declaration.
3695         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3696         (default_float_format): Assume GDB_MULTI_ARCH.
3697         (default_double_format): Assume GDB_MULTI_ARCH.
3698         (set_endian_from_file): Delete function.
3699         (arch_ok): Delete function.
3700         (set_arch): Delete function.
3701         (set_architecture_from_arch_mach): Delete function.
3702         (set_architecture_from_file): Delete function.
3703         (set_architecture): Assume GDB_MULTI_ARCH.
3704         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3705
3706 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
3707
3708         Rewrite FreeBSD/sparc64 native configuration.
3709         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3710         * sparc64fbsd-nat.c: New file.
3711         * sparc64fbsd-tdep.c: New file.
3712         * sparc64-tdep.c sparc64-tdep.h: New files.
3713         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3714         sparc64fbsd-tdep.o): New dependencies.
3715         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3716         and sparc64fbsd-tdep.c.
3717         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3718         * config/sparc/fbsd.mh: Remove copyright notice.
3719         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3720         sparcbsd-nat.o.
3721         * config/sparc/fbsd.mt: Remove copyright notice.
3722         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3723         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3724         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3725         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3726         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3727         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3728         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3729         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3730         "sparc/tm-sp64.h".
3731         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3732         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3733
3734 2003-08-21  Michael Chastain  <mec@shout.net>
3735
3736         * symtab.h: Add doco on the space critical structures and
3737         some measurements of space usage.
3738
3739 2003-08-21  Michael Snyder  <msnyder@redhat.com>
3740
3741         * tracepoint.c (trace_dump_command): Trace break address
3742         is subject to DECR_PC_AFTER_BREAK.
3743         (set_traceframe_context): Make "trace_line" an int.
3744         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
3745
3746 2003-08-20  Michael Snyder  <msnyder@redhat.com>
3747
3748         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3749         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3750         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3751         argument passing.
3752         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3753         functions, replace sh_push_dummy_call.
3754         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3755
3756 2003-08-20  Michael Chastain  <mec@shout.net>
3757
3758         * gdbtypes.h (struct main_type): Rearrange to save space.
3759
3760 2003-08-20  Michael Snyder  <msnyder@redhat.com>
3761
3762         * trad-frame.c: Comment typo fix.
3763
3764 2003-08-20  Michael Snyder  <msnyder@redhat.com>
3765             Kevin Buettner  <kevinb@redhat.com>
3766
3767         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3768         (frv_frame_init_saved_regs): Add declaration.
3769         (frame_extra_info): Add new field ``saved_regs''.
3770         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3771         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3772         Update frame related code.
3773         (frv_extract_struct_value_address): Adjust formatting.
3774         * Makefile.in (frv-tdep.o): Update dependencies.
3775         * config/frv/tm-frv.h (target_insert_watchpoint)
3776         (target_remove_watchpoint, target_insert_hw_breakpoint)
3777         (target_remove_hw_breakpoint): Delete these macros.
3778         (remote_insert_watchpoint, remote_remove_watchpoint)
3779         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3780         these declarations.
3781
3782 2003-08-20  Michael Chastain  <mec@shout.net>
3783
3784         * defs.h (ENUM_BITFIELD): New macro.
3785         * symtab.h (ENUM_BITFIELD): Use it.
3786         (BYTE_BITFIELD): Remove old macro, which was already disabled.
3787
3788 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
3789
3790         * MAINTAINERS (write after approval): Add myself.
3791
3792 2003-08-18  Andrew Cagney  <cagney@redhat.com>
3793
3794         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3795         * gdbarch.h, gdbarch.c: Re-generate.
3796         * infcall.c (call_function_by_hand): Adjust the SP by
3797         frame_red_zone_size before allocating any stack space.
3798         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3799         * x86-64-tdep.c (x86_64_frame_align): New function.
3800         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3801
3802         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3803         Remove code adjusting SP so that it skips over the Red Zone.
3804
3805 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
3806
3807         * NEWS (New native configurations): Mention FreeBSD/amd64.
3808
3809 2003-08-18  Andrew Cagney  <cagney@redhat.com>
3810
3811         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3812         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
3813         "m68k_frame_p".
3814         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3815
3816 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
3817
3818         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3819
3820 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
3821
3822         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3823         Define.
3824         * i386-linux-nat.c: Include "linux-nat.h".
3825         (child_post_startup_inferior): New function.
3826
3827 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
3828
3829         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3830         at the start of a frameless function.  This probably fixes PR
3831         backtrace/1338.
3832
3833 2003-08-17  Michael Chastain  <mec@shout.net>
3834
3835         * symfile.c (find_sym_fns): Remove special case for apollo target.
3836
3837 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
3838
3839         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3840         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3841         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3842         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3843         (linux_supports_tracevforkdone): New function.
3844         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3845         TRACEVFORKDONE.
3846         (child_follow_fork): Handle vfork.
3847         (linux_handle_extended_wait): Likewise.  Also handle exec.
3848         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3849         * NEWS: Mention fork tracing.
3850
3851 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
3852
3853         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3854
3855 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
3856
3857         * Makefile.in (i386-linux-nat.o): Update dependencies.
3858         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3859         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3860         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3861         * i386-linux-nat.c: Include "linux-nat.h".
3862         (child_post_startup_inferior): New function.
3863         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3864         * infptrace.c (kill_inferior): Wrap in #ifdef.
3865         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3866         attaching to each LWP.
3867         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3868         (init_lin_lwp_ops): Fill in some more operations.
3869         * linux-nat.h (linux_enable_event_reporting)
3870         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3871         prototypes.
3872         * linux-nat.c (linux_enable_event_reporting): New function.
3873         (child_post_attach, linux_child_post_startup_inferior)
3874         (child_post_startup_inferior, child_follow_fork)
3875         (linux_handle_extended_wait, kill_inferior): New functions.
3876
3877 2003-08-16  Andrew Cagney  <cagney@redhat.com>
3878
3879         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3880         * gdbarch.h, gdbarch.c: Re-generate.
3881
3882 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
3883
3884         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3885
3886 2003-08-16  Andrew Cagney  <cagney@redhat.com>
3887
3888         * NEWS: Mention that "set prompt-escape-char" was deleted.
3889         * top.c (get_prompt_1): Delete function.
3890         (gdb_prompt_escape):
3891         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
3892         prompt-escape-char" command.
3893         (MAX_PROMPT_SIZE): Delete macro.
3894         (get_prompt): Simplify, do not call get_prompt_1.
3895
3896 2003-08-16  Andrew Cagney  <cagney@redhat.com>
3897
3898         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3899         -Werror.  -Wformat-nonliteral problems.
3900
3901 2003-08-15  J. Brobecker  <brobecker@gnat.com>
3902
3903         Further multiarching work mostly for hppa64-*-hpux11:
3904         * hppa-tdep.h: New file.
3905         * hppa-tdep.c: #include hppa-tdep.c.
3906         (hppa32_num_regs): Renamed from hppa_num_regs.
3907         (hppa64_num_regs): New constant.
3908         (hppa64_call_dummy_breakpoint_offset): New constant.
3909         (hppa32_call_dummy_length): New constant.
3910         (hppa64_call_dummy_length): New constant.
3911         (hppa32_stack_align): Make name 32bit explicit.
3912         (hppa32_register_virtual_type): Likewise.
3913         (hppa32_extract_return_value): Likewise.
3914         (hppa32_use_struct_convention): Likewise.
3915         (hppa32_store_return_value): Likewise.
3916         (hppa64_register_virtual_type): New function.
3917         (hppa64_extract_return_value): New function.
3918         (hppa64_use_struct_convention): New function.
3919         (hppa64_store_return_value): New function.
3920         (hppa_frame_locals_address): Remove declaration, function does
3921         not exist anymore.
3922         (hppa_register_byte): Add support for PA64 ABI.
3923         (hppa_gdbarch_init): Add support for PA64 ABI.
3924         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3925         Make name 32bit explicit.
3926         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3927         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3928         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3929         (hppa64_hpux_frame_base_before_sigtramp): New function.
3930         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3931         * config/pa/tm-hppa64.h: Remove macros that are no longer
3932         necessary now that the gdbarch vector is properly setup.
3933         Transform some macros into function calls. Some minor cleanup.
3934         * config/pa/tm-hppah.h: Update function calls in macros
3935         following the function renaming in hppa-hpux-tdep.c.
3936         * Makefile.in (hppa_tdep_h): New variable.
3937         (hppa-tdep.o): Add dependency over hppa_tdep_h.
3938
3939 2003-08-14  Michael Snyder  <msnyder@redhat.com>
3940
3941         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3942
3943 2003-08-13  J. Brobecker  <brobecker@gnat.com>
3944
3945         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3946         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3947         routine.
3948
3949 2003-08-13  Michael Snyder  <msnyder@redhat.com>
3950
3951         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3952         (frv_saved_pc_after_call): Use deprecated ftype.
3953         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3954         (frv_remote_translate_xfer_address): Remove.
3955         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3956
3957 2003-08-13  J. Brobecker  <brobecker@gnat.com>
3958
3959         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3960         initialization after the common gdbarch initialization, not before.
3961
3962 2003-08-13  J. Brobecker  <brobecker@gnat.com>
3963
3964         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3965         (ADDR_BITS_REMOVE): Remove, redundant.
3966
3967 2003-08-13  J. Brobecker  <brobecker@gnat.com>
3968
3969         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3970         gdbarch method to clear the 2 low bits of text addresses.
3971
3972 2003-08-12  Andrew Cagney  <cagney@redhat.com>
3973
3974         * Makefile.in (dsrec.o): Update dependencies.
3975         * dsrec.c: Include "gdb_assert.h".
3976         (make_srec): Use snprintf instead of sprintf, use a literal format
3977         string.
3978
3979 2003-08-12  Andrew Cagney  <cagney@redhat.com>
3980
3981         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3982         FRAME_OBSTACK_ZALLOC.
3983
3984 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
3985
3986         * i386-tdep.c (i386_gdbarch_init): Enable default support for
3987         SSE registers.
3988
3989 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
3990
3991         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3992         amd64fbsd_sc_reg_offset): Add extern declarations.
3993         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3994         declarations.
3995
3996 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
3997
3998         * MAINTAINERS (write after approval): Update my mail address.
3999
4000 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4001
4002         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4003
4004 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4005
4006         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4007         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4008         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4009         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4010         i386bsd_sc_reg_offset): Add extern declarations.
4011         * i386obsd-nat.c: Include "i386-tdep.h"
4012         (_initialize_i386obsd_nat): Remove extern declarations.
4013         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4014         declarations.
4015         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4016         declarations.
4017
4018         * i386-tdep.c (i386_register_to_value): Use get_frame_register
4019         instead of frame_read_register.
4020         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4021         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
4022         SP_REGNUM.
4023         (i386_frame_prev_register): Use frame_unwind_register_unsigned
4024         instead of frame_unwind_unsigned_register.  Use
4025         I386_EFLAGS_REGISTER instead of PS_REGNUM.
4026         (i386_get_longjmp_target): Use regcache_read_unsigned_register
4027         instead of read_register.  Use builtin_type_void_data_ptr instead
4028         of builtin_type_void_func_ptr when extracting the address of the
4029         jmp_buf.
4030         (i386_extract_return_value, i386_store_return_value,
4031         i386_pseudo_register_read, i386_pseudo_register_write): Use
4032         register_size instead REGISTER_RAW_SIZE.
4033
4034 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4035
4036         * infcall.c (call_function_by_hand): Use xstrprintf instead of
4037         sprintf.  Make "name" constant.
4038
4039 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4040
4041         * i387-tdep.c (i387_register_to_value): Use get_frame_register
4042         instead of frame_read_register.
4043         (i387_print_float_info): Use get_frame_register and
4044         get_frame_register_unsigned instead of frame_register_read.
4045
4046         * i386fbsd-nat.c: Include "i386-tdep.h".
4047         (child_resume): Make `eflags' an ULONGEST.  Use
4048         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4049         instead of register_read and register_write.
4050
4051         * i386bsd-nat.c (fetch_inferior_registers,
4052         store_inferior_registers): Don't use && at the end of a line.
4053         (_initialize_i386bsd_nat): Fix typo.
4054
4055         * frame.c (_initialize_frame): Add missing backslash.
4056
4057         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4058         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4059         and supply_register instead of manipulating the register buffer
4060         directly.
4061
4062         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4063         * config/i386/nm-i386sol2.h
4064         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4065
4066         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4067         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4068         instructions that GCC likes to mingle into the prologue.  Fixes
4069         gdb/1253 and gdb/1255.
4070
4071 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4072
4073         Fix GDB PR cli/926.
4074         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4075         * command.h (add_setshow_uinteger_cmd): Declare.
4076         * frame.c (set_backtrace_cmd): New function.
4077         (show_backtrace_cmd): New function.
4078         * frame.c (_initialize_frame): Replace "set/show
4079         backtrace-below-main" with "set/show backtrace past-main".  Add
4080         command "set/show backtrace limit".
4081         (backtrace_past_main): Rename "backtrace_below_main".
4082         (backtrace_limit): New variable.
4083         (get_prev_frame): Update.  Check the backtrace_limit.
4084
4085 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4086
4087         * defs.h (xstrprintf): Declare.
4088         * utils.c (xstrprintf): New function.
4089         * breakpoint.c (insert_breakpoints): Replace sprintf and
4090         non-literal format strings, with xstrprintf and cleanups.
4091         (delete_breakpoint,breakpoint_re_set): Ditto.
4092         (commands_command, insert_breakpoints): Ditto.
4093         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4094         (break_at_finish_command_1): Ditto.
4095
4096 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4097
4098         * MAINTAINERS (language support): List Adam Fedor as Objective C
4099         maintainer.
4100
4101 2003-08-08  J. Brobecker  <brobecker@gnat.com>
4102
4103         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4104         are now multiarched.
4105
4106 2003-08-08  J. Brobecker  <brobecker@gnat.com>
4107
4108         * config/pa/tm-hppa64.h: Remove lots of macros that are no
4109         longer necessary now that hppa64 is partially multiarch'ed.
4110
4111 2003-08-08  Andrew Cagney  <cagney@redhat.com>
4112
4113         * interps.c (interp_set): Check for a NULL "old_interp".
4114
4115 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
4116
4117         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4118         (install-only): Support DESTDIR.
4119         (uninstall): Likewise.
4120         (install-gdbtk): Likewise.
4121
4122 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
4123
4124         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4125         contains something meaningful at all times.
4126
4127 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
4128
4129         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4130
4131 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
4132
4133         * MAINTAINERS (write after approval): Added self.
4134
4135 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4136
4137         * inferior.h (AT_SYMBOL): Define.
4138         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4139         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4140         * mips-tdep.c (mips_call_dummy_address): Delete function.
4141         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4142         set call_dummy_address.
4143
4144 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4145
4146         * language.c (op_error): Delete function.
4147         (binop_type_check): Delete function.
4148         * language.h (type_op_error, range_op_error): Delete macros.
4149         (op_error): Delete declaration.
4150
4151 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4152
4153         * interps.h (INTERP_MI2, INTERP_MI3): Define.
4154
4155 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
4156
4157         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4158         (x86_64_push_arguments): Skip the red zone.
4159
4160 2003-08-05  Andrew Cagney  <cagney@redhat.com>
4161
4162         * reggroups.c (reggroup_next): Check for the final entry.
4163
4164 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4165
4166         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4167         * cli/cli-script.c (define_command): Call query directly, instead
4168         of passing it a buffer.
4169         * ocd.c (ocd_error): Pass error a constant format string.
4170         * remote-mips.c (mips_error): Use fputs_filtered.
4171
4172         * solib-svr4.c (_initialize_svr4_solib): Update
4173         register_gdbarch_data call.
4174         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4175
4176         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4177         (register_gdbarch_data): Delete "free" parameter.  Update
4178         comments.
4179         * gdbarch.h, gdbarch.c: Re-generate.
4180         * reggroups.c (_initialize_reggroup): Update.
4181         * gnu-v3-abi.c (init_gnuv3_ops): Update.
4182         * frame-base.c (_initialize_frame_base): Update.
4183         * frame-unwind.c (_initialize_frame_unwind): Update.
4184         * user-regs.c (_initialize_user_regs): Update.
4185         * remote.c (_initialize_remote): Update.
4186         * regcache.c (_initialize_regcache): Update.
4187
4188         * regcache.c (xfree_regcache_descr): Delete function.
4189         (_initialize_regcache): Update call to register_gdbarch_data.
4190         (init_regcache_descr, init_legacy_regcache_descr): Use
4191         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4192
4193         * remote.c (free_remote_state): Delete function.
4194         (_initialize_remote): Update register_gdbarch_data.
4195         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4196         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4197
4198 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4199
4200         * reggroups.c (struct reggroup_el): Define.
4201         (struct reggroups): Delete field "nr_group".  Replace array
4202         "group" with a "first" to "last" linked list.
4203         (reggroups_init): Update.  Allocate using gdbarch's obstack.
4204         (reggroups_free): Delete function.
4205         (add_group): Update.  Add "el" parameter.
4206         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4207         (default_groups): Update.
4208         (reggroup_next): Replace reggroups.
4209         (reggroups_dump): Update.
4210         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4211         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4212         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4213
4214 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
4215
4216         * Makefile.in (tui-interp.o): Update dependencies.
4217
4218 2003-08-04  David Carlton  <carlton@kealia.com>
4219
4220         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4221         to internal_error call.
4222         * source.c (forward_search_command): Add "%s" format argument.
4223         (reverse_search_command): Ditto.
4224         * top.c (quit_confirm): Ditto.
4225         * cli/cli-setshow.c (do_setshow_command): Ditto.
4226         * cp-valprint.c (cp_print_class_method): Replace
4227         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4228         (cp_print_class_member): Ditto.
4229         * event-top.c (command_line_handler): Ditto.
4230         * linux-proc.c (linux_info_proc_cmd): Ditto.
4231         * p-typeprint.c (pascal_type_print_base): Ditto.
4232         * p-valprint.c (pascal_object_print_class_method): Ditto.
4233         (pascal_object_print_class_member): Ditto.
4234         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4235         * remote.c (remote_cisco_section_offsets): Ditto.
4236         * top.c (command_line_input): Ditto.
4237         * utils.c (vwarning,error_stream,quit): Ditto.
4238         * valprint.c (print_floating,print_binary_chars)
4239         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4240
4241 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4242
4243         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4244
4245 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4246
4247         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4248         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4249         amd64fbsd-nat.c.
4250
4251 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4252
4253         * Makefile.in: Update all dependencies and definitions.
4254
4255 2003-08-02  Adam Fedor  <fedor@gnu.org>
4256
4257         * linespec.c (is_objc_method_format): New function
4258         (decode_line_1, locate_first_half): Use it.
4259         Fixes PR objc/1298
4260
4261 2003-08-01  Andrew Cagney  <cagney@redhat.com>
4262
4263         * NEWS: Mention that m32r is multi-arch.
4264         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4265         * configure.tgt: Recognize m32r-*-*.
4266         * config/m32r/tm-m32r.h: Delete file.
4267         * config/m32r/m32r.mt: New file.
4268         * m32r-rom.c (m32r_upload_command): Use hostent only when
4269         gethostname succeeds, in order to avoid a compilation
4270         warning.
4271         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4272         compiler warning.
4273
4274 2003-08-01  Michael Snyder  <msnyder@redhat.com>
4275
4276         * sh-tdep.c (sh_frame_align): New gdbarch method.
4277         (sh_gdbarch_init): Set up frame_align method.
4278
4279 2003-07-31  Michael Snyder  <msnyder@redhat.com>
4280
4281         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4282         which is already covered by the new frames infrastructure.
4283
4284 2003-07-31  Andrew Cagney  <cagney@redhat.com>
4285
4286         * user-regs.c (struct user_reg): Add "next" link.
4287         (struct user_regs): Replace "user" with "first" and "last" links.
4288         (append_user_reg): Add pre-allocated "reg" parameter.
4289         (builtin_user_regs): Provide initial value for "last".
4290         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4291         (user_regs_init): Allocate memory from the gdbarch obstack.
4292         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4293         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4294         linked list.
4295         (usernum_to_user_reg): New function.
4296         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4297         (value_of_user_reg): Use usernum_to_user_reg.
4298         (user_regs_free): Delete function.
4299         (_initialize_user_regs): Update register_gdbarch_data call.
4300
4301 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
4302
4303         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4304
4305 2003-07-30  Michael Snyder  <msnyder@redhat.com>
4306
4307         * value.h (value_being_returned): Add a struct_addr argument.
4308         * infcall.c (call_function_by_hand): Pass struct_addr to
4309         value_being_returned.
4310         * infcmd.c (print_return_value): Pass zero as struct_addr.
4311         * values.c (value_being_returned): If struct_addr is passed,
4312         use it instead of trying to recover it from the inferior.
4313
4314 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
4315
4316         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4317         the prologue analyzer won't need to attempt to extract the pc
4318         value from the woefully incomplete dummy frame.
4319         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4320         possible.  Disable code which modifies the frame.
4321
4322 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4323
4324         * annotate.c (annotate_breakpoints_headers): Restrict annotation
4325         to level 2.
4326         (annotate_breakpoints_table, annotate_record): Ditto.
4327         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4328         (annotate_field_name_end, annotate_field_value): Ditto.
4329         (annotate_field_end, annotate_frame_source_begin): Ditto.
4330         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4331         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4332         (annotate_frame_begin, annotate_frame_function_name): Ditto.
4333         (annotate_frame_address_end, annotate_frame_address): Ditto.
4334         (annotate_frame_args, annotate_frame_end): Ditto.
4335         (annotate_frame_where, annotate_arg_begin): Ditto.
4336         (annotate_arg_name_end, annotate_arg_value): Ditto.
4337         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4338         (annotate_function_call, annotate_signal_name): Ditto.
4339         (annotate_signal_string, annotate_signal_name_end): Ditto.
4340         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4341         (annotate_value_begin, annotate_value_history_value): Ditto.
4342         (annotate_value_history_end, annotate_value_end): Ditto.
4343         (annotate_display_begin, annotate_display_number_end): Ditto.
4344         (annotate_display_format, annotate_display_expression): Ditto.
4345         (annotate_display_expression_end, annotate_display_value): Ditto.
4346         (annotate_display_end, annotate_array_section_begin): Ditto.
4347         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4348         (annotate_elt, annotate_array_section_end): Ditto.
4349
4350 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4351
4352         * regcache.c (struct regcache_descr): Update comments on
4353         nr_raw_registers.
4354         (init_legacy_regcache_descr): Don't set nr_raw_registers or
4355         sizeof_raw_register_valid_p.
4356         (init_regcache_descr): Set nr_raw_registers and
4357         sizeof_raw_register_valid_p before calling
4358         init_legacy_regcache_descr.
4359
4360 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4361
4362         * mips-tdep.c (print_gp_register_row): Print the GPR's register
4363         MOD NUM_REGS.
4364
4365 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
4366
4367         * thread.c (info_threads_command): Use get_selected_frame ().
4368         Check that there is at least one non-sentinel frame.
4369
4370 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4371
4372         * m68hc11-tdep.c (struct frame_extra_info): Remove.
4373         (m68hc11_pop_frame): Remove.
4374         (m68hc11_frame_saved_pc): Remove.
4375         (m68hc11_frame_chain): Remove.
4376         (m68hc11_frame_init_saved_regs): Remove.
4377         (m68hc11_init_extra_frame_info): Remove.
4378         (m68hc11_store_struct_return): Remove.
4379         (m68hc11_saved_pc_after_call): Remove.
4380
4381 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4382
4383         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4384         frame unwind information.
4385         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4386         and adapted for frame unwinding.
4387         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4388         (m68hc11_unwind_pc): New function.
4389         (m68hc11_frame_unwind_cache): New function to analyze frames.
4390         (m68hc11_frame_this_id): New function to create new frame struct.
4391         (m68hc11_frame_prev_register): New function to unwind a register from
4392         the frame.
4393         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4394         (m68hc11_frame_p): New function for the above.
4395         (m68hc11_frame_base_address): New function to return fp of frame.
4396         (m68hc11_frame_args_address): Update for frame.
4397         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4398         (m68hc11_unwind_sp): New function.
4399         (m68hc11_unwind_dummy_id): New function.
4400         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4401         calls.
4402
4403 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4404
4405         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4406         (m68hc11_guess_from_prologue): Advance the pc and frame size only
4407         when we are beyond the current pc.
4408
4409 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4410
4411         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4412         from m68hc11_push_arguments.
4413         (m68hc11_push_arguments): Remove.
4414         (m68hc11_push_return_address): Remove.
4415         (m68hc11_gdbarch_init): Install the above; remove above deprecated
4416         handlers; remove deprecated_extra_stack_alignment_needed.
4417
4418 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4419
4420         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4421         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4422         REAL_PC and not the pointer.
4423         * hppa-hpux-tdep.c: Include frame.h
4424
4425 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4426
4427         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4428         GDB_MULTI_ACH_PARTIAL.
4429
4430 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4431
4432         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4433         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4434         operator at start and not end of line.
4435         (decode_prologue): Ditto.
4436         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4437         frame_unwind_register_unsigned instead of
4438         frame_unwind_unsigned_register.
4439         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4440         read_register.
4441         (m32r_push_dummy_call): Use register_size instead of
4442         REGISTER_RAW_SIZE.
4443         (m32r_frame_sniffer): Replace m32r_frame_p.
4444         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4445         * m32r-rom.c (report_transfer_performance): Delete extern
4446         declaration.
4447         (m32r_load, m32r_upload_command): Use print_transfer_performance
4448         instead of report_transfer_performance.
4449         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4450         / add_show_from_set.
4451
4452 2003-07-26  Andrew Cagney  <cagney@redhat.com>
4453
4454         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4455         store_return_value and extract_struct_value_address.
4456
4457 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
4458
4459         PR c++/1267
4460         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4461         NULL, default to the section containing PC.
4462
4463 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
4464
4465         * NEWS: Mention "regs" deprecated for m68hc11 too.
4466
4467         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4468         (m68hc11_print_register): New function to print out one register.
4469         (m68hc11_print_registers_info): New function to print registers.
4470         (show_regs): Deprecate and use the above.
4471         (m68hc11_gdbarch_init): Install the print_registers_info.
4472
4473 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
4474
4475         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4476         that we have a SIGTRAP before returning non-zero.
4477
4478 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
4479             Elena Zannoni  <ezannoni@redhat.com>
4480
4481         * linespec.c (decode_line_2): Avoid crash if
4482         find_function_start_sal() returns empty record.
4483
4484 2003-07-23  Andreas Schwab  <schwab@suse.de>
4485
4486         * ia64-tdep.c (ia64_print_insn): New function.
4487         (ia64_gdbarch_init): Set print_insn to it.
4488         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4489         deprecated_tm_print_insn_info.
4490
4491 2003-07-22  Michael Snyder  <msnyder@redhat.com>
4492
4493         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4494         handle 8-bit returns (long long).
4495         (h8300h_extract_return_value): Ditto.
4496         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4497
4498 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4499
4500         * gdbarch.c Include "gdb_obstack.h".
4501         (struct gdbarch): Add an "obstack".
4502         (alloc_gdbarch_data): Allocate the gdbarch data using
4503         GDBARCH_OBSTACK_CALLOC.
4504         (free_gdbarch_data): Delete function.
4505         (gdbarch_obstack_zalloc): New function.
4506         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4507         Assert that the architecture is not initialized.
4508         (gdbarch_alloc): Allocate an obstack, allocate the architecture
4509         vector from the obstack.
4510         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4511         architecture obstack.
4512         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4513         (set_gdbarch_data): Assert that the data is not initialized.
4514         (struct gdbarch_data): Delete member "free".
4515         (register_gdbarch_data): Do not initialize "free".
4516         * gdbarch.h, gdbarch.c: Re-generate.
4517
4518 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4519
4520         * configure.in (build_warnings): Add -Wformat-nonliteral.
4521         * configure: Re-generate.
4522
4523 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
4524
4525         * dwarf2loc.c (locexpr_describe_location): Fix typos.
4526
4527 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
4528
4529         * findvar.c (read_var_value): Remove case for thread local storage
4530         variables.  It is now entirely handled by the dwarf2 location
4531         expression code.
4532         * printcmd.c (address_info): Ditto.
4533         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4534         enumeration value.
4535         (struct symbol): Remove objfile field, which was used by
4536         LOC_THREAD_LOCAL_STATIC only.
4537         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4538         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4539         usage of objfile pointer.
4540         * dwarf2loc.c (locexpr_describe_location): Add case to handle
4541         thread local variables.
4542         Add include of objfiles.h.
4543         * dwarf2expr.c (execute_stack_op): Add comments about thread local
4544         storage variables.
4545         * Makefile.in (dwarf2loc.o): Update dependencies.
4546
4547 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4548
4549         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4550         get_frame_base.
4551         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4552         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4553         (struct value): Add opaque declaration.
4554         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4555
4556 2003-07-21  Andrew Cagney  <cagney@redhat.com>
4557
4558         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4559         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4560
4561 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
4562
4563         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4564         regcache_cooked_read_unsigned instead of read_register.
4565         (m68hc11_saved_pc_after_call): Likewise.
4566         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4567         instead of write_register.
4568         (m68hc11_register_type): New function.
4569         (m68hc11_register_virtual_type): Remove.
4570         (m68hc11_store_return_value): Convert to use the regcache.
4571         (m68hc11_extract_struct_value_address): Likewise.
4572         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4573         m68hc11_register_type; undeprecate store_return_value and
4574         extract_struct_value_address.
4575
4576 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
4577
4578         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4579         and translate to use regcache.
4580         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4581
4582 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4583
4584         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4585         * gdbarch.h, gdbarch.c: Re-generate.
4586         * i386-tdep.c (i386_gdbarch_init): Do not set
4587         DWARF2_BUILD_FRAME_INFO.
4588         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4589         unconditionally.
4590         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4591         DWARF2_BUILD_FRAME_INFO.
4592
4593 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4594
4595         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4596         * disasm.c (gdb_disassemble_info): Initilize di.arch.
4597
4598 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4599
4600         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4601         frame_unwind_address_in_block, instead of frame_pc_unwind.
4602         (dwarf2_frame_cache): Ditto.
4603
4604 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4605
4606         * user-regs.h (struct gdbarch): Declare opaque.
4607         * ui-out.h (struct ui_file): Declare opaque.
4608         * dwarf2-frame.h (struct frame_info): Declare opaque.
4609
4610 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
4611
4612         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
4613         #include "...".
4614         (procfs_meminfo): Change strerror to safe_strerror.
4615         (procfs_can_run): Remove K&R badness.
4616
4617 2003-07-17  Michael Snyder  <msnyder@redhat.com>
4618
4619         * remote-sim.c: Comment typo fix.
4620
4621 2003-07-17  Andrew Cagney  <cagney@redhat.com>
4622
4623         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
4624         configure.
4625         * sparc-tdep.c (sparc_intreg_size): Make non-static.
4626         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4627         GDB_MULTI_ARCH_PARTIAL.
4628
4629 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
4630
4631         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4632         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
4633         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4634
4635 2003-07-16  Theodore A. Roth  <troth@openavr.org>
4636
4637         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4638         found.
4639         (avr_frame_unwind_cache): Don't unwind FP for main.
4640         Update a comment.
4641         Save the computed prev_sp.
4642         (avr_saved_regs_unwinder): Remove function.
4643         (avr_frame_prev_register): Use PC unwind logic from
4644         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4645
4646 2003-07-16  Andrew Cagney  <cagney@redhat.com>
4647
4648         * frame-base.h (frame_base_p_ftype): Delete definition.
4649         (frame_base_append_predicate): Delete declaration.
4650         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4651         (frame_unwind_append_predicate): Delete declaration.
4652         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4653         (append_predicate): Delete parameter "p".
4654         (frame_unwind_append_predicate): Delete function.
4655         (frame_unwind_append_sniffer): Update call to append_predicate.
4656         (frame_unwind_free): Delete function.
4657         (_initialize_frame_unwind): Pass NULL as "free" to
4658         register_gdbarch_data.
4659         (frame_unwind_init): Append the dummy_frame_sniffer.
4660         (frame_unwind_find_by_frame): Simplify.
4661         * frame-base.c (struct frame_base_table): Delete field "p".
4662         (append_predicate): Delete parameter "p".
4663         (frame_base_append_predicate): Delete function.
4664         (frame_base_append_sniffer): Update call to append_predicate.
4665         (frame_base_free): Delete function.
4666         (frame_base_find_by_frame): Simplify.
4667         (_initialize_frame_base): Pass NULL as "free" to
4668         register_gdbarch_data.
4669         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4670         (x86_64_sigtramp_frame_sniffer): Replace
4671         "x86_64_sigtramp_frame_p".
4672         (x86_64_init_abi): Set the frame unwind sniffers.
4673         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4674         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4675         (m68k_gdbarch_init): Set the frame unwind sniffers.
4676         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4677         "i386_sigtramp_frame_p".
4678         (i386_frame_sniffer): Replace "i386_frame_p".
4679         (i386_gdbarch_init): Set the frame unwind sniffers.
4680         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4681         (avr_gdbarch_init): Set the frame unwind sniffers.
4682         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4683         "alpha_sigtramp_frame_p"
4684         (alpha_heuristic_frame_sniffer): Replace
4685         "alpha_heuristic_frame_p".
4686         (alpha_gdbarch_init): Set the frame unwind sniffers.
4687         (alpha_dwarf2_init_abi): Ditto.
4688         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4689         "alpha_debug_frame_p".
4690         (alpha_mdebug_frame_base_sniffer): Replace
4691         "alpha_mdebug_frame_base_p".
4692         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4693         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4694         (d10v_gdbarch_init): Set the frame unwind sniffer.
4695         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4696         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4697         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4698         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4699         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4700         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4701
4702 2003-07-16  Michael Snyder  <msnyder@redhat.com>
4703
4704         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4705         should go thru sh_dsp_register_sim_regno, else the dsp regs
4706         will not get the right values.
4707
4708 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
4709
4710         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4711         deprecated_store_floating by call to store_typed_floating.
4712         (sh_sh4_register_convert_to_raw): Substitute call to
4713         deprecated_extract_floating by call to extract_typed_floating.
4714
4715 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
4716
4717         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4718
4719 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
4720
4721         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4722         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4723         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
4724         as possible.
4725         (do_pseudo_register): Remove.
4726         (sh_push_dummy_code): New function.
4727         (sh64_store_struct_return): Rename from sh_store_struct_return.
4728         Only called for sh64 now.
4729         (sh_extract_struct_value_address): Regcache'ify.
4730         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
4731         and accomodate new tasks.
4732         (sh64_push_return_address): Rename from sh_push_return_address.
4733         Only called for sh64 now.
4734         (sh_default_extract_return_value): Rename from sh_extract_return_value.
4735         Regcache'ify.
4736         (sh3e_sh4_extract_return_value): Regcache'ify.
4737         (sh_default_store_return_value): Ditto.
4738         (sh3e_sh4_store_return_value): Ditto.
4739         (sh_default_register_byte): Remove.
4740         (sh_sh4_register_byte): Remove.
4741         (sh_default_register_raw_size): Remove.
4742         (sh_sh4_register_raw_size): Remove.
4743         (sh_register_virtual_size): Remove.
4744         (sh_sh3e_register_virtual_type): Remove.
4745         (sh_sh3e_register_type): New function.
4746         (sh_sh4_register_virtual_type): Remove.
4747         (sh_sh4_register_type): New function.
4748         (sh_default_register_virtual_type): Remove.
4749         (sh_default_register_type): New function.
4750         (do_fv_register_info): Add parameters to accomodate call from
4751         sh_print_registers_info.
4752         (do_dr_register_info): Ditto.
4753         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4754         Add parameters to accomodate call from sh_print_registers_info.
4755         (sh_do_fp_register): Ditto.
4756         (sh64_do_pseudo_register): Call do_dr_register_info,
4757         do_fv_register_info and sh_do_fp_register with default parameters.
4758         (sh_do_register): Add parameters to accomodate call from
4759         sh_print_registers_info.
4760         (sh_print_register): Ditto.
4761         (sh_print_registers_info): Rename from sh_do_registers_info.
4762         Add parameters to be used as gdbarch_print_registers_info
4763         implementation.  Accomodate removed do_pseudo_register function
4764         pointer.
4765         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4766         function pointer. Call sh_print_register with default parameters.
4767         (sh64_do_registers_info): Call sh_print_registers_info instead of
4768         sh_do_registers_info.
4769         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4770         detection of deprecated vs. non-deprecated functionality.
4771         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
4772         function pointer assignments by direct function calls.
4773
4774 2003-07-15  Andrew Cagney  <cagney@redhat.com>
4775
4776         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4777         (frame_register_unwind, create_new_frame): Ditto.
4778         (legacy_get_prev_frame, get_frame_type): Ditto.
4779         (get_frame_base_address): Use frame_base_find_by_frame.
4780         (get_frame_locals_address): Use frame_base_find_by_frame.
4781         (get_frame_args_address): Use frame_base_find_by_frame.
4782         * frame-base.h (frame_base_sniffer_ftype): Declare.
4783         (frame_base_append_sniffer): Declare.
4784         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4785         * frame-base.c (append_predicate): Add a "sniffer" parameter.
4786         (frame_base_append_sniffer): New function.
4787         (frame_base_append_predicate): Add a NULL sniffer.
4788         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4789         (struct frame_base_table): Add "sniffer".
4790         (frame_base_free): Free the "sniffer" table.
4791         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4792         (frame_unwind_append_sniffer): Declare.
4793         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4794         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4795         (struct frame_unwind_table): Add "sniffer", delete "middle".
4796         (append_predicate): Add "sniffer" parameter, append the sniffer.
4797         (frame_unwind_init): Update append_predicate call.
4798         (frame_unwind_append_sniffer): New function.
4799         (frame_unwind_append_predicate): Update append_predicate call.
4800         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4801
4802 2003-07-15  Andrew Cagney  <cagney@redhat.com>
4803
4804         * frame.c (get_prev_frame): Move disabled inside_entry_func to
4805         before code inhibiting repeated unwind attempts.  Add to
4806         commentary on that test's problems.
4807         * blockframe.c (inside_main_func): Look for "main" in the minimal
4808         symbol table.
4809         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4810         identical.
4811
4812 2003-07-15  Andrew Cagney  <cagney@redhat.com>
4813
4814         * complaints.c (struct explanation): Define.
4815         (struct complaints): Change type of "explanation" to "struct
4816         explanation".
4817         (symfile_explanations): Convert to a "struct explanation" table.
4818         (vcomplaint): Update.
4819
4820 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
4821
4822         * x86-64-linux-nat.c (regmap): Removed.
4823         (supply_gregset, fill_gregset): Call
4824         x86_64_linux_(fill,supply)_gregset functions.
4825         * x86-64-linux-tdep.c (USER_*): New defines.
4826         (user_to_gdb_regmap, x86_64_core_fns): New structure.
4827         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4828         New functions.
4829         (fetch_core_registers): Ditto.
4830         (_initialize_x86_64_linux_tdep): Call add_core_fns().
4831         * x86-64-linux-tdep.h: New file.
4832         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4833         and core-regset.o.
4834         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4835
4836 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
4837
4838         * x86-64-tdep.c (x86_64_store_return_value): Use
4839         regcache_cooked_write_part instead of regcache_cooked_write.
4840
4841         * configure.host: Add x86_64-*-freebsd*.
4842         * configure.tgt: Add x86_64-*-freebsd*.
4843         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4844         * amd64fbsd-nat.c: New file.
4845         * amd64fbsd-tdep.c: New file.
4846         * config/i386/nm-fbsd64.h: New file.
4847         * config/i386/fbsd64.mh: New file.
4848         * config/i386/fbsd64.mt: New file.
4849
4850 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
4851
4852         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4853         `sc_regs_offset' and `sc_fpregs_offset'.
4854         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4855         SIGFRAME_FPREGSAVE_OFF): Remove defines.
4856         (alpha_sigtramp_register_address): Rewrite to use new members of
4857         `struct gdbarch_tdep'.
4858         (alpha_gdbarch_init): Initialize new members of struct
4859         gdbarch_tdep'.
4860         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4861         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4862         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4863         (alphafbsd_pc_in_sigtramp): Implement.
4864         (alphafbsd_sigtramp_offset): New function.
4865         (alphafbsd_sigcontext_addr): New function.
4866         (alphafbsd_init_abi): Initialize signal trampoline related members
4867         of `struct gdbarch_tdep'.
4868         (_initialize_alphafbsd_tdep): Add prototype.
4869
4870 2003-07-11  Theodore A. Roth  <troth@openavr.org>
4871
4872         * Makefile.in (install-only): Quote sed expression when generating
4873         transformed_name.
4874
4875 2003-07-11  Richard Henderson  <rth@redhat.com>
4876
4877         * Makefile.in (dwarf2-frame.o): Add complaints_h.
4878         * dwarf2-frame.c: Include complaints.h.
4879         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4880         variable initialization; return NULL on error.
4881         (decode_frame_entry): New.
4882
4883 2003-07-11  Andrew Cagney  <cagney@redhat.com>
4884
4885         * frame.h (frame_address_in_block): Delete declaration.
4886         * blockframe.c (frame_address_in_block): Delete function.
4887         (get_frame_block): Use get_frame_address_in_block.
4888         (block_innermost_frame): Ditto.
4889         * stack.c (print_frame, backtrace_command_1): Ditto.
4890
4891         * frame.h (get_frame_address_in_block): Declare.
4892         (frame_unwind_address_in_block): Declare.
4893         * frame.c (frame_unwind_address_in_block): New function.
4894         (get_frame_address_in_block): New function.
4895
4896 2003-07-10  Andrew Cagney  <cagney@redhat.com>
4897
4898         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
4899         pre-default.   Note: re-generate has no effect.
4900
4901 2003-07-10  Andrew Cagney  <cagney@redhat.com>
4902
4903         * gdbarch.sh: When a variable, but not a function, compare against
4904         0.  Fix problem in previous patch.
4905         * gdbarch.c: Re-generate.
4906
4907 2003-07-10  Andrew Cagney  <cagney@redhat.com>
4908
4909         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
4910         functions against NULL, not 0.
4911         * gdbarch.c: Re-generate.
4912
4913 2003-07-10  Fred Fish  <fnf@ninemoons.com>
4914
4915         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4916         null string instead of a null pointer.
4917         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4918
4919 2003-07-09  Michael Snyder  <msnyder@redhat.com>
4920
4921         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4922
4923 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
4924
4925         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4926         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4927         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4928         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4929         * x86-64-tdep.c: ... from here.
4930
4931 2003-07-09  Andreas Schwab  <schwab@suse.de>
4932
4933         * m68k-tdep.h (enum struct_return): Define.
4934         (struct gdbarch_tdep): Add struct_return.
4935         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4936         bytes are padded to the right, not to the left.  Pass struct value
4937         address in register %a1, not on stack.
4938         (m68k_use_struct_convention): New function.
4939         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
4940         struct_return in tdep to pcc_struct_return.
4941         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4942         reg_struct_return.
4943
4944 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
4945
4946         * somread.c (som_symfile_offsets): Fix compilation error.
4947
4948 2003-07-09  Andrew Cagney  <cagney@redhat.com>
4949
4950         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4951         Add comments about the checks.
4952
4953 2003-07-08  Andrew Cagney  <cagney@redhat.com>
4954
4955         * Makefile.in: Make dependency section headers consistent.
4956         (config_h): Move to $BUILD headers section.
4957         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4958         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4959         (ada-exp.tab.c): Move to YACC/LEX section.
4960         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4961         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4962
4963 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
4964
4965         * nto-procfs.c: Cleaned up a bunch of ARI hits.
4966         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4967         of strerror with safe_strerror, use ISO C function definitions,
4968         and replace instances of sprintf with snprintf.
4969
4970 2003-07-07  Andrew Cagney  <cagney@redhat.com>
4971
4972         * frame.c (get_prev_frame): Enable check for identical frames.
4973         Update comments.  Update error messages.
4974
4975 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4976
4977         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4978
4979 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4980
4981         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4982         sort_symtab_syms, no longer necessary.
4983
4984 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4985
4986         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4987
4988 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4989
4990         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4991         (mips_register_byte): Likewise.
4992
4993 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
4994
4995         * Makefile.in (sparc_tdep_h): New.
4996         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4997         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4998         * sparc-linux-nat.c: Include "sparc-tdep.h".
4999         * sparc-nat.c: Likewise.
5000         * sparc-tdep.c: Likewise.
5001         * sparc64nbsd-nat.c: Likewise.
5002         * sparcnbsd-nat.c: Likewise.
5003         * sparcnbsd-tdep.c: Likewise.
5004         * sparc-tdep.h: New file.
5005         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5006         and sparc_npc_regnum.
5007
5008 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5009
5010         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5011         (mips_linux_cannot_store_register): List supported instead of
5012         unsupported registers.
5013
5014 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5015
5016         * disasm.c (dump_insns): Separate instructions from addresses.
5017
5018 2003-07-07  Andreas Schwab  <schwab@suse.de>
5019
5020         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5021         dependencies.
5022         * m68k-tdep.c (NUM_FREGS): Delete.
5023         (SIG_PC_FP_OFFSET): Delete.
5024         (TARGET_M68K): Delete.
5025         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5026         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5027         P_MOVEL_SP, P_MOVEML_SP): Define.
5028         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5029         P_TRAP): Delete.
5030         (m68k_register_raw_size): Delete.
5031         (m68k_register_virtual_size): Delete.
5032         (m68k_register_type): Renamed from m68k_register_virtual_type and
5033         add gdbarch argument.
5034         (m68k_store_struct_return): Delete.
5035         (m68k_deprecated_extract_return_value): Delete.
5036         (m68k_deprecated_extract_struct_value_address): Delete.
5037         (m68k_frame_chain): Delete.
5038         (m68k_frame_saved_pc): Delete.
5039         (m68k_fix_call_dummy): Delete.
5040         (m68k_push_dummy_frame): Delete.
5041         (m68k_pop_frame): Delete.
5042         (m68k_extract_return_value): New function.
5043         (m68k_store_return_value): Rewrite using regcache.
5044         (m68k_extract_struct_value_address): Rewrite using regcache.
5045         (m68k_push_dummy_call): New function.
5046         (struct m68k_frame_cache): Define.
5047         (m68k_alloc_frame_cache): New function.
5048         (m68k_analyze_frame_setup): New function.
5049         (m68k_analyze_register_saves): New function.
5050         (m68k_analyze_prologue): New function.
5051         (m68k_skip_prologue): Rewrite using above functions.
5052         (m68k_unwind_pc): New function.
5053         (m68k_frame_cache): New function.
5054         (m68k_frame_this_id): New function.
5055         (m68k_frame_prev_register): New function.
5056         (m68k_frame_unwind): New variable.
5057         (m68k_frame_p): New function.
5058         (m68k_sigtramp_frame_cache): New function.
5059         (m68k_sigtramp_frame_this_id): New function.
5060         (m68k_sigtramp_frame_prev_register): New function.
5061         (m68k_sigtramp_frame_unwind): New variable.
5062         (m68k_sigtramp_frame_p): New function.
5063         (m68k_frame_base_address): New function.
5064         (m68k_frame_base): New function.
5065         (m68k_unwind_dummy_id): New function.
5066         (fill_gregset): Use regcache_collect.
5067         (fill_fpregset): Likewise.
5068         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5069         defined.
5070         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
5071         deprecated_init_frame_pc, deprecated_store_struct_return,
5072         deprecated_extract_return_value, deprecated_store_return_value,
5073         deprecated_frame_chain, deprecated_frame_saved_pc,
5074         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5075         deprecated_register_virtual_size,
5076         deprecated_max_register_raw_size,
5077         deprecated_max_register_virtual_size,
5078         deprecated_register_virtual_type, deprecated_register_size,
5079         deprecated_register_byte, deprecated_register_bytes,
5080         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5081         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5082         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5083         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5084         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5085         deprecated_push_dummy_frame, deprecated_pop_frame,
5086         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
5087         only if SYSCALL_TRAP is defined.  Set extract_return_value,
5088         store_return_value, extract_struct_value_address, register_type,
5089         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
5090         predicates.
5091         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5092         M68K_MAX_REGISTER_SIZE): Define.
5093         (struct m68k_sigtramp_info): Define.
5094         (struct gdbarch_tdep): Add get_sigtramp_info.
5095         * m68klinux-nat.c (fetch_register): Use register_size instead of
5096         REGISTER_RAW_SIZE.  Don't put assignment in if.
5097         (store_register): Likewise.
5098         (fetch_inferior_registers): Likewise.
5099         (store_inferior_registers): Likewise.
5100         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5101         (m68k_linux_frame_saved_pc): Delete.
5102         (m68k_linux_sigcontext_reg_offset,
5103         m68k_linux_ucontext_reg_offset): Define.
5104         (m68k_linux_get_sigtramp_info): New function.
5105         (m68k_linux_extract_return_value): Rewrite using regcache.
5106         (m68k_linux_store_return_value): Likewise.
5107         (m68k_linux_extract_struct_value_address): Likewise.
5108         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5109         Don't set deprecated_frame_saved_pc,
5110         deprecated_extract_return_value, deprecated_store_return_value,
5111         deprecated_extract_struct_value_address.  Set
5112         extract_return_value, store_return_value,
5113         extract_struct_value_address.
5114
5115 2003-07-07  Andrew Cagney  <cagney@redhat.com>
5116
5117         * expprint.c: Include "user-regs.h" instead of "frame.h".
5118         (print_subexp): Use user_reg_map_regnum_to_name, instead of
5119         frame_map_regnum_to_name.
5120         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5121         (frame_map_name_to_regnum): Simplify, call
5122         user_reg_map_name_to_regnum.
5123         (frame_map_regnum_to_name): Simplify, call
5124         user_reg_map_regnum_to_name.
5125         (frame_register_unwind): Update.
5126         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5127         (_initialize_frame_reg): Call user_reg_add_builtin.
5128         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5129         (value_of_register): Use value_of_user_reg.
5130         * eval.c (evaluate_subexp_standard): Update.
5131         * parse.c (write_dollar_variable): Update.
5132         * d10v-tdep.c (d10v_print_registers_info): Update.
5133         * infcmd.c (registers_info): Update.
5134         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5135         (builtin_regs_h): Delete macro.
5136         (user_regs_h): Define.
5137         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5138         (builtin-regs.o): Delete target.
5139         (user-regs.o): Specify dependencies.
5140         (expprint.o): Update dependencies.
5141         (findvar.o): Update dependencies.
5142         (frame.o): Update dependencies.
5143         (std-regs.o): Update dependencies.
5144
5145 2003-07-06  Christopher Faylor  <cgf@redhat.com>
5146
5147         * win32-nat.c (solib_symbols_add): Use one variable for all section
5148         address stuff.  Pass variable rather than address of variable to
5149         safe_symbol_file_add.
5150
5151 2003-07-06  Andreas Schwab  <schwab@suse.de>
5152
5153         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5154
5155 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
5156
5157         * rs6000-nat.c (vmap_symtab): Fix compilation error.
5158
5159 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
5160
5161         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5162
5163 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
5164
5165         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
5166         * config/i386/nto.mh: New file.
5167         * config/i386/nm-nto.h: New file.
5168         * configure.host: Add i[3456]86-*-nto*.
5169
5170 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
5171
5172         * remote-vx.c (vx_add_symbols): Fix compilation error.
5173
5174 2003-07-03  Andrew Cagney  <cagney@redhat.com>
5175
5176         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5177         * gdbarch.h, gdbarch.c: Re-generate.
5178         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5179         (legacy_register_name): Declare.
5180         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5181         (REGISTER_NAME): Define.
5182         * sparc-tdep.c (legacy_register_name): New function.
5183         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5184         (REGISTER_NAME): Define.
5185         (hppa64_register_name): Declare.
5186         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5187         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5188         (hppa64_register_name): New function.
5189         (hppa_register_name): New function.
5190         * arch-utils.c (legacy_register_name): Delete.
5191         * arch-utils.h (legacy_register_name): Delete.
5192
5193 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
5194
5195         * cli/cli-interp.c (cli_interpreter_resume): Update the
5196         cli_uiout's stream to gdb_stdout.
5197
5198 2003-07-03  Andrew Cagney  <cagney@redhat.com>
5199
5200         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5201         predicate.
5202         * gdbarch.h, gdbarch.c: Re-generate.
5203         * regcache.c (init_regcache_descr): Use legacy code when either
5204         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5205
5206 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
5207
5208         * NEWS: Move "set logging" entry into GDB 6.0 section.
5209
5210 2003-07-02  Jim Blandy  <jimb@redhat.com>
5211
5212         * s390-tdep.c (struct frame_extra_info): new member:
5213         'stack_bought_valid'.
5214         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5215         initialize fextra_info->stack_bought.
5216         (s390_frameless_function_invocation): Don't trust the value of
5217         fextra_info_ptr->stack_bought unless
5218         fextra_info->stack_bought_valid is set.
5219
5220         New S390 prologue analyzer.
5221         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5222         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5223         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5224         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5225         compute_x_addr, s390_on_stack, s390_store,
5226         s390_get_signal_frame_info): New functions.
5227         (S390_NUM_SPILL_SLOTS): New macro.
5228         (s390_get_frame_info): Rewritten.
5229         (is_arg_reg): Deleted.
5230
5231         Break out the decoding of S/390 instructions into separate
5232         functions, to make it more legible, and easier to check
5233         against the spec.
5234         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5235         is_rx, is_rxe): New functions.
5236         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5237         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5238         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5239         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5240         enums for opcode values.  (Is this an improvement?)
5241
5242 2003-07-02  Andrew Cagney  <cagney@redhat.com>
5243
5244         * i386-tdep.c: Revert change committed as part of trad-frame code
5245         below.
5246
5247 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
5248
5249         * breakpoint.c (insert_catchpoint): Make static.
5250
5251 2003-07-02  Andreas Schwab  <schwab@suse.de>
5252
5253         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5254         former ia64_push_arguments and ia64_push_return_address, and use
5255         regcache functions instead of read/write_register.
5256         (ia64_gdbarch_init): Set push_dummy_call instead of
5257         deprecated_push_arguments and deprecated_push_return_address.
5258
5259 2003-07-01  Andreas Jaeger  <aj@suse.de>
5260
5261         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5262         before the call.
5263         Set %rax only to number of SSE registers used.
5264
5265 2003-07-01  Andrew Cagney  <cagney@redhat.com>
5266
5267         * trad-frame.h: Update comments, a -1 .addr is reserved.
5268         (trad_frame_value_p, trad_frame_addr_p): Declare.
5269         (trad_frame_reg_p): Declare.
5270         (trad_frame_set_value): Rename trad_frame_register_value.
5271         (trad_frame_set_unknown): Declare.
5272         * trad-frame.c (trad_frame_realreg_p): New function.
5273         (trad_frame_addr_p, trad_frame_value_p): New function.
5274         (trad_frame_set_unknown): New function.
5275         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5276         (trad_frame_prev_register): Use trad_frame_realreg_p,
5277         trad_frame_addr_p and trad_frame_value_p.
5278         (trad_frame_set_value): Rename trad_frame_register_value.
5279         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5280         and trad_frame_set_value.
5281
5282 2003-06-30  Jim Blandy  <jimb@redhat.com>
5283
5284         Patch from IBM (authors unspecified, probably Ulrich Weigand and
5285         Gerhard Tonn) for argument passing on the S/390 and S/390x:
5286         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5287         for 16 registers, and then 32 more bytes.
5288         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5289         New macros.
5290         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5291         Move up in the file, since it's now used by is_simple_arg.
5292         (is_simple_arg): Don't assume registers are four bytes long.
5293         Exclude all double arguments.  Extended floats are not simple
5294         args.
5295         (is_power_of_two): New function.
5296         (pass_by_copy_ref): Call is_power_of_two, and check that the
5297         length fits in a register, rather than listing all the acceptable
5298         sizes.  Extended floats are not passed by reference.
5299         (s390_push_arguments): Don't assume registers are four bytes long.
5300         Reserve an argument register to point to the buffer for structures
5301         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
5302         S390_STACK_FRAME_OVERHEAD.
5303
5304 2003-06-30  Andreas Schwab  <schwab@suse.de>
5305
5306         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5307         format error message.
5308
5309 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
5310
5311         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5312
5313 2003-06-30  David Carlton  <carlton@kealia.com>
5314
5315         Band-aid for PR c++/1245.
5316         * Makefile.in (cp-support.o): Depend on complaints_h.
5317         * cp-support.c: Include complaints.h.  Add declaration for
5318         find_last_component.
5319         (cp_find_first_component): Separate code into
5320         cp_find_first_component_aux.
5321         (cp_find_first_component_aux): Call demangled_name_complaint.
5322         (demangled_name_complaint): New.
5323
5324 2003-06-30  Andrew Cagney  <cagney@redhat.com>
5325
5326         * remote.c (remote_write_bytes): Explicitly compute and then use
5327         the payload size.  Update comments to reflect.  Fixes problem of
5328         GDB not sending small packets as found by Fred Fish.
5329
5330 2003-06-30  Andrew Cagney  <cagney@redhat.com>
5331
5332         * remote.c (remote_async_wait): Fix -Wformat problem.
5333
5334 2003-06-29  Andrew Cagney  <cagney@redhat.com>
5335
5336         * remote.c (remote_wait): Call error, and not warning, when the
5337         packet is corrupt.
5338         (remote_async_wait): Ditto.
5339
5340 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
5341
5342         * sparc-tdep.c (sparc_y_regnum): Make external again.
5343
5344 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
5345
5346         * cli/cli-logging.c (pop_output_files): Add void to function
5347         definition.
5348
5349 2003-06-29  Andrew Cagney  <cagney@redhat.com>
5350
5351         * frame.c (frame_register_unwind): Use unsigned char when dumping
5352         the buffer contents.
5353
5354 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
5355
5356         * cli/cli-logging.c: New file.
5357         * cli-out.c (struct ui_out_data): Add original_stream.
5358         (cli_redirect): New function.
5359         (cli_ui_out_impl): Add cli_redirect.
5360         (cli_out_new): Initialize original_stream.
5361         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5362         (uo_redirect, ui_out_redirect): New.
5363         * ui-out.h (struct ui_out_impl): Add redirect member.
5364         (redirect_ftype): New.
5365         (ui_out_redirect): Add prototype.
5366         * Makefile.in: Add rules for cli-logging.c.
5367         * NEWS: Mention "set logging".
5368
5369 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5370
5371         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5372
5373 2003-06-27  Andrew Cagney  <cagney@redhat.com>
5374
5375         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5376         (m68hc11_gdbarch_init): Do not set call_dummy_address.
5377         * avr-tdep.c (avr_call_dummy_address): Delete function.
5378         (avr_gdbarch_init): Do not set call_dummy_address.
5379
5380 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5381
5382         * symfile.c (syms_from_objfile): Move variables to inner block.
5383         Move the checks for the non-mainline case a bit earlier to avoid
5384         doing some useless computations.
5385
5386 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5387
5388         * dwarfread.c (decode_modified_type): Gag new compiler warning.
5389
5390 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
5391
5392         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5393         sections.
5394
5395 2003-06-26  Michael Chastain  <mec@shout.net>
5396
5397         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5398         gdb/testsuite/gdb.c++/pr-1210.exp.
5399
5400 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5401
5402         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5403         altivec_expression.h and altivec_registers.h.
5404
5405 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5406
5407         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5408         info->mach when MIPS16.  Patch suggested by Fred Fish.
5409
5410 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5411
5412         * utils.c (internal_vproblem): Print the problem to a reason
5413         buffer and then pass to query.  Make the msg variable more local.
5414
5415 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5416
5417         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
5418         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
5419         * gdbarch.h, gdbarch.c: Re-generate.
5420         * frame-base.c (default_frame_args_address): Update.  Use
5421         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5422         not available.
5423         (default_frame_locals_address): Ditto for
5424         DEPRECATED_FRAME_LOCALS_ADDRESS.
5425         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5426         (vax_frame_num_args): Update.
5427         (vax_gdbarch_init): Update.
5428         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5429         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5430         * mcore-tdep.c (mcore_gdbarch_init): Update.
5431         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5432         * ia64-tdep.c (ia64_gdbarch_init): Update.
5433         * symtab.h (address_class): Update comments.
5434         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5435         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5436         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5437         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5438         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5439         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5440         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5441         * alpha-mdebug-tdep.c: Update.
5442         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5443
5444 2003-06-26  Andreas Jaeger  <aj@suse.de>
5445
5446         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5447         of SSE registers so that varargs functions work.  Rework handling
5448         of passing arguments on the stack.
5449         (x86_64_store_return_value): Return double and float values in SSE
5450         register.
5451
5452 2003-06-24  Michael Chastain  <mec@shout.net>
5453
5454         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5455         the "constructor breakpoints ignored" bug.
5456
5457 2003-06-25  David Carlton  <carlton@kealia.com>
5458
5459         * MAINTAINERS: Update e-mail address.
5460
5461 2003-06-24  Jim Blandy  <jimb@redhat.com>
5462
5463         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5464
5465         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5466         function.
5467         (ppc_linux_init_abi): Register it as the
5468         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5469
5470         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5471         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5472         method.
5473
5474         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5475         (ppc64_standard_linkage_target): Use it.
5476
5477 2003-06-23  Andrew Cagney  <cagney@redhat.com>
5478
5479         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5480         for 0 "int0" and 4 "int32" sized registers.
5481         * gdbtypes.c (builtin_type_int0): Define.
5482         (build_gdbtypes): Initialize builtin_type_int0.
5483         * gdbtypes.h (builtin_type_int0): Declare.
5484
5485 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
5486
5487         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5488         as characters are unsigned.
5489
5490 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5491
5492         PR gdb/1179
5493         * dwarfread.c (struct_type): Skip static fields without crashing.
5494
5495 2003-06-22  Andrew Cagney  <cagney@redhat.com>
5496
5497         GDB 6.0 branch created.
5498         * README: Update.
5499         * PROBLEMS: Update.  Empty.
5500         * NEWS: Update.
5501
5502 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5503
5504         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5505         Suggested by Nick Hibma <n_hibma@webweaving.org>.
5506
5507 2003-06-22  Andrew Cagney  <cagney@redhat.com>
5508
5509         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5510         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
5511         Velikov.
5512
5513 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5514
5515         * cli/cli-cmds.c (shell_escape): Silence warnings from old
5516         compilers.
5517
5518 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
5519
5520         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5521         argument of val_print.
5522         * cp-valprint.c (cp_print_value): Don't add the offset parameter
5523         to the address argument of baseclass_offset or target_read_memory.
5524         Do add it to the argument of cp_print_value_fields.
5525
5526 2003-06-21  Andrew Cagney  <cagney@redhat.com>
5527
5528         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5529         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5530         instead of 0..NUM_REGS.
5531         (mips_register_reggroup_p): New function.
5532         (mips_pseudo_register_write): New function.
5533         (mips_pseudo_register_read): New function.
5534         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5535         based on the register's type.
5536         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
5537         cooked.
5538         (mips_get_saved_register): Simplify.  Assert that REGNO is a
5539         pseudo / cooked.
5540         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
5541         (mips_register_type): Replace mips_register_virtual_type.  Map
5542         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
5543         when available.
5544         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
5545         that the register is cooked / virtual.
5546         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5547         Only get the extra info when needed.
5548         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5549         (mips32_heuristic_proc_desc): Fetch the cooked register.
5550         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5551         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5552         (mips_print_register): Use gdbarch_register_type, instead of
5553         REGISTER_VIRTUAL_TYPE.
5554         (print_gp_register_row): Use gdbarch_register_type, instead of
5555         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
5556         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5557         Print the pseudo / cooked registers.
5558         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5559         Print the pseudo / cooked registers.
5560         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
5561         REG_NUM is pseudo / cooked.
5562         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5563         (mips_n32n64_xfer_return_value): Ditto.
5564         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5565         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5566         (mips_register_sim_regno): New function.
5567         (mips_gdbarch_init): Set deprecated_register_byte,
5568         register_group_p, pseudo_register_write, pseudo_register_read,
5569         register_sim_regno, and num_pseudo_regs.  Set register_type,
5570         instead of register_virtual_type.
5571         * Makefile.in (mips-tdep.o): Update dependencies.
5572         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5573         REGISTER_VIRTUAL_TYPE.
5574         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5575         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5576         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5577         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5578         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5579
5580 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
5581
5582         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5583         * cli/cli-cmds.c: Include "gdb_vfork.h".
5584         (shell_escape): Use vfork.
5585
5586 2003-06-21  Andrew Cagney  <cagney@redhat.com>
5587
5588         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5589         32 bit floating-point register saves.
5590
5591         * frame.h (deprecated_unwind_get_saved_register): Delete.
5592         * frame.c (deprecated_unwind_get_saved_register): Delete function.
5593         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5594         and deprecated_get_next_frame_hack instead of
5595         deprecated_unwind_get_saved_register.
5596
5597         * mips-tdep.c (mips_dump_tdep): Do not print
5598         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5599
5600         * frame.c (get_frame_register): New function.
5601         (frame_unwind_register_signed): New function.
5602         (get_frame_register_signed): New function.
5603         (frame_unwind_register_unsigned): New function.
5604         (get_frame_register_unsigned): New function.
5605         * frame.h: Add comments on naming schema.
5606         (get_frame_register, frame_unwind_register_signed): Declare.
5607         (get_frame_register_signed, get_frame_register_signed): Declare.
5608         (frame_unwind_register_unsigned): Declare.
5609         (get_frame_register_unsigned): Declare.
5610
5611 2003-06-20  Theodore A. Roth  <troth@openavr.org>
5612
5613         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5614
5615 2003-06-20  Theodore A. Roth  <troth@openavr.org>
5616
5617         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5618         (avr_read_sp): Ditto.
5619
5620 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
5621
5622         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5623         * config/arm/nm-linux.h: Likewise.
5624         * config/arm/tm-linux.h: Likewise.
5625         * config/ia64/nm-linux.h: Likewise.
5626         * config/ia64/tm-ia64.h: Likewise.
5627         * config/s390/tm-linux.h: Likewise.
5628         * config/s390/tm-s390.h: Likewise.
5629         * s390-nat.c: Likewise.
5630         * s390-tdep.c: Likewise.
5631
5632         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5633         * config/ia64/linux.mt: Likewise.
5634         * config/m68k/linux.mh: Likewise.
5635         * config/mips/linux.mt: Likewise.
5636         * config/powerpc/linux.mh: Likewise.
5637         * config/sh/linux.mt: Likewise.
5638
5639 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
5640
5641         * solib.c (solib_open): Change tests for whether to search
5642         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
5643         comments.
5644
5645 2003-06-19  Theodore A. Roth  <troth@openavr.org>
5646
5647         * avr-tdep.c (avr_frame_address): Delete function.
5648         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5649         set_gdbarch_frame_args_address.
5650
5651 2003-06-19  Andrew Cagney  <cagney@redhat.com>
5652
5653         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5654         (REGISTER_CONVERT_FROM_TYPE): Delete.
5655         (mips_register_convert_to_type): Delete declaration.
5656         (mips_register_convert_from_type): Delete declaration.
5657         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
5658         kernel/.
5659
5660 2003-06-19  Michael Snyder  <msnyder@redhat.com>
5661
5662         * linux-nat.h: New file.
5663         * linux-nat.c: Include linux-nat.h.
5664         * lin-lwp.c: Include linux-nat.h.
5665         Move struct lwp_info def to linux-nat.h.
5666         * linux-proc.c: Include linux-nat.h.
5667         (linux_make_note_section): Iterate over lwps instead of threads.
5668         (linux_do_thread_registers): Use lwp instead of merged pid.
5669         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5670         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5671         Add dependency on linux_nat_h.
5672
5673 2003-06-19  Theodore A. Roth  <troth@openavr.org>
5674
5675         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5676
5677 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
5678
5679         * varobj.c (get_type, get_target_type): Use check_typedef.
5680
5681 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
5682
5683         * breakpoint.c (insert_catchpoint): Call internal_error.
5684
5685 2003-06-19  Theodore A. Roth  <troth@openavr.org>
5686
5687         * avr-tdep.c (avr_push_dummy_code): Delete function.
5688         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5689
5690 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
5691
5692         * arch-utils.c (default_prepare_to_proceed): Remove.
5693         (generic_prepare_to_proceed): Remove.
5694         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5695         (generic_prepare_to_proceed): Remove prototype.
5696         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5697         * gdbarch.c: Regenerate.
5698         * gdbarch.h: Regenerate.
5699         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5700         * hppah-nat.c (hppa_switched_threads): Remove.
5701         * infrun.c (prepare_to_proceed): New static function, copied from
5702         generic_prepare_to_proceed.  Remove select_it argument.
5703         (proceed): Call prepare_to_proceed.
5704         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5705         variables.
5706         (ptrace_wait): Don't set the removed variables.
5707         (hppa_switched_threads): Remove.
5708         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5709         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5710         (lin_lwp_prepare_to_proceed): Remove prototype.
5711         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5712         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5713
5714 2003-06-18  Theodore A. Roth  <troth@openavr.org>
5715
5716         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5717         trad-frame.h.
5718         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5719         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5720         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5721         (AVR_PROLOGUE_*): Enumerate prologue types.
5722         (struct frame_extra_info): Remove.
5723         (struct avr_unwind_cache): Define.
5724         (avr_write_sp): Delete function.
5725         (avr_read_fp): Ditto.
5726         (avr_init_extra_frame_info): Ditto.
5727         (avr_pop_frame): Ditto.
5728         (avr_frame_saved_pc): Ditto.
5729         (avr_saved_pc_after_call): Ditto.
5730         (avr_push_return_address): Ditto.
5731         (avr_frame_chain): Ditto.
5732         (avr_store_struct_return): Ditto.
5733         (avr_push_arguments): Ditto.
5734         (avr_scan_prologue): Update comments. Changed to set up the info for
5735         cache unwinding. Now returns end of prologue PC.
5736         (avr_skip_prologue): Better handling of functions lacking a prologue
5737         by using avr_scan_prologue.
5738         (avr_scan_arg_moves): New function.
5739         (avr_saved_regs_unwinder): Ditto.
5740         (avr_frame_unwind_cache): Ditto.
5741         (avr_unwind_pc): Ditto.
5742         (avr_frame_this_id): Ditto.
5743         (avr_frame_prev_register): Ditto.
5744         (avr_frame_p): Ditto.
5745         (avr_frame_base_address ): Ditto.
5746         (avr_unwind_dummy_id): Ditto.
5747         (avr_push_dummy_code): Ditto.
5748         (push_stack_item): Ditto.
5749         (pop_stack_item): Ditto.
5750         (avr_push_dummy_call): Ditto.
5751         (struct stack_item): Define.
5752         (avr_frame_unwind): Declare structure.
5753         (avr_frame_base): Ditto.
5754         (avr_gdbarch_init): Remove calls to
5755         set_gdbarch_deprecated_init_frame_pc,
5756         set_gdbarch_deprecated_target_read_fp,
5757         set_gdbarch_deprecated_dummy_write_sp,
5758         set_gdbarch_deprecated_fp_regnum,
5759         set_gdbarch_deprecated_push_arguments,
5760         set_gdbarch_deprecated_push_return_address,
5761         set_gdbarch_deprecated_pop_frame,
5762         set_gdbarch_deprecated_store_struct_return,
5763         set_gdbarch_deprecated_frame_init_saved_regs,
5764         set_gdbarch_deprecated_init_extra_frame_info,
5765         set_gdbarch_deprecated_frame_chain,
5766         set_gdbarch_deprecated_frame_saved_pc,
5767         set_gdbarch_deprecated_saved_pc_after_call.
5768         Add calls to set_gdbarch_push_dummy_call,
5769         set_gdbarch_push_dummy_code,
5770         frame_unwind_append_predicate,
5771         frame_base_set_default,
5772         set_gdbarch_unwind_dummy_id,
5773         set_gdbarch_unwind_pc.
5774         Wrap a long line.
5775
5776 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
5777
5778         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5779         registers for H8/300S.
5780         (h8300_print_registers_info): Ditto.
5781         (h8300_gdbarch_init): Accommodate register count for H8/300S.
5782
5783 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
5784
5785         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5786         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5787         (lin_lwp_wait): Likewise.  Update comments.
5788         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5789         (pull_pid_from_list, linux_record_stopped_pid): New.
5790
5791 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
5792
5793         * ada-lang.c (scan_discrim_bound): Name first argument.
5794         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5795         declared by ALL_BLOCK_SYMBOLS.
5796
5797 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
5798
5799         * ada-tasks.c (find_function_in_inferior): Don't declare it.
5800         ("regcache.h"): Include it.
5801         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5802
5803 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
5804
5805         * NEWS: Mention gdbserver detach change and "disconnect" command.
5806         * infcmd.c (disconnect_command): New function.
5807         (_initialize_infcmd): Add ``disconnect'' command.
5808         * remote.c (remote_async_detach): Delete.
5809         (remote_detach): Merge remote_async_detach.
5810         (remote_disconnect): New.
5811         (init_remote_ops): Set to_disconnect.
5812         (init_remote_cisco_ops): Likewise.
5813         (init_remote_async_ops): Likewise.  Use remote_detach.
5814         * target.c (cleanup_target): Default to_disconnect.
5815         (update_current_target): Inherit to_disconnect.
5816         (target_disconnect, debug_to_disconnect): New functions.
5817         (setup_target_debug): Set to_disconnect.
5818         * target.h (struct target_ops): Add to_disconnect.
5819         (target_disconnect): Add prototype.
5820
5821 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
5822
5823         * breakpoint.c (insert_catchpoint): New function.
5824         (insert_breakpoints): Use catch_exceptions to call
5825         insert_catchpoint.  Disable catchpoints if they fail to insert.
5826
5827 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
5828
5829         * symfile.c (reread_symbols): Clear sym_private.
5830
5831 2003-06-17  Andrew Cagney  <cagney@redhat.com>
5832
5833         * trad-frame.h (struct frame_info): Add opaque declaration.
5834         * remote-fileio.h (struct cmd_list_element): Add opaque
5835         declaration.
5836         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5837         comments.
5838
5839 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
5840
5841         * remote.c (remote_prepare_to_store): Replace call to
5842         deprecated_read_register_bytes with multiple regcache_raw_read
5843         calls.
5844
5845 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
5846
5847         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5848         (nto_find_and_open_solib): Likewise.
5849         (nto_init_solib_absolute_prefix): Likewise.
5850         (_initialize_nto_tdep): Fix indentation.
5851
5852 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
5853
5854         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5855
5856 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
5857
5858         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5859
5860 2003-06-17  Jim Blandy  <jimb@redhat.com>
5861
5862         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5863
5864 2003-06-16  Theodore A. Roth  <troth@openavr.org>
5865
5866         * avr-tdep.c (avr_extract_return_value): New function.
5867         (avr_gdbarch_init): Set extract_return_value method.
5868
5869 2003-06-16  Andrew Cagney  <cagney@redhat.com>
5870
5871         * frame.h (deprecated_get_next_frame_hack): Declare.
5872         * frame.c (legacy_saved_regs_prev_register): Only require
5873         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
5874         there are always saved regs.
5875         (deprecated_generic_get_saved_register): Do not require
5876         DEPRECATED_FRAME_INIT_SAVED_REGS.
5877         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5878         use frame ID unwind instead.
5879         (deprecated_get_next_frame_hack): New function.
5880
5881 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
5882
5883         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
5884         (h8300_push_dummy_call): ...this function.  Some minor optimization.
5885         (h8300_push_return_address): Remove.
5886         (h8300_gdbarch_init): Remove calls to
5887         set_gdbarch_deprecated_dummy_write_sp,
5888         set_gdbarch_deprecated_push_arguments and
5889         set_gdbarch_deprecated_push_return_address.
5890         Add call to set_gdbarch_push_dummy_call.
5891
5892 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
5893
5894         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5895         (E_PSEUDO_EXR_REGNUM): Ditto.
5896         (h8300_is_argument_spill): Check for instructions moving argument
5897         registers into safe registers.
5898         (h8300_skip_prologue): Check for stm instruction to push registers
5899         used for register variables onto stack.
5900         (gdb_print_insn_h8300): Remove.
5901         (h8300_examine_prologue): Add a comment.
5902         (h8300_register_name): Take pseudo registers into account.
5903         (h8300s_register_name): Ditto.
5904         (h8300sx_register_name): Ditto.
5905         (h8300_print_register): Ditto.
5906         (h8300_print_registers_info): Define "nice" printing order.
5907         (h8300_saved_pc_after_call): Take pseudo registers into account.
5908         (h8300_register_type): Ditto.  Return type used for remote connection
5909         when requesting real CCR or EXR register, return actual type when
5910         requesting pseudo CCR or EXR.
5911         (h8300_pseudo_register_read): New function.
5912         (h8300_pseudo_register_write): Ditto.
5913         (h8300_dbg_reg_to_regnum): Ditto.
5914         (h8300s_dbg_reg_to_regnum): Ditto.
5915         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5916         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5917         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5918         set_gdbarch_print_insn architecture dependent.
5919         Call set_gdbarch_pseudo_register_read and
5920         set_gdbarch_pseudo_register_write.
5921         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5922
5923 2003-06-16  Andrew Cagney  <cagney@redhat.com>
5924
5925         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5926         * gdbarch.h, gdbarch.c: Re-generate.
5927         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5928         * s390-tdep.c (s390_gdbarch_init): Update.
5929         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5930         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5931         * mips-tdep.c (mips_gdbarch_init): Update.
5932         * mcore-tdep.c (mcore_gdbarch_init): Update.
5933         * cris-tdep.c (cris_gdbarch_init): Update.
5934         * infcall.c (call_function_by_hand): Update.
5935         * ia64-tdep.c (ia64_push_arguments): Update comment.
5936         * frame.c (legacy_get_prev_frame): Do not assume
5937         SAVE_DUMMY_FRAME_TOS_P.
5938         * dummy-frame.c (find_dummy_frame): Update comment.
5939
5940 2003-06-16  Andrew Cagney  <cagney@redhat.com>
5941
5942         * regcache.c (do_cooked_read): Do not use register_valid_p.
5943
5944 2003-06-15  Theodore A. Roth  <troth@openavr.org>
5945
5946         * avr-tdep.c (avr_register_type): Remove a blank line.
5947         (avr_scan_prologue): Correct some comments.
5948
5949 2003-06-15  Theodore A. Roth  <troth@openavr.org>
5950
5951         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5952         prologue types.
5953         Properly scan prologues generated by gcc with the -mcall-prologues
5954         option.
5955         Add code to scan -mcall-prologues for mega devices.
5956
5957 2003-06-15  Theodore A. Roth  <troth@openavr.org>
5958
5959         * avr-tdep.c (avr_register_byte): Delete function.
5960         (avr_register_raw_size): Delete function.
5961         (avr_register_virtual_size): Delete function.
5962         (avr_register_virtual_type): Delete function.
5963         (avr_register_type): New function.
5964         (avr_address_to_pointer): Remove unused code.
5965         (avr_read_fp): Need to read FP as two separate bytes due to change to
5966         avr_register_type() usage.
5967         (avr_gdbarch_init): Don't set deprecated_register_size.
5968         Don't set deprecated_register_bytes.
5969         Don't set deprecated_register_byte.
5970         Don't set deprecated_register_raw_size.
5971         Don't set deprecated_max_register_raw_size.
5972         Don't set deprecated_register_virtual_size.
5973         Don't set deprecated_max_register_virtual_size.
5974         Don't set deprecated_register_virtual_type.
5975         Set register_type method.
5976
5977 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
5978
5979         * Makefile.in (linux-nat.o): Add rule.
5980         * linux-nat.c: New file.
5981         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5982         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5983         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5984         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5985         * config/arm/linux.mh (NATDEPFILES): Likewise.
5986         * config/i386/linux.mh (NATDEPFILES): Likewise.
5987         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5988         * config/ia64/linux.mh (NATDEPFILES): Likewise.
5989         * config/m68k/linux.mh (NATDEPFILES): Likewise.
5990         * config/mips/linux.mh (NATDEPFILES): Likewise.
5991         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5992         * config/s390/s390.mh (NATDEPFILES): Likewise.
5993         * config/sparc/linux.mh (NATDEPFILES): Likewise.
5994
5995 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
5996
5997         * i387-tdep.c: Reorder includes, fix some whitespace issues and
5998         replace out-of-date comment.
5999
6000 2003-06-15  Andrew Cagney  <cagney@redhat.com>
6001
6002         * rdi-share/host.h (Fail): Change to a varargs function.
6003         * remote-rdi.c (Fail): Update.
6004
6005 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6006
6007         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6008         (i386_convert_register_p, i386_register_to_value,
6009         i386_register_from_value): Handle types longer than 8 bytes.
6010
6011 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6012
6013         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6014         Move floating-point code to new function in i387-tdep.c.
6015         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6016         New functions containing code moved here from i386-tdep.c.
6017         * i387-tdep.h: Add opaque declaration for `struct type'.
6018         (i387_register_to_value, i387_value_to_register): New prototypes.
6019         * x86-64-tdep.c (x86_64_convert_register_p): New function.
6020         (x86_64_init_abi): Set convert_register_p, register_to_value and
6021         value_to_register here.
6022
6023 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6024
6025         * mips-tdep.c (mips_register_to_value): Make static.
6026         (mips_value_to_register): Make static.
6027         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6028         * ia64-tdep.c (ia64_register_raw_size): Make static.
6029         (ia64_register_virtual_size): Make static.
6030         (ia64_register_byte): Make static.
6031         * i387-tdep.c: Include "i387-tdep.h".
6032         (print_387_control_word): Delete function.
6033         (print_387_status_word): Delete function.
6034         (print_387_status_bits): Delete function.
6035         (print_387_control_bits): Delete function.
6036         * Makefile.in (i387-tdep.o): Update dependencies.
6037         * rdi-share/host.h (Fail): Declare.
6038         * remote-rdi.c (Fail): Update to match declaration.
6039
6040 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6041
6042         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6043         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6044         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6045         * config/djgpp/fnchange.lst: Delete "remote-array.c".
6046         * README: Delete reference to remote-array.
6047         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6048         (remote-array.o): Delete target.
6049         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6050         * remote-array.c: Delete file.
6051
6052 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6053             Mark Kettenis  <kettenis@gnu.org>
6054
6055         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6056         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6057         parameter with "frame".
6058         * gdbarch.h, gdbarch.c: Re-generate.
6059         * frame.h (put_frame_register): Declare.
6060         * frame.c (put_frame_register): New function.
6061         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6062         (legacy_register_to_value): Rewrite, use "frame" to get the
6063         register value.
6064         (legacy_value_to_register): Rewrite, use "frame" to find the
6065         register's location before storing.
6066         * arch-utils.h (legacy_convert_register_p): Update.
6067         (legacy_register_to_value, legacy_value_to_register): Update.
6068         * findvar.c (value_from_register): Rewrite, eliminate use of
6069         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6070         "frame" to REGISTER_TO_VALUE.
6071         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6072         lval_reg_frame_relative + lval_register branch of the switch.  Do
6073         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
6074         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6075         I386_EDI_REGNUM): New defines.
6076         (i386_next_regnum, i386_convert_register_p,
6077         i386_register_to_value, i386_value_to_register): New functions.
6078         (i386_register_convertible, i386_register_convert_to_virtual,
6079         i386_convert_to_raw): Remove functions.
6080         (i386_gdbarch_init): Set convert_register_p, register_to_value and
6081         value_to_register instead of register_convertible,
6082         register_convert_to_virtual and register_convert_to_raw.
6083         * mips-tdep.c (mips_convert_register_p): New function.
6084         (mips_value_to_register): Replace mips_register_convert_from_type.
6085         (mips_register_to_value): Replace mips_register_convert_to_type.
6086         (mips_gdbarch_init): Set conver_register_p, value_to_register and
6087         register_to_value.
6088         * alpha-tdep.c (alpha_convert_register_p): Update.
6089         (alpha_value_to_register): Update, store the register.
6090         (alpha_register_to_value): Update, fetch the register.
6091
6092 2003-06-14  Theodore A. Roth  <troth@openavr.org>
6093
6094         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6095         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6096         Don't set deprecated_call_dummy_words.
6097         Remove commented out set_gdbarch_believe_pcc_promotion() call.
6098         Don't set remote_translate_xfer_address.
6099         (avr_io_reg_read_command): Remove commented out debug printf.
6100         Wrap a long line.
6101
6102 2003-06-14  Theodore A. Roth  <troth@openavr.org>
6103
6104         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6105         causes gdb to seg fault.
6106
6107 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
6108
6109         * sparc-nat.c (fetch_inferior_registers): Correct
6110         a reference to "registers".
6111
6112 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
6113
6114         * Makefile.in (exc_request_U_h): Define
6115         (exc_request_S_h): Likewise.
6116         (msg_reply_S_h): Likewise.
6117         (msg_U_h): Likewise.
6118         (notify_S_h): Likewise.
6119         (process_reply_S_h): Likewise.
6120         (gnu-nat.o): Depend on gdb_obstack_h
6121         * gnu-nat.c: Include "gdb_obstack.h".
6122
6123 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6124
6125         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6126         * gdbarch.h, gdbarch.c: Re-generate.
6127
6128 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6129
6130         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
6131         when deprecated REGISTER macros can be deleted.
6132         * gdbarch.h, gdbarch.c: Re-generate.
6133
6134 2003-06-13  Jim Blandy  <jimb@redhat.com>
6135
6136         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6137         Linux entry point symbols for _dl_debug_state, too.
6138
6139 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6140
6141         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6142         available, do not use the FP register, and always save the TOS.
6143         * dummy-frame.c (dummy_frame_this_id): Do not assert
6144         SAVE_DUMMY_FRAME_TOS.
6145         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6146         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6147         (i386_push_dummy_call): Add 8 to the returned SP.
6148         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6149         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6150         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6151         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6152         (x86_64_push_dummy_call): Return "sp + 16".
6153         (x86_64_init_abi): Do not set save_dummy_frame_tos.
6154         * alpha-tdep.c (alpha_gdbarch_init): Do not set
6155         save_dummy_frame_tos.
6156
6157 2003-06-13  Jim Blandy  <jimb@redhat.com>
6158
6159         * frv-tdep.c (frv_use_struct_convention): Delete static
6160         declaration for function deleted in my change of 2003-06-12.
6161
6162 2003-06-13  Theodore A. Roth  <troth@openavr.org>
6163
6164         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6165         (avr_pointer_to_address): Shift code addrs left 1 bit.
6166         (avr_convert_from_func_ptr_addr): Delete function since operation is
6167         better handled by avr_address_to_pointer and avr_pointer_to_address.
6168         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6169
6170 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
6171
6172         From Kelley Cook  <kelleycook@wideopenwest.com>:
6173         * configure.host: Accept i[34567]86 variants.
6174         * configure.tgt: Likewise.
6175         * nlm/configure.in: Likewise.
6176         * nlm/configure: Regenerated.
6177
6178 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
6179
6180         * arm-tdep.c (solib-svr4.h): Dont' include it.
6181         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6182         * arm-linux-tdep.c: ... here.  Make static.
6183         (arm_linux_init_abi): Register it.
6184         (solib-svr4.h): Include it.
6185         * Makefile.in: Update dependencies.
6186         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6187         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6188
6189 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
6190
6191         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6192         indicate registers used for return values.
6193         (struct frame_extra_info): Drop args_pointer and locals_pointer.
6194         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6195         members.
6196         (h8300_init_extra_frame_info): Ditto.
6197         (h8300_frame_locals_address): Removed.
6198         (h8300_frame_args_address): Removed.
6199         (h8300_extract_return_value): Use new regcache structure. Only care
6200         for 16 bit CPUs.
6201         (h8300h_extract_return_value): Same function for 32 bit CPUs.
6202         (h8300_store_return_value): Use new regcache structure. Only care
6203         for 16 bit CPUs.
6204         (h8300h_store_return_value): Same function for 32 bit CPUs.
6205         (h8300_store_struct_return): Removed.
6206         (h8300_extract_struct_value_address): Use new regcache structure.
6207         (h8300h_extract_struct_value_address): Removed.
6208         (h8300_push_dummy_code): New function.
6209         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6210         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
6211         set_gdbarch_store_return_value architecture dependent.
6212         Call set_gdbarch_push_dummy_code and
6213         set_gdbarch_extract_struct_value_address.
6214         Remove calls to set_gdbarch_frame_args_address,
6215         set_gdbarch_frame_locals_address,
6216         set_gdbarch_deprecated_store_struct_return,
6217         set_gdbarch_deprecated_extract_return_value,
6218         set_gdbarch_deprecated_extract_struct_value_address,
6219         set_gdbarch_deprecated_call_dummy_words and
6220         set_gdbarch_deprecated_sizeof_call_dummy_words.
6221
6222 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
6223
6224         * h8300-tdep.c (h8300_register_byte): Remove.
6225         (h8300h_register_byte): Remove.
6226         (h8300_register_virtual_type): Remove.  Substitute by...
6227         (h8300_register_type): New function.
6228         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6229         (h8300h_extract_struct_value_address): Ditto.
6230         (h8300_gdbarch_init): Drop calls to
6231         set_gdbarch_deprecated_register_byte and
6232         set_gdbarch_deprecated_register_virtual_type.
6233         Add call to set_gdbarch_register_type.
6234
6235 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6236
6237         * gdbarch.sh: Update comments on registers.
6238         (deprecated_register_byte): Rename register_byte.
6239         (deprecated_register_raw_size): Rename register_raw_size.
6240         (deprecated_register_virtual_size): Rename register_virtual_size.
6241         (deprecated_register_virtual_type): Rename register_virtual_type.
6242         * gdbarch.h, gdbarch.c: Re-generate.
6243         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6244         * vax-tdep.c (vax_gdbarch_init): Update.
6245         * v850-tdep.c (v850_gdbarch_init): Update.
6246         * sparc-tdep.c (sparc_gdbarch_init): Update.
6247         * sh-tdep.c (sh_gdbarch_init): Update.
6248         * s390-tdep.c (s390_gdbarch_init): Update.
6249         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6250         * ns32k-tdep.c: Update.
6251         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6252         * mips-tdep.c (mips_gdbarch_init): Update.
6253         * mcore-tdep.c (mcore_gdbarch_init): Update.
6254         * m68k-tdep.c (m68k_gdbarch_init): Update.
6255         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6256         * ia64-tdep.c (ia64_gdbarch_init): Update.
6257         * hppa-tdep.c (hppa_gdbarch_init): Update.
6258         * h8300-tdep.c (h8300_gdbarch_init): Update.
6259         * frv-tdep.c (frv_gdbarch_init): Update.
6260         * cris-tdep.c (cris_gdbarch_init): Update.
6261         * avr-tdep.c (avr_gdbarch_init): Update.
6262         * alpha-tdep.c (alpha_gdbarch_init): Update.
6263         * arm-tdep.c (arm_gdbarch_init): Update.
6264
6265 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6266
6267         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6268         mips_o32_use_struct_convention with always_use_struct_convention.
6269
6270 2003-06-12  David Carlton  <carlton@kealia.com>
6271
6272         * cp-namespace.c (cp_set_block_scope): Comment out
6273         processing_has_namespace_info branch.
6274
6275 2003-06-12  Jim Blandy  <jimb@redhat.com>
6276
6277         Recognize and skip 64-bit PowerPC Linux linkage functions.
6278         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6279         insn_pattern, insns_match_pattern, d_field, ds_field): New
6280         functions, macros, and types for working with PPC instructions.
6281         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6282         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6283         ppc64_skip_trampoline_code): New functions, variables, and macros
6284         for recognizing and skipping linkage functions.
6285         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6286         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6287
6288         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6289         register offsets for both the 32- and 64-bit interfaces.
6290
6291         Actually finish the job started by my change of 2003-05-29.
6292         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6293         other #definition of this.
6294         (ppc_linux_skip_trampoline_code): Remove declaration.
6295         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6296         static.
6297         (ppc_linux_init_abi): Register it as the skip_trampoline_code
6298         method for GDBARCH.
6299
6300         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6301         'long' on ppc64-*-linux*.
6302
6303         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6304         isn't #defined, assume the register doesn't exist: act as if
6305         tdep->ppc_mq_regnum were -1.
6306
6307         * configure.host, configure.tgt: Add entries for
6308         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6309         powerpc/linux.mt.
6310         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6311         New files.
6312
6313         * arch-utils.c (always_use_struct_convention): New function.
6314         * arch-utils.h (always_use_struct_convention): New prototype.
6315         * alpha-tdep.c (alpha_use_struct_convention): Delete.
6316         (alpha_gdbarch_init): Register always_use_struct_convention,
6317         instead of alpha_use_struct_convention.
6318         * cris-tdep.c (cris_use_struct_convention): Delete.
6319         (cris_gdbarch_init): Register always_use_struct_convention,
6320         instead of cris_use_struct_convention.
6321         * frv-tdep.c (frv_use_struct_convention): Delete.
6322         (frv_gdbarch_init): Register always_use_struct_convention,
6323         instead of frv_use_struct_convention.
6324         * h8300-tdep.c (h8300_use_struct_convention): Delete.
6325         (h8300_gdbarch_init): Register always_use_struct_convention,
6326         instead of h8300_use_struct_convention.
6327         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6328         (mips_o32_gdbarch_init): Register always_use_struct_convention,
6329         instead of mips_o32_use_struct_convention.
6330
6331 2003-06-12  Andrew Cagney  <cagney@redhat.com>
6332
6333         * wince.c: Include "mips-tdep.h".
6334         * mips-tdep.h (mips_next_pc): Declare.
6335         * mcore-tdep.c: Make more local functions static.
6336         * Makefile.in (wince.o): Update dependencies.
6337
6338 2003-06-12  David Carlton  <carlton@kealia.com>
6339
6340         * symtab.c (lookup_symbol_aux_minsyms): Replace
6341         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6342         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6343         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6344         SYMBOL_NATURAL_NAME.
6345
6346 2003-06-12  Andreas Schwab  <schwab@suse.de>
6347
6348         * Makefile.in (tuiDisassem.o): Update dependencies.
6349
6350 2003-06-12  David Carlton  <carlton@bactrian.org>
6351
6352         * symtab.h: Delete declaration of make_symbol_overload_list.
6353         Add declaration of lookup_partial_symbol.
6354         * symtab.c (remove_params): Move to cp-support.c.
6355         (overload_list_add_symbol, make_symbol_overload_list)
6356         (sym_return_val_size, sym_return_val_index): Ditto.
6357         (lookup_partial_symbol): Make extern.
6358         * cp-support.h: Add declaration of make_symbol_overload_list.
6359         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6360         symtab.h, and block.h.
6361         (remove_params): Move here from symtab.c.
6362         (overload_list_add_symbol, make_symbol_overload_list)
6363         (sym_return_val_size, sym_return_val_index): Ditto.
6364         * valops.c: Include cp-support.h.
6365         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6366         frame_h, and block_h.
6367         (valops.o): Depend on cp_support_h.
6368
6369 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
6370
6371         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6372         substitute by NUM_REGS throughout.
6373         (h8300_register_name): Only care for H8/300 and H8/300H registers.
6374         (h8300s_register_name): New function for H8S registers.
6375         (h8300sx_register_name): Ditto for H8SX registers.
6376         (h8300_print_register): Revise register printing, avoid depending
6377         on 32 bit long.
6378         (h8300_register_byte): Only care for H8/300 registers.
6379         (h8300h_register_byte): New function for any other architecture.
6380         (h8300_register_raw_size): Remove.
6381         (h8300_register_virtual_type): Revise to return actually useful
6382         type.
6383         (h8300_extract_struct_value_address): Only care for H8/300 registers.
6384         (h8300h_extract_struct_value_address): New function for any other
6385         architecture.
6386         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
6387         set_gdbarch_register_name, set_gdbarch_register_byte,
6388         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6389         Remove calls to set_gdbarch_deprecated_register_size,
6390         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6391         set_gdbarch_deprecated_max_register_raw_size,
6392         set_gdbarch_register_virtual_size and
6393         set_gdbarch_deprecated_max_register_virtual_size entirely.
6394         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6395         set_gdbarch_long_double_bit.
6396
6397 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
6398
6399         * doublest.c (convert_doublest_to_floatformat): When dealing
6400         with the implied integer bit, only alter mant_bits if we are
6401         processing a full 32 bits of mantissa.
6402
6403 2003-06-11  David Carlton  <carlton@bactrian.org>
6404
6405         * dictionary.h: New.
6406         * dictionary.c: New.
6407         * block.h: Add opaque declaration for struct dictionary.
6408         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6409         'sym' members.
6410         (BLOCK_DICT): New macro.
6411         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6412         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6413         BLOCK_SHOULD_SORT.
6414         (ALL_BLOCK_SYMBOLS): Update definition.
6415         * Makefile.in (SFILES): Add dictionary.c.
6416         (dictionary_h): New.
6417         (COMMON_OBS): Add dictionary.o.
6418         (dictionary.o): New.
6419         (ada-lang.o): Depend on dictionary_h.
6420         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6421         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6422         (mi-cmd-stack.o): Ditto.
6423         (gdbtk-cmds.o): Update dependencies.
6424         (gdbtk-stack.o): Ditto.
6425         * ada-lang.c: Include dictionary.h.
6426         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6427         (fill_in_ada_prototype, debug_print_block): Ditto.
6428         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6429         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
6430         'is_sorted'.
6431         * mdebugread.c: Include dictionary.h.
6432         (struct parse_stack): Delete 'maxsyms' member.
6433         (parse_symbol): Update calls to new_block.  Delete calls to
6434         shrink_block.  Use dictionary methods.
6435         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6436         Update calls to new_symtab.  Don't maintain maxsyms data.
6437         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6438         (add_symbol): Just call dict_add_symbol.
6439         (new_symtab): Delete 'maxsyms' argument.
6440         (new_symtab): Update calls to new_block.
6441         (new_block): Delete 'maxsyms' argument; add 'function' argument.
6442         (shrink_block): Delete function.
6443         (fixup_sigtramp): Update call to new_block.  Add symbol via
6444         dict_add_symbol.
6445         * jv-lang.c: Include dictionary.h.
6446         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6447         appropriately.  Set class_symtab->free_func.  Make sure the
6448         blockvector is big enough to hold two blocks.
6449         (add_class_symtab_symbol): Use dictionary methods.
6450         (free_class_block): New function.
6451         (type_from_class): Replace explicit iteration by
6452         ALL_BLOCK_SYMBOLS.
6453         * symtab.h (struct symtab): Replace 'free_ptr' method by
6454         'free_func'.
6455         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6456         sort_symtab_syms.
6457         * dwarfread.c (psymtab_to_symtab_1): Delete call to
6458         sort_symtab_syms.
6459         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6460         Include dictionary.h.
6461         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6462         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6463         sort_symtab_syms.
6464         * objfiles.c: Include dictionary.h.
6465         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6466         * buildsym.c: Include dictionary.h.
6467         (finish_block): Use dictionary methods.
6468         (end_symtab): Set free_func to NULL, not free_ptr.
6469         * tracepoint.c: Include dictionary.h.
6470         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6471         (scope_info): Ditto.
6472         * stack.c: Include dictionary.h.
6473         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6474         (print_block_frame_labels, print_frame_arg_vars)
6475         (print_frame_args): Ditto.
6476         * symmisc.c (free_symtab_block): Use dictionary methods.
6477         (dump_symtab): Ditto.
6478         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6479         Include dictionary.h.
6480         * symfile.h: Delete declarations of sort_block_syms,
6481         sort_symtab_syms.
6482         * symfile.c (sort_block_syms): Delete.
6483         (sort_symtab_syms): Delete.
6484         * symtab.c: Include dictionary.h.
6485         (lookup_block_symbol): Use dictionary iterators.
6486         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6487         (search_symbols, make_symbol_completion_list): Ditto.
6488         (make_symbol_overload_list): Ditto.
6489         * valops.c (value_of_local): Use dict_empty.
6490         Include dictionary.h.
6491
6492 2003-06-11  J. Brobecker  <brobecker@gnat.com>
6493
6494         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6495
6496 2003-06-11  David Carlton  <carlton@bactrian.org>
6497
6498         * block.h (BLOCK_SHOULD_SORT): Delete.
6499         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6500         blocks.
6501         * ada-lang.c (ada_add_block_symbols): Ditto.
6502         * symfile.c (sort_block_syms): Delete.
6503         (sort_symtab_syms): Ditto.
6504         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6505         declarations.
6506         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6507         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6508         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6509         * dwarfread.c (psymtab_to_symtab_1): Ditto.
6510         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6511         * mdebugread.c (psymtab_to_symtab_1): Ditto.
6512         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6513
6514 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
6515
6516         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6517         bits to 128.
6518
6519 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6520
6521         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6522         REGISTER_CONVERTIBLE.
6523         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6524         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6525         * gdbarch.h, gdbarch.c: Re-generate.
6526         * arch-utils.h (deprecated_register_convertible_not): Rename
6527         generic_register_convertible_not.
6528         * arch-utils.c (deprecated_register_convertible_not): Rename
6529         generic_register_convertible.
6530         (legacy_convert_register_p, legacy_register_to_value): Update.
6531         * sh-tdep.c (sh64_push_arguments): Update.
6532         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6533         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6534         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6535         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6536         * arch-utils.c (legacy_value_to_register): Update.
6537         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6538         (rs6000_register_convert_to_raw): Make parameter "from" const.
6539         * mips-tdep.c (mips_gdbarch_init): Update.
6540         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
6541         * infcmd.c (default_print_registers_info): Update.
6542         * ia64-tdep.c (ia64_gdbarch_init): Update.
6543         (ia64_register_convert_to_raw): Make parameter "from" const.
6544         * i386-tdep.c (i386_gdbarch_init): Update.
6545         (i386_register_convert_to_raw): Update.
6546
6547 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6548
6549         * remote-fileio.c: Include "remote-fileio.h".
6550         * Makefile.in (remote-fileio.o): Update dependencies.
6551         (remote_fileio_h): Fix typo.
6552
6553 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6554
6555         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6556         (xstormy16_save_dummy_frame_tos): Make static.
6557         (_initialize_xstormy16_tdep): Add declaration.
6558         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6559         * v850-tdep.c: Make local functions static.
6560         (_initialize_v850_tdep): Add declaration.
6561         * sparc-tdep.c: Make local functions static.
6562         (_initialize_sparc_tdep): Add declaration.
6563         * sh-tdep.c: Make local functions static.
6564         (_initialize_sh_tdep): Add declaration.
6565         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6566         * s390-tdep.c: Make local functions static.
6567         (_initialize_s390_tdep): Add declaration.
6568         * dbxread.c (find_stab_function_addr): Make static.
6569         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6570         * ocd.c (_initialize_remote_ocd): Add declaration.
6571         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6572         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6573         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6574         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6575         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6576         * remote-array.c (_initialize_array): Add declaration.
6577         (_initialize_remote_monitors): Add declaration.
6578         * remote-mips.c: Make local functions static.
6579         (_initialize_remote_mips): Add declaration.
6580         * mcore-tdep.c: Make all local functions static.
6581         (_initialize_mcore_tdep): Add declaration.
6582         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6583         * abug-rom.c (_initialize_abug_rom): Add declaration.
6584         * rom68k-rom.c (_initialize_rom68k): Add declaration.
6585         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6586         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6587         * remote-est.c (_initialize_est): Add declaration.
6588         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6589         (m68hc11_call_dummy_address): Make static.
6590         * ia64-tdep.c: Make local functions static.
6591         (_initialize_ia64_tdep): Add declaration.
6592         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6593         * monitor.c (monitor_wait_filter): Make static.
6594         (_initialize_remote_monitors): Add declaration.
6595         * remote-hms.c (_initialize_remote_hms): Add declaration.
6596         * remote-e7000.c (fetch_regs_from_dump): Make static.
6597         (expect_n): Make static.
6598         (_initialize_remote_e7000): Add declaration.
6599         * ser-e7kpc.c: Always include "defs.h".
6600         (_initialize_ser_e7000pc): Add declaration.
6601         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6602         * cris-tdep.c: Make all but one function static.
6603         (_initialize_cris_tdep): Add declaration.
6604         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6605         * solib.c (update_solib_list): Make static.
6606         (_initialize_solib): Add declaration.
6607         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6608         (_initialize_avr_tdep): Add declaration.
6609         * remote-rdi.c (voiddummy): Make static.
6610         (_initialize_remote_rdi): Add declaration.
6611         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6612         * remote-rdp.c (send_rdp): Make static.
6613         (_initialize_remote_rdp): Add declaration.
6614         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6615
6616 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
6617
6618         * remote-fileio.c: Make ari happy.
6619
6620 2003-06-10  J. Brobecker  <brobecker@gnat.com>
6621
6622         * rs6000-nat.c (child_xfer_memory): Compute the right address when
6623         fetching the trailing bytes of the buffer we are about to write.
6624
6625 2003-06-10  Andrew Cagney  <cagney@redhat.com>
6626
6627         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6628         * Makefile.in (remote-fileio.o): Update dependencies.
6629         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
6630         include <setjmp.h>, or <sys/types.h> conditional on USG.
6631         (remote_fio_jmp_buf): Delete global variable.
6632
6633 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
6634             Martin M. Hunt  <hunt@redhat.com>
6635
6636         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6637         (SFILES): Add remote-fileio.c.
6638         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
6639         dependencies for building remote.o.
6640         * remote-fileio.c: New file implementing the remote File-I/O protocol.
6641         * remote-fileio.h: New header file defining remote File-I/O interface.
6642         * remote.c (remote_write_bytes, remote_read_bytes): Remove
6643         static storage class.
6644         (remote_wait, remote_async_wait): Call remote_fileio_request() on
6645         'F' packet.
6646         (_initialize_remote): Call initialize_remote_fileio().
6647         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6648         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6649         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6650         (captured_main): Initialize new ui_files.
6651         * ui-file.c: Add read and fgets input functions.
6652         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6653         (null_file_read): New function.
6654         (ui_file_read): New function.
6655         (set_ui_file_read): New function.
6656         (stdio_file_read): New function.
6657         * ui-file.h: New type ui_file_read_ftype.
6658         (set_ui_file_read): Declare.
6659         (ui_file_read): Declare.
6660
6661 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6662
6663         * frame.h (deprecated_unwind_get_saved_register): Rename
6664         generic_unwind_get_saved_register, update comments.
6665         * mips-tdep.c (mips_get_saved_register): Update.
6666         * frame.c (deprecated_unwind_get_saved_register): Update.
6667
6668 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6669
6670         * vax-tdep.c (vax_frame_locals_address): Delete function.
6671         (vax_gdbarch_init): Do not set frame_locals_address.
6672         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6673         (m68hc11_gdbarch_init): Do not set frame_locals_address.
6674         * s390-tdep.c (s390_frame_args_address): Delete function.
6675         (s390_gdbarch_init): Do not set frame_args_address or
6676         frame_locals_address.
6677         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6678         (ns32k_gdbarch_init): Do not set frame_locals_address.
6679         * hppa-tdep.c (hppa_frame_args_address): Delete function.
6680         (hppa_frame_locals_address): Delete function.
6681         (hppa_gdbarch_init): Do not set frame_args_address, or
6682         frame_locals_address.
6683         * arm-tdep.c (arm_frame_args_address): Delete.
6684         (arm_frame_locals_address): Delete.
6685         (arm_gdbarch_init): Do not set frame_args_address, or
6686         frame_locals_address.
6687
6688 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6689
6690         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6691         * gdbarch.h, gdbarch.c: Re-generate.
6692         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6693         * arch-utils.c (frame_num_args_unknown): Delete function.
6694         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6695         (frame_info): Use FRAME_NUM_ARGS_P.
6696         * arm-tdep.c (arm_frame_num_args): Delete function.
6697         (arm_gdbarch_init): Do not set frame_num_args.
6698         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6699         * hppa-tdep.c (hppa_frame_num_args): Delete function.
6700         (hppa_gdbarch_init): Do not set frame_num_args.
6701         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6702         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6703         frame_num_args to default frame_num_args_unknown.
6704         * v850-tdep.c (v850_gdbarch_init): Ditto.
6705         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6706         * sh-tdep.c (sh_gdbarch_init): Ditto.
6707         * s390-tdep.c (s390_gdbarch_init): Ditto.
6708         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6709         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6710         * mips-tdep.c (mips_gdbarch_init): Ditto.
6711         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6712         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6713         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6714         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6715         * i386-tdep.c (i386_gdbarch_init): Ditto.
6716         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6717         * frv-tdep.c (frv_gdbarch_init): Ditto.
6718         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6719         * cris-tdep.c (cris_gdbarch_init): Ditto.
6720         * avr-tdep.c (avr_gdbarch_init): Ditto.
6721         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6722
6723 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6724
6725         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6726         (print_frame_args): Moved to "stack.c".
6727         * stack.c: Include "gdb_assert.h".
6728         (print_frame_nameless_args): Moved from "printcmd.c", made static.
6729         (print_frame_args): Moved from "printcmd.c".
6730         * frame.h (print_frame_args): Delete declaration.
6731         * Makefile.in (stack.o): Update dependencies.
6732
6733 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6734
6735         * frame.c (get_prev_frame): Remove reference to
6736         frame_args_address_correct in comments.
6737         * frame-base.c (default_frame_args_address): Delete code
6738         conditional on FRAME_ARGS_ADDRESS_CORRECT.
6739         * vax-tdep.c (vax_frame_args_address_correct): Delete.
6740         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6741         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6742         (vax_frame_args_address_correct): Delete declaration.
6743
6744 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6745
6746         * gdbarch.sh (UNWIND_SP): Add.
6747         * gdbarch.h, gdbarch.c: Re-generate.
6748         * frame.c (frame_sp_unwind): New function.
6749         (get_frame_sp): New function.
6750         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6751         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6752         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6753         value.
6754         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6755         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6756
6757 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6758
6759         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6760         REMOTE_BREAKPOINT.
6761         * remote.c: Update.
6762         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6763         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6764         * config/m68k/tm-sun3.h: Update.
6765         * config/m68k/tm-m68klynx.h: Update.
6766         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6767
6768         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6769         trad_frame".  Update comments.
6770         * d10v-tdep.c (struct d10v_unwind_cache): Update.
6771         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6772         (trad_frame_register_value, trad_frame_prev_register): Update.
6773
6774 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6775
6776         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6777         from GCC's acinclude.m4.
6778         * configure.in: Check for getopt's delcaration.
6779         * aclocal.m4, config.in, configure: Re-generate.
6780         * main.c (error_init): Delete declaration.
6781         * defs.h (error_init): Declare.
6782         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6783         (rs6000_convert_from_func_ptr_addr): Make static.
6784         (_initialize_rs6000_tdep): Add declaration.
6785         * cli/cli-cmds.c (dont_repeat): Delete declaration.
6786         (show_commands, set_verbose, show_history): Delete declaration.
6787         * top.h (set_verbose): Add declaration.
6788         (show_history, set_history, show_commands): Add declaration.
6789         (do_restore_instream_cleanup): Add declaration.
6790         * objc-lang.c (specialcmp): Make static.
6791         (print_object_command): Make static.
6792         (find_objc_msgsend): Make static.
6793         (find_objc_msgcall_submethod_helper): Make static.
6794         (find_objc_msgcall_submethod): Make static.
6795         (_initialize_objc_language): Add declaration.
6796         (find_implementation_from_class): Make static.
6797         (find_implementation): Make static.
6798         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6799         * objc-lang.h (lookup_struct_typedef): Add declaration.
6800         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6801         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6802         (do_restore_user_call_depth): Make static.
6803         (do_restore_instream_cleanup): Delete declaration.
6804         (dont_repeat): Delete declaration.
6805         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6806         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6807         * reggroups.c (_initialize_reggroup): Add declaration.
6808         * cp-support.c (_initialize_cp_support): Add declaration.
6809         * cp-abi.c (_initialize_cp_abi): Add declaration.
6810         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6811         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6812         (_initialize_gnu_v3_abi): Add declaration.
6813         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6814         (_initialize_gnu_v2_abi): Add declaration.
6815         * frame-base.c (_initialize_frame_base): Add declaration.
6816         * doublest.c (floatformat_from_length): Make static.
6817         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6818         * frame.c (create_sentinel_frame): Make static.
6819         (_initialize_frame): Add declaration.
6820         * top.c (do_catch_errors): Make static.
6821         (gdb_rl_operate_and_get_next_completion): Make static.
6822         * typeprint.c: Include "typeprint.h".
6823         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6824         (sentinel_frame_this_id): Make static.
6825         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6826         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6827         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6828         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6829         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6830         * maint.c (maintenance_print_architecture): Make static.
6831         * signals/signals.c (_initialize_signals): Add declaration.
6832         * std-regs.c (_initialize_frame_reg): Add declaration.
6833         * jv-exp.y (push_variable): ISO C definition.
6834         (push_qualified_expression_name): Ditto.
6835         * memattr.c (_initialize_mem): Add declaration.
6836         * remote.c (remote_check_watch_resources): Make static.
6837         (remote_stopped_by_watchpoint): Make static.
6838         (remote_stopped_data_address): Make static.
6839         * d10v-tdep.c (nr_dmap_regs): Make static.
6840         (a0_regnum): Make static.
6841         (d10v_frame_unwind_cache): Make static.
6842         (d10v_frame_p): Make static.
6843         * osabi.c (show_osabi): Make static.
6844         (_initialize_gdb_osabi): Add extern declaration.
6845         * gdbtypes.c (make_qualified_type): Make static.
6846         (safe_parse_type): Make static.
6847         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6848         * macrotab.c (macro_bcache_free): Make static.
6849         * interps.c (interp_set_quiet): Make static.
6850         (interpreter_exec_cmd): Make static.
6851         * stack.h (select_frame_command): New file.
6852         * stack.c: Include "stack.h".
6853         (select_frame_command_wrapper): Delete function.
6854         (select_frame_command): Make global.
6855         * infcall.c: Include "infcall.h".
6856         * linespec.c: Include "linespec.h".
6857         * symfile.c (sections_overlap): Make static.
6858         * cp-support.h (cp_initialize_namespace): ISO C declaration.
6859         * charset.c (_initialize_charset): Add missing prototype.
6860         * regcache.c (init_legacy_regcache_descr): Make static.
6861         (do_regcache_xfree): Make static.
6862         (regcache_xfer_part): Make static.
6863         (_initialize_regcache): Add missing prototype.
6864         * breakpoint.c (parse_breakpoint_sals): Make static.
6865         (breakpoint_sals_to_pc): Make static.
6866         * interps.h (clear_interpreter_hooks): ISO C declaration.
6867         * Makefile.in (stack_h): Define.
6868         (stack.o, typeprint.o, mi-main.o): Update dependencies.
6869         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6870
6871 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6872
6873         * Makefile.in (d10v-tdep.o): Update dependencies.
6874         (SFILES): Add trad-frame.c.
6875         (trad_frame_h): Define.
6876         (COMMON_OBS): Add trad-frame.o.
6877         (trad-frame.o): Specify dependencies.
6878         * d10v-tdep.c: Include "trad-frame.h".
6879         (saved_regs_unwinder): Delete function.
6880         (d10v_frame_prev_register): Use trad_frame_prev_register.
6881         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6882         trad_frame", delete "regs" and "prev_sp".
6883         (prologue_find_regs): Use trad-frame.
6884         * trad-frame.h, trad-frame.c: New files.
6885
6886 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
6887
6888         * dwarf2cfi.c, dwarf2cfi.h: Remove.
6889
6890 2003-06-07  Adam Fedor  <fedor@gnu.org>
6891
6892         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6893         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6894         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6895         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6896         resolve_msgsend_super, resolve_msgsend_super_stret):
6897         Use it.
6898
6899 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6900
6901         * symfile.h: Re-indent, clean up comments.
6902
6903 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6904
6905         * inferior.h (deprecated_write_sp): Replace
6906         generic_target_write_sp.
6907         * regcache.c (deprecated_write_sp): Replace
6908         generic_target_write_sp.
6909         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6910         * vax-tdep.c (vax_gdbarch_init): Update.
6911         * v850-tdep.c (v850_gdbarch_init): Update.
6912         * sparc-tdep.c (sparc_gdbarch_init): Update.
6913         * sh-tdep.c (sh_gdbarch_init): Update.
6914         * s390-tdep.c (s390_gdbarch_init): Update.
6915         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6916         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6917         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6918         * mcore-tdep.c (mcore_gdbarch_init): Update.
6919         * m68k-tdep.c (m68k_gdbarch_init): Update.
6920         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6921         * ia64-tdep.c (ia64_gdbarch_init): Update.
6922         * h8300-tdep.c (h8300_gdbarch_init): Update.
6923         * frv-tdep.c (frv_gdbarch_init): Update.
6924         * cris-tdep.c (cris_gdbarch_init): Update.
6925         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6926
6927 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6928
6929         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6930         Assert that PC_REGNUM is valid.
6931         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6932
6933 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6934
6935         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6936         * gdbarch.h, gdbarch.c: Regenerate.
6937         * mn10300-tdep.c: Include "gdb_assert.h".
6938         (mn10300_read_fp): New function.
6939         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6940         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
6941         * ia64-tdep.c: Include "gdb_assert.h".
6942         (ia64_read_fp): New function.
6943         (ia64_gdbarch_init): Set deprecated_target_read_fp to
6944         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
6945         * regcache.c (generic_target_read_sp): Delete function.
6946         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6947         * inferior.h (generic_target_read_sp): Delete declaration.
6948         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6949         generic_target_read_sp.
6950         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6951         * sparc-tdep.c (sparc_gdbarch_init): Ditto
6952         * sh-tdep.c (sh_gdbarch_init): Ditto.
6953         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6954         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6955
6956 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6957
6958         * gdbarch.sh: Comment each field of startup_gdbarch.
6959         * gdbarch.h, gdbarch.c: Re-generate.
6960
6961 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6962
6963         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6964         * gdbarch.h, gdbarch.c: Re-generate.
6965         * regcache.c: Update comments on read_pc et.al.
6966         (generic_target_read_pc): Delete function.
6967         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6968         * inferior.h (generic_target_read_pc): Delete declaration.
6969         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6970         generic_target_read_pc.
6971         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6972         * sh-tdep.c (sh_gdbarch_init): Ditto.
6973         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6974         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6975
6976 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6977
6978         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6979         "index" with "special_local_sect".  Use strcmp instead of STREQ.
6980         Append period to coments.
6981
6982 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
6983
6984         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6985         (elfstab_offset_sections): Likewise.
6986         * gdb-stabs.h (stab_section_info): Likewise.
6987         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6988         * objfiles.c (objfile_relocate): Likewise.
6989         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6990         * remote.c (get_offsets): Likewise.
6991         (remote_cisco_objfile_relocate): Likewise.
6992         * somread.c (som_symfile_offsets): Likewise.
6993         * symfile.c (alloc_section_addr_info): New function.
6994         (build_section_addr_info_from_section_tab): Use it.
6995         (free_section_addr_info): Adjust.
6996         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6997         (syms_from_objfile): Allocate local_addr dynamically.
6998         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6999         dynamically.
7000         (add_symbol_file_command): Allocate sect_opts dynamically.
7001         (reread_symbols): Avoid use of SECT_OFF_MAX.
7002         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7003         (alloc_section_addr_info): Declare it.
7004         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7005         * win32-nat.c (solib_symbols_add): Allocate section_addrs
7006         dynamically.
7007         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7008
7009 2003-06-06  Andrew Cagney  <cagney@redhat.com>
7010
7011         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7012         (d10v_frame_unwind_cache): Do not set "return_pc".
7013
7014 2003-06-06  Michael Snyder  <msnyder@redhat.com>
7015
7016         * h8300-tdep.c: Make tidy (long lines).
7017
7018 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
7019
7020         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7021         to regcache_collect().
7022
7023 2003-06-05  J. Brobecker  <brobecker@gnat.com>
7024
7025         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7026         pc_in_sigtramp multiarch method.
7027         (hppa_hpux_som_init_abi): Use it.
7028         (hppa_hpux_elf_init_abi): Likewise.
7029         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7030         macro has been multiarched.
7031         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7032         macro here, as hppa64 isn't multiarched yet.
7033
7034 2003-06-05  Andrew Cagney  <cagney@redhat.com>
7035
7036         * Makefile.in (value_h): Add $(frame_h).
7037         * value.h: Include "frame.h".
7038         (struct value): Replace "frame_addr" with "frame_id".
7039         (VALUE_FRAME_ID): Replace VALUE_FRAME.
7040         * values.c (allocate_value): Use VALUE_FRAME_ID.
7041         (value_copy): Use VALUE_FRAME_ID.
7042         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7043         * valops.c (value_assign): Update.  Use frame_find_by_id.
7044
7045 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
7046
7047         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7048         in each pass.
7049
7050 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
7051
7052         * thread-db.c (check_event): For create/death event breakpoints,
7053         loop through all messages to ensure that we read the message
7054         corresponding to the breakpoint we are at.
7055
7056 2003-06-04  Michael Snyder  <msnyder@redhat.com>
7057
7058         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7059
7060 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
7061
7062         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7063         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7064         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7065         when handling .eh_frame sections.
7066
7067 2003-06-04  J. Brobecker  <brobecker@gnat.com>
7068
7069         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7070         prepare_to_proceed procedure instead of the hppa-specific one.
7071         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7072
7073 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
7074
7075         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7076         * config.in: Regenerated.
7077         * configure.in: Add test for syscall function and check for
7078         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7079         * configure: Regenerated.
7080         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7081         <sys/syscall.h>.
7082         (kill_lwp): New function that uses tkill syscall or
7083         uses kill, depending on whether threading model is nptl or not.
7084         All callers of kill() changed to use kill_lwp().
7085         (lin_lwp_wait): Make special check when WIFEXITED occurs to
7086         see if all threads have already exited in the nptl model.
7087         (stop_and_resume_callback): New callback function used by the
7088         lin_lwp_wait thread exit handling code.
7089         (stop_wait_callback): Check for threads already having exited and
7090         delete such threads fromt the lwp list when discovered.
7091         (stop_callback): Don't assert retcode of kill call.
7092
7093         Roland McGrath  <roland@redhat.com>
7094         * i386-linux-nat.c (ps_get_thread_area): New function needed by
7095         nptl libthread_db.
7096
7097 2003-06-03  Richard Henderson  <rth@redhat.com>
7098
7099         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7100         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7101         (alpha_sigtramp_frame_prev_register): Likewise.
7102         (alpha_heuristic_frame_prev_register): Likewise.
7103         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7104
7105         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7106         alpha-specific register id names.
7107         (alpha_mdebug_frame_unwind_cache): Likewise.
7108         (alpha_mdebug_frame_prev_register): Likewise.
7109
7110 2003-06-03  Richard Henderson  <rth@redhat.com>
7111
7112         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7113         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7114         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7115         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7116         unwind routines.
7117         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7118         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7119         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7120
7121         * alpha-linux-tdep.c: Remove unnecessary includes.
7122         * Makefile.in (alpha-linux-tdep.o): Update.
7123
7124 2003-06-03  Richard Henderson  <rth@redhat.com>
7125
7126         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7127         (alphabsd_fill_fpreg): Likewise.
7128
7129 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7130
7131         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
7132         references to struct frame_info fields by calls to the equivalent
7133         accessors. Necessary now that frame_info is opaque.
7134
7135 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7136
7137         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7138         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7139         structure, field no longer exists.
7140
7141 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7142
7143         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7144         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7145
7146 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7147
7148         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7149         references to struct frame_info fields by calls to the equivalent
7150         accessors. Necessary now that frame_info is opaque.
7151
7152 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7153
7154         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7155         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7156         structure, field no longer exists.
7157
7158 2003-06-03  Theodore A. Roth  <troth@openavr.org>
7159
7160         * remote.c (init_remote_state): Compute sizeof_g_packet by
7161         accumulation of the size of all registers instead of blindly using
7162         DEPRECATED_REGISTER_BYTES.
7163
7164 2003-06-03  Michael Snyder  <msnyder@redhat.com>
7165
7166         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7167         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7168         for h8300sx.
7169
7170 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7171
7172         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7173         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7174
7175 2003-06-03  Andrew Cagney  <cagney@redhat.com>
7176
7177         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7178         (sparc_convert_to_raw): Delete function.
7179         (sparc_gdbarch_init): Do not set register_convert_to_raw or
7180         register_convert_to_virtual.
7181
7182 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7183
7184         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7185         layer if not dealing with a statically-linked threaded program.
7186
7187 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
7188
7189         * solib.c (solib_open): Update comment to reflect actual search order.
7190
7191 2003-06-03  Andrew Cagney  <cagney@redhat.com>
7192
7193         * frame.c (get_frame_memory_signed): New function.
7194         (get_frame_memory, get_frame_memory_unsigned): New function.
7195         (get_frame_arch): New function.
7196         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7197         (get_frame_memory, get_frame_unsigned_memory): Declare.
7198         * d10v-tdep.c (d10v_frame_unwind_cache): Use
7199         get_frame_memory_unsigned and get_frame_arch.
7200         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7201
7202 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
7203
7204         * MAINTAINERS (write after approval): Add myself.
7205
7206 2003-06-03  Jim Blandy  <jimb@redhat.com>
7207
7208         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7209         elements of gregset_t are 64 bits each, but access registers
7210         are still 32 bits, so they're packed two per gregset_t
7211         element.  Unpack/pack them properly.
7212
7213 2003-06-02  David Carlton  <carlton@bactrian.org>
7214
7215         * linespec.c (find_methods): Break out code into
7216         add_matching_methods and add_constructors.
7217         (add_matching_methods): New.
7218         (add_constructors): Ditto.
7219
7220 2003-06-02  Andrew Cagney  <cagney@redhat.com>
7221
7222         * sparc-tdep.c (sparc_print_registers): Delete call to
7223         REGISTER_CONVERTIBLE.
7224         (sparc_gdbarch_init): Do not set register_convertible.
7225         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7226         * frv-tdep.c (frv_gdbarch_init): Ditto.
7227         * cris-tdep.c (cris_gdbarch_init): Ditto.
7228
7229 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
7230
7231         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7232         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7233         (syms_from_objfile): Ditto.
7234
7235 2003-06-03  Andreas Schwab  <schwab@suse.de>
7236
7237         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7238         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7239
7240 2003-06-02  Richard Henderson  <rth@redhat.com>
7241
7242         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7243         a member of all_reggroup.
7244
7245 2003-06-02  Richard Henderson  <rth@redhat.com>
7246
7247         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7248         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7249         (alpha_lds, alpha_sts): New.
7250         (alpha_convert_register_p): Change from _register_convertible.
7251         (alpha_register_to_value): Change from _convert_to_virtual;
7252         restructure and fail for type sizes other than 4 or 8.
7253         (alpha_value_to_register): Similarly.
7254         (alpha_extract_return_value): Use alpha_sts.
7255         (alpha_store_return_value): Use alpha_lds.
7256         (alpha_gdbarch_init): Update hooks.
7257
7258 2003-06-02  Richard Henderson  <rth@redhat.com>
7259
7260         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7261         regnum identifiers.
7262         (alpha_sigtramp_register_address): Likewise.
7263
7264 2003-06-02  Richard Henderson  <rth@redhat.com>
7265
7266         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7267         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7268         * alpha-tdep.h: Declare them.
7269
7270         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7271         Remove zerobuf.  Don't error on UNIQUE.
7272         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7273         (ALPHA_REGSET_UNIQUE): Provide default.
7274         (supply_gregset): Use alpha_supply_int_regs.
7275         (fill_gregset): Use alpha_fill_int_regs.
7276         (supply_fpregset): Use alpha_supply_fp_regs.
7277         (fill_fpregset): Use alpha_fill_fp_regs.
7278         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7279         (alphabsd_supply_reg): Use alpha_supply_int_regs.
7280         (alphabsd_fill_reg): Use alpha_fill_int_regs.
7281         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7282         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7283         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7284
7285 2003-06-02  Richard Henderson  <rth@redhat.com>
7286
7287         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7288
7289         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7290         (alpha_store_return_value): Likewise.
7291
7292 2003-06-02  David Carlton  <carlton@math.stanford.edu>
7293
7294         * block.c (contained_in): Add 'const' to arguments.
7295         (block_function): Ditto.
7296         * block.h: Update declarations for block_function and
7297         contained_in.
7298
7299 2003-06-02  David Carlton  <carlton@math.stanford.edu>
7300
7301         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7302         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7303         * p-valprint.c (pascal_val_print): Ditto.
7304         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7305
7306 2003-06-02  Richard Henderson  <rth@redhat.com>
7307
7308         * alpha-tdep.c (alpha_push_dummy_call): Use
7309         builtin_type_ieee_double_little instead of builtin_type_double.
7310
7311         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7312         sign-extension of 32-bit values.
7313         (alpha_store_return_value): Similarly.
7314
7315         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7316         (alpha_extract_return_value): Likewise.
7317         (alpha_store_return_value): Likewise.
7318
7319         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7320         (alpha_store_return_value): Error on IEEE Quad floats.
7321
7322         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7323         (alpha_extract_struct_value_address): Likewise.
7324         (alpha_store_return_value): Likewise.
7325         (alpha_store_struct_return): Remove.
7326         (alpha_gdbarch_init): Update hook registration to match.
7327
7328         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7329         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7330         macros where appropriate.
7331         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
7332         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7333
7334         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7335         for SP, GP; void_func_ptr for PC; non-language-specific types
7336         for all others.
7337         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7338
7339 2003-06-02  Richard Henderson  <rth@redhat.com>
7340
7341         * top.h (lim_at_start): Declare.
7342         * main.c (captured_main): Set it.
7343         * top.c (lim_at_start): Define.
7344         (command_loop): Use it instead of &environ.
7345         * event-top.c (command_handler): Likewise.
7346
7347 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
7348
7349         * mipsnbsd-tdep.c: Update copyright years.
7350         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7351
7352 2003-06-01  Richard Henderson  <rth@redhat.com>
7353
7354         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7355         (alpha-linux-tdep.o): Update dependencies.
7356         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7357         * alpha-mdebug-tdep.c: Remove unneeded includes.
7358
7359 2003-06-01  Richard Henderson  <rth@redhat.com>
7360
7361         * alpha-tdep.c (alpha_register_reggroup_p): New.
7362         (alpha_gdbarch_init): Register it.
7363
7364 2003-06-02  Andrew Cagney  <cagney@redhat.com>
7365
7366         * dwarfread.c: Eliminate "register"
7367         (decode_die_type): Eliminate assignment within "if".
7368         (struct_type, decode_array_element_type): Ditto.
7369         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7370         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7371         (decode_modified_type, completedieinfo): Ditto.
7372         * block.c: Eliminate "register".
7373         (blockvector_for_pc_sect): Eliminate assignment within "if".
7374         * cp-support.h (struct symbol): Opaque declaration.
7375         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7376
7377 2003-06-01  Richard Henderson  <rth@redhat.com>
7378
7379         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7380         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7381
7382 2003-06-01  Adam Fedor  <fedor@gnu.org>
7383
7384         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7385         * gdbarch.[ch]: Regenerate.
7386         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7387         (hppa_gdbarch_init): Set it in the gdbarch vector.
7388         * i386-tdep.c (i386_fetch_pointer_argument): New
7389         (i386_gdbarch_init): Set it into gdbarch.
7390         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7391         (rs6000_gdbarch_init): Set it in gdbarch.
7392         * sparc-tdep.c (sparc_fetch_pointer_argument): New
7393         (sparc_gdbarch_init): Set it in gdbarch.
7394
7395 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7396
7397         * defs.h (extract_address): Delete declaration.
7398         * findvar.c (extract_address): Delete function.
7399         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7400         extract_address with the inline equivalent,
7401         extract_unsigned_integer.
7402         (xstormy16_extract_struct_value_address): Ditto.
7403         (xstormy16_pointer_to_address): Ditto.
7404         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7405         * v850-tdep.c (v850_push_arguments): Ditto.
7406         (v850_extract_return_value): Ditto.
7407         (v850_extract_struct_value_address): Ditto.
7408         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7409         (sparcnbsd_get_longjmp_target_64): Ditto.
7410         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7411         (get_longjmp_target): Ditto.
7412         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7413         (sh64_extract_struct_value_address): Ditto.
7414         (sh_push_arguments): Ditto.
7415         (sh64_push_arguments): Ditto.
7416         * remote-vxsparc.c (vx_read_register): Ditto.
7417         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7418         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7419         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7420         * mipsv4-nat.c (get_longjmp_target): Ditto.
7421         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7422         * mips-nat.c (get_longjmp_target): Ditto.
7423         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7424         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7425         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7426         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7427         * irix5-nat.c (get_longjmp_target): Ditto.
7428         * irix4-nat.c (get_longjmp_target): Ditto.
7429         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7430         (ia64_push_arguments): Ditto.
7431         * hpux-thread.c (hpux_thread_store_registers): Ditto.
7432         * h8300-tdep.c (h8300_push_arguments): Ditto.
7433         (h8300_store_return_value): Ditto.
7434         (h8300_extract_struct_value_address): Ditto.
7435         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7436         (frv_push_arguments): Ditto.
7437         * avr-tdep.c (avr_pointer_to_address): Ditto.
7438         (avr_push_arguments): Ditto.
7439         * arm-tdep.c (arm_push_dummy_call): Ditto.
7440         (arm_get_longjmp_target): Ditto.
7441         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7442         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7443         (alpha_get_longjmp_target): Ditto.
7444
7445         * solib-irix.c (extract_mips_address): Inline extract_address,
7446         replacing it with extract_signed_integer.
7447         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7448         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7449         (first_link_map_member, open_symbol_file_object): Ditto.
7450         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7451         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7452         (LM_NEXT, LM_NAME): Ditto.
7453
7454 2003-06-01  Richard Henderson  <rth@redhat.com>
7455
7456         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7457         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7458         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7459         (alpha_cannot_store_register): Likewise.
7460         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7461         * alpha-nat.c (supply_gregset): Likewise.
7462         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7463
7464 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7465
7466         * infcall.c (call_function_by_hand): Update comment on
7467         DEPRECATED_DUMMY_WRITE_SP.
7468
7469         * mips-tdep.c (mips_gdbarch_init): Do not set
7470         deprecated_dummy_write_sp.
7471         (mips_eabi_push_dummy_call): Set the SP register.
7472         (mips_o64_push_dummy_call): Set the SP register.
7473         (mips_o32_push_dummy_call): Set the SP register.
7474         (mips_n32n64_push_dummy_call): Set the SP register.
7475
7476 2003-06-01  Richard Henderson  <rth@redhat.com>
7477
7478         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7479         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7480         (supply_gregset): Likewise.
7481         * alpha-tdep.c (alpha_store_return_value): Likewise.
7482         (alpha_get_longjmp_target): Likewise.
7483         (alpha_register_name): Constify array.
7484         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7485         deprecated_register_size, deprecated_register_bytes,
7486         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7487         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7488         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7489
7490 2003-06-01  Richard Henderson  <rth@redhat.com>
7491
7492         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
7493         from arg_reg_buffer to regcache to avoid double conversion.
7494
7495 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
7496
7497         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7498         SP_REGNUM.
7499         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7500         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7501
7502 2003-06-01  Richard Henderson  <rth@redhat.com>
7503
7504         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7505         (decode_frame_entry): Set it.  Skip FDE augmentation.
7506
7507 2003-06-01  Richard Henderson  <rth@redhat.com>
7508
7509         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7510         not overlapping PC_REGNUM.
7511
7512 2003-06-01  Richard Henderson  <rth@redhat.com>
7513
7514         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7515         alpha_push_arguments.  Don't dump argument register data to
7516         the target stack.  Fix float and 128-bit long double semantics.
7517         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
7518         (alpha_fix_call_dummy): Remove.
7519         (alpha_call_dummy_words): Remove.
7520         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7521
7522 2003-06-01  Richard Henderson  <rth@redhat.com>
7523
7524         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7525
7526 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7527
7528         * mips-tdep.c (is_mips16_addr): New function.
7529         (make_mips16_addr, unmake_mips16_addr): New functions.
7530         (pc_is_mips16, mips_fetch_instruction): Use.
7531         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7532         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7533         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7534         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7535         TARGET_MIPS.
7536         * config/mips/tm-mips.h: Update copyright.
7537         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7538         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7539         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7540         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7541         (TM_PRINT_INSN_MACH): Delete.
7542         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7543
7544         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7545         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7546         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7547         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7548         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
7549         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
7550         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
7551         mips*-*-riscos* and mips*-*-sysv* onto mips.
7552         * config/mips/mips64.mt: New file.
7553         * config/mips/mips.mt: New file.
7554         * config/mips/littlemips.mt: Delete file.
7555         * config/mips/decstation.mt: Delete file.
7556         * config/mips/vr4300el.mt: Delete file.
7557         * config/mips/vr5000el.mt: Delete file.
7558         * config/mips/vr5000.mt: Delete file.
7559         * config/mips/vr4100.mt: Delete file.
7560         * config/mips/vr4xxxel.mt: Delete file.
7561         * config/mips/vr4300.mt: Delete file.
7562         * config/mips/vr4xxx.mt: Delete file.
7563         * config/mips/bigmips.mt: Delete file.
7564         * config/mips/bigmips64.mt: Delete file.
7565         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7566         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7567         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7568         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7569         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7570         "tm-bigmips.h".
7571         * config/mips/tm-irix3.h: Ditto.
7572         * config/mips/tm-mipsv4.h: Ditto.
7573         * config/mips/tm-embed.h: Ditto.
7574         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7575         "tm-bigmips64.h".
7576         * config/mips/tm-vr5000el.h: Delete file.
7577         * config/mips/tm-tx39l.h: Delete file.
7578         * config/mips/tm-vr4300el.h: Delete file.
7579         * config/mips/tm-vr4xxxel.h: Delete file.
7580         * config/mips/tm-vr4300.h: Delete file.
7581         * config/mips/tm-vr4100.h: Delete file.
7582         * config/mips/tm-vr4xxx.h: Delete file.
7583         * config/mips/tm-vr5000.h: Delete file.
7584         * config/mips/tm-embedl64.h: Delete file.
7585         * config/mips/tm-embedl.h: Delete file.
7586         * config/mips/tm-embed64.h: Delete file.
7587         * config/mips/tm-bigmips64.h: Delete file.
7588         * config/mips/tm-bigmips.h: Delete file.
7589
7590 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
7591
7592         Fix gdb/1216.
7593         * shnbsd-nat.c: Include "sh-tdep.h".
7594
7595         From Richard Henderson  <rth@redhat.com>:
7596         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7597
7598 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7599
7600         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
7601         forward declaration.
7602         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7603         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7604         (mips_find_saved_regs): Use set_reg_offset.
7605         (mips_frame_init_saved_regs): Delete function.
7606         (mips_pop_frame): Call mips_find_saved_regs instead of
7607         DEPRECATED_FRAME_INIT_SAVED_REGS.
7608
7609 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7610
7611         * mips-tdep.c (mips_gdbarch_init): Do not set
7612         deprecated_max_register_raw_size, register_virtual_size, and
7613         deprecated_max_register_virtual_size.
7614
7615 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7616
7617         * i386-tdep.c: Include "dwarf2-frame.h".
7618         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7619         * Makefile.in (i386-tdep.o): Update dependencies.
7620
7621         * dwarf2-frame.c, dwarf2-frame.h: New files.
7622         * Makefile.in (SFILES): Add dwarf2-frame.c.
7623         (dwarf2_frame_h): Define.
7624         (COMMON_OBS): Add dwarf2-frame.o.
7625         (dwarf2-frame.o): Add dependencies.
7626
7627 2003-05-31  Andreas Jaeger  <aj@suse.de>
7628
7629         * x86-64-linux-nat.c: Fix comment.
7630
7631 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7632
7633         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7634         function signature.
7635
7636         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7637         have a sigcontext_addr handler.
7638         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7639         sigcontext_addr handler.
7640
7641 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7642
7643         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7644         (print_fp_register_row): Replace do_fp_register_row.
7645         (mips_print_fp_register): Add "file" and "frame" parameters.
7646         (mips_print_register): Add "file" and "frame" parameters.
7647         (mips_print_registers_info): Replace mips_do_registers_info.
7648         (mips_gdbarch_init): Set print_registers_info instead of
7649         deprecated_do_registers_info.
7650         (mips_read_fp_register_single): Add "frame" parameter.
7651         (mips_read_fp_register_double): Add "frame" parameter.
7652
7653 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7654
7655         * i386-tdep.c (i386_register_name): Check for MMX registers first.
7656         Fixes a bug where GDB would print the wrong register names for
7657         targets without SSE.
7658
7659         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7660         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7661         registers.
7662
7663         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7664         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7665         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7666         TDEP->sc_sp_offset.
7667
7668         From Michal Ludvig  <mludvig@suse.cz>:
7669         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7670         and `sc_num_regs'.
7671         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7672         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7673         I386_ST0_REGNUM): Move here from...
7674         * i386-tdep.c: ... here.
7675         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7676         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7677         registers if possible.
7678         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7679         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7680         Remove variables.
7681         (i386bsd_sc_reg_offset): New variable.
7682         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7683         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7684         TDEP->sc_sp_offset.
7685         (i386fbsd_sc_reg_offset): New variable.
7686         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7687         TDEP->sc_num_regs.
7688         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7689         variables.
7690         (i386fbsd4_sc_reg_offset): New variable.
7691         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7692         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7693         TDEP->sc_sp_offset.
7694         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7695         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7696         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7697         Remove variables.
7698         (i386nbsd_sc_reg_offset): New variable.
7699         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7700         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7701         TDEP->sc_sp_offset.
7702         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7703         Remove variables.
7704         (i386obsd_sc_reg_offset): New variable.
7705         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7706         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7707         TDEP->sc_sp_offset.
7708         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7709         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
7710         for frame pointer offset in `struct sigcontext'.
7711
7712 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7713
7714         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7715         architecture methods call_dummy_words, sizeof_call_dummy_words,
7716         push_return_address, store_struct_return, and fix_call_dummy.  Set
7717         push_dummy_call instead of deprecated_push_arguments.
7718         (mips_store_struct_return): Delete function.
7719         (mips_fix_call_dummy): Delete function.
7720         (mips_push_return_address): Delete function.
7721         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7722         RA_REGNUM and T9_REGNUM.
7723         (mips_n32n64_push_dummy_call): Ditto for
7724         mips_n32n64_push_arguments.
7725         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7726         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7727
7728 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7729
7730         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
7731         "dummy_addr" to "bp_addr".
7732         * infcall.c (call_function_by_hand): Pass "funaddr" to
7733         gdbarch_push_dummy_call.
7734         * gdbarch.h, gdbarch.c: Re-generate.
7735         * i386-tdep.c (i386_push_dummy_call): Update.
7736         * arm-tdep.c (arm_push_dummy_call): Update.
7737         * d10v-tdep.c (d10v_push_dummy_call): Update.
7738
7739 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7740
7741         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7742         variable declarations.
7743         (x86_64_register_number, x86_64_register_name): Remove prototypes.
7744         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7745         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7746         x86_64_init_frame_pc, x86_64_init_frame_pc,
7747         x86_64_function_has_prologue): Remove prototypes.
7748         (X86_64_NUM_GREGS): New define.
7749         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7750         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
7751         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7752         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7753         XMM1_REGNUM): Remove defines.
7754         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7755         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7756         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7757         X86_64_XMM1_REGNUM): New defines.
7758         (struct x86_64_register_info): Renamed from `struct
7759         register_info'.  Remove `size' member.
7760         (x86_64_register_info_table): Remove variable.
7761         (x86_64_register_info): New variable.
7762         (X86_64_NUM_REGS): New define.
7763         (X86_64_NUM_GREGS): Remove define.
7764         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7765         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7766         Remove variables.
7767         (x86_54_dwarf2_reg_to_regnum): Remove function.
7768         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7769         (x86_64_dwarf_reg_to_regnum): New function.
7770         (x86_64_register_name): Rewrite.
7771         (x86_64_register_raw_size): Remove function.
7772         (x86_64_register_byte_table): Remove variable.
7773         (x86_64_register_byte): Remove function.
7774         (x86_64_register_virtual_type): Remove function.
7775         (x86_64_register_type): New function.
7776         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7777         x86_64_register_convert_to_raw): Remove functions.
7778         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7779         (x86_64_use_struct_convention): Make static.  Adjust for renamed
7780         defines.
7781         (x86_64_frame_init_saved_regs): Remove function.
7782         (x86_64_push_arguments): Make static.  Change to accept a regcache
7783         as argument.
7784         (x86_64_store_return_value, x86_64_extract_return_value): Make
7785         static.  Rewrite based on i386 counterparts.
7786         (x86_64_push_dummy_call): New function.
7787         (X86_64_NUM_SAVED_REGS): New define.
7788         (x86_64_register_number): Remove function.
7789         (x86_64_store_struct_return): Remove function.
7790         (x86_64_frameless_function_invocation,
7791         x86_64_function_has_prologue): Remove functions.
7792         (PROLOG_BUFSIZE): Remove define.
7793         (struct x86_64_frame_cache): New structure.
7794         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7795         x86_64_frame_cache, x86_64_frame_this_id,
7796         x86_64_frame_prev_register, x86_64_frame_p,
7797         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7798         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7799         functions.
7800         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7801         variables.
7802         (x86_64_skip_prologue): Rewrite in terms of
7803         x86_64_analyze_prologue.
7804         (x86_64_frame_base_address): New function.
7805         (x86_64_frame_base): New variable.
7806         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7807         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
7808         set deprecated_fp_regnum, deprecated_register_size,
7809         deprecated_register_bytes, register_raw_size, register_byte,
7810         register_virtual_type, register_convertiable,
7811         register_convert_to_virtual, convert_to_raw,
7812         deprecated_get_saved_register, deprecated_target_read_fp,
7813         deprecated_push_arguments, deprecated_push_return_address,
7814         deprecated_pop_frame, deprecated_store_struct_return,
7815         deprecated_frame_init_saved_regs, deprecated_frame_chain,
7816         frameless_function_invocation, deprecated_frame_saved_pc,
7817         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7818         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7819         deprecated_init_frame_pc and virtual_frame_pointer.  Call
7820         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7821         and x86_64_frame_p.  Call frame_base_set_default to register
7822         x86_64_frame_base.
7823         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7824         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7825         (_initialize_x86_64_tdep): Remove function.
7826         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7827         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7828         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7829         define.
7830         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7831         (x86_64_linux_sigcontext_addr): Rewrite.
7832         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7833         x86_64_linux_frame_saved_pc): Remove functions.
7834         (x86_64_linux_pc_in_sigtramp): Renamed from
7835         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
7836         trampoline.
7837         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7838         Remove_functions.
7839         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
7840         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7841         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7842         (x86_64_regmap): Rename to regmap.
7843         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7844         x86_64_num_gregs.
7845         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
7846         x86_64_regmap.
7847         (x86_64_fxsave_offset): Remove function.
7848         (supply_fpregset): Simply call x86_64_supply_fxsave.
7849         (fill_fpregset): Simply call x86_64_fill_fxsave.
7850         (fetch_inferior_registers, store_inferior_registers): Avoid
7851         asignment in if-statement.
7852         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7853         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7854         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7855         (fetch_core_registers): Remove function.
7856         (linux_elf_core_fns): Remove.
7857         (offsetoff): Don't define.
7858         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7859         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7860         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7861         add core-regset.o.
7862         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7863         protection against multiple includes instead of NM_X86_64_h.  Add
7864         various comments.  Include "config/nm-linux.h".  Don't include
7865         <signal.h>.
7866         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7867         GET_THREAD_SIGNALS): Remove defines.
7868         (x86_64_register_u_addr, kernel_u_size,
7869         lin_thread_get_thread_signals): Remove prototypes.
7870         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7871         [HAVE_LINK_H]: Don't include "solib.h".
7872         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7873         * config/i386/tm-x86-64linux.h: Fix comments.
7874         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7875         x86-64-tdep.o): Update dependencies.
7876
7877 2003-05-30  Andrew Cagney  <cagney@redhat.com>
7878
7879         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7880         Change parameter type to a "struct regcache *".
7881
7882         * gdbarch.sh: Regardless of the multi-arch level, always define
7883         the macro when not already defined.
7884         * gdbarch.h, gdbarch.c: Re-generate.
7885
7886 2003-05-30  Richard Henderson  <rth@redhat.com>
7887
7888         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7889         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7890         (alpha_mdebug_frame_this_id): Likewise.
7891         (alpha_mdebug_frame_prev_register): Likewise.
7892         (alpha_mdebug_frame_base_address): Likewise.
7893         (alpha_mdebug_frame_locals_address): Likewise.
7894         (alpha_mdebug_frame_args_address): Likewise.
7895         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7896         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7897         (alpha_heuristic_frame_unwind_cache): Make static; add missing
7898         loop increment.
7899         (alpha_heuristic_frame_this_id): Make static.
7900         (alpha_heuristic_frame_prev_register): Likewise.
7901         (alpha_heuristic_frame_base_address): Likewise.
7902         * alpha-tdep.h: Update.
7903
7904 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
7905
7906         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7907         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7908         defenitions.
7909         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7910         * i386-tdep.c: Mark functions that are 64-bit safe as such.
7911         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7912         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7913         I386_ST0_REGNUM): New defines.
7914         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7915         codestream_get): Remove define.
7916         (codestream_next_addr, condestream_addr, condestream_buf,
7917         codestream_off, codestream_cnt): Remove variables.
7918         (codestream_fill, codestream_seek, codestream_read): Remove
7919         functions.
7920         (i386_follow_jump): Rewrite to avoid usage of removed codestream
7921         functionality.
7922         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7923         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7924         i386_frame_saved_pc, i386_saved_pc_after_call,
7925         i386_frame_num_args, i386_frame_init_saved_regs,
7926         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7927         i386_push_arguments): Remove functions.
7928         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7929         functionality.  Use i386_analyze_prologue instead of
7930         i386_get_frame_setup.
7931         (I386_NUM_SAVED_REGS): New define.
7932         (struct i386_frame_cache): New structure.
7933         (i386_alloc_frame_cache, i386_analyze_struct_return,
7934         i386_skip_probe, i386_analyze_frame_setup,
7935         i386_analyze_register_saves, i386_analyze_prologue,
7936         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7937         i386_frame_prev_register, i386_sigtramp_frame_cache,
7938         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7939         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7940         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7941         New functions.
7942         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7943         New variables.
7944         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7945         I386_EAX_REGNUM and I386_EDX_REGNUM.
7946         (i386_extract_return_value, i386_store_return_value): Use
7947         I386_ST0_REGNUM where appropriate.
7948         (i386_extract_struct_value_address): Rewrite to use extract_address.
7949         (i386_svr4_pc_in_sigtramp): Add comment.
7950         (i386_svr4_sigcontext_addr): Rewrite.
7951         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7952         TDEP->sc_sp_offset.
7953         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
7954         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7955         of new defines.  Set push_dummy_call, don't set
7956         deprecated_push_arguments, deprecated_push_return_address,
7957         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
7958         deprecated_frame_chain, deprecated_frame_saved_pc,
7959         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
7960         save_dummy_frame_tos, unwind_pc.  Call
7961         frame_unwind_append_predicate and frame_base_set_default.  Don't
7962         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
7963         Don't set frameless_function_invocation.  Don't set
7964         deprecated_register_bytes, deprecated_register_size,
7965         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7966         * i386-linux-tdep.c: Fix formatting in some comments.
7967         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7968         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7969         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7970         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7971         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7972         redundant parentheses.
7973         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7974         (i386_linux_sigcontext_addr): Use it.  Rewrite.
7975         (find_minsym_and_objfile): Change name of second argument.
7976         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
7977         changed.  Use frame_pc_unwind instead of
7978         DEPRECATED_SAVED_PC_AFTER_CALL.
7979         (i386_linux_init_abi): Don't set deprecated_register_bytes.
7980         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7981         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7982         unwinder.
7983         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7984         "dummy-frame.h".
7985         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7986         (_initialize_i386_cygwin_tdep): New prototype.
7987         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7988         deprecated_frame_chain_valid.
7989         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7990         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7991         Rely on the SVR4 defaults.
7992         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7993         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7994
7995 2003-05-30  Andrew Cagney  <cagney@redhat.com>
7996
7997         * infcall.c (call_function_by_hand): Always call
7998         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7999
8000 2003-05-30  Richard Henderson  <rth@redhat.com>
8001
8002         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8003         increment.
8004
8005 2003-05-29  Jim Blandy  <jimb@redhat.com>
8006
8007         Use gdbarch methods for solib stuff on PowerPC Linux.
8008         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8009         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8010         show through.
8011         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8012         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8013         giving the same effect as the #definitions above.
8014
8015 2003-05-29  Adam Fedor  <fedor@gnu.org>
8016
8017         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8018         (find_implementation_from_class): Replace it with the standard
8019         case i.e. do nothing.
8020
8021 2003-05-29  Richard Henderson  <rth@redhat.com>
8022
8023         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8024         (alpha_linux_sigtramp_offset): Use it.  Make static.
8025         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8026         update for new frame model.
8027         * alpha-mdebug-tdep.c: New file.
8028         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8029         (alpha_osf1_init_abi): Install it.
8030         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8031         (linked_proc_desc_table): Remove.
8032         (alpha_frame_past_sigtramp_frame): Remove.
8033         (alpha_dynamic_sigtramp_offset): Remove.
8034         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8035         (alpha_proc_desc_is_dyn_sigtramp): Remove.
8036         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8037         (push_sigtramp_desc): Remove.
8038         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8039         (alpha_cannot_store_register): Likewise.
8040         (alpha_sigcontext_addr): Remove.
8041         (alpha_find_saved_regs): Remove.
8042         (alpha_frame_init_saved_regs): Remove.
8043         (alpha_init_frame_pc_first): Remove.
8044         (read_next_frame_reg): Remove.
8045         (alpha_frame_saved_pc): Remove.
8046         (alpha_saved_pc_after_call): Remove.
8047         (temp_proc_desc, temp_saved_regs): Remove.
8048         (alpha_about_to_return): Remove.
8049         (cached_proc_desc): Remove.
8050         (alpha_frame_chain): Remove.
8051         (alpha_print_extra_frame_info): Remove.
8052         (alpha_init_extra_frame_info): Remove.
8053         (alpha_frame_locals_address): Remove.
8054         (alpha_frame_args_address): Remove.
8055         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8056         (alpha_push_dummy_frame): Remove.
8057         (alpha_pop_frame): Remove.
8058         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8059         (alpha_read_insn): New.
8060         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8061         for different insn encodings.
8062         (alpha_in_lenient_prologue): Remove.
8063         (struct alpha_sigtramp_unwind_cache): New.
8064         (alpha_sigtramp_frame_unwind_cache): New.
8065         (alpha_sigtramp_register_address): New.
8066         (alpha_sigtramp_frame_this_id): New.
8067         (alpha_sigtramp_frame_prev_register): New.
8068         (alpha_sigtramp_frame_unwind): New.
8069         (alpha_sigtramp_frame_p): New.
8070         (struct alpha_heuristic_unwind_cache): New.
8071         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8072         don't count nop insns that occur between functions.
8073         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8074         heuristic_proc_desc, but without the mdebug wrapping.
8075         (alpha_heuristic_frame_this_id): New.
8076         (alpha_heuristic_frame_prev_register): New.
8077         (alpha_heuristic_frame_unwind): New.
8078         (alpha_heuristic_frame_p): New.
8079         (alpha_heuristic_frame_base_address): New.
8080         (alpha_heuristic_frame_base): New.
8081         (alpha_unwind_dummy_id): New.
8082         (alpha_unwind_pc): New.
8083         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
8084         frame related deprecated initializations; install replacements.
8085         (alpha_dump_tdep): Remove.
8086         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8087         (alpha_read_insn, alpha_after_prologue,
8088         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8089         alpha_heuristic_frame_prev_register,
8090         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8091         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8092         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8093         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8094
8095 2003-05-29  Andrew Cagney  <cagney@redhat.com>
8096
8097         * gdb_assert.h (gdb_assert_fail): Provide different definitions
8098         dependant on the availability of ASSERT_FUNCTION.
8099         (ASSERT_FUNCTION): Do not define when there is no function name.
8100
8101 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
8102
8103         From Jimi X <jimix@watson.ibm.com>:
8104         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8105
8106 2003-05-28  Jim Blandy  <jimb@redhat.com>
8107
8108         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8109         argument to ptrace to int; the system headers should give it the
8110         right type, and pointers don't fit in ints on powerpc64-*-*.
8111
8112 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
8113
8114         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8115         DW_TAG_catch_block.
8116
8117 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
8118
8119         * stabsread.c (dbx_lookup_type): Make static.
8120         (read_type): Ditto.
8121         (add_undefined_type): Ditto.
8122         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8123         not export.
8124
8125 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
8126
8127         * hpread.c (hpread_has_name): Make static.
8128         (hpread_psymtab_to_symtab): Ditto.
8129         (file_exists): Ditto.
8130         (hpread_call_pxdb): Ditto.
8131         (hpread_pxdb_needed): Ditto.
8132         (hpread_quick_traverse): Ditto.
8133         (hpread_get_header): Ditto.
8134         (hpread_get_lntt): Ditto.
8135         (hpread_get_slt): Ditto.
8136         (class_of): Ditto.
8137
8138 2003-05-25  Andreas Schwab  <schwab@suse.de>
8139
8140         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8141         stack_align and deprecated_extra_stack_alignment_needed.
8142         (m68k_stack_align): Delete.
8143
8144         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8145         (m68k_register_virtual_size): Likewise.
8146         (altos_skip_prologue): Remove obsolete function.
8147         (isi_frame_num_args): Likewise.
8148         (news_frame_num_args): Likewise.
8149         (m68k_fix_call_dummy): Make static.
8150         (m68k_push_dummy_frame): Likewise.
8151         (m68k_pop_frame): Likewise.
8152         (m68k_skip_prologue): Likewise.
8153         (m68k_frame_init_saved_regs): Likewise.
8154         (m68k_saved_pc_after_call): Likewise.
8155         (m68k_get_longjmp_target): Make multi-arch.
8156         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8157         structure.  Register m68k_get_longjmp_target if enabled.
8158         * m68k-tdep.h (struct gdbarch_tdep): Define.
8159         * config/m68k/tm-m68k.h: Don't include "regcache.h".
8160
8161         * Makefile.in (config.status): Also depend on configure.tgt
8162         and configure.host.
8163         (m68klinux-tdep.o): Update dependencies.
8164         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8165         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8166         (M68K_LINUX_JB_PC): Define.
8167         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8168         and take additional parameter.
8169         (m68k_linux_sigtramp_saved_pc): Update.
8170         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
8171         m68k_linux_pc_in_sigtramp, in_plt_section,
8172         find_solib_trampoline_target.
8173         * config/m68k/tm-linux.h: Don't include any tm headers.
8174         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8175         (JB_ELEMENT_SIZE): Likewise.
8176         (JB_PC): Likewise.
8177         (GET_LONGJMP_TARGET): Likewise.
8178         (IN_SIGTRAMP): Likewise.
8179         (SVR4_SHARED_LIBS): Define this and include "solib.h".
8180
8181 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
8182
8183         * sparc-tdep.c (sparc32_do_push_arguments): New function.
8184         (sparc32_push_arguments): Re-implement by calling
8185         sparc32_do_push_arguments.
8186
8187 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
8188
8189         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8190         SPARC_O1_REGNUM): New defines.
8191         (sparc32_extract_return_value): Rewrite to operate on a regcache.
8192         (sparc32_store_return_value): New function.
8193         (sparc_extract_struct_value_address): Rewrite to operate on a
8194         regcache.
8195         (sparc_gdbarch_init): Don't set
8196         deprecated_extract_struct_value_address.  Set
8197         extract_struct_value_address instead. Don't set
8198         deprecated_extract_return_value and deprecated_store_return_value
8199         for 32-bit targets.  Set extract_return_value and
8200         store_return_value instead.
8201         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8202         DEPRECATED_EXTRACT_RETURN_VALUE,
8203         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8204         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8205         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8206         (sparc_store_return_value): Remove prototype.
8207         (sparc32_store_return_value): New prototype.
8208         (sparc32_extract_return_value, sparc_extract_struct_value_address):
8209         Adjust prototypes.
8210
8211 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
8212
8213         * sparcnbsd-tdep.c: Include "gdb_string.h".
8214
8215 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8216
8217         * p-valprint.c (pascal_val_print): Replace extract_address with
8218         the inline equivalent extract_unsigned_integer.
8219         * jv-valprint.c (java_value_print): Ditto.
8220         * ada-valprint.c (ada_val_print_1): Ditto.
8221         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8222
8223 2003-05-23  Theodore A. Roth  <troth@openavr.org>
8224
8225         * blockframe.c (frameless_look_for_prologue): Remove unused
8226         after_prologue variable.
8227
8228 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
8229
8230         * blockframe.c (get_pc_function_start): Rewrite to avoid
8231         asignments in if-statements.
8232
8233 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
8234
8235         Committed by Elena Zannoni  <ezannoni@redhat.com>.
8236         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8237         files, don't relocate absolute symbols (and do use mst_abs).
8238
8239 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8240
8241         * objc-lang.c: Include "gdb_assert.h".
8242         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8243         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8244         (gdb_check, gdb_check_fatal): Delete functions.
8245         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8246         gdb_assert.
8247         (parse_selector, parse_method, find_methods, find_imps): Ditto.
8248         * Makefile.in (objc-lang.o): Update dependencies.
8249
8250 2003-05-22  Ian Lance Taylor  <ian@airs.com>
8251
8252         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8253         with fprintf_filtered, not fprintf_unfiltered.
8254
8255 2003-05-22  Andrew Cagney  <cagney@redhat.com>
8256
8257         * stack.c (frame_info): Inline extract_address, replacing it with
8258         extract_unsigned_integer.
8259         * findvar.c (unsigned_pointer_to_address): Ditto.
8260         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8261         * dwarf2expr.c (dwarf2_read_address): Ditto.
8262         * frame.c (frame_pc_unwind): Update comment.
8263         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8264
8265 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
8266
8267         * infptrace.c (detach): Call print_sys_errmsg rather than
8268         perror_with_name to issue warning message when errno is non-zero
8269         after calling ptrace detach.
8270
8271 2003-05-21  J. Brobecker  <brobecker@gnat.com>
8272
8273         * config/pa/tm-hppa.h: Delete some unused macros. Move some
8274         macro definitions from here...
8275         * hppa-tdep.c: ...to there.
8276
8277 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
8278
8279         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8280         register_ptrace_addr().  Fix all callers.
8281
8282 2003-05-21  Andreas Schwab  <schwab@suse.de>
8283
8284         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8285         dependencies.
8286         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8287         end.
8288         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8289         (_initialize_m68k_linux_tdep): New function.
8290         (m68k_linux_frame_saved_pc): Make static.
8291         (m68k_linux_extract_return_value): Likewise.
8292         (m68k_linux_store_return_value): Likewise.
8293         (m68k_linux_extract_struct_value_address): Likewise.
8294         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8295         Remove.
8296         (DEPRECATED_STORE_RETURN_VALUE): Remove.
8297         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8298         (DEPRECATED_FRAME_SAVED_PC): Remove.
8299
8300 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
8301
8302         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8303         regset numbering rather than our own.
8304
8305 2003-05-19  David Carlton  <carlton@bactrian.org>
8306
8307         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8308
8309 2003-05-19  David Carlton  <carlton@bactrian.org>
8310
8311         Partial fix for PR c++/827.
8312         * cp-support.h: Include symtab.h.
8313         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8314         * cp-namespace.c: Update contributors.
8315         (cp_lookup_symbol_nonlocal): New.
8316         (lookup_namespace_scope, cp_lookup_symbol_namespace)
8317         (lookup_symbol_file): Ditto.
8318         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8319         * block.h: Declare block_scope, block_using, block_global_block.
8320         * block.c (block_scope): New.
8321         (block_using, block_global_block): Ditto.
8322         * Makefile.in (cp_support_h): Depend on symtab_h.
8323         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8324
8325 2003-05-19  David Carlton  <carlton@bactrian.org>
8326
8327         * language.h (struct language_defn): Add 'la_value_of_this'
8328         and 'la_lookup_symbol_nonlocal' members.
8329         * symtab.h: Declare basic_lookup_symbol_nonlocal,
8330         lookup_symbol_static, lookup_symbol_global,
8331         lookup_symbol_aux_block.
8332         * symtab.c (lookup_symbol_aux): Call language hooks to determine
8333         if we should search fields of this and how to do static/global
8334         lookup.
8335         (lookup_symbol_aux_block): Make extern.
8336         (basic_lookup_symbol_nonlocal): New.
8337         (lookup_symbol_static, lookup_symbol_global): Ditto.
8338         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8339         'la_lookup_symbol_nonlocal' members.
8340         * c-lang.c (c_language_defn, cplus_language_defn)
8341         (asm_language_defn, minimal_language_defn): Ditto.
8342         * jv-lang.c (java_language_defn): Ditto.
8343         * language.c (unknown_language_defn, auto_language_defn)
8344         (local_language_defn): Ditto.
8345         * m2-lang.c (m2_language_defn): Ditto.
8346         * objc-lang.c (objc_language_defn): Ditto.
8347         * scm-lang.c (scm_language_defn): Ditto.
8348         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8349         * p-lang.c (pascal_language_defn): Ditto for both.
8350         * Makefile.in (f-lang.o): Depend on value_h.
8351         (p-lang.o): Ditto.
8352
8353 2003-05-19  David Carlton  <carlton@bactrian.org>
8354
8355         * block.h: Declare block_static_block.
8356         * block.c (block_static_block): New.
8357         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8358         lookup_symbol_aux_local, calling block_static_block instead.
8359         (lookup_symbol_aux_local): Delete 'static_block' argument.
8360
8361 2003-05-19  David Carlton  <carlton@bactrian.org>
8362
8363         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8364
8365 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
8366
8367         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8368         register numbers mapping.
8369
8370 2003-05-18  Adam Fedor  <fedor@gnu.org>
8371
8372         * symtab.c (completion_list_objc_symbol): New function.
8373         (make_symbol_completion_list): Use it to add ObjC symbols
8374         when looking though the list.
8375         (language_search_unquoted_string): New function.
8376         (make_file_symbol_completion_list): Use it.
8377
8378 2003-05-18  Andreas Schwab  <schwab@suse.de>
8379
8380         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8381         dependencies.
8382         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8383         as m68k_linux_extract_return_value.
8384         (DEPRECATED_STORE_RETURN_VALUE): Define as
8385         m68k_linux_store_return_value.
8386         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8387         m68k_linux_extract_struct_value_address.
8388         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8389         get_next_frame, get_frame_base, get_frame_pc.
8390         (m68k_linux_frame_saved_pc): Use get_frame_base.
8391         (m68k_linux_extract_return_value): New function.
8392         (m68k_linux_store_return_value): New function.
8393         (m68k_linux_extract_struct_value_address): New function.
8394         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8395
8396         * c-exp.y (typebase): Remove duplicate occurence of
8397         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
8398         of lookup_signed_typename.
8399
8400 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
8401
8402         * dwarf2loc.c (find_location_expression): Change type of second
8403         argument to `size_t *'.
8404         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8405         for size variable.
8406
8407 2003-05-18  David Carlton  <carlton@bactrian.org>
8408
8409         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8410         'linkage_name'.  Add comment.
8411         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8412         'linkage_name'.
8413         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8414         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8415         (lookup_block_symbol): Ditto.
8416
8417 2003-05-16  Andrew Cagney  <cagney@redhat.com>
8418
8419         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8420         * gdbarch.h, gdbarch.c: Re-generate.
8421         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8422         * TODO (REGISTER_BYTES): Delete reference.
8423         * alpha-tdep.c (alpha_gdbarch_init): Update.
8424         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8425         * x86-64-tdep.c (x86_64_init_abi): Update.
8426         * vax-tdep.c (vax_gdbarch_init): Update.
8427         * v850-tdep.c (v850_gdbarch_init): Update.
8428         * sparc-tdep.c (sparc_gdbarch_init): Update.
8429         * sh-tdep.c (sh_gdbarch_init): Update.
8430         * s390-tdep.c (s390_gdbarch_init): Update.
8431         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8432         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8433         (ns32k_gdbarch_init_32382): Update.
8434         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8435         * mcore-tdep.c (mcore_gdbarch_init): Update.
8436         * m68k-tdep.c (m68k_gdbarch_init): Update.
8437         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8438         * ia64-tdep.c (ia64_gdbarch_init): Update.
8439         * i386-tdep.c (i386_gdbarch_init): Update.
8440         * i386-linux-tdep.c (i386_linux_init_abi): Update.
8441         * hppa-tdep.c (hppa_gdbarch_init): Update.
8442         * h8300-tdep.c (h8300_gdbarch_init): Update.
8443         * frv-tdep.c (frv_gdbarch_init): Update.
8444         * cris-tdep.c (cris_gdbarch_init): Update.
8445         * avr-tdep.c (avr_gdbarch_init): Update.
8446         * arm-tdep.c (arm_gdbarch_init): Update.
8447         * sparc-tdep.c (sparc_pop_frame): Update.
8448         * rs6000-tdep.c (rs6000_pop_frame): Update.
8449         * remote.c (init_remote_state): Update.
8450         (remote_prepare_to_store): Update.
8451         * remote-vx.c (vx_prepare_to_store): Update.
8452         * remote-sds.c (sds_fetch_registers): Update.
8453         (sds_prepare_to_store): Update.
8454         * remote-array.c: Update.
8455         * regcache.c (init_legacy_regcache_descr): Update.
8456         (init_regcache_descr): Update.
8457         * mips-tdep.c (mips_eabi_extract_return_value): Update.
8458         (mips_o64_extract_return_value): Update.
8459         * irix5-nat.c (fetch_core_registers): Update.
8460         * irix4-nat.c (fetch_core_registers): Update.
8461         * i386-tdep.h: Update.
8462         * hppa-tdep.c (pa_do_registers_info): Update.
8463         (pa_do_strcat_registers_info): Update.
8464         * cris-tdep.c (cris_register_bytes_ok): Update.
8465         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8466         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8467         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8468         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8469         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8470         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8471         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8472         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8473         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8474         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8475         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8476         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8477         (REGISTER_BYTES_OK): Update.
8478         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8479         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8480
8481 2003-05-16  Ian Lance Taylor  <ian@airs.com>
8482
8483         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8484         (vax_print_insn, print_insn_arg): Remove static functions.
8485         (vax_gdbarch_init): Call set_gdbarch_print_insn with
8486         print_insn_vax from opcodes library.
8487         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8488
8489 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8490
8491         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8492         * target.h (memory_breakpoint_from_pc): Delete declaration.
8493         * mem-break.c (memory_breakpoint_from_pc): Delete function.
8494         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8495         * monitor.c (monitor_insert_breakpoint): Use
8496         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8497         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8498         * gdbarch.h, gdbarch.c: Re-generate.
8499         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8500         (sparc_gdbarch_init): Set breakpoint_from_pc to
8501         sparc_breakpoint_from_pc.
8502         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8503         (BREAKPOINT_FROM_PC): Define.
8504         (sparc_breakpoint_from_pc): Declare.
8505         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8506         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8507         (BREAKPOINT_FROM_PC): Define.
8508         (BREAKPOINT): Delete macro.
8509         * target.h: Update comment.
8510         * s390-tdep.c (s390_gdbarch_init): Update comments.
8511         * remote.c: Update comments.
8512         * remote-mips.c: Update comments.
8513         * proc-api.c (write_with_trace): Do not check for a breakpoint.
8514         * mem-break.c: Update comment.
8515         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8516         (ia64_memory_insert_breakpoint): Update.
8517         * config/sparc/tm-sparc.h: Update comment.
8518         * config/pa/tm-hppa64.h: Update comment.
8519         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8520         (rs6000_breakpoint_from_pc): Update.
8521         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8522         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8523         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8524         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8525         (mips_breakpoint_from_pc): Update.
8526         (mips_dump_tdep): Update.
8527
8528         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8529         * minsyms.c (lookup_minimal_symbol): Inline
8530         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
8531
8532         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8533         * p-valprint.c (pascal_object_print_value_fields): Ditto.
8534         * p-lang.c (pascal_printstr): Ditto.
8535         * objc-lang.c (objc_printstr): Ditto.
8536         * m2-lang.c (m2_printstr): Ditto.
8537         * jv-valprint.c (java_print_value_fields): Ditto.
8538         * f-lang.c (f_printstr): Ditto.
8539         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
8540         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8541         for repeat_count_threshold.
8542         * Makefile.in (cp-valprint.o): Update dependencies.
8543
8544 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
8545
8546         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8547         (examine_prologue): Support looking through leaf functions, knowing
8548         they start with mov r2,r12.  Support skipping over indirect stores
8549         of the input registers.  Upon hitting a non-nop branch instruction
8550         or predicated instruction, bail out by setting lim_pc to the current
8551         pc value in the loop.  At the end, if the lim_pc value is still
8552         beyond our calculated value and we have trust_limit set,
8553         use the lim_pc value.
8554
8555 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8556
8557         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8558         generic_find_dummy_frame.
8559         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8560         (deprecated_generic_find_dummy_frame): Update.
8561         (deprecated_read_register_dummy): Update.
8562         * frame.c (deprecated_generic_get_saved_register): Update.
8563
8564 2003-05-15  Theodore A. Roth  <troth@openavr.org>
8565
8566         * avr-tdep.c (avr_breakpoint_from_pc): New function.
8567         (avr_gdbarch_init): Set breakpoint_from_pc method.
8568
8569 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8570
8571         * regcache.c (build_regcache): Set deprecated_register_valid
8572         directly.
8573         (deprecated_grub_regcache_for_register_valid): Delete function.
8574         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8575         declaration.
8576
8577 2003-05-15  David Carlton  <carlton@bactrian.org>
8578
8579         Committed by Elena Zannoni <ezannoni@redhat.com>
8580         * symtab.c (lookup_symbol_aux): Delete calls to
8581         lookup_symbol_aux_minsyms.
8582         (lookup_symbol_aux_minsyms): Comment out function and
8583         prototype. Delete lookup by mangled name.
8584
8585 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
8586
8587         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8588         correctly indicate an empty stack and ``stack_allocated'' to the
8589         indicate the number of elements initially allocated.
8590         (dwarf_expr_grow_stack): Simplify method for computing new
8591         stack size.  Don't loop infinitely if ``stack_len'' is zero.
8592         (execute_stack_op): Move ``ctx->in_reg'' initialization
8593         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8594         be used in conjuction with DW_OP_piece.  Revise error message
8595         accordingly.
8596
8597 2003-05-14  Theodore A. Roth  <troth@openavr.org>
8598
8599         * MAINTAINERS: Update my email address.
8600         * avr-tdep.c: Ditto.
8601
8602 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
8603
8604         * symtab.h (enum domain_enum): Rename from namespace_enum.
8605         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8606         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8607         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8608         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8609         TYPES_NAMESPACE, METHODS_NAMESPACE.
8610         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8611         (struct symbol, struct partial_symbol): Rename field
8612         'namespace_enum namespace' to 'domain_enum domain'.
8613         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8614         Delete old define kludge for namespace.
8615
8616         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8617         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8618         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8619         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8620         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8621         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8622         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8623         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8624         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8625         occurrences of the above.
8626
8627 2003-05-14  Ian Lance Taylor  <ian@airs.com>
8628
8629         * Makefile.in (install-only): Use $(SHELL) when running
8630         mkinstalldirs.
8631
8632 2003-05-13  Ian Lance Taylor  <ian@airs.com>
8633
8634         * MAINTAINERS (write after approval): Add myself.
8635
8636         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8637         second and third arguments.
8638         * ser-tcp.c (_initialize_ser_tcp): Likewise.
8639         * ser-unix.c (_initialize_ser_hardwire): Likewise.
8640
8641 2003-05-13  Andrew Cagney  <cagney@redhat.com>
8642
8643         * defs.h (store_address): Delete declaration.
8644         findvar.c (store_address): Delete function.
8645         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8646         store_unsigned_integer.
8647         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8648         * v850-tdep.c (v850_push_arguments): Ditto.
8649         * sparc-tdep.c (sparc_get_saved_register): Ditto.
8650         * sh-tdep.c (sh64_get_saved_register): Ditto.
8651         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8652         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8653         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8654         (mips_get_saved_register): Ditto.
8655         * ia64-tdep.c (ia64_get_saved_register): Ditto.
8656         (find_func_descr, ia64_push_arguments): Ditto.
8657         * i386-tdep.c (i386_push_arguments): Ditto.
8658         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8659         * frv-tdep.c (frv_push_arguments): Ditto.
8660         * frame.c (legacy_saved_regs_prev_register): Ditto.
8661         (deprecated_generic_get_saved_register): Ditto.
8662         * findvar.c (unsigned_address_to_pointer): Ditto.
8663         * dwarf2read.c (dwarf2_const_value): Ditto.
8664         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8665         * alpha-tdep.c (alpha_push_arguments): Ditto.
8666
8667 2003-05-12  J. Brobecker  <brobecker@gnat.com>
8668
8669         * NEWS: Mention that the hppa-hpux port has been partially
8670         multiarched (32bit ABIT only, so far).
8671
8672 2003-05-11  Andrew Cagney  <cagney@redhat.com>
8673
8674         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8675         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8676         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8677         sim/testsuite/sim/arm/misaligned2.ms, and
8678         sim/testsuite/sim/arm/misaligned3.ms.
8679         * disasm.h (struct ui_file): Add opaque struct declaration.
8680         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8681         * frame.h (struct ui_file): Ditto.
8682
8683 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
8684
8685         * value.h: Pretty print.
8686
8687 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
8688
8689         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8690
8691 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8692
8693         * regcache.h (max_register_size): Delete declaration.
8694         * regcache.c (max_register_size): Delete function.
8695         (struct regcache_descr): Delete field "max_register_size".
8696         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8697         registers fit in MAX_REGISTER_SIZE.
8698         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8699         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8700         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8701         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8702         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8703         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8704         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8705         * dve3900-rom.c, hppa-tdep.c: Ditto.
8706
8707 2003-05-08  David Carlton  <carlton@math.stanford.edu>
8708
8709         * valops.c (push_word): Fix typo.
8710
8711 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8712
8713         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8714         * gdbarch.h: Re-generate.
8715         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8716         (legacy_max_register_raw_size): Delete declaration.
8717         * regcache.c (legacy_max_register_raw_size): Delete function.
8718         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8719         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8720         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8721         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8722         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8723         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8724         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8725         * findvar.c, dwarf2cfi.c: Ditto.
8726
8727 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8728
8729         * mips-tdep.c (read_signed_register): New function, moved to here
8730         from "regcache.c".
8731         (read_signed_register_pid): Ditto.
8732         * regcache.c (read_signed_register_pid): Delete function, moved to
8733         "mips-tdep.c".
8734         (read_signed_register): Ditto.
8735         * regcache.h (read_signed_register): Delete declaration.
8736         (read_signed_register_pid): Delete declaration.
8737
8738 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8739
8740         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8741         * gdbarch.h: Re-generate.
8742         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8743         (legacy_max_register_virtual_size): Delete declaration.
8744         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8745         * d10v-tdep.c (d10v_print_registers_info): Ditto.
8746         * tracepoint.c (memrange_sortmerge): Ditto.
8747         * sparc-tdep.c (sparc_print_registers): Ditto.
8748         * regcache.c (legacy_max_register_virtual_size): Delete function.
8749
8750 2002-05-08  J. Brobecker  <brobecker@gnat.com>
8751
8752         * fork-child.c (escape_bang_in_quoted_argument): New function.
8753         (fork_inferior): Escape '!' characters in quoted arguments
8754         only when needed.
8755
8756 2003-05-08  J. Brobecker  <brobecker@gnat.com>
8757
8758         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8759         the language of the CU is not currently supported by GDB.
8760
8761 2003-05-08  J. Brobecker  <brobecker@gnat.com>
8762
8763         * defs.h (language): Add language_minimal enum value.
8764         * c-lang.c (minimal_language_defn): New language definition.
8765         (_initialize_c_language): Add the new minimal language to the list
8766         of languages known to GDB.
8767
8768 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
8769
8770         * frame.c (get_frame_type): Don't attempt to lazily initialize
8771         frame's unwinder for legacy frames.
8772
8773 2003-05-07  Andrew Cagney  <cagney@redhat.com>
8774
8775         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8776         and "regcache" parameters.
8777         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8778
8779 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
8780
8781         * dwarf2read.c (dwarf_decode_lines): Only use output of
8782         check_cu_functions() when calling record_line().  Do not update
8783         the current address.
8784
8785 2003-05-07  Andrew Cagney  <cagney@redhat.com>
8786
8787         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8788         code.
8789
8790 2003-05-07  Jim Blandy  <jimb@redhat.com>
8791
8792         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8793         'maint info symtabs' and 'maint info psymtabs'.
8794         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8795         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8796         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8797         Declarations updated.
8798         * maint.c (maintenance_list_command): Delete.
8799         (_initialize_maint_cmds): Update calls to add_cmd.
8800         * gdbcmd.h (maintenancelistlist): Delete declaration.
8801         * cli/cli-cmds.c (maintenancelistlist): Delete.
8802         (init_cmd_lists): Don't initialize it.
8803         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8804
8805 2003-05-07  Andrew Cagney  <cagney@redhat.com>
8806
8807         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8808         "regcache".
8809         (d10v_print_registers_info): Update.
8810         (d10v_dmap_register, d10v_imap_register): Delete functions.
8811         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8812         and "imap_register".
8813         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8814         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8815         * arch-utils.c (generic_remote_translate_xfer_address): Add
8816         "regcache" and "gdbarch" parameters.
8817         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8818         parameter.  Change class to multi-arch.
8819         * gdbarch.h, gdbarch.c: Re-generate.
8820         * remote.c (remote_xfer_memory): Use
8821         gdbarch_remote_translate_xfer_address.
8822
8823 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
8824
8825         * infrun.c (prev_pc): Move declaration ahead of proceed().
8826         (proceed): Refresh prev_pc value before resuming.
8827         (stop_stepping): Remove code to refresh prev_pc.
8828
8829 2003-05-06  Kris Warkentin <kewarken@qnx.com>
8830
8831         * nto-tdep.c: Removed stray comment.
8832
8833 2003-05-06  Kris Warkentin <kewarken@qnx.com>
8834
8835         * i386-nto-tdep.c: Fix old K&R function definitions.
8836         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8837         Also change add_show_from_set() call to add_setshow_cmd().
8838         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8839
8840 2003-05-05  Andrew Cagney  <cagney@redhat.com>
8841
8842         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8843         (fprint_dummy_frames): New function.
8844         (maintenance_print_dummy_frames): New function.
8845         (_initialize_dummy_frame): Add command "maint print dummy-frames".
8846         * frame.c (fprint_frame_id): Make global.
8847         * frame.h (fprint_frame_id): Declare.
8848         * Makefile.in (dummy-frame.o): Update dependencies.
8849
8850 2003-05-05  Andrew Cagney  <cagney@redhat.com>
8851
8852         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8853         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8854         SIZEOF_CALL_DUMMY_WORDS.
8855         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8856         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8857         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8858         CALL_DUMMY_BREAKPOINT_OFFSET.
8859         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8860         CALL_DUMMY_START_OFFSET.
8861         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8862         * gdbarch.h, gdbarch.c: Re-generate.
8863         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8864         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8865         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8866         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8867         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8868         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8869         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8870         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8871         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8872         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8873         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8874         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8875         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8876         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8877         * config/sparc/tm-sparc.h: Update.
8878
8879 2003-05-05  Kris Warkentin <kewarken@qnx.com>
8880
8881         * configure.tgt: Add i[3456]86-*-nto*.
8882         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
8883         * nto-tdep.c: New file. Neutrino target support routines.
8884         * nto-tdep.h: New file. Neutrino target header.
8885         * config/tm-qnxnto.h: New file.
8886         * config/i386/i386nto.mt: New file.
8887         * config/i386/tm-i386nto.h: New file.
8888
8889 2003-05-04  Andrew Cagney  <cagney@redhat.com>
8890
8891         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8892         (load_infrun_state): Ditto.
8893         (struct thread_info): Drop "prev_func_name" field.
8894         * thread.c (load_infrun_state): Update.
8895         (save_infrun_state): Update.
8896         * infrun.c (prev_func_name): Delete variable.
8897         (init_wait_for_inferior): Do not clear prev_func_name.
8898         (stop_stepping, keep_going, context_switch): Do not swap
8899         prev_func_name.
8900         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8901         instead of PC_IN_SIGTRAMP.
8902
8903 2003-05-04  Andrew Cagney  <cagney@redhat.com>
8904
8905         * sentinel-frame.c (sentinel_frame_prev_register): Replace
8906         REGISTER_BYTE with register_offset_hack.
8907         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8908         that REGISTER_BYTE is consistent with the regcache.
8909         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8910         * gdbarch.h, gdbarch.c: Regenerate.
8911
8912 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
8913
8914         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8915         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8916
8917         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8918
8919 2003-05-03  J. Brobecker  <brobecker@gnat.com>
8920
8921         From Thierry Schneider <tpschneider1@yahoo.com>
8922         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8923         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8924         (mi-cmd-symbol.o): Add rule.
8925
8926 2003-05-03  Andrew Cagney  <cagney@redhat.com>
8927
8928         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8929         comments noteing that it replaces the old FIX_CALL_DUMMY code.
8930         * gdbarch.h, gdbarch.c: Re-generate.
8931         * d10v-tdep.c (d10v_push_dummy_code): New function.
8932         (d10v_gdbarch_init): Set push_dummy_code.
8933         * infcall.c (legacy_push_dummy_code): New function.
8934         (generic_push_dummy_code): New function.
8935         (push_dummy_code): New function.
8936         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
8937         instead of dummy_addr, to push_dummy_call.  Move call to
8938         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8939         switch.
8940         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8941
8942 2003-05-03  Andrew Cagney  <cagney@redhat.com>
8943
8944         * disasm.h (print_insn): Declare.
8945         * disasm.c (init_gdb_disassemble_info): New function.
8946         (gdb_disassembly): Call init_gdb_disassemble_info.
8947         (gdb_print_insn): New function.
8948         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8949         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
8950         * mcore-tdep.c: Include "disasm.h"
8951         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8952         * d10v-tdep.c: Include "disasm.h".
8953         (display_trace): Call gdb_print_insn, instead of print_insn.
8954         (print_insn): Delete function.
8955         * printcmd.c: Include "disasm.h".
8956         (print_insn): Delete function.
8957         (print_formatted): Call gdb_print_insn, instead of print_insn.
8958         * Makefile.in (printcmd.o): Update dependencies.
8959         (mcore-tdep.o, d10v-tdep.o): Ditto.
8960
8961 2003-05-02  Andrew Cagney  <cagney@redhat.com>
8962
8963         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8964         PC_REGNUM, re-indent.
8965         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8966         PC_REGNUM isn't set.
8967
8968         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8969         * gdbarch.h, gdbarch.c: Re-generate.
8970         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8971         register_virtual_size, pc_regnum, or register_bytes.
8972         (D10V_PC_REGNUM): Rename _PC_REGNUM.
8973         (d10v_register_type): Use D10V_PC_REGNUM.
8974         (d10v_print_registers_info, d10v_read_pc): Ditto.
8975         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8976         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8977
8978 2003-05-02  David Carlton  <carlton@bactrian.org>
8979
8980         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8981         the name with mstrsave.
8982
8983 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
8984
8985         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8986         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8987         (host_charset_name, target_charset_name): New vars for use by
8988         set/show commands.
8989         (host_charset_enum, target_charset_enum): New enums for set/show
8990         commands.
8991         (set_charset_sfunc, set_host_charset_sfunc,
8992         set_target_charset_sfunc): New functions.
8993         (set_host_charset, set_target_charset): Make static.
8994         (list_charsets, set_host_charset_command,
8995         set_target_charset_command): Delete functions.
8996         (show_charset_command): Rewrite as....
8997         (show_charset): Hook this up with the set/show command mechanism.
8998         (_initialize_charset): Change names of charsets to match the
8999         set/show enums. Use host_charset_name and target_charset_name.
9000         Use set/show mechanism for charset, host-charset, target-charset
9001         commands. Do not make 'show host-charset' and 'show
9002         target-charset' be aliases of 'show charset'.
9003
9004         * charset.h (set_host_charset, set_target_charset): Don't export,
9005         they are not used outside the file.
9006
9007 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9008
9009         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9010         (gdb_disassembly): Make "di" non static, always initialize and
9011         cleanup.  Always use dis_asm_read_memory.
9012         (gdb_dis_asm_read_memory): Delete function.
9013
9014 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9015
9016         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9017         (d10v_gdbarch_init): Set frame_align instead of stack_align.
9018
9019 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9020
9021         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9022         "tm_print_insn_info".
9023         (TARGET_PRINT_INSN_INFO): Delete macro.
9024         (dis_asm_read_memory): Delete function declaration.
9025         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9026         (tm_print_insn_info): Delete variable definition.
9027         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9028         * gdbarch.h, gdbarch.c: Re-generate.
9029         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9030         "deprecated_tm_print_insn_info".
9031         * mcore-tdep.c (mcore_dump_insn): Ditto.
9032         * mips-tdep.c (mips_gdbarch_init): Ditto.
9033         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9034         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9035         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9036         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9037         instead of TARGET_PRINT_INSN_INFO, add comment.
9038         * s390-tdep.c (s390_get_frame_info): Instead of
9039         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9040         (s390_check_function_end, s390_is_sigreturn): Ditto.
9041         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9042         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9043         * disasm.c: Include "gdbcore.h".
9044         (_initialize_disasm): New function, initialize
9045         "deprecated_tm_print_insn_info".
9046         (deprecated_tm_print_insn_info): New variable.
9047         (dis_asm_read_memory): Moved from "corefile.c", made static.
9048         (dis_asm_print_address, dis_asm_memory_error): Ditto.
9049         * Makefile.in (disasm.o): Update dependencies.
9050
9051 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9052
9053         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9054
9055 2003-04-29  Adam Fedor  <fedor@gnu.org>
9056
9057         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9058         * infcall.c (find_function_addr): Make non-static.
9059         * infcall.h (find_function_addr): Declare.
9060         * Makefile.in (eval.o): Update dependencies.
9061
9062 2003-04-28  Adam Fedor  <fedor@gnu.org>
9063
9064         * symtab.c (symbol_find_demangled_name): Check for and demangle
9065         ObjC symbols.
9066         (symbol_init_demangled_name): Init for language_objc as well.
9067
9068 2003-04-28  Andrew Cagney  <cagney@redhat.com>
9069
9070         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9071         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9072         * gdbarch.h, gdbarch.c: Re-generate.
9073         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9074         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9075         * inferior.h (deprecated_read_fp): Rename read_fp.
9076         (generic_target_read_fp): Delete declaration.
9077         * regcache.c (generic_target_read_fp): Delete function.
9078         (deprecated_read_fp): Replace read_fp, use
9079         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9080         * d10v-tdep.c (d10v_read_fp): Delete function.
9081         (d10v_gdbarch_init): Do not set deprecated_read_fp.
9082
9083         * sparc-tdep.c (sparc_gdbarch_init): Do not set
9084         deprecated_target_read_fp to generic_target_read_fp.
9085         * sh-tdep.c (sh_gdbarch_init): Ditto.
9086         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9087         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9088         * frv-tdep.c (frv_gdbarch_init): Ditto.
9089
9090         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9091         deprecated_fp_regnum.
9092         * x86-64-tdep.c (x86_64_init_abi): Ditto.
9093         * vax-tdep.c (vax_gdbarch_init): Ditto.
9094         * v850-tdep.c (v850_gdbarch_init): Ditto.
9095         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9096         * sh-tdep.c (sh_gdbarch_init): Ditto.
9097         * s390-tdep.c (s390_gdbarch_init): Ditto.
9098         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9099         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9100         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9101         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9102         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9103         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9104         * i386-tdep.c (i386_gdbarch_init): Ditto.
9105         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9106         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9107         * frv-tdep.c (frv_gdbarch_init): Ditto.
9108         * cris-tdep.c (cris_gdbarch_init): Ditto.
9109         * avr-tdep.c (avr_gdbarch_init): Ditto.
9110         * arm-tdep.c (arm_gdbarch_init): Ditto.
9111         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9112
9113         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9114         * v850-tdep.c (v850_gdbarch_init): Ditto.
9115         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9116         * sh-tdep.c (sh_gdbarch_init): Ditto.
9117         * s390-tdep.c (s390_gdbarch_init): Ditto.
9118         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9119         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9120         * mips-tdep.c (mips_gdbarch_init): Ditto.
9121         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9122         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9123         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9124         * frv-tdep.c (frv_gdbarch_init): Ditto.
9125         * avr-tdep.c (avr_gdbarch_init): Ditto.
9126         * arm-tdep.c (arm_gdbarch_init): Ditto.
9127
9128         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9129         DEPRECATED_FP_REGNUM.
9130         (vax_push_dummy_frame, vax_pop_frame): Ditto.
9131         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9132         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9133         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9134         (sparc32_register_virtual_type): Ditto.
9135         * sh-tdep.c (sh64_frame_chain): Ditto.
9136         (sh64_get_saved_register, sh64_pop_frame): Ditto.
9137         (sh_nofp_frame_init_saved_regs): Ditto.
9138         (sh64_nofp_frame_init_saved_regs): Ditto.
9139         (sh_fp_frame_init_saved_regs): Ditto.
9140         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9141         * remote-e7000.c (fetch_regs_from_dump): Ditto.
9142         * procfs.c (procfs_fetch_registers): Ditto.
9143         (procfs_store_registers): Ditto.
9144         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9145         (store_inferior_registers, fetch_core_registers): Ditto.
9146         (fetch_kcore_registers, clear_regs): Ditto.
9147         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9148         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9149         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9150         * nlm/i386.c (do_status): Ditto.
9151         * mipsv4-nat.c (supply_gregset): Ditto.
9152         * mips-tdep.c: Ditto for comments.
9153         * mips-nat.c (fetch_inferior_registers): Ditto.
9154         (store_inferior_registers, fetch_core_registers): Ditto.
9155         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9156         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9157         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9158         (i386_do_pop_frame, i386_register_type): Ditto.
9159         * hppa-tdep.c (hppa_frame_chain): Ditto.
9160         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9161         (hppa_pop_frame, hppa_read_fp): Ditto.
9162         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9163         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9164         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9165         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9166         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9167         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9168         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9169         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9170         * blockframe.c: Ditto for comments.
9171         * arch-utils.h: Ditto for comments.
9172         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9173         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9174         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9175         * alpha-tdep.h: Ditto for comments.
9176         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9177         (alpha_cannot_store_register): Ditto.
9178         (alpha_push_dummy_frame): Ditto.
9179         * alpha-nat.c (supply_gregset): Ditto.
9180
9181         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9182         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9183         * config/sparc/tm-sparc.h: Update comment.
9184
9185         * hppa-tdep.c (hppa_init_extra_frame_info): Use
9186         deprecated_read_fp instead of TARGET_READ_FP.
9187         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9188         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9189         * sparc-tdep.c (sparc_init_extra_frame_info): Use
9190         deprecated_read_fp instead of read_fp.
9191         * s390-tdep.c (s390_push_arguments): Ditto.
9192         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9193         * frame.h: Ditto in comments.
9194         * frame.c (legacy_get_prev_frame): Ditto.
9195         * dummy-frame.c (dummy_frame_this_id): Ditto.
9196         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9197
9198 2003-04-28  Andrew Cagney  <cagney@redhat.com>
9199
9200         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9201         * gdbarch.h, gdbarch.c: Re-generate.
9202         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9203         * vax-tdep.c (_initialize_vax_tdep): Update.
9204         * v850-tdep.c (_initialize_v850_tdep): Update.
9205         * sparc-tdep.c (_initialize_sparc_tdep): Update.
9206         * s390-tdep.c (_initialize_s390_tdep): Update.
9207         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9208         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9209         * mips-tdep.c (_initialize_mips_tdep): Update.
9210         * mcore-tdep.c (_initialize_mcore_tdep): Update.
9211         * m68k-tdep.c (_initialize_m68k_tdep): Update.
9212         * ia64-tdep.c (_initialize_ia64_tdep): Update.
9213         * hppa-tdep.c (_initialize_hppa_tdep): Update.
9214         * h8300-tdep.c (_initialize_h8300_tdep): Update.
9215         * frv-tdep.c (_initialize_frv_tdep): Update.
9216         * cris-tdep.c (cris_delayed_get_disassembler): Update.
9217         (_initialize_cris_tdep): Update.
9218         * arch-utils.c (legacy_print_insn): Update.
9219         * alpha-tdep.c (_initialize_alpha_tdep): Update.
9220
9221 2003-04-26  Adam Fedor  <fedor@gnu.org>
9222
9223         * linespec.c (decode_objc): New function to decode ObjC calls
9224         (decode_line_1): Check for ObjC calls (using decode_objc)
9225         * Makefile (linespec.o): Update dependencies.
9226
9227 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
9228
9229         * breakpoint.h (struct breakpoint_ops): New.
9230         (struct breakpoint): Add ops member.
9231
9232         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9233         (mention): Use new breakpoint ops member.
9234         (set_raw_breakpoint): Initialize ops field to NULL.
9235         (print_exception_catchpoint, print_one_exception_catchpoint)
9236         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9237         (gnu_v3_exception_catchpoint_ops): New.
9238         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9239
9240 2003-04-25  Adam Fedor  <fedor@gnu.org>
9241
9242         * Makefile.in (COMMON_OBS): Add objc-lang.o
9243
9244 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9245
9246         * d10v-tdep.c (print_insn): Delete function.
9247         (display_trace): Use TARGET_PRINT_INSN.
9248         (_initialize_d10v_tdep): Do not set tm_print_insn.
9249         (d10v_gdbarch_init): Set print_insn.
9250
9251 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9252
9253         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9254         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9255         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9256         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9257         (nr_dmap_regs, a0_regnum): ... new functions.
9258         (d10v_print_registers_info): Use a0_regnum, use register_size.
9259         (d10v_register_byte): Delete function.
9260         (d10v_register_raw_size): Delete function.
9261         (d10v_register_type): Use a0_regnum.
9262         (d10v_print_registers_info): Use a0_regnum.
9263         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9264         (d10v_gdbarch_init): Do not set register_byte or
9265         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9266         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9267         extract_address.
9268         (trace_command): Use XCALLOC.
9269         (print_insn): Delete reference to tm_print_insn.
9270         (saved_regs_unwinder): Use store_unsigned_integer instead of
9271         store_address.
9272         * frame.h (FRAME_OBSTACK_CALLOC): Define
9273
9274 2003-04-25  David Carlton  <carlton@bactrian.org>
9275
9276         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9277
9278 2003-04-24  Adam Fedor  <fedor@gnu.org>
9279
9280         * objc-lang.c: Include "valprint.h"
9281         * Makefile.in (objc-lang.o): Update dependencies.
9282
9283 2003-04-24  Adam Fedor  <fedor@gnu.org>
9284
9285         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9286         architecture dependant compilation and mark as unimplemented
9287         (until they get put in the gdbarch vector).
9288
9289 2003-04-23  David Carlton  <carlton@bactrian.org>
9290
9291         * cp-support.c (cp_find_first_component): Accept 'operator' in
9292         more locations.
9293
9294 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9295
9296         * infcall.c (call_function_by_hand): Eliminate redundant
9297         indentation.  Move "saved_async" and "old_cleanups" to where they
9298         are needed.
9299
9300 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9301
9302         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9303         and "buffer".  Move the "name" code to where it is needed.
9304
9305 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9306
9307         * infcall.c (call_function_by_hand): Move variables "start_sp",
9308         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9309         code to ON_STACK switch branch.
9310
9311 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9312
9313         * infcall.c (call_function_by_hand): Make declaration of "i",
9314         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
9315         lint.
9316
9317 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9318
9319         * infcall.c (call_function_by_hand): Delete variable
9320         "n_method_args".  Localize "param_type"'s declaration to the loop
9321         that it is used.  Reinstate code assigning to said variable -
9322         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
9323         Rationalize code using "param_type".
9324
9325 2003-04-22  Andrew Cagney  <cagney@redhat.com>
9326
9327         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9328         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
9329         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
9330         to DEPRECATED_PUSH_RETURN_ADDRESS.
9331
9332 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
9333
9334         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9335         on the DWARF2 register number prior to fetching a register.
9336
9337 2003-04-22  J. Brobecker  <brobecker@gnat.com>
9338
9339         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9340         Update all the tests using SOFT_FLOAT considering the fact that
9341         this macro was always set to 0.
9342         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9343         considering the fact that this macro was always set to 0.
9344         * hppa-tdep.h (hppa_store_return_value): Likewise.
9345         (hppa_extract_return_value): Likewise.
9346
9347 2003-04-22  J. Brobecker  <brobecker@gnat.com>
9348
9349         * config/pa/tm-hppa.h: Remove obsolete code, was used by
9350         the hppa-pro target only.
9351
9352 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9353
9354         Ongoing multi-arch conversion effort for HP/UX:
9355         * config/pa/tm-hppa.h: Move all macro that are no longer
9356         defined now that GDB_MULTI_ARCH is now set to 1 from here...
9357         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9358
9359 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9360
9361         * config/pa/tm-hppa.h: Obsolete a section that was only used
9362         for hppa-pro.
9363
9364 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9365
9366         Ongoing multi-arch conversion for HP/UX.
9367         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9368         if already defined (allows hppa64 to stay non-multiarched for now).
9369         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9370
9371 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9372
9373         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9374
9375 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9376
9377         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9378         "i386_num_mmx_regs".
9379
9380 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9381
9382         * infcall.c: New file.
9383         * infcall.h: New file.
9384         * valarith.c: Include "infcall.h".
9385         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9386         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9387         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9388         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9389         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9390         (SFILES): Add "infcall.c"
9391         (COMMON_OBS): Add "infcall.o".
9392         (infcall.o): Specify dependencies.
9393         * value.h (call_function_by_hand): Delete declaration.
9394         * inferior.h (run_stack_dummy): Delete declaration.
9395         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9396         (run_stack_dummy): Move to "infcall.c", merged into
9397         call_function_by_hand.
9398         * valops.c (call_function_by_hand): Moved to "infcall.c".
9399         (find_function_addr, value_arg_coerce): Ditto.
9400         (unwindonsignal_p, coerce_float_to_double): Ditto.
9401         (_initialize_valops): Move "set/show coerce-float-to-double", and
9402         "set/show unwindonsignal" commands to "infcall.c".
9403         * v850-tdep.c, target.h: Update comments.
9404         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9405         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9406         (sh64_init_extra_frame_info): Update comments.
9407         * mn10300-tdep.c: Update comments.
9408         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9409         * config/sparc/tm-sparc.h: Update comments.
9410         * breakpoint.h: Update comments.
9411         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9412         * arm-tdep.c: Update comment.
9413
9414 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
9415
9416         * i386-tdep.c (i386_num_register_names): New variable.
9417         (i386_num_mmx_regs): Renamed from mmx_num_regs.
9418         (MM0_REGNUM): Remove redundant parentheses in define.
9419         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9420         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9421         i386_mxcsr_regnum_p): Remove redundant parentheses.
9422         (i386_register_name): Use i386_num_register_names.
9423
9424         * i386-tdep.c (i386_extract_return_value,
9425         i386_store_return_value): Correct check for availability of
9426         floating-point registers.
9427
9428         * i386-tdep.c (i386_frame_num_args): Remove function.
9429         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9430
9431         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9432         mmx_regnum_to_fp_regnum.  Adjust all callers.
9433
9434         * i386-tdep.c (i386_get_longjmp_target): Use
9435         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9436         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
9437         extract_address.
9438
9439 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
9440
9441         * core-regset.c: Update comments to reflect reality.  Re-order
9442         includes.
9443         (fetch_core_registers): Use switch instead of if.  Remove
9444         redundant prototype.
9445
9446 2003-04-18  Jim Blandy  <jimb@redhat.com>
9447
9448         * s390-tdep.c (s390_frame_align): New function.
9449         (s390_gdbarch_init): Register it with the gdbarch object.
9450
9451 2003-04-17  Richard Henderson  <rth@redhat.com>
9452
9453         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9454
9455 2003-04-17  Michael Snyder  <msnyder@redhat.com>
9456             Karen Bennet  <bennet@redhat.com>
9457
9458         Committed by Elena Zannoni  <ezannoni@redhat.com>
9459         * gdb_gcore.sh: New script to create a core dump of a process.
9460
9461 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
9462
9463         * values.c (value_being_returned): Don't fetch the return
9464         value if the return type is void.
9465
9466 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
9467
9468         * thread-db.c: Reindented.
9469
9470 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
9471
9472         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9473         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9474         as types.
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
9501
9502         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9503         the size of ``long double'' to 16, instead of 8.
9504
9505 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
9506
9507         * i386-linux-nat.c: Add some whitespace to make things more
9508         readable.
9509         (fetch_register, store_register, fetch_inferior_registers,
9510         store_inferior_registers): Get rid of assignment in if-statement.
9511         (store_register): Fix typo in error message.
9512
9513 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9514
9515         * utils.c (xmmalloc): Always allocate something, matches
9516         libiberty/xmalloc's semantics.
9517         (xmrealloc, xmcalloc): Ditto.
9518
9519 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9520
9521         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9522         update comments.
9523         (get_frame_type): Initialize unwind and type when needed.
9524         (get_frame_id, frame_register_unwind): Ditto.
9525
9526 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9527
9528         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9529         obsolete.
9530         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9531         * sparcl-stub.c: Obsolete file.
9532         * config/sparc/tm-sparclet.h: Obsolete file.
9533         * sparclet-stub.c: Obsolete file.
9534         * sparclet-rom.c: Obsolete file.
9535         * sparcl-tdep.c: Obsolete file.
9536         * config/sparc/tm-sparclite.h: Obsolete file.
9537         * config/sparc/sparclite.mt: Obsolete file.
9538         * config/sparc/sparclet.mt: Obsolete file.
9539         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9540         sparc86x-*-* obsolete.
9541
9542 2003-04-15  David Carlton  <carlton@math.stanford.edu>
9543
9544         * Makefile.in (SFILES): Add cp-namespace.c.
9545         (COMMON_OBS): Add cp-namespace.o.
9546         (block.o): Depend on gdb_obstack_h and cp_support_h.
9547         (buildsym.o): Depend on cp_support_h.
9548         (cp-namespace.o): New.
9549         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9550         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9551         (dwarf2read.o): Depend on cp_support_h.
9552         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9553         * dwarf2read.c (process_die): Set processing_has_namespace_info,
9554         processing_current_namespace.
9555         (read_namespace): Update processing_current_namespace; check for
9556         anonymous namespaces.
9557         (dwarf2_name): New function.
9558         (dwarf2_extension): Ditto.
9559         * cp-support.h: Update copyright, contributors.
9560         Add inclusion guards.
9561         Add opaque declaration for structs obstack, block, symbol.
9562         (struct using_direct): New struct.
9563         Add declarations for cp_find_first_component,
9564         cp_entire_prefix_len, processing_has_namespace_info,
9565         processing_current_namespace, cp_is_anonymous,
9566         cp_add_using_directive, cp_initialize_namespace,
9567         cp_finalize_namespace, cp_set_block_scope,
9568         cp_scan_for_anonymous_namespaces.
9569         * cp-namespace.c: New file.
9570         * cp-support.c: Update copyright.
9571         Include ctype.h, gdb_assert.h, gdbcmd.h.
9572         New variable maint_cplus_cmd_list.
9573         (cp_find_first_component): New function.
9574         (cp_entire_prefix_len, maint_cplus_command)
9575         (first_component_command, _initialize_cp_support): Ditto.
9576         * buildsym.c: Include cp-support.h.
9577         New variable using_list.
9578         (add_symbol_to_list): Check for anonymous namespaces.
9579         (finish_block): Set block's scope.
9580         (start_symtab): Initialize C++ namespace support.
9581         (end_symtab): Finalize C++ namespace support.
9582         * block.h: Add opaque declarations for structs
9583         block_namespace_info, using_direct, and obstack.
9584         Add declarations for block_set_scope and block_set_using.
9585         (struct block): Add 'language_specific' member.
9586         (BLOCK_NAMESPACE): New macro.
9587         * block.c: Include gdb_obstack.h and cp-support.h.
9588         (struct block_namespace_info): New struct.
9589         (block_set_scope): New function.
9590         (block_set_using, block_initialize_namespace): Ditto.
9591
9592 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
9593
9594         * solib-svr4.c (svr4_have_link_map_offsets): New function.
9595         (locate_base): Return early if there aren't any link map offsets.
9596         (svr4_solib_create_inferior_hook): Warn if shared library support
9597         is unavailable.
9598
9599 2003-04-14  David Carlton  <carlton@math.stanford.edu>
9600
9601         * symtab.c (symbol_set_names): Add prefix when storing Java names
9602         in hash table.  Fix for PR java/1039.
9603
9604 2003-04-14  David Carlton  <carlton@math.stanford.edu>
9605
9606         * symtab.c (symbol_set_names): Rename 'name' arg to
9607         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9608         * symtab.h: Change 'name' argument in declaration of
9609         symbol_set_names to 'linkage_name'.
9610         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9611
9612 2003-04-14  Andrew Cagney  <cagney@redhat.com>
9613
9614         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9615         return the fully sign-extended register value.
9616         (get_frame_pointer): Ditto.
9617         (mips_pop_frame): Initialize "proc_desc" after checking for a
9618         dummy frame.
9619
9620 2003-04-14  Andrew Cagney  <cagney@redhat.com>
9621
9622         * mips-tdep.c (mips_push_dummy_frame): Delete function.
9623         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9624         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9625         (mips_push_register): Delete function.
9626         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9627         PUSH_FP_REGNUM.
9628
9629 2003-04-14  Jim Blandy  <jimb@redhat.com>
9630
9631         * symmisc.c: #include "gdb_regex.h".
9632         (maintenance_list_symtabs, maintenance_list_psymtabs): New
9633         functions.
9634         * maint.c (maintenance_list_command): New function.
9635         (_initialize_maint_cmds): Register the above as commands.
9636         * symtab.h (maintenance_list_symtabs,
9637         maintenance_list_psymtabs): New declarations.
9638         * cli/cli-cmds.c (maintenancelistlist): New variable.
9639         (init_cmd_lists): Initialize it.
9640         * cli/cli-cmds.h (maintenancelistlist): New declaration.
9641         * gdbcmd.h (maintenancelistlist): New declaration.
9642         * Makefile.in (symmisc.o): Update dependencies.
9643
9644 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
9645
9646         * s390-nat.c: Include asm/types.h for addr_t.
9647
9648 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
9649
9650         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9651         actually incoming type.
9652
9653 2003-04-13  Andrew Cagney  <cagney@redhat.com>
9654
9655         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9656         get_next_frame and get_frame_saved_regs.
9657
9658 2003-04-13  Andrew Cagney  <cagney@redhat.com>
9659
9660         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9661         of gdbarch_num_regs.
9662
9663 2003-04-13  Andrew Cagney  <cagney@redhat.com>
9664
9665         * frame.h: Mention what replaced what in "struct frame_info".
9666         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9667         deprecated_update_frame_base_hack and
9668         deprecated_update_frame_pc_hack.
9669         * hppa-tdep.c: Ditto.
9670
9671 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
9672
9673         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9674         to read_reg and update its comment.  Remove regnum member.
9675         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9676         Don't call read_reg when setting in_reg.  Call read_reg to get
9677         the frame base if it's in a register.  Return the register number
9678         on the stack instead of in the context.  Remove extra arguments
9679         to read_reg.
9680         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9681         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
9682         the register number on the expression stack.
9683         (needs_frame_read_reg): Remove extra arguments.
9684
9685 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
9686
9687         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9688         made non-static.
9689         (execute_stack_op): All callers updated.
9690         * dwarf2expr.h: Add prototype for dwarf2_read_address.
9691         * dwarf2loc.c (find_location_expression): New function.
9692         (dwarf_expr_frame_base): Call it.
9693         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9694         (dwarf2_tracepoint_var_ref): New function, broken out from
9695         locexpr_tracepoint_var_ref.
9696         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9697         Make static.
9698         (loclist_read_variable, loclist_read_needs_frame): New functions.
9699         (loclist_describe_location, loclist_tracepoint_var_ref): New
9700         functions.
9701         (dwarf2_loclist_funcs): New struct location_funcs.
9702         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9703         (struct dwarf2_locexpr_baton): Add comments.
9704         (dwarf2_loclist_funcs): New extern.
9705         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9706         base_address and base_known.
9707         (dwarf_loc_buffer): New variable.
9708         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9709         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9710         (dwarf2_has_info): Initialize dwarf_loc_offset.
9711         (dwarf2_build_psymtabs): Read in .debug_loc.
9712         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9713         DWARF_LOC_SIZE.
9714         (psymtab_to_symtab_1): Likewise.  Move base address calculation
9715         here, from...
9716         (dwarf2_get_pc_bounds): ... here.  Use the base address from
9717         cu_header.
9718         (dwarf2_symbol_mark_computed): Handle location lists.
9719
9720 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
9721
9722         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9723         if the linkage name demangled successfully.
9724
9725 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
9726
9727         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9728         disassmbly_flavour): Removed.
9729
9730         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9731
9732 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
9733
9734         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9735
9736 2003-04-12  Andrew Cagney  <cagney@redhat.com>
9737
9738         * frame.h (struct frame_info): Move definition from here ...
9739         * frame.c (struct frame_info): ... to here.
9740
9741 2003-04-12  Andrew Cagney  <cagney@redhat.com>
9742
9743         * gdbthread.h (save_infrun_state): Delete parameter
9744         "prev_func_start".
9745         (struct thread_info): Delete field "prev_func_start".
9746         (load_infrun_state): Ditto.
9747         * thread.c (load_infrun_state, save_infrun_state): Update.
9748         * infrun.c (prev_func_start): Delete variable.
9749         (context_switch, init_wait_for_inferior): Update.
9750         (stop_stepping, keep_going): Update.
9751
9752 2003-04-12  Andrew Cagney  <cagney@redhat.com>
9753
9754         * gdbarch.sh: Add missing opaque declarations.
9755         * gdbarch.h: Regnerate.
9756         * symtab.h: Add missing opaque declarations.
9757         * value.h, target.h, symfile.h, stabsread.h: Ditto.
9758         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9759         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9760         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9761         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9762         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9763         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9764         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9765         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9766         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9767         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9768         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9769         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9770
9771 2003-04-11  Andrew Cagney  <cagney@redhat.com>
9772
9773         * frame.c (get_frame_id): Return this frame's "id".
9774         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9775         function start.
9776         (legacy_saved_regs_this_id): Replace function body with
9777         internal-error.
9778         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9779         FRAME_OBSTACK_ZALLOC.
9780         (create_new_frame): Mark the frame ID as valid.
9781
9782 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
9783
9784         * Makefile.in (libbfd_h): Added missing setting.
9785         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9786         according to the selected ABI.
9787
9788 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
9789
9790         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9791
9792 2003-04-11  Andrew Cagney  <cagney@redhat.com>
9793
9794         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9795         SAVED_PC_AFTER_CALL.
9796         * gdbarch.h, gdbarch.c: Regenerate.
9797         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9798         * x86-64-tdep.c (x86_64_init_abi): Update.
9799         * vax-tdep.c (vax_gdbarch_init): Update.
9800         * v850-tdep.c (v850_gdbarch_init): Update.
9801         * sparc-tdep.c (sparc_gdbarch_init): Update.
9802         * sh-tdep.c (sh_gdbarch_init): Update.
9803         * s390-tdep.c (s390_gdbarch_init): Update.
9804         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9805         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9806         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9807         * mips-tdep.c (mips_gdbarch_init): Update.
9808         * mcore-tdep.c (mcore_gdbarch_init): Update.
9809         * m68k-tdep.c (m68k_gdbarch_init): Update.
9810         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9811         * ia64-tdep.c (ia64_gdbarch_init): Update.
9812         (ia64_saved_pc_after_call): Update declaration.
9813         * i386ly-tdep.c (i386lynx_init_abi): Update.
9814         * i386-tdep.c (i386_gdbarch_init): Update.
9815         * hppa-tdep.c (hppa_gdbarch_init): Update.
9816         * h8300-tdep.c (h8300_gdbarch_init): Update.
9817         * frv-tdep.c (frv_gdbarch_init): Update.
9818         * cris-tdep.c (cris_gdbarch_init): Update.
9819         * avr-tdep.c (avr_gdbarch_init): Update.
9820         * arm-tdep.c (arm_gdbarch_init): Update.
9821         * alpha-tdep.c (alpha_gdbarch_init): Update.
9822         * ns32knbsd-nat.c (frame_num_args): Update.
9823         * ns32k-tdep.c (umax_frame_num_args): Update.
9824         * mips-tdep.c (mips_init_frame_pc_first): Update.
9825         * infrun.c (step_over_function): Update.
9826         * i386-linux-tdep.c (skip_hurd_resolver): Update.
9827         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9828         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9829         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9830         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9831         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9832         * arm-linux-tdep.c (skip_hurd_resolver): Update.
9833         * arch-utils.c (init_frame_pc_default): Update.
9834         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9835         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9836         declaration.
9837
9838 2003-04-11  Andrew Cagney  <cagney@redhat.com>
9839
9840         * i387-tdep.c: Update copyright.
9841         (i387_to_double): Delete function.
9842         (double_to_i387): Delete function.
9843
9844 2003-04-10  Andrew Cagney  <cagney@redhat.com>
9845
9846         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9847         frame's function's address.  Simplify.
9848         (d10v_frame_unwind_cache): Check that the frame's function is
9849         non-zero.
9850
9851 2003-04-10  Jim Blandy  <jimb@redhat.com>
9852
9853         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9854         call to set_gdbarch_deprecated_push_arguments.
9855
9856 2003-04-10  Andrew Cagney  <cagney@redhat.com>
9857
9858         * frame.c (fprint_frame_id): New function.
9859         (fprint_frame_type, fprint_frame): New function.
9860         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9861         (create_sentinel_frame, get_frame_id): Ditto.
9862         (frame_id_p, frame_id_eq): Ditto.
9863         (frame_id_inner, create_new_frame): Ditto.
9864         (legacy_get_prev_frame, get_prev_frame): Ditto.
9865         (deprecated_update_frame_pc_hack): Ditto.
9866         (frame_register_unwind): Ditto.
9867         (deprecated_update_frame_base_hack): Ditto.
9868
9869 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
9870
9871         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9872         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9873         frame_chain function.
9874         * Makefile.in: Add dependencies due to above change.
9875
9876 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
9877
9878         * blockframe.c (legacy_frame_chain_valid): Move call to
9879         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9880         inside_entry_file.
9881
9882 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9883
9884         * frame.h (struct frame_id): Replace "pc" and "base" with
9885         "stack_addr" and "code_addr".  Update comments.
9886         (frame_id_build): Update parameter names and comment.
9887         (struct frame_info): Replace "id_p" and "id" with "this_id".
9888         * dummy-frame.c (dummy_frame_this_id): Update.
9889         * breakpoint.c (print_one_breakpoint): Update.
9890         * frame.c (get_frame_id): Update.
9891         (get_frame_base, frame_id_build): Update.
9892         (create_sentinel_frame, legacy_get_prev_frame): Update.
9893         (deprecated_update_frame_base_hack): Update.
9894         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9895         (frame_id_inner): Ditto.
9896
9897 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9898
9899         * defs.h (gdb_print_host_address): Make "addr" parameter a
9900         pointer constant.
9901         * utils.c (gdb_print_host_address): Update.
9902
9903 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
9904
9905         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9906         register number for R0 is 0.
9907
9908 2003-04-09  J. Brobecker  <brobecker@gnat.com>
9909
9910         * frame.h (struct gdbarch): Add opaque structure definition
9911         to avoid a compilation warning on LynxOS 4.0.
9912
9913 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9914
9915         * frame.h (struct frame_info): Delete field "pc".  Replace
9916         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9917         structure.
9918         * frame.c (frame_pc_unwind): Update.
9919         (create_sentinel_frame): Do not set "pc".
9920         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
9921         (get_frame_pc): Call frame_pc_unwind.
9922         (deprecated_update_frame_pc_hack): Update.
9923         (create_new_frame): Use "pc" not "->pc".
9924
9925 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9926
9927         * frame.c (get_frame_id): Eliminate code updating "frame".
9928         (legacy_get_prev_frame): Ditto.
9929         (get_frame_base): Return id.base directly.
9930         (deprecated_update_frame_base_hack): Update "id.base".
9931         * frame.h (struct frame_info): Delete field "frame".
9932
9933 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9934
9935         * NEWS: Mention that the "Sequent family" is obsolete.
9936         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9937         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9938         * configure.host: Obsolete i[3456]86-sequent-bsd*,
9939         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9940         * config/i386/tm-ptx4.h: Obsolete file.
9941         * config/i386/tm-ptx.h: Obsolete file.
9942         * symm-tdep.c: Obsolete file.
9943         * config/i386/symmetry.mt: Obsolete file.
9944         * config/i386/tm-symmetry.h: Obsolete file.
9945         * symm-nat.c: Obsolete file.
9946         * config/i386/nm-symmetry.h: Obsolete file.
9947         * config/i386/xm-symmetry.h: Obsolete file.
9948         * config/i386/symmetry.mh: Obsolete file.
9949         * config/i386/nm-ptx4.h: Obsolete file.
9950         * config/i386/ptx4.mh: Obsolete file.
9951         * config/i386/ptx.mt: Obsolete file.
9952         * config/i386/ptx.mh: Obsolete file.
9953         * config/i386/xm-ptx4.h: Obsolete file.
9954         * config/i386/xm-ptx.h: Obsolete file.
9955
9956 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9957
9958         Obsolete mips*-*-mach3*.
9959         * NEWS: Mention that mips*-*-mach3* is obsolete.
9960         * m3-nat.c: Obsolete file.
9961         * config/nm-m3.h: Obsolete file.
9962         * config/mips/tm-mipsm3.h: Obsolete file.
9963         * config/mips/mipsm3.mt: Obsolete file.
9964         * config/mips/mipsm3.mh: Obsolete file.
9965         * config/mips/xm-mipsm3.h: Obsolete file.
9966         * mipsm3-nat.c: Obsolete file.
9967         * configure.host: Obsolete mips-dec-mach3*.
9968         * configure.tgt: Obsolete mips*-*-mach3*.
9969
9970 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9971
9972         * doublest.h: Update copyright.
9973         (deprecated_store_floating, deprecated_extract_floating): Rename
9974         store_floating and extract_floating.  Update comments.
9975         * doublest.c: Update copyright.
9976         (extract_floating_by_length): Replace extract_floating.
9977         (store_floating_by_length): Replace store_floating.
9978         (deprecated_extract_floating): New function.
9979         (deprecated_store_floating): New function.
9980         (extract_typed_floating): Call extract_floating_by_length.
9981         (store_typed_floating): Call store_floating_by_length.
9982         * x86-64-tdep.c (x86_64_store_return_value): Update.
9983         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9984         (sh64_extract_return_value): Update.
9985         (sh_sh4_register_convert_to_virtual): Update.
9986         (sh_sh64_register_convert_to_virtual): Update.
9987         (sh_sh4_register_convert_to_raw): Update.
9988         (sh_sh64_register_convert_to_raw): Update.
9989         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9990         (rs6000_register_convert_to_raw): Update.
9991         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9992         (ia64_register_convert_to_raw): Update.
9993         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9994         (REGISTER_CONVERT_TO_VIRTUAL): Update.
9995         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9996         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9997         (alpha_register_convert_to_raw): Update.
9998
9999 2003-04-08  Andrew Cagney  <cagney@redhat.com>
10000
10001         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10002         * gdbarch.h, gdbarch.c: Re-generate.
10003         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10004         (d10v_gdbarch_init): Do not set saved_pc_after_call.
10005         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10006         conditionally, use frame_pc_unwind as an alternative.  Add
10007         comments.
10008         * arch-utils.c (init_frame_pc_default): Only call
10009         SAVED_PC_AFTER_CALL when available.
10010
10011 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10012
10013         * infrun.c (stop_soon): Rename from stop_soon_quietly.
10014         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10015         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10016         (start_remote): Ditto.
10017         (handle_inferior_event): Ditto.
10018         (save_inferior_status): Ditto.
10019         (restore_inferior_status): Ditto.
10020         * infcmd.c (attach_command): Ditto.
10021         * fork-child.c (startup_inferior): Ditto.
10022         * inferior.h (stop_soon): Rename from stop_soon_quietly.
10023         * alpha-tdep.c (heuristic_proc_start): Ditto.
10024         * mips-tdep.c (heuristic_proc_start): Ditto.
10025         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10026         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10027         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10028         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10029         * remote-vx.c (vx_create_inferior): Ditto.
10030
10031 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10032
10033         * infrun.c (stop_soon_quietly): Make it an enum, to better
10034         override the default behavior of handle_inferior_event.
10035         (clear_proceed_status): Update uses of stop_soon_quietly to
10036         reflect that it is now an enum.
10037         (start_remote): Ditto.
10038         (handle_inferior_event): Change logic a bit if stop_soon_quietly
10039         is set to handle the new GNU/Linux kernel behavior for
10040         attach/sigstop.  Update uses of stop_soon_quietly.
10041         * inferior.h (enum stop_kind): New enum.
10042         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10043         Reset normal handle_inferior_event behavior, afterwards.
10044         * fork-child.c (startup_inferior): Update.
10045         * alpha-tdep.c (heuristic_proc_start): Update.
10046         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10047         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10048         * solib-osf.c (osf_solib_create_inferior_hook): Update.
10049         * solib-irix.c (irix_solib_create_inferior_hook): Update.
10050         * remote-vx.c (vx_create_inferior): Update.
10051         * mips-tdep.c (heuristic_proc_start): Update.
10052
10053 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
10054
10055         * disasm.c (dump_insns):  Move variables inside loop, or they will
10056         be freed more than once, causing wild memory corruptions.
10057         (gdb_disassembly): Look for the substring "-thread",
10058         instead of "-threads" in the target name, to make sure to find
10059         the 'multi-thread' target.  Also, make sure we do the right thing
10060         with the "core" target.
10061
10062 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
10063
10064         * mips-tdep.c (mips_print_fp_register): New function, created from
10065         do_fp_register_row().  Registers are now (also) printed as hex.
10066         Only one register is printed per row.
10067         (mips_print_register, do_fp_register_row): Print floating point
10068         registers with mips_print_fp_register().
10069
10070 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10071
10072         * valprint.h (inspect_it): Add extern declaration.
10073         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10074         (selectors_info, classes_info): Ditto.
10075         (find_objc_msgcall): Fix indentation.
10076         (objc_printstr): Delete extern declarations.
10077
10078         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10079
10080 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10081
10082         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10083         Update comment.
10084         * frame.c (legacy_saved_regs_this_id): Update.
10085         (legacy_get_prev_frame): Update.
10086         * xstormy16-tdep.c: Update comment.
10087         * sparc-tdep.c (sparc_frame_chain): Update comment.
10088         * blockframe.c (legacy_frame_chain_valid): Update.
10089
10090 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10091
10092         * valprint.c (val_print_type_code_int): Delete #ifdef
10093         PRINT_TYPELESS_INTEGER code.
10094
10095         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10096         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10097         multi-arch definition.
10098         * gdbarch.h: Re-generate.
10099
10100 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10101
10102         Eliminate FRAME_FIND_SAVED_REGS.
10103         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10104         Change FSR parameter to a pointer.
10105         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10106         Assume FSR parameter is a pointer.
10107         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10108         Make fsr a pointer.
10109         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10110         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
10111         saved_regs a pointer.
10112         (hppa_frame_saved_pc): Ditto.
10113         (find_dummy_frame_regs): Make frame_saved_regs a pointer
10114         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
10115         pointer.
10116         (restore_pc_queue): Make fsr a pointer.
10117         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10118         (hppa_frame_chain): Make saved_regs a pointer, call
10119         hppa_frame_init_saved_regs.
10120         * sparc-tdep.c: Include "gdb_assert.h".
10121         (sparc_frame_find_saved_regs): Replace internal_error with
10122         gdb_assert.
10123         * remote-vxsparc.c (vx_read_register): Delete reference to
10124         FRAME_FIND_SAVED_REGS.
10125         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10126         * gdbarch.h: Regenerate.
10127         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10128         (deprecated_get_frame_saved_regs): Delete declaration.
10129         (struct frame_saved_regs): Delete definition.
10130         * frame.c (deprecated_get_frame_saved_regs): Delete function.
10131         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10132         (hppa_frame_find_saved_regs): Delete declaration.
10133         (FRAME_FIND_SAVED_REGS): Delete macro.
10134         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10135         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10136         FRAME_FIND_SAVED_REGS in comment.
10137
10138 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10139
10140         * frame.c (frame_func_unwind, get_frame_func): New functions.
10141         * frame.h (get_frame_func, frame_func_unwind): Declare.
10142         (struct frame_info): Add field "prev_func" for caching the
10143         previous frame's function address.
10144         * arm-tdep.c (arm_frameless_function_invocation): Combine
10145         get_pc_function_start and get_frame_pc into get_frame_func.
10146         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10147         (sh64_nofp_frame_init_saved_regs): Ditto.
10148         * s390-tdep.c (s390_function_start): Ditto.
10149         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10150         (rs6000_frameless_function_invocation): Ditto.
10151         (rs6000_frame_saved_pc): Ditto.
10152         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10153         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10154         * i386-tdep.c (i386_frameless_signal_p): Ditto.
10155         (i386_frame_init_saved_regs): Ditto.
10156         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10157         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10158         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10159         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10160         * blockframe.c (frameless_look_for_prologue): Ditto.
10161
10162 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10163
10164         * frame.c (legacy_get_prev_frame): Link prev to next at the
10165         function start.  Update comments.
10166
10167 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10168
10169         * frame.c (get_frame_id): Update comment.
10170         (legacy_get_prev_frame): Update comment.
10171         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10172         * gdbarch.h: Regenerate.
10173         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10174         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10175
10176 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10177
10178         * stack.c (print_frame_info): Use get_frame_pc.
10179
10180 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10181
10182         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
10183         the frame's type from the unwinder.
10184         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10185         (create_new_frame, legacy_get_prev_frame): When the unwinder's
10186         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10187         (get_frame_base_address): Use get_frame_type.
10188         (get_frame_locals_address, get_frame_args_address): Ditto.
10189         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10190         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10191         (struct frame_info): Add comment explaining why the frame contains
10192         a "type" field.
10193         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10194         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10195         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10196         NORMAL_FRAME.
10197         * frame-unwind.h: Include "frame.h".
10198         (struct frame_unwind): Add "type" field.
10199         * Makefile.in (frame_unwind_h): Add $(frame_h).
10200
10201 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10202
10203         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10204         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10205         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10206         get_frame_base.
10207         (d10v_unwind_dummy_id): Use frame_id_build.
10208         * frame.c (find_frame_sal): Use get_frame_pc.
10209         (create_new_frame): Use deprecated_update_frame_pc_hack and
10210         deprecated_update_frame_base_hack.
10211         (create_sentinel_frame): Add comment about ->pc going away.
10212         (get_prev_frame): Add comment about ->pc going away.
10213         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10214         frame_id_build, deprecated_update_frame_pc_hack and
10215         deprecated_update_frame_base_hack.
10216         (select_frame): Use get_frame_pc.
10217         (legacy_saved_regs_this_id): Use frame_id_build.
10218
10219 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
10220
10221         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10222         signed integer case.
10223         (classify_argument): Handle enumerations and references.
10224
10225 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10226
10227         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10228         ID to NULL.
10229
10230 2003-04-01  Adam Fedor  <fedor@gnu.org>
10231
10232         * gdb/objc-lang.c (selectors_info): Replace calls to
10233         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10234         SYMBOL_NATURAL_NAME.
10235         (classes_info, find_methods): Likewise.
10236
10237 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
10238
10239         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10240         ``mach'' to the value determined by bfd_default_set_arch_mach().
10241
10242 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
10243
10244         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10245         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10246         (mi-cmd-file.o): Update dependencies.
10247
10248 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
10249
10250         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10251         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10252
10253 2003-04-01  Adam Fedor  <fedor@gnu.org>
10254
10255         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10256         * language.h (struct language_defn): Add la_demangle.
10257         (language_demangle): Declare.
10258         * language.c (language_demangle): New function.
10259         (unk_lang_demangle): Likewise.
10260         (unknown_language_defn, auto_language_defn, local_language_defn):
10261         Add ukn_lang_demangle.
10262         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10263         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10264         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10265         (cplus_language_defn): Add cplus_demangle for la_demangle element.
10266         * jv-lang.c (java_demangle): New function
10267         (java_language_defn): Use it for la_demangle element.
10268         * objc-lang.c (objc_demangle): Add options argument
10269         (objc_language_defn): Use objc_demangle for la_demangle element.
10270         * maint.c (maintenance_demangle): Replace switch with
10271         call to language_demangle.
10272         * utils.c (fprintf_symbol_filtered): Likewise.
10273
10274 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10275
10276         * printcmd.c (print_frame_nameless_args): Delete #ifdef
10277         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10278         PRINT_TYPELESS_INTEGER.
10279         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10280         PUSH_RETURN_ADDRESS.
10281
10282 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10283
10284         * Makefile.in (d10v-tdep.o): Update dependencies.
10285         * d10v-tdep.c: Include "frame-base.h".
10286         (d10v_frame_unwind): Make constant.
10287         (d10v_frame_base_address): New function.
10288         (d10v_frame_base): New variable.
10289         (d10v_gdbarch_init): Set frame_base default.
10290         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
10291         comment for base.
10292         (d10v_frame_unwind_cache): Set and use "prev_sp".
10293         (d10v_frame_this_id): Use the previous frame's inner most stack
10294         address and this frame's func address for the frame ID.  Use
10295         frame_id_build.  Don't analyze beyond the current instruction.
10296
10297 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10298
10299         * frame.h (get_frame_locals_address, get_frame_args_address):
10300         Refer to the base address, instead of the address of the first
10301         local or parameter.
10302
10303 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10304
10305         Add frame debug info addresses:
10306         * frame-base.c: New file.
10307         * frame-base.h: New file.
10308         * frame.h (struct frame_base): Add opaque declaration.
10309         (get_frame_base): Update comment.
10310         (get_frame_base_address): Declare.
10311         (get_frame_locals_address): Declare.
10312         (get_frame_args_address): Declare.
10313         (struct frame_info): Add "base" and "base_cache".  Update
10314         comments on the unwinder.
10315         * frame.c: Include "frame-base.h".
10316         (get_frame_locals_address): New function.
10317         (get_frame_base_address): New function.
10318         (get_frame_args_address): New function.
10319         * findvar.c (read_var_value): Use get_frame_locals_address and
10320         get_frame_args_address.
10321         * stack.c (frame_info): Use get_frame_locals_address and
10322         get_frame_args_address.
10323         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10324         moved to "frame-base.c".
10325         * printcmd.c (print_frame_nameless_args): Ditto.
10326         * symtab.h (address_class): Update comments.
10327         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10328         get_frame_base_address.
10329         * dwarf2expr.c (execute_stack_op): Ditto.
10330         * Makefile.in (frame_base_h): Define.
10331         (frame.o): Update dependencies.
10332         (frame-base.o): Add dependencies.
10333         (SFILES): Add frame-base.c.
10334         (COMMON_OBS): Add frame-base.o.
10335
10336 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10337
10338         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10339         CALL_DUMMY_LENGTH): Ditto.
10340         * gdbarch.c: Re-generate.
10341         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10342         (CALL_DUMMY_LENGTH): Delete macro.
10343         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10344         * arm-tdep.c (arm_gdbarch_init): Ditto.
10345         * avr-tdep.c (avr_gdbarch_init): Ditto.
10346         * cris-tdep.c (cris_gdbarch_init): Ditto.
10347         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10348         * frv-tdep.c (frv_gdbarch_init): Ditto.
10349         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10350         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10351         * i386-tdep.c (i386_gdbarch_init): Ditto.
10352         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10353         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10354         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10355         * mips-tdep.c (mips_gdbarch_init): Ditto.
10356         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10357         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10358         * s390-tdep.c (s390_gdbarch_init): Ditto.
10359         * sh-tdep.c (sh_gdbarch_init): Ditto.
10360         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10361         * v850-tdep.c (v850_gdbarch_init): Ditto.
10362         * vax-tdep.c (vax_gdbarch_init): Ditto.
10363         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10364
10365 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
10366
10367         * frame.c (get_prev_frame): Disable call to inside_entry_file().
10368
10369 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10370
10371         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10372         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10373         * gdbarch.h, gdbarch.c: Re-generate.
10374         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10375         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10376         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10377         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10378         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10379         * infcmd.c (run_stack_dummy): Simplify assuming
10380         CALL_DUMMY_BREAKPOINT_OFFSET_P.
10381         * infrun.c (handle_inferior_event): Ditto.
10382         * alpha-tdep.c (alpha_gdbarch_init): Do not set
10383         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10384         * arm-tdep.c (arm_gdbarch_init): Ditto.
10385         * avr-tdep.c (avr_gdbarch_init): Ditto.
10386         * cris-tdep.c (cris_gdbarch_init): Ditto.
10387         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10388         * frv-tdep.c (frv_gdbarch_init): Ditto.
10389         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10390         * i386-tdep.c (i386_gdbarch_init): Ditto.
10391         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10392         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10393         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10394         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10395         * mips-tdep.c (mips_gdbarch_init): Ditto.
10396         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10397         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10398         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10399         * s390-tdep.c (s390_gdbarch_init): Ditto.
10400         * sh-tdep.c (sh_gdbarch_init): Ditto.
10401         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10402         * v850-tdep.c (v850_gdbarch_init): Ditto.
10403         * vax-tdep.c (vax_gdbarch_init): Ditto.
10404         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10405
10406 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
10407
10408         * symfile.c (symfile_relocate_debug_section): Update call to
10409         bfd_simple_get_relocated_section_contents.
10410
10411 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10412
10413         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10414         * gdbarch.h, gdbarch.c: Regenerate.
10415         * inferior.h (FIX_CALL_DUMMY): Delete macro.
10416         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10417         available.
10418         * frame.h (generic_fix_call_dummy): Delete declaration.
10419         * dummy-frame.h: Update comment.
10420         * dummy-frame.c (generic_fix_call_dummy): Delete function.
10421         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10422         fix_call_dummy.
10423         * sh-tdep.c (sh_gdbarch_init): Ditto.
10424         * s390-tdep.c (s390_gdbarch_init): Ditto.
10425         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10426         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10427         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10428         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10429         * i386-tdep.c (i386_gdbarch_init): Ditto.
10430         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10431         * frv-tdep.c (frv_gdbarch_init): Ditto.
10432         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10433         * cris-tdep.c (cris_gdbarch_init): Ditto.
10434         * avr-tdep.c (avr_gdbarch_init): Ditto.
10435         * arm-tdep.c (arm_gdbarch_init): Ditto.
10436
10437 2003-03-31  J. Brobecker  <brobecker@gnat.com>
10438
10439         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10440         (INIT_FRAME_AP): Likewise.
10441         (EXTRA_FRAME_INFO): Likewise.
10442
10443 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10444
10445         * gdbarch.sh: Include "symfile.h".
10446         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10447         * gdbarch.h, gdbarch.c: Re-generate.
10448         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10449         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10450         call_dummy_address, the default is at entry_point_address.
10451         * v850-tdep.c (v850_gdbarch_init): Ditto.
10452         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10453         * sh-tdep.c (sh_gdbarch_init): Ditto.
10454         * s390-tdep.c (s390_gdbarch_init): Ditto.
10455         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10456         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10457         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10458         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10459         * i386-tdep.c (i386_gdbarch_init): Ditto.
10460         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10461         * frv-tdep.c (frv_gdbarch_init): Ditto.
10462         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10463         * cris-tdep.c (cris_gdbarch_init): Ditto.
10464         * arm-tdep.c (arm_gdbarch_init): Ditto.
10465
10466 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10467
10468         * gdbarch.sh (CALL_DUMMY_P): Delete.
10469         * gdbarch.h, gdbarch.c: Re-generate.
10470         * inferior.h (CALL_DUMMY_P): Delete macro.
10471         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10472         * vax-tdep.c (vax_gdbarch_init): Update.
10473         * v850-tdep.c (v850_gdbarch_init): Update.
10474         * sparc-tdep.c (sparc_gdbarch_init): Update.
10475         * sh-tdep.c (sh_gdbarch_init): Update.
10476         * s390-tdep.c (s390_gdbarch_init): Update.
10477         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10478         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10479         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10480         * mips-tdep.c (mips_gdbarch_init): Update.
10481         * mcore-tdep.c (mcore_gdbarch_init): Update.
10482         * m68k-tdep.c (m68k_gdbarch_init): Update.
10483         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10484         * ia64-tdep.c (ia64_gdbarch_init): Update.
10485         * i386-tdep.c (i386_gdbarch_init): Update.
10486         * h8300-tdep.c (h8300_gdbarch_init): Update.
10487         * frv-tdep.c (frv_gdbarch_init): Update.
10488         * d10v-tdep.c (d10v_gdbarch_init): Update.
10489         * cris-tdep.c (cris_gdbarch_init): Update.
10490         * breakpoint.c (deprecated_frame_in_dummy): Update.
10491         * avr-tdep.c (avr_gdbarch_init): Update.
10492         * alpha-tdep.c (alpha_gdbarch_init): Update.
10493         * arm-tdep.c (arm_gdbarch_init): Update.
10494         * dummy-frame.c (dummy_frame_this_id): Update comments.
10495         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10496         * frame.c (legacy_get_prev_frame): Ditto.
10497         * valops.c (call_function_by_hand): Delete function.
10498         (hand_function_call): Rename to call_function_by_hand
10499
10500 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10501
10502         2002-11-10 Klee Dienes <kdienes@apple.com>
10503         * value.h (struct value): Update comment.
10504
10505 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10506
10507         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10508         D10V_FP_REGNUM.
10509         (d10v_gdbarch_init): Do not set fp_regnum.
10510
10511         * frame.c (get_frame_base): Force ID initialization.
10512         (get_prev_frame): Move computation of the frame ID from here ...
10513         (get_frame_id): ... to here.
10514         (legacy_get_prev_frame): Mark the frame ID as valid.
10515         * frame.h (struct frame_info): Add field "id_p".
10516
10517 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
10518
10519         * i386-tdep.c (i386_store_struct_return): Removed.
10520         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10521
10522 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10523
10524         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10525         * gdbarch.h, gdbarch.c: Regenerate.
10526         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10527         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10528         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10529         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10530         * i386-tdep.c (i386_gdbarch_init): Ditto.
10531         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10532         * cris-tdep.c (cris_gdbarch_init): Ditto.
10533         * vax-tdep.c (vax_gdbarch_init): Ditto.
10534         * s390-tdep.c (s390_gdbarch_init): Ditto.
10535         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10536         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10537         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10538         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10539         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10540         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10541         * sparc-tdep.c (sparc_gdbarch_init): Update.
10542         * sh-tdep.c (sh_gdbarch_init): Update.
10543         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10544         * mips-tdep.c (mips_gdbarch_init): Update.
10545         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10546         * ia64-tdep.c (ia64_gdbarch_init): Update.
10547         * frv-tdep.c (frv_gdbarch_init): Update.
10548         * avr-tdep.c (avr_gdbarch_init): Update.
10549         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10550         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
10551         instead of when push_dummy_call is not available.
10552
10553 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10554
10555         * infttrace.c: Include "gdbthread.h".
10556         (parent_attach_all): Fix function signature.
10557         (call_ptrace): Update call.
10558         * Makefile.in (infttrace.o): Update dependencies.
10559
10560 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10561
10562         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10563         PUSH_RETURN_ADDRESS.
10564         * gdbarch.h, gdbarch.c: Regenerate.
10565         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10566         * x86-64-tdep.c (x86_64_init_abi): Update.
10567         * v850-tdep.c (v850_gdbarch_init): Update.
10568         * sparc-tdep.c (sparc_gdbarch_init): Update.
10569         * sh-tdep.c (sh_gdbarch_init): Update.
10570         * s390-tdep.c (s390_gdbarch_init): Update.
10571         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10572         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10573         * mips-tdep.c (mips_gdbarch_init): Update.
10574         * mcore-tdep.c (mcore_gdbarch_init): Update.
10575         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10576         * ia64-tdep.c (ia64_gdbarch_init): Update.
10577         * i386-tdep.c (i386_gdbarch_init): Update.
10578         * h8300-tdep.c (h8300_gdbarch_init): Update.
10579         * frv-tdep.c (frv_gdbarch_init): Update.
10580         * cris-tdep.c (cris_gdbarch_init): Update.
10581         * avr-tdep.c (avr_gdbarch_init): Update.
10582         * arm-tdep.c (arm_gdbarch_init): Update.
10583         * valops.c (hand_function_call): Update.
10584
10585 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10586
10587         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10588         sizeof_call_dummy_words.
10589         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10590         define.
10591         * gdbarch.h: Regenerate.
10592
10593 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10594
10595         * infttrace.h: New file.
10596         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10597         (hpread_get_textlow): Detect an uninitialized dn_bufp.
10598         (hpread_read_doc_function_type): Detect an initialized type1.
10599         (hpread_quick_traverse): Initialize mod_name_string.
10600         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10601         (som_solib_get_solib_by_pc): Declare.
10602         (so_lib_thread_start_addr): Declare.
10603         (no_shared_libraries): Declare.
10604         * somread.c (init_import_symbols): Make static.  Add forward
10605         declaration.
10606         * config/pa/nm-hppah.h: Include "infttrace.h" for
10607         parent_attach_all.
10608         (hppa_insert_hw_watchpoint): Declare.
10609         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10610         * hppah-nat.c: Include "gdb_string.h".
10611         (parent_attach_all): Delete extern declaration, moved to
10612         "infttrace.h".
10613         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10614         int.
10615         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10616         * Makefile.in (infttrace_h): Define.
10617         (hpread.o): Update dependencies.
10618         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10619         * hppa-hpux-tdep.c: Include "gdb_string.h".
10620         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10621         * infrun.c (handle_inferior_event): Always initialize
10622         stepped_after_stopped_by_watchpoint.  Add default and remove
10623         fallthrough in switch statement.
10624         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10625         parameter to int.
10626         (hppa_remove_hw_watchpoint): Ditto.
10627
10628 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10629
10630         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10631         offset.
10632
10633 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
10634
10635         * arm-tdep.c (arm_push_arguments): Delete.
10636         (struct stack_item): New type.
10637         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10638         (arm_store_struct_return): Delte.
10639         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
10640         arm_push_arguments or arm_store_struct_return.
10641
10642 2003-03-28  Andrew Cagney  <cagney@redhat.com>
10643
10644         * Makefile.in (d10v-tdep.o): Update dependencies.
10645         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10646         * d10v-tdep.c: Include "remote.h".
10647         (target_resume_hook): Delete extern declaration.
10648         (target_wait_loop_hook): Ditto.
10649         (tdisassemble_command): Eliminate assignment in "if" conditional.
10650         (d10v_ts2_register_sim_regno): Eliminate call to
10651         legacy_register_sim_regno.
10652         (d10v_ts3_register_sim_regno): Ditto.
10653
10654 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
10655
10656         * thread.c: Reindented.
10657         * lin-lwp.c: Ditto.
10658         * linux-proc.c: Ditto.
10659
10660 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
10661
10662         * MAINTAINERS (write after approval): Add myself.
10663
10664 2003-03-27  Theodore A. Roth  <troth@openavr.org>
10665
10666         * objc-exp.y: Add missing semi-colons.
10667
10668 2003-03-27  Andrew Cagney  <cagney@redhat.com>
10669
10670         * regcache.c (write_sp): Delete function and references.
10671         * inferior.h (write_sp): Delete declaration.
10672         * valops.c (hand_function_call): Replace write_sp with
10673         TARGET_WRITE_SP.
10674         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10675         (sparc_pop_frame): Ditto.
10676
10677 2003-03-27  Andrew Cagney  <cagney@redhat.com>
10678
10679         * NEWS: Mention removal of support for hppa*-*-bsd* and
10680         hppa*-*-osf* natives, and hppa*-*-pro* target.
10681         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10682         * config/pa/xm-pa.h: Obsolete file.
10683         * config/pa/xm-hppab.h: Obsolete file.
10684         * config/pa/nm-hppab.h: Obsolete file.
10685         * config/pa/tm-hppab.h: Obsolete file.
10686         * config/pa/tm-hppao.h: Obsolete file.
10687         * config/pa/nm-hppao.h: Obsolete file.
10688         * config/pa/tm-pro.h: Obsolete file.
10689         * config/pa/hppaosf.mt: Obsolete file.
10690         * config/pa/hppaosf.mh: Obsolete file.
10691         * config/pa/hppapro.mt: Obsolete file.
10692         * config/pa/hppabsd.mt: Obsolete file.
10693         * config/pa/hppabsd.mh: Obsolete file.
10694         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10695         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10696         hppa*-*-osf*.
10697
10698 2003-03-27  Andrew Cagney  <cagney@redhat.com>
10699
10700         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10701         push_arguments.  Don't set push_return_address or write_sp.
10702         (d10v_push_dummy_call): Replace d10v_push_arguments.
10703         (d10v_push_return_address, d10v_write_sp): Delete function,
10704         handled by push_dummy_call.
10705
10706 2003-03-26  Andrew Cagney  <cagney@redhat.com>
10707
10708         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10709         (push_dummy_call): New pure multi-arch replacement with gdbarch,
10710         regcache and dummy_addr parameters.
10711         * gdbarch.h, gdbarch.c: Re-generate.
10712         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10713         available; assume it will handle stack alignment and return
10714         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
10715         legacy_push_arguments.
10716         (legacy_push_arguments): Rename default_push_arguments.
10717         * value.h (legacy_push_arguments): Rename default_push_arguments.
10718         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10719         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10720         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10721         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10722         * config/i386/tm-symmetry.h: Update.
10723         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10724         * x86-64-tdep.c (x86_64_init_abi): Update.
10725         * v850-tdep.c (v850_gdbarch_init): Update.
10726         * sparc-tdep.c (sparc_gdbarch_init): Update.
10727         * sh-tdep.c (sh_gdbarch_init): Update.
10728         * s390-tdep.c (s390_gdbarch_init): Update.
10729         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10730         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10731         * mips-tdep.c (mips_gdbarch_init): Update.
10732         * mcore-tdep.c (mcore_gdbarch_init): Update.
10733         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10734         * ia64-tdep.c (ia64_gdbarch_init): Update.
10735         * i386-tdep.c (i386_gdbarch_init): Update.
10736         * hppa-tdep.c (hppa_gdbarch_init): Update.
10737         * h8300-tdep.c (h8300_gdbarch_init): Update.
10738         * frv-tdep.c (frv_gdbarch_init): Update.
10739         * d10v-tdep.c (d10v_gdbarch_init): Update.
10740         * cris-tdep.c (cris_gdbarch_init): Update.
10741         * avr-tdep.c (avr_gdbarch_init): Update.
10742         * arm-tdep.c (arm_gdbarch_init): Update.
10743         * arm-linux-tdep.c (arm_linux_init_abi): Update.
10744         * alpha-tdep.c (alpha_gdbarch_init): Update.
10745
10746 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10747
10748         * signals/signals.c (do_target_signal_to_host): Correct realtime
10749         signal range test.
10750
10751 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10752
10753         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10754         (struct sal_chain, map_catch_names): Remove.
10755         (catch_exception_command_1): Don't call
10756         handle_gnu_4_16_catch_command.
10757
10758 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10759
10760         From Mark Dettinger <dettinge@de.ibm.com>:
10761         * dwarf2cfi.c (read_2u): Increment pointer by two.
10762
10763 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10764
10765         * signals/signals.c: Fix typos in last change.
10766
10767 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10768
10769         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10770         not already defined.  Use __SIGRTMIN if available.
10771         (target_signal_from_host): Remove SIGRTMIN block.
10772         (do_target_signal_to_host): Remove SIGRTMIN block; check that
10773         the signal is within the realtime range.
10774
10775 2003-03-25  Adam Fedor  <fedor@gnu.org>
10776
10777         * Makefile.in (infrun.o): Add $(language_h)
10778         * infrun.c (handle_inferior_event): Use skip_language_trampoline
10779         for language specific trampolines.
10780         * language.h (struct language_defn): Add skip_trampoline.
10781         (skip_language_trampoline): Declare.
10782         * language.c (unk_lang_trampoline, skip_language_trampoline):
10783         New functions.
10784         (unknown_language_defn, auto_language_defn, local_language_defn):
10785         Add ukn_lang_trampoline.
10786         * ada-lang.c (ada_language_defn): Add NULL for language
10787         specific skip_trampoline.
10788         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10789         scm-lang.c: Likewise.
10790         * objc-lang.c (objc_skip_trampoline): New function.
10791         (objc_language_defn): Add objc_skip_trampoline.
10792
10793 2003-03-25  Andrew Cagney  <cagney@redhat.com>
10794
10795         * frame.c (get_prev_frame): Delay validating a frame's ID -
10796         non-NULL, didn't go backwards - until an attempt to unwind it to
10797         the previous frame.
10798
10799 2003-03-25  Andrew Cagney  <cagney@redhat.com>
10800
10801         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10802         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
10803         * gdbarch.h, gdbarch.c: Re-generate.
10804         * config/sparc/tm-sparc.h
10805         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10806         * sparc-tdep.c (sparc_gdbarch_init): Set
10807         deprecated_extra_stack_alignment_needed.
10808         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10809         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10810         extra_stack_alignment_needed.
10811         * v850-tdep.c (v850_gdbarch_init): Ditto.
10812         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10813         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10814         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10815         * cris-tdep.c (cris_gdbarch_init): Ditto.
10816         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10817         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10818
10819 2003-03-25  Andrew Cagney  <cagney@redhat.com>
10820
10821         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10822         STORE_STRUCT_RETURN.
10823         * gdbarch.h, gdbarch.c: Regenerate.
10824         * d10v-tdep.c (d10v_store_struct_return): Delete function.
10825         (d10v_push_arguments): Set the struct return register.
10826         (d10v_gdbarch_init): Update.
10827         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10828         * x86-64-tdep.c (x86_64_init_abi): Update.
10829         * vax-tdep.c (vax_gdbarch_init): Update.
10830         * v850-tdep.c (v850_gdbarch_init): Update.
10831         * sparc-tdep.c (sparc_gdbarch_init): Update.
10832         * sh-tdep.c (sh_gdbarch_init): Update.
10833         * s390-tdep.c (s390_gdbarch_init): Update.
10834         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10835         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10836         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10837         * mips-tdep.c (mips_gdbarch_init): Update.
10838         * mcore-tdep.c (mcore_gdbarch_init): Update.
10839         * m68k-tdep.c (m68k_gdbarch_init): Update.
10840         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10841         * ia64-tdep.c (ia64_gdbarch_init): Update.
10842         * i386-tdep.c (i386_gdbarch_init): Update.
10843         * hppa-tdep.c (hppa_gdbarch_init): Update.
10844         * h8300-tdep.c (h8300_gdbarch_init): Update.
10845         * frv-tdep.c (frv_gdbarch_init): Update.
10846         * cris-tdep.c (cris_gdbarch_init): Update.
10847         * avr-tdep.c (avr_gdbarch_init): Update.
10848         * arm-tdep.c (arm_gdbarch_init): Update.
10849         * alpha-tdep.c (alpha_gdbarch_init): Update.
10850
10851 2003-03-25  Andrew Cagney  <cagney@redhat.com>
10852
10853         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10854         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10855         CALL_DUMMY_STACK_ADJUST with a predicate variable.
10856         * gdbarch.h, gdbarch.c: Regenerate.
10857         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10858         call_dummy_stack_adjust_p.
10859         * vax-tdep.c (vax_gdbarch_init): Ditto.
10860         * v850-tdep.c (v850_gdbarch_init): Ditto.
10861         * sh-tdep.c (sh_gdbarch_init): Ditto.
10862         * s390-tdep.c (s390_gdbarch_init): Ditto.
10863         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10864         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10865         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10866         * mips-tdep.c (mips_gdbarch_init): Ditto.
10867         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10868         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10869         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10870         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10871         * i386-tdep.c (i386_gdbarch_init): Ditto.
10872         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10873         * frv-tdep.c (frv_gdbarch_init): Ditto.
10874         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10875         * cris-tdep.c (cris_gdbarch_init): Ditto.
10876         * avr-tdep.c (avr_gdbarch_init): Ditto.
10877         * arm-tdep.c (arm_gdbarch_init): Ditto.
10878         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10879         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10880         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10881         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10882         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
10883         call_dummy_stack_adjust_p.
10884         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10885         (CALL_DUMMY_STACK_ADJUST): Delete macro.
10886         * sparc-tdep.c (sparc32_push_arguments): Update.
10887         * valops.c (hand_function_call): Update.
10888
10889 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
10890
10891         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10892         set_gdbarch_char_signed.
10893
10894 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
10895
10896         PR cli/548
10897         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10898
10899 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
10900
10901         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10902         (_initialize_arm_tdep): Don't set tm_print_insn.
10903
10904 2003-03-24  Adam Fedor  <fedor@gnu.org>
10905
10906         * Makefile.in (YYOBJ): Add objc-exp.tab.o
10907         * objc-lang.h: Add multiple inclusion protection.
10908         (start_msglist, add_msglist, end_msglist): Additional declarations.
10909
10910 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
10911
10912         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10913         value was renamed to ARM_FLOAT_SOFT_FPA.
10914
10915 2003-03-23  Andrew Cagney  <cagney@redhat.com>
10916
10917         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10918         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10919         * gdbarch.h, gdbarch.c: Regenerate.
10920         * valops.c (hand_function_call): Update.
10921         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10922         * frame.c (legacy_saved_regs_this_id): Update.
10923         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10924         * dummy-frame.h: Update.
10925         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10926         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10927         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10928         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10929         * config/m68k/tm-sun3.h: Update.
10930         * blockframe.c (inside_main_func, frame_chain_valid): Update.
10931         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10932         * x86-64-tdep.c (x86_64_init_abi): Update.
10933         * vax-tdep.c (vax_gdbarch_init): Update.
10934         * v850-tdep.c (v850_gdbarch_init): Update.
10935         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10936         * sh-tdep.c (sh_gdbarch_init): Update.
10937         * s390-tdep.c (s390_gdbarch_init): Update.
10938         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10939         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10940         (frame_get_saved_regs): Update.
10941         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10942         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10943         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10944         * mips-tdep.c (mips_gdbarch_init): Update.
10945         * mcore-tdep.c (mcore_gdbarch_init): Update.
10946         * m68k-tdep.c (m68k_gdbarch_init): Update.
10947         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10948         * ia64-tdep.c (ia64_gdbarch_init): Update.
10949         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10950         * i386-interix-tdep.c (i386_interix_init_abi): Update.
10951         (i386_interix_back_one_frame): Update.
10952         * hppa-tdep.c (hppa_gdbarch_init): Update.
10953         (hppa_init_extra_frame_info): Update.
10954         * h8300-tdep.c (h8300_gdbarch_init): Update.
10955         * frv-tdep.c (frv_gdbarch_init): Update.
10956         * cris-tdep.c (cris_gdbarch_init): Update.
10957         * avr-tdep.c (avr_gdbarch_init): Update.
10958         * arm-tdep.c (arm_gdbarch_init): Update.
10959         * alpha-tdep.c (alpha_gdbarch_init): Update.
10960
10961 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10962
10963         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10964         (arm_get_fp_model): Declare.
10965         * arm-tdep.c (fp_model_strings): New string array.
10966         (arm_fp_model, current_fp_model): New variables.
10967         (arm_get_fp_model): New function.
10968         (arm_set_fp): New function.
10969         (set_fp_model_sfunc): New function.
10970         (show_fp_model): New function.
10971         (_initialize_arm_tdep): Add new command to set/show the FPU.
10972         (arm_extract_return_value): Use arm_get_fp_model.
10973         (arm_store_return_value): Likewise.
10974         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
10975         to initialize the floating-point data types.
10976         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10977         model is FPA.
10978
10979 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10980
10981         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
10982         the current setting of each value.
10983         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10984         new_set and new_show.  Use add_setshow_cmd_full and
10985         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
10986         commands and add new version as subcommands of "set/show arm".
10987
10988 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10989
10990         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10991         (set_arm_command, show_arm_command): New functions.
10992         (_initialize_arm_tdep): Add them.
10993         (num_disassembly_options): Renamed from num_flavor_options.
10994         (valid_disassembly_styles): Renamed from valid_flavors.
10995         (disassembly_style): Renamed from disassembly_flavor.
10996         (set_disassembly_style_sfunc): Renamed from
10997         set_disassembly_flavor_sfunc.
10998         (set_disassembly_style): Renamed from set_disassembly_flavor.
10999         (arm_othernames): Updated.
11000         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11001         command.  Add "set/show arm disassembly" commands.  Deprecate
11002         "othernames" command.
11003
11004 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11005
11006         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11007         (arm-tdep.o): Depend on elf_arm_h.
11008
11009 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11010
11011         * Makefile.in (coff_internal_h): Define.
11012         (arm-tdep.o): Update dependencies.
11013
11014 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11015
11016         * arm-tdep.c (prologue_cache): Delete.
11017         (check_prologue_cache, save_prologue_cache): Delete.
11018         (arm_scan_prologue): Don't check or update the prologue_cache.
11019         (arm_gdb_arch_init): Don't initialize it.
11020         (_initialize_arm_tdep): Likewise.
11021
11022 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
11023
11024         * MAINTAINERS (tui): Maintainer of tui code.
11025
11026 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
11027
11028         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11029         (i386-cygwin-tdep.o): Add dependencies.
11030         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11031         * i386-cygwin-tdep.c: New file.
11032         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11033         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11034
11035 2003-03-20  Andrew Cagney  <cagney@redhat.com>
11036
11037         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11038         (handle_inferior_event): Remove code calling
11039         DYNAMIC_TRAMPOLINE_NEXTPC.
11040
11041         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11042         already has a full path.
11043
11044         * main.c (gdb_main): Return 1.
11045         (captured_main): Call error to report an invalid interpreter.
11046
11047         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11048         * alpha-osf1-tdep.c: Include "gdb_string.h".
11049
11050 2003-03-19  J. Brobecker  <brobecker@gnat.com>
11051
11052         Continuing work to convert the hppa targets to multiarch partial.
11053
11054         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11055         method, now that hppa_push_dummy_frame has a conformant prototype.
11056         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11057         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11058         for the switch to multiarch partial.
11059
11060 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
11061
11062         * mdebugread.c (parse_symbol): For stEnd, we're done counting
11063         when iss is issNull.
11064
11065 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11066
11067         * mips-tdep.c (mips_register_name): Fix fencepost error involving
11068         NUM_REGS bounds check.
11069
11070 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11071
11072         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11073         * mips-tdep.c (gdb_assert.h): Include.
11074         (mips_generic_reg_names, mips_processor_reg_names): Make static.
11075         (mips_register_name): Handle integer registers explicitly.  Add
11076         bounds checking.
11077         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11078         (mips_lsi33k_reg_names): Don't list integer registers; they're
11079         handled by mips_register_name() now.
11080         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11081         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11082         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11083         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11084         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11085
11086 2003-03-18  Andrew Cagney  <cagney@redhat.com>
11087
11088         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11089         a void pointer.
11090         * gdbtypes.h (print_scalar_formatted): Update declaration.
11091         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11092
11093 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11094
11095         * infrun.c (observer.h): Add #include.
11096         (normal_stop): Add call to observer_notify_normal_stop.
11097         * Makefile.in (infrun.o): Add dependency on observer.h.
11098
11099 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11100
11101         Continuing work to convert the hppa targets to multiarch partial.
11102         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11103         parameter. Reformat comment.
11104         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11105         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11106         to match new profile.
11107
11108 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11109
11110         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11111         appear to be working in any case.
11112
11113 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11114
11115         * observer.c (observer_test_first_observer): New static variable.
11116         (observer_test_second_observer): Likewise.
11117         (observer_test_third_observer): Likewise.
11118         (observer_test_first_notification_function): New static function.
11119         (observer_test_second_notification_function): Likewise.
11120         (observer_test_third_notification_function): Likewise.
11121
11122 2003-03-17  J. Brobecker  <brobecker@gnat.com>
11123
11124         * hppa-tdep.c (gdb_assert.h): Add missing #include.
11125         * somsolib.c (gdb_assert.h): Likewise.
11126         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11127         (somsolib.o): Likewise.
11128
11129 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11130
11131         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11132         BFD.  Simplify setting of di.endian.
11133
11134 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11135
11136         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11137         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11138
11139         From Elena Zannoni  <ezannoni@redhat.com>
11140         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11141         vector and floating-point parameters.
11142         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11143         convention.
11144         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11145
11146 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
11147
11148         * MAINTAINERS: Remove my name from several maintainership roles.
11149
11150 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11151
11152         Fix frame off-by-one bug.
11153         * frame-unwind.h (frame_this_id_ftype): Replace
11154         frame_unwind_id_ftype.
11155         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11156         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
11157         with "prev_register".
11158         * frame-unwind.c (frame_unwind_find_by_pc): Return
11159         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
11160         comment.
11161         * dummy-frame.c (cached_find_dummy_frame): Delete function.
11162         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11163         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11164         (dummy_frame_unwind): Update.
11165         * sentinel-frame.c (sentinel_frame_prev_register): Replace
11166         sentinel_frame_register_unwind.
11167         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11168         (sentinel_frame_unwinder): Update.
11169         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11170         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11171         * frame.c (create_sentinel_frame): Update. Initialize
11172         "prologue_cache" instead of "unwind_cache".
11173         (frame_register_unwind): Call this frame's prev_register with the
11174         next frame and this frame's prologue cache.
11175         (get_prev_frame): Simplify.  Always call prev frame's this_id with
11176         this frame and prev frame's prologue cache.  Document that this
11177         call is shifted one to the left when compared to the
11178         frame_register_unwind call.
11179         (legacy_saved_regs_prev_register): Replace
11180         frame_saved_regs_register_unwind.
11181         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11182         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11183         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11184         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11185         (d10v_frame_unwind): Update.
11186         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11187         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11188         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11189         "saved_regs" with "this_saved_regs".
11190
11191 2003-03-16  Andrew Cagney  <cagney@redhat.com>
11192
11193         * frame.c (frame_pop): Don't call target_store_registers.  Fix
11194         problem reported by Mark Kettenis.
11195
11196 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
11197
11198         * i386-tdep.c (i386_register_type): Renamed from
11199         i386_register_virtual_type.  Adjust function signature.
11200         (i386_gdbarch_init): Set register_type instead of
11201         deprecated_max_register_raw_size,
11202         deprecated_max_register_virtual_size and register_virtual_type.
11203
11204 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11205
11206         * frame.c (get_prev_frame): When a legacy frame, always call
11207         legacy_get_prev_frame.  Simplify unwind code using assumption that
11208         the unwinder is new.
11209         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11210         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11211         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11212
11213 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11214
11215         * frame.c (get_saved_register): Delete function.
11216         * frame.h (get_saved_register): Delete declaration.
11217         * xstormy16-tdep.c: Update comment.
11218         * regcache.h: Update comments.
11219         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11220         get_saved_register and extract_address, use
11221         frame_read_unsigned_register.
11222         (sparc_frame_saved_pc): Ditto.
11223         (sparc_get_saved_register): Instead of get_saved_register, use
11224         frame_register.
11225         (sparc_pop_frame): Ditto.
11226         * findvar.c: Update comments.
11227         (value_of_register): Call frame_register instead of
11228         get_saved_register.
11229         (value_from_register): Ditto.
11230         * config/sparc/tm-sparc.h: Update comment.
11231         * breakpoint.c: Update comment.
11232
11233 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11234
11235         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11236         GET_SAVED_REGISTER.
11237         * gdbarch.h, gdbarch.c: Re-generate.
11238         * frame.h: Update comments.
11239         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11240         * x86-64-tdep.c (x86_64_init_abi): Update.
11241         * sparc-tdep.c (sparc_gdbarch_init): Update.
11242         * sh-tdep.c (sh_gdbarch_init): Update.
11243         * mips-tdep.c (mips_gdbarch_init): Update.
11244         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11245         * cris-tdep.c (cris_gdbarch_init): Update.
11246         * ia64-tdep.c (ia64_gdbarch_init): Update.
11247         * frame.c (frame_register): Update.
11248         (get_saved_register): Update.
11249         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11250
11251 2003-03-13  Andrew Cagney  <cagney@redhat.com>
11252
11253         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11254         * gdbarch.h, gdbarch.c: Regenerate.
11255         * valops.c (hand_function_call): Update comment.
11256         * stack.c (return_command): Update comment.
11257         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11258         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11259         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11260         * x86-64-tdep.c (x86_64_init_abi): Update.
11261         * vax-tdep.c (vax_gdbarch_init): Update.
11262         * v850-tdep.c (v850_gdbarch_init): Update.
11263         * sparc-tdep.c (sparc_gdbarch_init): Update.
11264         * sh-tdep.c (sh_gdbarch_init): Update.
11265         * s390-tdep.c (s390_gdbarch_init): Update.
11266         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11267         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11268         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11269         * mips-tdep.c (mips_gdbarch_init): Update.
11270         * mcore-tdep.c (mcore_gdbarch_init): Update.
11271         * m68k-tdep.c (m68k_gdbarch_init): Update.
11272         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11273         * ia64-tdep.c (ia64_gdbarch_init): Update.
11274         * i386-tdep.c (i386_gdbarch_init): Update.
11275         * hppa-tdep.c (hppa_gdbarch_init): Update.
11276         * h8300-tdep.c (h8300_gdbarch_init): Update.
11277         * frv-tdep.c (frv_gdbarch_init): Update.
11278         * cris-tdep.c (cris_gdbarch_init): Update.
11279         * avr-tdep.c (avr_gdbarch_init): Update.
11280         * arm-tdep.c (arm_gdbarch_init): Update.
11281         * alpha-tdep.c (alpha_gdbarch_init): Update.
11282
11283 2003-03-13  Andrew Cagney  <cagney@redhat.com>
11284
11285         * frame.c (legacy_frame_p): New function.
11286         (get_prev_frame): Use legacy_frame_p.
11287         * frame.h (legacy_frame_p): Declare.
11288
11289 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11290
11291         * MAINTAINERS (write after approval): Alphabetically
11292         listing corrected.
11293
11294 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11295
11296         * MAINTAINERS (write after approval): Add myself.
11297
11298 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11299
11300         * frame.c (get_prev_frame): Rename the frame parameter to
11301         "this_frame".
11302         (get_next_frame, legacy_get_prev_frame): Ditto.
11303
11304 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11305
11306         * frame.c (get_current_frame): Check target_has_registers before
11307         checking target_has_stack.
11308         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11309         instead of deprecated_selected_frame.
11310         * findvar.c (value_of_register): Pass "frame", not
11311         deprecated_selected_frame, to value_of_builtin_reg.
11312
11313 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11314
11315         * regcache.c (regcache_cooked_write_signed): New function.
11316         (regcache_cooked_write_unsigned): New function.
11317         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11318         (regcache_cooked_read_signed): Fix regnum in range assertion.
11319         * regcache.h (regcache_cooked_write_signed): Declare.
11320         (regcache_cooked_write_unsigned): Declare.
11321
11322 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11323
11324         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11325         * gdbarch.h, gdbarch.c: Re-generate.
11326         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11327         * x86-64-tdep.h: Update.
11328         * x86-64-tdep.c (x86_64_init_abi): Update.
11329         * v850-tdep.c (v850_gdbarch_init): Update.
11330         * sparc-tdep.c (sparc_gdbarch_init): Update.
11331         * sh-tdep.c (sh_gdbarch_init): Update.
11332         * s390-tdep.c (s390_gdbarch_init): Update.
11333         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11334         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11335         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11336         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11337         * mips-tdep.c (mips_gdbarch_init): Update.
11338         * mcore-tdep.c (mcore_gdbarch_init): Update.
11339         * m68k-tdep.c (m68k_gdbarch_init): Update.
11340         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11341         * ia64-tdep.c (ia64_gdbarch_init): Update.
11342         * i386-tdep.c (i386_gdbarch_init): Update.
11343         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11344         * hppa-tdep.c (hppa_gdbarch_init): Update.
11345         * h8300-tdep.c (h8300_gdbarch_init): Update.
11346         * frv-tdep.c (frv_gdbarch_init): Update.
11347         * cris-tdep.c (cris_gdbarch_init): Update.
11348         * avr-tdep.c (avr_gdbarch_init): Update.
11349         * arm-tdep.c (arm_gdbarch_init): Update.
11350         * alpha-tdep.c (alpha_gdbarch_init): Update.
11351         * sh-tdep.c (sh_init_extra_frame_info): Update.
11352         (sh64_init_extra_frame_info): Update.
11353         * ns32knbsd-nat.c (frame_num_args): Update.
11354         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11355         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11356         (xstormy16_frame_chain_valid): Update.
11357         * vax-tdep.c (vax_saved_pc_after_call): Update.
11358         * v850-tdep.c (v850_frame_chain): Update.
11359         (v850_pop_frame): Update.
11360         (v850_init_extra_frame_info): Update.
11361         * sparc-tdep.c (setup_arbitrary_frame): Update.
11362         * ns32k-tdep.c (umax_frame_num_args): Update.
11363         * s390-tdep.c (s390_pop_frame_regular): Update.
11364         * mn10300-tdep.c (mn10300_frame_chain): Update.
11365         (mn10300_pop_frame_regular): Update.
11366         (mn10300_init_extra_frame_info): Update.
11367         * mips-tdep.c (mips_init_frame_pc_first): Update.
11368         (mips_frame_chain): Update.
11369         (mips_pop_frame): Update.
11370         * mcore-tdep.c (mcore_frame_chain): Update.
11371         (mcore_pop_frame): Update.
11372         (mcore_init_extra_frame_info): Update.
11373         * arch-utils.c (init_frame_pc_default): Update.
11374         * m68k-tdep.c (isi_frame_num_args): Update.
11375         (delta68_frame_num_args): Update.
11376         (news_frame_num_args): Update.
11377         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11378         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11379         (alpha_frame_chain): Update.
11380         (alpha_pop_frame): Update.
11381         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11382         (hppa_init_extra_frame_info): Update.
11383         (hppa_frame_chain): Update.
11384         (hppa_frame_chain_valid): Update.
11385         * cris-tdep.c (cris_init_extra_frame_info): Update.
11386         * avr-tdep.c (avr_init_extra_frame_info): Update.
11387         * arm-tdep.c (arm_frame_chain_valid): Update.
11388         (arm_init_extra_frame_info): Update.
11389         (arm_pop_frame): Update.
11390         * frame.c (frame_pc_unwind): Update.
11391         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11392         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11393         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11394         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11395         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11396         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11397
11398 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11399
11400         Eliminate the need for POP_FRAME.
11401         * frame.c (do_frame_unwind_register): New function.
11402         (frame_pop): When no POP_FRAME, pop the frame using register
11403         unwind and a scratch regcache.
11404         (frame_saved_regs_pop): Delete function.
11405         (trad_frame_unwinder): Update.
11406         * d10v-tdep.c (d10v_frame_pop): Delete function.
11407         (d10v_frame_unwind): Update.
11408         * sentinel-frame.c (sentinel_frame_pop): Delete function.
11409         (sentinel_frame_unwinder): Update.
11410         * dummy-frame.c (dummy_frame_pop): Delete function.
11411         (dummy_frame_unwind): Update.
11412         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11413         (struct frame_unwind): Update.
11414
11415 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
11416
11417         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11418         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11419         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11420         Do range checks on register number obtained from debugging info.
11421         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11422         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
11423         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11424         mapping function.
11425         (do_fp_register_row): Fix typo which caused double type to be
11426         used when attempting to unpack a float.
11427
11428 2003-03-11  J. Brobecker  <brobecker@gnat.com>
11429
11430         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11431
11432 2003-03-11  Andrew Cagney  <cagney@redhat.com>
11433
11434         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11435         frame.  Problem found by Corinna Vinschen.
11436
11437 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
11438
11439         * doublest.c (floatformat_from_length): Accept also
11440         the real size of 'long double' type.
11441
11442 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
11443
11444         From Klee Dienes <kdienes@apple.com>:
11445         * breakpoint.c (bpstat_copy): Copy the command lines as well
11446         as the old value, to match what is freed in bpstat_clear.
11447
11448 2003-03-10  David Carlton  <carlton@math.stanford.edu>
11449
11450         * minsyms.c (add_minsym_to_hash_table): Replace
11451         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11452         (compare_minimal_symbols, compact_minimal_symbols)
11453         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11454         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11455         of DEPRECATED_SYMBOL_MATCHES_NAME.
11456         (lookup_minimal_symbol_solib_trampoline): Ditto.
11457
11458 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11459
11460         * regcache.h (regcache_cooked_read_ftype): Define.
11461         (regcache_save, regcache_restore): Add a cooked_read parameter.
11462         * regcache.c (regcache_save, regcache_restore): Update.
11463         (do_cooked_read): New function.
11464         (regcache_cpy): Pass do_cooked_read to regcache_save and
11465         regcache_restore.
11466
11467 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11468
11469         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11470         * gdbarch.h, gdbarch.c: Re-generate.
11471         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11472         * x86-64-tdep.h: Update.
11473         * x86-64-tdep.c (x86_64_init_abi): Update.
11474         * v850-tdep.c (v850_gdbarch_init): Update.
11475         * sparc-tdep.c (sparc_gdbarch_init): Update.
11476         * sh-tdep.c (sh_gdbarch_init): Update.
11477         * s390-tdep.c (s390_gdbarch_init): Update.
11478         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11479         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11480         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11481         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11482         * mips-tdep.c (mips_gdbarch_init): Update.
11483         * mcore-tdep.c (mcore_gdbarch_init): Update.
11484         * m68k-tdep.c (m68k_gdbarch_init): Update.
11485         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11486         * ia64-tdep.c (ia64_gdbarch_init): Update.
11487         * i386-tdep.c (i386_gdbarch_init): Update.
11488         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11489         * hppa-tdep.c (hppa_gdbarch_init): Update.
11490         * h8300-tdep.c (h8300_gdbarch_init): Update.
11491         * frv-tdep.c (frv_gdbarch_init): Update.
11492         * cris-tdep.c (cris_gdbarch_init): Update.
11493         * avr-tdep.c (avr_gdbarch_init): Update.
11494         * arm-tdep.c (arm_gdbarch_init): Update.
11495         * alpha-tdep.c (alpha_gdbarch_init): Update.
11496         * sh-tdep.c (sh_init_extra_frame_info): Update.
11497         (sh64_init_extra_frame_info): Update.
11498         * ns32knbsd-nat.c (frame_num_args): Update.
11499         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11500         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11501         (xstormy16_frame_chain_valid): Update.
11502         * vax-tdep.c (vax_saved_pc_after_call): Update.
11503         * v850-tdep.c (v850_frame_chain): Update.
11504         (v850_pop_frame): Update.
11505         (v850_init_extra_frame_info): Update.
11506         * sparc-tdep.c (setup_arbitrary_frame): Update.
11507         * ns32k-tdep.c (umax_frame_num_args): Update.
11508         * s390-tdep.c (s390_pop_frame_regular): Update.
11509         * mn10300-tdep.c (mn10300_frame_chain): Update.
11510         (mn10300_pop_frame_regular): Update.
11511         (mn10300_init_extra_frame_info): Update.
11512         * mips-tdep.c (mips_init_frame_pc_first): Update.
11513         (mips_frame_chain): Update.
11514         (mips_pop_frame): Update.
11515         * mcore-tdep.c (mcore_frame_chain): Update.
11516         (mcore_pop_frame): Update.
11517         (mcore_init_extra_frame_info): Update.
11518         * arch-utils.c (init_frame_pc_default): Update.
11519         * m68k-tdep.c (isi_frame_num_args): Update.
11520         (delta68_frame_num_args): Update.
11521         (news_frame_num_args): Update.
11522         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11523         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11524         (alpha_frame_chain): Update.
11525         (alpha_pop_frame): Update.
11526         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11527         (hppa_init_extra_frame_info): Update.
11528         (hppa_frame_chain): Update.
11529         (hppa_frame_chain_valid): Update.
11530         * cris-tdep.c (cris_init_extra_frame_info): Update.
11531         * avr-tdep.c (avr_init_extra_frame_info): Update.
11532         * arm-tdep.c (arm_frame_chain_valid): Update.
11533         (arm_init_extra_frame_info): Update.
11534         (arm_pop_frame): Update.
11535         * frame.c (frame_pc_unwind): Update.
11536         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11537         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11538         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11539         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11540         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11541         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11542
11543 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11544
11545         * gdbarch.sh (gdbarch_unwind_pc): New method.
11546         * gdbarch.h, gdbarch.c: Regenerate.
11547         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
11548         but use read_pc and FRAME_SAVED_PC as fall backs.
11549         (frame_saved_regs_pc_unwind): Delete function.
11550         (trad_frame_unwinder): Update.
11551         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11552         (struct frame_unwind): Update.
11553         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11554         (dummy_frame_unwind): Update.
11555         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11556         (sentinel_frame_unwinder): Update.
11557         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11558         (d10v_frame_unwind): Update.
11559         (d10v_unwind_pc): New function.
11560         (d10v_gdbarch_init): Set unwind_pc.
11561
11562 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11563
11564         * gdbarch.h: Re-generate.
11565
11566         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11567         PC.
11568         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11569         the PC register.
11570
11571 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
11572
11573         * gdbarch.sh (save_dummy_frame_tos): Add comment.
11574
11575 2003-03-08  Andrew Cagney  <cagney@redhat.com>
11576
11577         * cli-out.c: Update copyright.
11578         (cli_out_data): Define typedef.  Use instead of ui_out_data.
11579
11580 2003-03-08  Andrew Cagney  <cagney@redhat.com>
11581
11582         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11583         the result.
11584
11585 2003-03-07  Andrew Cagney  <cagney@redhat.com>
11586
11587         * gdbarch.sh: Don't generate two macro definitions when an
11588         undefined macro taking no arguments.
11589         * gdbarch.h: Regenerate.
11590
11591 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
11592
11593         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11594         (x86_64_unwind_dummy_id): New functions.
11595         (x86_64_init_abi): Register these two new functions.
11596
11597 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
11598
11599         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11600         (x86_64_skip_prologue): Move prologue detection to
11601         separate function.
11602         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11603
11604 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11605
11606         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11607         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11608         * frame.c (get_prev_frame): Restructure the frame ID unwind code
11609         to use unwind_dummy_id when a dummy frame.
11610         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11611         predicate.
11612         * gdbarch.h, gdbarch.c: Regneerate.
11613
11614 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11615
11616         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11617         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11618         Do not use d10v_read_sp or d10v_read_fp when obtaining register
11619         values.
11620
11621 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11622
11623         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11624         (struct d10v_unwind_cache): Delete field "frameless".  Replace
11625         "next_addr" with "sp_offset".  Add "r11_offset".
11626         (d10v_frame_unwind_cache): Update.
11627         (prologue_find_regs): Update.  When "mv r11, sp", save the
11628         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
11629         RN was saved in r11_offset.
11630
11631 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11632
11633         * frame.c (deprecated_update_frame_pc_hack): Also update the the
11634         cached PC value in the next frame.
11635
11636 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11637
11638         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11639         "id_unwind_cache" with "id".
11640         (frame_id_unwind): Delete declaration.
11641         * frame.c (frame_id_unwind): Delete function.
11642         (get_prev_frame): Call the frame id unwind method directly.  Store
11643         the returned next frame's ID value in NEXT_FRAME.  Note that there
11644         is a problem with the wrong unwind ID being called with the wrong
11645         unwind cache.
11646
11647 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
11648
11649         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11650
11651 2003-03-05  James Ingham <jingham@apple.com>
11652             Daniel Jacobowitz  <drow@mvista.com>
11653
11654         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11655         (auto_cp_abi): New variable.
11656         (current_cp_abi, num_cp_abis): Make static.
11657         (CP_ABI_MAX): Define.
11658         (cp_abis): Turn into an array.
11659         (value_virtual_fn_field): Fix formatting.
11660         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
11661         takes a pointer.
11662         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11663         (list_cp_abis, _initialize_cp_abi): New functions.
11664         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
11665         declarations for cp_abis, num_cp_abis, current_cp_abi, and
11666         switch_to_cp_abi.  Update prototype for register_cp_abi.
11667         * Makefile.in (cp-abi.o): Update dependencies.
11668         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11669         instead of switch_to_cp_abi.
11670         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
11671         register_cp_abi.
11672         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11673         register_cp_abi.
11674         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11675
11676 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
11677
11678         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11679         * dwarf2loc.c: Include "regcache.h".
11680         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
11681         register_size.
11682         * Makefile.in (dwarf2loc.o): Update dependencies.
11683
11684 2003-03-04  Theodore A. Roth  <troth@openavr.org>
11685
11686         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11687         number of io registers reported by remote target is not a multiple of
11688         step.
11689
11690 2003-03-04  David Carlton  <carlton@math.stanford.edu>
11691
11692         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11693         (lookup_symbol_aux_psymtabs): Update call to
11694         lookup_partial_symbol.
11695         (lookup_transparent_type, find_main_psymtab)
11696         (make_symbol_overload_list): Ditto.
11697
11698 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
11699
11700         * MAINTAINERS (Write after approval): Update my email address.
11701
11702 2003-03-03  Andrew Cagney  <cagney@redhat.com>
11703
11704         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11705         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11706         predicate.  Replace MAX_REGISTER_RAW_SIZE.
11707         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11708         MAX_REGISTER_VIRTUAL_SIZE.
11709         * regcache.c (legacy_max_register_raw_size): New function.
11710         (legacy_max_register_virtual_size): New function.
11711         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11712         (MAX_REGISTER_RAW_SIZE): Define.
11713         (legacy_max_register_raw_size): Declare.
11714         (legacy_max_register_virtual_size): Declare.
11715         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11716         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11717         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11718         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11719         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11720         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11721         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11722         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11723         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11724         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11725         * vax-tdep.c (vax_gdbarch_init): Update.
11726         * v850-tdep.c (v850_gdbarch_init): Update.
11727         * sparc-tdep.c (sparc_gdbarch_init): Update.
11728         * sh-tdep.c (sh_gdbarch_init): Update.
11729         * s390-tdep.c (s390_gdbarch_init): Update.
11730         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11731         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11732         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11733         * mips-tdep.c (mips_gdbarch_init): Update.
11734         * mcore-tdep.c (mcore_gdbarch_init): Update.
11735         * m68k-tdep.c (m68k_gdbarch_init): Update.
11736         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11737         * ia64-tdep.c (ia64_gdbarch_init): Update.
11738         * i386-tdep.c (i386_gdbarch_init): Update.
11739         * hppa-tdep.c (hppa_gdbarch_init): Update.
11740         * h8300-tdep.c (h8300_gdbarch_init): Update.
11741         * frv-tdep.c (frv_gdbarch_init): Update.
11742         * cris-tdep.c (cris_gdbarch_init): Update.
11743         * avr-tdep.c (avr_gdbarch_init): Update.
11744         * arm-tdep.c (arm_gdbarch_init): Update.
11745         * alpha-tdep.c (alpha_gdbarch_init): Update.
11746         * d10v-tdep.c (d10v_gdbarch_init): Do not set
11747         max_register_raw_size or max_register_virtual_size.
11748
11749 2003-03-03  David Carlton  <carlton@math.stanford.edu>
11750
11751         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11752         SYMBOL_MATCHES_NAME, add comment.
11753         (SYMBOL_MATCHES_NATURAL_NAME): New.
11754         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11755         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11756         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11757         * symtab.c (lookup_partial_symbol): Use
11758         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
11759         unhelpful comment.
11760         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11761         SYMBOL_MATCHES_NAME.
11762         Fix for PR c++/33.
11763
11764 2003-03-03  David Carlton  <carlton@math.stanford.edu>
11765
11766         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11767         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11768         by regexp matching against SYMBOL_NATURAL_NAME.
11769
11770 2003-03-03  David Carlton  <carlton@math.stanford.edu>
11771
11772         * linespec.c (find_method): Extract code into collect_methods.
11773         (collect_methods): New.
11774
11775 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
11776
11777         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11778         get_frame_base.
11779
11780         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11781         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11782
11783 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
11784
11785         * arch-utils.c (generic_register_byte): Fix to use the loop index
11786         and not regnum when summing the size of all registers up to regnum.
11787
11788 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11789
11790         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11791         FRAME_INIT_SAVED_REGS.
11792         * gdbarch.h, gdbarch.c: Regenerate.
11793         * stack.c (frame_info): Update.
11794         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11795         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11796         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11797         * ns32k-tdep.c (ns32k_pop_frame): Update.
11798         * mips-tdep.c (mips_pop_frame): Update.
11799         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11800         * ia64-tdep.c (ia64_frame_chain): Update.
11801         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11802         (ia64_frameless_function_invocation): Update.
11803         (ia64_init_extra_frame_info): Update.
11804         (ia64_pop_frame_regular): Update.
11805         * frame.h (struct frame_info): Update comment.
11806         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11807         * frame.c (frame_saved_regs_register_unwind): Update.
11808         (frame_saved_regs_register_unwind): Update.
11809         (deprecated_generic_get_saved_register): Update.
11810         * cris-tdep.c: Update comment.
11811         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11812         Rename macro.
11813         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11814         * x86-64-tdep.c (x86_64_init_abi): Update.
11815         * vax-tdep.c (vax_gdbarch_init): Update.
11816         * v850-tdep.c (v850_gdbarch_init): Update.
11817         * sparc-tdep.c (sparc_gdbarch_init): Update.
11818         * sh-tdep.c (sh_gdbarch_init): Update.
11819         * s390-tdep.c (s390_gdbarch_init): Update.
11820         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11821         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11822         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11823         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11824         * mips-tdep.c (mips_gdbarch_init): Update.
11825         * mcore-tdep.c (mcore_gdbarch_init): Update.
11826         * m68k-tdep.c (m68k_gdbarch_init): Update.
11827         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11828         * ia64-tdep.c (ia64_gdbarch_init): Update.
11829         * i386-tdep.c (i386_gdbarch_init): Update.
11830         * frv-tdep.c (frv_gdbarch_init): Update.
11831         * avr-tdep.c (avr_gdbarch_init): Update.
11832         * arm-tdep.c (arm_gdbarch_init): Update.
11833         * alpha-tdep.c (alpha_gdbarch_init): Update.
11834
11835 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11836
11837         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11838         option enum and switch.  When no windows, set the interpreter to
11839         INTERP_CONSOLE.
11840
11841 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11842
11843         * main.c (captured_main): Replace magic option characters with an
11844         enum.
11845
11846 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11847
11848         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11849         INIT_EXTRA_FRAME_INFO.
11850         * gdbarch.h, gdbarch.c: Regenerate.
11851         * arm-tdep.c: Update comments.
11852         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11853         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11854         * frame.h, avr-tdep.c: Ditto.
11855         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11856         (create_new_frame, legacy_get_prev_frame): Ditto.
11857         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11858         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11859         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11860         deprecated_init_extra_frame_info instead of init_extra_frame_info.
11861         * x86-64-tdep.c (x86_64_init_abi): Ditto.
11862         * v850-tdep.c (v850_gdbarch_init): Ditto.
11863         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11864         * sh-tdep.c (sh_gdbarch_init): Ditto.
11865         * s390-tdep.c (s390_gdbarch_init): Ditto.
11866         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11867         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11868         * mips-tdep.c (mips_gdbarch_init): Ditto.
11869         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11870         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11871         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11872         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11873         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11874         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11875         * frv-tdep.c (frv_gdbarch_init): Ditto.
11876         * cris-tdep.c (cris_gdbarch_init): Ditto.
11877         * avr-tdep.c (avr_gdbarch_init): Ditto.
11878         * arm-tdep.c (arm_gdbarch_init): Ditto.
11879         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11880         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11881
11882 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11883
11884         * gdbarch.sh (register_type): New function with predicate.
11885         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11886         * gdbarch.h, gdbarch.c: Re-generate.
11887         * arch-utils.c (generic_register_byte): Use generic_register_size.
11888         (generic_register_size): When available, use
11889         gdbarch_register_type.
11890         * regcache.c (init_regcache_descr): When available, initialize the
11891         register type array using gdbarch_register_type.  If the
11892         architecture supplies gdbarch_register_type, do not use the legacy
11893         regcache layout.
11894         * d10v-tdep.c (d10v_register_type): Replace
11895         d10v_register_virtual_type.
11896         (d10v_gdbarch_init): Set register_type instead of
11897         register_virtual_type.
11898
11899 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11900
11901         * Makefile.in (ax-gdb.o): Update dependencies.
11902         * ax-gdb.c: Include "regcache.h".
11903         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11904         * findvar.c (value_of_register): Ditto.
11905         * infcmd.c (default_print_registers_info): Ditto.
11906
11907 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
11908
11909         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11910         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11911
11912 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
11913
11914         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11915         of STREQ.
11916
11917 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
11918
11919         * Makefile.in (dwarf2loc.o): Update dependencies.
11920         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11921         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11922         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11923         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11924         (locexpr_tracepoint_var_ref): New function.
11925         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11926
11927 2003-02-28  Andrew Cagney  <cagney@redhat.com>
11928
11929         * regcache.c (register_size): New function.
11930         * regcache.h (register_size): Declare
11931         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11932         max_register_size instead of MAX_REGISTER_RAW_SIZE.
11933
11934 2003-02-28  David Carlton  <carlton@math.stanford.edu>
11935
11936         * linespec.c (decode_compound): Extract code into find_method.
11937         (find_method): New.
11938
11939 2003-02-28  J. Brobecker  <brobecker@gnat.com>
11940
11941         * Makefile.in: Add rules to build and link in observer.o.
11942
11943 2003-02-27  J. Brobecker  <brobecker@gnat.com>
11944
11945         * observer.c: Minor comments edits.
11946
11947 2003-02-27  J. Brobecker  <brobecker@gnat.com>
11948
11949         * observer.h, observer.c: New file.
11950
11951 2003-02-27  Andrew Cagney  <cagney@redhat.com>
11952
11953         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11954
11955 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
11956
11957         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11958         (M6812_OP_STS_EXT): Likewise.
11959         (m6811_prologue): Use the above to recognize prologue.
11960         (m6812_prologue): Likewise.
11961
11962 2003-02-27  David Carlton  <carlton@math.stanford.edu>
11963
11964         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11965         SYMBOL_PRINT_NAME.
11966         (compare_psymbols): Ditto.
11967         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11968
11969 2003-02-27  Michael Snyder  <msnyder@redhat.com>
11970
11971         * f-lang.c (build_fortran_types): New function.
11972         (_initialize_f_language): Gdbarch-register built-in fortran types.
11973         * doublest.c (extract_floating): Fix warning text.
11974
11975 2003-02-27  Andrew Cagney  <cagney@redhat.com>
11976
11977         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11978         predicate.  Replaces PUSH_DUMMY_FRAME.
11979         * gdbarch.h, gdbarch.c: Regnerate.
11980         * valops.c (hand_function_call): Update.  Call
11981         generic_push_dummy_frame directly.
11982         * vax-tdep.c (vax_gdbarch_init): Update.
11983         * sparc-tdep.c (sparc_gdbarch_init): Update.
11984         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11985         * m68k-tdep.c (m68k_gdbarch_init): Update.
11986         * hppa-tdep.c (hppa_gdbarch_init): Update.
11987         * alpha-tdep.c (alpha_gdbarch_init): Update.
11988         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11989         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11990         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11991         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11992         push_dummy_frame to generic_push_dummy_frame.
11993         * v850-tdep.c (v850_gdbarch_init): Ditto.
11994         * sh-tdep.c (sh_gdbarch_init): Ditto.
11995         * s390-tdep.c (s390_gdbarch_init): Ditto.
11996         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11997         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11998         * mips-tdep.c (mips_gdbarch_init): Ditto.
11999         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12000         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12001         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12002         * i386-tdep.c (i386_gdbarch_init): Ditto.
12003         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12004         * frv-tdep.c (frv_gdbarch_init): Ditto.
12005         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12006         * cris-tdep.c (cris_gdbarch_init): Ditto.
12007         * avr-tdep.c (avr_gdbarch_init): Ditto.
12008         * arm-tdep.c (arm_gdbarch_init): Ditto.
12009
12010 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
12011
12012         * mips-tdep.c (show_mips_abi): New function.
12013         (_initialize_mips_tdep): Use show_mips_abi() to implement the
12014         command ``show mips abi''.
12015
12016 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
12017
12018         From Elena Zannoni  <ezannoni@redhat.com>
12019         * dbxread.c (process_one_symbol): Only record line 0 if one or
12020         more sline entries have been seen for the function.
12021
12022 2003-02-26  Michael Chastain  <mec@shout.net>
12023
12024         * configure: Regenerate with autoconf 000227.
12025
12026 2003-02-26  Michael Chastain  <mec@shout.net>
12027
12028         Close PR build/660.
12029         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12030         for old libc5/glibc.
12031         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12032
12033 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
12034
12035         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12036         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12037
12038 2003-02-26  Michael Chastain  <mec@shout.net>
12039
12040         * configure.in: New variable HAVE_UINTPTR_T.
12041         * configure, config.in: Regenerated.
12042
12043 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
12044
12045         Fix PR build/1097.
12046         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12047
12048 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12049
12050         * frame.c (get_prev_frame): Add comment on check for
12051         inside_entry_func. Only check for inside_entry_file when not a
12052         dummy and not a sentinel.  Check that the new frame is not inner
12053         to the old frame.
12054
12055 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12056
12057         * frame.c (frame_debug): New variable.
12058         (_initialize_frame): Add "set/show debug frame" command.
12059         (get_prev_frame): When frame_debug, print reason why unwind
12060         failed.
12061
12062 2003-02-25  Michael Chastain  <mec@shout.net>
12063
12064         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12065         to avoid uintptr_t definition problems.
12066
12067 2003-02-25  David Carlton  <carlton@math.stanford.edu>
12068
12069         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12070         (SYMBOL_LINKAGE_NAME): Ditto.
12071         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12072         SYMBOL_LINKAGE_NAME.
12073         (struct general_symbol_info): Expand comment.
12074         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12075         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12076         (SYMBOL_MATCHES_REGEXP): Ditto.
12077         * symtab.c (symbol_natural_name): New function.
12078         * objfiles.h: Replace all uses of SYMBOL_NAME by
12079         DEPRECATED_SYMBOL_NAME.
12080         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12081         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12082         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12083         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12084         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12085         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12086         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12087         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12088         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12089         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12090         * ada-exp.y: Ditto.
12091         * ada-exp.y: Update copyright.
12092         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12093         * cp-valprint.c: Ditto.
12094
12095 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
12096
12097         * infptrace.c (detach): Do not flag error if ptrace detach fails
12098         and errno is set to ESRCH.
12099
12100 2003-02-24  Andrew Cagney  <cagney@redhat.com>
12101
12102         * infptrace.c (udot_info): Change type of udot_off to long.  Use
12103         paddr when printing udot_off's value.
12104
12105 2003-02-24  David Carlton  <carlton@math.stanford.edu>
12106
12107         * symtab.c (make_symbol_overload_list): Only read in partial
12108         symtabs containing a matching partial symbol.
12109
12110 2003-02-24  David Carlton  <carlton@math.stanford.edu>
12111
12112         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12113         do the comparison, not strcmp.
12114         * symfile.c (compare_psymbols): Ditto.
12115         * defs.h: Declare strcmp_iw_ordered.
12116         * utils.c (strcmp_iw_ordered): New function.
12117
12118 2003-02-24  Jim Blandy  <jimb@redhat.com>
12119
12120         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12121         support, shared libs): Remove my name from here, to better reflect
12122         reality.
12123
12124 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12125
12126         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12127         (target_ops): Add to_have_continuable_watchpoint.
12128         * target.c (update_current_target): Add INHERIT line for
12129         to_have_continuable_watchpoint.
12130         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12131         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12132         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12133         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12134
12135 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
12136
12137         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12138         maintainership.
12139
12140 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12141
12142         * solib.c (solib_open): Call target defined search function after
12143         failing with solib-search-path.
12144         * solist.h (target_so_ops): Add find_and_open_solib function hook and
12145         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12146
12147 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12148
12149         * MAINTAINERS: Add myself to Write After section.
12150
12151 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
12152
12153         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12154
12155 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
12156
12157         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12158         (m68hc11_add_reggroups): New function.
12159         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12160         (m68hc11_gdbarch_init): Install the reggroups.
12161         (_initialize_m68hc11_tdep): Initialize them.
12162
12163 2003-02-21  James E Wilson  <wilson@tuliptree.org>
12164
12165         * MAINTAINERS: Update my email address.
12166
12167 2003-02-21  David Carlton  <carlton@math.stanford.edu>
12168
12169         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12170
12171 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
12172
12173         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12174         * symtab.h: Add opaque declarations of struct axs_value and
12175         struct agent_expr.
12176         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12177         (struct location_funcs): New type.
12178         (struct symbol): Add "loc" to aux_value.
12179         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12180         * dwarf2read.c: Include "dwarf2expr.h".
12181         (dwarf2_symbol_mark_computed): New function.
12182         (read_func_scope): Use it.
12183         (var_decode_location): New function.
12184         (new_symbol): Use it.
12185         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12186
12187         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12188         (dwarf2expr_h, dwarf2loc_h): New variables.
12189         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12190         (dwarf2expr.o, dwarf2loc.o): New rules.
12191         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12192         * buildsym.c (finish_block): Handle LOC_COMPUTED and
12193         LOC_COMPUTED_ARG.
12194         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12195         * m2-exp.y (yylex): Likewise.
12196         * printcmd.c (address_info, print_frame_args): Likewise.
12197         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12198         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12199         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12200         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12201         * symtab.c (lookup_block_symbol): Likewise.
12202
12203 2003-02-20  Adam Fedor  <fedor@gnu.org>
12204
12205         * symtab.h: Remove objc_specific struct
12206         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12207         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12208         Have language_objc use cplus_specific struct.
12209
12210 2003-02-20  Tom Tromey  <tromey@redhat.com>
12211
12212         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12213         TYPE_NAME, when printing a String value.  PR java/1075.
12214
12215 2003-02-20  Adam Fedor  <fedor@gnu.org>
12216
12217         * objc-lang.h (find_methods): Remove declaration.
12218         * objc-lang.c (find_methods): Make static.
12219
12220 2003-02-20  Christopher Faylor  <cgf@redhat.com>
12221
12222         * win32-nat.c (get_image_name): Check return value from
12223         ReadProcessMemory.
12224         (child_xfer_memory): Ditto.
12225
12226 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
12227
12228         * configure.in (TARGET_SYSTEM_ROOT): Set default to
12229         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
12230         '${exec_prefix}' (in addition to the expansion thereof) as
12231         relocatable.
12232         * configure: Rebuilt.
12233
12234 2003-02-20  David Carlton  <carlton@math.stanford.edu>
12235
12236         * symtab.c (search_symbols): Revert the search_symbols part of my
12237         2002-12-23 patch.  Add comment.
12238
12239 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12240
12241         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12242         * dbxread.c (elfstab_build_psymtabs): Don't call
12243         install_minimal_symbols.
12244         (stabsect_build_psymtabs): Likewise.
12245         * elfread.c (elf_symfile_read): Call install_minimal_symbols
12246         earlier.
12247         * somread.c (som_symfile_read): Call install_minimal_symbols
12248         and do_cleanups earlier.
12249         * nlmread.c (nlm_symfile_read): Likewise.
12250         * mdebugread.c (elfmdebug_build_psymtabs): Call
12251         install_minimal_symbols and make appropriate cleanups.
12252
12253 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
12254
12255         * solib.c (reload_shared_libraries): New function.
12256         (_initialize_solib): Add callbacks for ``set solib-search-path''
12257         and ``set solib-absolute-prefix''.
12258
12259 2003-02-20  David Carlton  <carlton@math.stanford.edu>
12260
12261         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12262         expand comment.
12263         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12264         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12265         * ada-typeprint.c (ada_typedef_print): Ditto.
12266         * ax-gdb.c (gen_var_ref): Ditto.
12267         * breakpoint.c (print_one_breakpoint): Ditto.
12268         * buildsym.c (finish_block): Ditto.
12269         * c-valprint.c (c_val_print): Ditto.
12270         * expprint.c (print_subexp): Ditto.
12271         * findvar.c (locate_var_value): Ditto.
12272         * infcmd.c (jump_command): Ditto.
12273         * linespec.c (decode_line_2, decode_compound): Ditto.
12274         * maint.c (maintenance_translate_address): Ditto.
12275         * objc-lang.c (compare_selectors, compare_classes): Ditto.
12276         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12277         Ditto.
12278         * p-valprint.c (pascal_val_print): Ditto.
12279         * stabsread.c (define_symbol): Ditto.
12280         * stack.c (print_frame, frame_info, print_block_frame_locals)
12281         (print_frame_arg_vars, return_command): Ditto.
12282         * symfile.c (compare_symbols, compare_psymbols): Ditto.
12283         * symmisc.c (print_symbol): Ditto.
12284         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12285         (compare_search_syms, print_symbol_info, print_msymbol_info)
12286         (rbreak_command): Ditto.
12287         * tracepoint.c (tracepoints_info): Ditto.
12288         * typeprint.c (typedef_print): Ditto.
12289         * valops.c (value_of_variable, hand_function_call): Ditto.
12290         * cli/cli-cmds.c (edit_command, list_command): Ditto.
12291         * ada-typeprint.c: Update Copyright.
12292         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12293         * tracepoint.c, cli/cli-cmds.c: Ditto.
12294
12295 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
12296
12297         * frame.c (generic_unwind_get_saved_register): Make non-static.
12298         * frame.h (generic_unwind_get_saved_register): Declare.
12299         * mips-tdep.c (read_next_frame_reg): Fetch register from
12300         current regcache when frame is NULL.
12301         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12302         that must be NULL.
12303         (mips_get_saved_register): Call generic_unwind_get_saved_register()
12304         instead of frame_register_unwind().
12305
12306 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
12307
12308         * remote-sim.c (gdbsim_insert_breakpoint)
12309         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12310         code.
12311
12312 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
12313
12314         * remote.c (_initialize_remote): Add commands "set/show remote
12315         hardware-watchpoint-limit" and "set/show remote
12316         hardware-breakpoint-limit".
12317         (remote_hw_watchpoint_limit): Initialize to -1.
12318         (remote_hw_breakpoint_limit): Ditto.
12319         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12320
12321 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
12322
12323         * coff-pe-read.c: New file - support reading of minimal symbols from a
12324         portable executable using the export table.
12325         * coff-pe-read.h: New file.
12326         * coffread.c: Include coff-pe-read.h.
12327         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12328         debugging symbols found.
12329         * Makefile.in (SFILES): Add coff-pe-read.o.
12330         (coff_pe_read_h): Define.
12331         (COMMON_OBS): Add coff-pe-read.o.
12332         (coffread.o): Add coff_pe_read_h dependency.
12333         (coff-pe-read.o): New target.
12334
12335 2003-02-19  David Carlton  <carlton@math.stanford.edu>
12336
12337         * Makefile.in (SFILES): Add block.c.
12338         (block_h): New.
12339         (COMMON_OBS): Add block.o.
12340         (block.o): New.
12341         (x86-64-tdep.o): Add $(block_h).
12342         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12343         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12344         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12345         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12346         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12347         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12348         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12349         * value.h: Add opaque declaration for struct block.
12350         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12351         * ada-lang.h: Ditto.
12352         * x86-64-tdep.c: #include "block.h"
12353         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12354         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12355         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12356         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12357         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12358         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12359         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12360         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12361         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12362         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12363         * symtab.c (block_function): Ditto.
12364         (contained_in): Ditto.
12365         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12366         block.h.  Add opaque declaration for struct block.
12367         * symtab.h: Move block_function and contained_in declarations to
12368         block.h.  Add opaque declarations for struct block, struct
12369         blockvector.
12370         (struct block): Move to block.h.
12371         (struct blockvector): Ditto.
12372         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12373         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12374         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12375         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12376         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12377         Ditto.
12378         * block.c: New file.
12379         * block.h: New file.
12380
12381 2003-02-19  Theodore A. Roth  <troth@openavr.org>
12382
12383         * avr-tdep.c (avr_extract_return_value): Remove function.
12384         (avr_store_return_value): Remove function.
12385         (avr_extract_struct_value_address): Remove function.
12386         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12387
12388 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
12389
12390         * rs6000-tdep.c: Include "gdb_assert.h".
12391         (registers_e500): Add "acc" and "spefscr".
12392         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12393         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12394         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
12395         really is "r0".
12396         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12397
12398 2003-02-18  Keith Seitz  <keiths@redhat.com>
12399
12400         * Makefile.in: Add gdbtk-interps.c.
12401
12402 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
12403
12404         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12405         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12406
12407 2003-02-18  Andrew Cagney  <cagney@redhat.com>
12408
12409         * symtab.h (struct objfile): Add opaque declaration.
12410
12411 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
12412
12413         From Jim Ingham   <jingham@apple.com>:
12414         * dbxread.c (process_one_symbol): Use last_function_start rather
12415         than function_start_offset to find the real beginning of the
12416         current function.  The latter is just the text section offset on
12417         some systems, the former is always the real function start.
12418
12419 2003-02-17  Andrew Cagney  <cagney@redhat.com>
12420
12421         * configure.in: Revert ${target} != ${host}.
12422
12423 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
12424
12425         * configure.in (Makefile): Use the test ${target} != ${host},
12426         instead of the absence of the "nm.h" file, to determine of the
12427         configuration non-native.
12428         * configure: Regenerate.
12429
12430 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
12431
12432         From Brian Ford  <ford@vss.fsi.com>
12433
12434         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12435         conditionalize tui_active test.
12436         (lookup_cmd_1): Ditto.
12437
12438 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
12439
12440         * configure.in: Add check for _etext.
12441         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12442         available.
12443         * config.in, configure: regenerated.
12444
12445 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
12446
12447         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12448
12449 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
12450
12451         * main.c (tui_version): Delete variable.
12452         (captured_main): When --tui, set interpreter_p to "tui" instead of
12453         enabling tui_version.
12454         * printcmd.c (display_command) [TUI]: Test tui_active instead of
12455         tui_version.
12456         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12457         * cli/cli-cmds.c (disassemble_command): Ditto.
12458         * defs.h (tui_version): Delete declaration.
12459         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12460         (tui-interp.o): Add rules.
12461         (SUBDIR_TUI_OBS): Add "tui-interp.o".
12462
12463 2003-02-14  Christopher Faylor  <cgf@redhat.com>
12464
12465         * win32-nat.c (register_loaded_dll): Correctly set address range for
12466         just-loaded dll.
12467
12468 2003-02-12  Jason Molenda  (jmolenda@apple.com)
12469
12470         * symmisc.c (print_objfile_statistics): Include information about
12471         the number of psymtabs and symtabs in each object file.
12472
12473 2003-02-13  Keith R Seitz  <keiths@redhat.com>
12474
12475         * main.h (struct captured_main_args): Add interpreter_p.
12476         * main.c (captured_main): Initialize interpreter_p from context.
12477         * gdb.c (main): Set interpreter_p argument.
12478         * Makefile.in (gdb.o): Add dependency for interps.h.
12479
12480 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
12481
12482         * event-top.c (cli_command_loop): Delete declaration.
12483         (_initialize_event_loop): Delete function setting event_loop_hook.
12484         * event-top.h (cli_command_loop): Declare.  Update copyright.
12485         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
12486         * interps.c (current_interp_command_loop): When event_loop_p, call
12487         cli_command_loop.
12488
12489 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
12490
12491         * interps.h (interp_command_loop_ftype): Change return type to
12492         void.
12493
12494 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
12495
12496         * x86-64-tdep.c (x86_64_extract_return_value)
12497         (x86_64_store_return_value): Use regcache instead of regbuf.
12498         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12499         * x86-64-linux-nat.c (fill_gregset): Use regcache.
12500
12501 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
12502
12503         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12504         * aclocal.m4: Regenerate.
12505         * configure: Regenerate.
12506
12507         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12508         TCL_LD_SEARCH_FLAGS.
12509
12510 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
12511
12512         * dwarf2cfi.c: Reindented.
12513
12514 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
12515
12516         * interps.c (clear_interpreter_hooks): Convert function definition
12517         to ISO C.
12518
12519 2003-02-07  David Carlton  <carlton@math.stanford.edu>
12520
12521         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12522
12523 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
12524
12525         * gdbtypes.h (struct main_type): Move ``length'' field from here...
12526         (struct type): ...to here.
12527         (TYPE_LENGTH): Adjust to reflect different location of ``length''
12528         field.
12529         * gdbtypes.c (make_qualified_type): Set length on newly created type.
12530         (replace_type): Set length on all type variants for a given type.
12531
12532 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
12533
12534         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12535         <sys/stat.h>.
12536         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12537
12538 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
12539
12540         * Makefile.in (symm-nat.o): Update dependencies.
12541         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12542         (lynx-nat.o, ia64-linux-nat.): Ditto.
12543         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12544         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12545         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12546
12547         * Makefile.in (inflow_h): Define.
12548         (procfs.o, inflow.o, procfs.o): Update dependencies.
12549         * inftarg.c (child_stop): Delete extern declaration of
12550         inferior_process_group.  Include "inflow.h".
12551         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
12552         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12553         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
12554         (our_process_group, inferior_process_group): Extern declarations.
12555
12556         * procfs.c: Include "gdb_assert.h".
12557
12558         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12559         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12560         * jv-typeprint.c (java_type_print_base): Ditto.
12561         * typeprint.c (typedef_print): Eliminate STREQ.
12562         * cli/cli-script.c (define_command, define_command): Ditto.
12563         * main.c (captured_main): Ditto.
12564         * values.c (lookup_internalvar): Ditto.
12565         * utils.c (safe_strerror, parse_escape): Eliminate assignment
12566         within `if' conditional.
12567         * linespec.c (decode_line_2): Ditto.
12568         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12569         (bfd_openw_with_cleanup): Ditto.
12570
12571 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
12572
12573         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12574         legacy_extract_return_value and store_return_value to
12575         legacy_return_value.
12576
12577 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
12578
12579         * win32-nat.c (get_relocated_section_addrs): New function.  Find
12580         section load addresses for symbol handling in relocated DLLs.
12581         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12582
12583 2003-02-05  Fred Fish  <fnf@intrinsity.com>
12584
12585         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12586         '=' and '!='.
12587         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12588         with '&' and '=='.
12589         (angel_RDI_info): Ditto.
12590         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12591         with '&' and '!='.
12592         (threads_continue_all_with_signals): Ditto.
12593
12594 2003-02-05  Jim Ingham <jingham@apple.com>
12595             Keith Seitz  <keiths@redhat.com>
12596             Elena Zannoni  <ezannoni@redhat.com>
12597             Andrew Cagney  <ac131313@redhat.com>
12598
12599         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12600         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12601         (SUBDIR_MI_OBS): Add "mi-interp.o".
12602         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12603         (SFILES): Add "interps.c".
12604         (COMMON_OBS): Add "interps.o".
12605         (interps_h, mi_main_h): Define.
12606         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12607         (mi-main.o, main.o, event-top.o): Update dependencies.
12608         * cli/cli-interp.c: New file.
12609         * interps.h, interps.c: New files.
12610         * top.c: (gdb_init): Don't install the default interpreter, handed
12611         by captured_main.
12612         * main.c: Include "interps.h".
12613         (interpreter_p): Note that it should malloc'ed.
12614         (captured_command_loop): Call current_interp_command_loop.
12615         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
12616         xfree and xstrdup when updating interpreter_p.  Install the
12617         default interpreter.  Add hack to stop mi1's copyright notice
12618         being encoded.
12619         * event-top.h (gdb_setup_readline): Declare.
12620         (gdb_disable_readline): Declare.
12621         * event-top.c: Include "interps.h".
12622         (display_gdb_prompt): Call current_interp_display_prompt_p.
12623         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12624         gdb_stdlog, and gdb_stdtarg.
12625         (_initialize_event_loop): Don't call gdb_setup_readline.
12626         * cli-out.c (cli_out_set_stream): New function.
12627         * cli-out.h (cli_out_set_stream): Declare.
12628
12629 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
12630
12631         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12632         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
12633         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12634         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12635         config/i386/i386v42mp.mt: Removed.
12636
12637 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
12638
12639         * configure.tgt (*-*-solaris*): Set gdb_osabi to
12640         GDB_OSABI_SOLARIS.
12641
12642 2003-02-05  Michael Chastain  <mec@shout.net>
12643
12644         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12645         2.12.1 and earlier versions.
12646
12647 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
12648
12649         Remove orphaned hosts, targets and files.
12650         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12651         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12652         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12653         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12654         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12655         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12656         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12657         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12658         * config/sparc/tm-sp64sim.h: Delete.
12659         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12660         hosts.
12661         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12662         mips*-dec-mach3* targets.
12663
12664 2003-02-04  Michael Chastain  <mec@shout.net>
12665
12666         * NEWS: Fix typo: sepcifying -> specifying.
12667
12668 2003-02-04  Michael Chastain  <mec@shout.net>
12669
12670         * dwarfread.c: Add documentation on the state of dwarf-1,
12671         looking towards obsoletion.
12672
12673 2003-02-03  Michael Chastain  <mec@shout.net>
12674
12675         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12676         gdb/testsuite/gdb.c++/pr-1023.exp.
12677
12678 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12679
12680         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12681         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12682
12683         * utils.c (init_page_info): Delete reference to MPW in comments.
12684         * main.c (captured_main): Delete #ifdef MPW.
12685
12686 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12687
12688         * NEWS: Note that the m32r-*-elf* is obsolete.
12689         * monitor.c (monitor_expect): Obsolete reference to m32r.
12690         * configure.tgt: Mark m32r-*-elf* as obsolete.
12691         * MAINTAINERS: Mark m32k as obsolete.
12692         * m32r-rom.c: Obsolete file.
12693         * config/m32r/m32r.mt: Obsolete file.
12694         * config/m32r/tm-m32r.h: Obsolete file.
12695         * m32r-stub.c: Obsolete file.
12696         * m32r-tdep.c: Obsolete file.
12697
12698 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12699
12700         * NEWS: Mention that the z8k-zilog-none is obsolete.
12701         * MAINTAINERS: Mark z8k as obsolete.
12702         * configure.tgt: Obsolete the z8k-*-coff* target.
12703         * config/z8k/z8k.mt: Obsolete file.
12704         * config/z8k/tm-z8k.h: Obsolete file.
12705         * z8k-tdep.c: Obsolete file.
12706
12707 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12708
12709         * NEWS: Mention that the mn10200-elf is obsolete.
12710         * configure.tgt: Obsolete mn10200-*-* target.
12711         * breakpoint.c (update_breakpoints_after_exec): Update comment to
12712         mention that the mn10200 is obsolete.
12713         * breakpoint.h: Ditto.
12714         * MAINTAINERS: Mark the mn10200-elf as obsolete.
12715         * config/mn10200/mn10200.mt: Obsolete file.
12716         * config/mn10200/tm-mn10200.h: Obsolete file.
12717         * mn10200-tdep.c: Obsolete file.
12718
12719 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12720
12721         * MAINTAINERS: Mark h8500 as obsolete.
12722         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12723         * findvar.c (value_from_register): Ditto.
12724         * h8500-tdep.c: Mark file as obsolete.
12725         * config/h8500/h8500.mt: Ditto.
12726         * config/h8500/tm-h8500.h: Ditto.
12727         * NEWS: Mention that h8500 is obsolete.
12728
12729 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12730
12731         * objfiles.c (allocate_objfile): Always set name.  Add comment at
12732         start of function.
12733         * jv-lang.c (get_dynamics_objfile): Add comment.
12734
12735 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12736
12737         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12738         * printcmd.c (build_address_symbolic): Replace uses of
12739         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12740         SYMBOL_NAME, and asm_demangle.
12741         Update copyright.
12742
12743 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12744
12745         * linespec.c (decode_compound): Extract code into
12746         lookup_prefix_sym.
12747         (lookup_prefix_sym): New function.
12748
12749 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12750
12751         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12752         FLOAT_COERCION_BADNESS.
12753         * gdbtypes.c (rank_one_type): Replace all uses of
12754         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12755
12756 2003-02-04  Jim Blandy  <jimb@redhat.com>
12757
12758         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12759         section, let dwarf_macinfo_section point to it, not
12760         dwarf_loc_section.
12761
12762 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
12763
12764         Pointed out by Anton Blanchard <anton@samba.org>.
12765         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12766         (ppc_linux_at_sigtramp_return_path): Use it.
12767
12768 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
12769
12770         * defs.h (streq): Add prototype.
12771         * utils.c (streq): New function.
12772
12773         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12774         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12775         * mdebugread.c (new_symbol): Likewise.
12776         * stabsread.c (define_symbol): Likewise.
12777         * coffread.c (process_coff_symbol): Likewise.
12778         * dwarfread.c (new_symbol): Likewise.
12779
12780         * minsyms.c (prim_record_minimal_symbol_and_info): Use
12781         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
12782         here.
12783         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12784         SYMBOL_INIT_DEMANGLED_NAME.
12785         * objfiles.c: Include "hashtab.h".
12786         (allocate_objfile): Call htab_set_functions_ex for the
12787         demangled_names_hash.
12788         (free_objfile): Call htab_delete for the demangled_names_hash.
12789         * objfiles.h (struct htab): Add declaration.
12790         (struct objfile): Add demangled_names_hash.
12791         * symfile.c: Include "hashtab.h".
12792         (reread_symbols): Call htab_delete for the demangled_names_hash.
12793         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12794         SYMBOL_NAME in the bcache.
12795         * symtab.c: Include "hashtab.h".  Update comments.
12796         (create_demangled_names_hash, symbol_set_names): New functions.
12797         (symbol_find_demangled_name): New function, broken out from
12798         symbol_init_demangled_names.
12799         (symbol_init_demangled_names): Use it.
12800         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12801         (SYMBOL_SET_NAMES): New macro.
12802         (symbol_set_names): Add prototype.
12803
12804 2003-02-03  Jim Blandy  <jimb@redhat.com>
12805
12806         Use a single, consistent representation for an empty minimal
12807         symbol table in an objfile.
12808         * objfiles.c (terminate_minimal_symbol_table): New function.
12809         (allocate_objfile): Call it.
12810         * objfiles.h (terminate_minimal_symbol_table): New declaration.
12811         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12812         non-NULL.
12813         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12814         objfile has minimal symbols, compare minimal_symbol_count to zero,
12815         instead of comparing msymbols with NULL.
12816         * objfiles.c (have_minimal_symbols): Same.
12817         * solib-sunos.c (solib_add_common_symbols): Call
12818         terminate_minimal_symbol_table.
12819         * symfile.c (reread_symbols): Same.
12820
12821 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
12822
12823         * s390-tdep.c (s390_address_class_type_flags)
12824         (s390_address_class_type_flags_to_name)
12825         (s390_address_class_name_to_type_flags): New functions.
12826         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12827         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12828
12829 2003-02-03  Michael Snyder  <msnyder@redhat.com>
12830
12831         * arm-tdep.c: Fix spell-o in comment.
12832
12833 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
12834
12835         * dwarf2cfi.c (pointer_encoding): Added new parameter.
12836         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12837         error messages to contain BFD filename.
12838
12839 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
12840
12841         Fix PR gdb/742 gdb/743 gdb/877
12842         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12843         (do_mixed_source_and_assembly): Use
12844         make_cleanup_ui_out_tuple_begin_end and
12845         make_cleanup_ui_out_tuple_begin_end.
12846         (do_mixed_source_and_assembly): Ditto.
12847         * thread.c (do_captured_list_thread_ids): Ditto.
12848         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12849         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12850         ui_out_tuple_end): Delete prototypes.
12851         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12852         ui_out_list_end, ui_out_tuple_end): Delete.
12853
12854         From Kevin Buettner  <kevinb@redhat.com>:
12855         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12856         * ui-out.c (make_cleanup_ui_out_table_begin_end)
12857         (do_cleanup_table_end):  New functions.
12858         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12859         Use cleanups to invoke_ui_out_tuple_end().
12860         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12861         * cli/cli-setshow.c (cmd_show_list): Use
12862         make_cleanup_ui_out_tuple_begin_end.
12863
12864 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
12865
12866         * frame.c (frame_unwind_register): New function.
12867         (frame_unwind_unsigned_register): Use.
12868         (frame_unwind_signed_register): Use.
12869         (frame_read_register): New function.
12870         * frame.h (frame_unwind_register): Declare.
12871         (frame_read_register): Declare.
12872
12873         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12874         and frame_unwind_register instead of read_memory, write_register
12875         and deprecated_write_register_bytes.
12876
12877 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
12878
12879         * frame.h: Note that namelen can be negative.
12880         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12881         NAME's length.
12882
12883         * NEWS: Mention that the d10v's `regs' command is deprecated.
12884         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12885         (d10v_print_registers_info): New function.
12886         (show_regs): Call d10v_print_registers_info.
12887         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12888
12889 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
12890
12891         * stack.c (print_frame_info): Restore call to annotate_frame_begin
12892         lost in the previous patch.
12893
12894 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12895
12896         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12897         * stack.c (print_frame_info_base): Output complete FRAME tuple
12898         for synthesized frames.
12899
12900 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
12901
12902         * mips-nat.c (zerobuf): Delete.
12903         (fetch_inferior_registers): Alloc local zerobuf.
12904         (fetch_core_registers): Alloc local zerobuf.
12905         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12906         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12907         * thread-db.c (thread_db_store_registers): Ditto.
12908         * sh-tdep.c (sh_do_register): Ditto.
12909         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12910         * remote-sim.c (gdbsim_store_register): Ditto.
12911         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12912         * remote-e7000.c (fetch_regs_from_dump): Ditto.
12913         * monitor.c (monitor_supply_register): Ditto.
12914         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12915         * mips-nat.c (fetch_inferior_registers): Ditto.
12916         * m68klinux-nat.c (fetch_register): Ditto.
12917         * lynx-nat.c (fetch_inferior_registers): Ditto.
12918         (fetch_inferior_registers): Ditto.
12919         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12920         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12921         (hpux_thread_store_registers): Ditto.
12922         * hppah-nat.c (fetch_register): Ditto.
12923         * hppab-nat.c (fetch_register): Ditto.
12924         * hppa-tdep.c (pa_register_look_aside): Ditto.
12925         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12926         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12927
12928 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12929
12930         * gdbarch.sh: Explictly specify all method levels.  When a
12931         variable with an empty level, provide a non-multi-arch default.
12932         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12933         * gdbarch.h: Re-generate.
12934         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
12935         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12936
12937 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12938
12939         * defs.h (host_pointer_to_address): Delete declaration.
12940         (address_to_host_pointer): Delete declaration.
12941         * utils.c (host_pointer_to_address): Delete function.
12942         (address_to_host_pointer): Delete function.
12943         * procfs.c (procfs_address_to_host_pointer): New function.
12944         * procfs.c (proc_set_watchpoint): Use.
12945         (procfs_can_use_hw_breakpoint): Update comments.
12946         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12947         (som_solib_add): Use.
12948         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12949         * hppa-tdep.c (unwind_command): Use.
12950
12951 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12952
12953         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12954         strlen d_name.
12955
12956         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12957         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12958         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12959         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12960         (define_symbol): Update.
12961         * symfile.c (generic_load): Remove references to nindy.
12962         * symtab.c: Remove references to nindy.
12963
12964 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12965
12966         * infcmd.c (print_float_info): Delete code conditional on
12967         FLOAT_INFO.
12968         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
12969         * config/m68k/nm-apollo68b.h: Ditto.
12970         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
12971         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12972         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12973
12974 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
12975
12976         * config/i386/tm-i386os9k.h: Removed.
12977
12978         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12979         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12980         they're identical to i[3456]86-*-sysv* now.
12981         * config/i386/i386v32.mh: Removed.
12982         * config/i386/xm-i386v32.h: Removed.
12983         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12984
12985         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12986
12987         * config/i386/i386dgux.mh: Removed.
12988         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12989
12990         * configure.in: Fix typo.
12991         * configure: Regenerated.
12992
12993 2003-01-31  David Carlton  <carlton@math.stanford.edu>
12994
12995         * dwarf2read.c (dwarf2_locate_sections): Set
12996         dwarf_ranges_section.
12997
12998 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
12999
13000         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13001         * utils.c: Update comments documenting legitimate uses of PTR.
13002
13003         * utils.c: Re-indent.
13004
13005         * config/djgpp/fnchange.lst: Delete nindy files.
13006         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13007         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13008         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13009         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13010         * nindy-share/README, nindy-share/Onindy.c: Delete files.
13011         * nindy-tdep.c, nindy-share/Makefile: Delete files.
13012         * Makefile.in (init.c): Remove nindy references.
13013         (saber_gdb): Delete rule.
13014         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13015         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13016         and a68v-nat.c.
13017         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13018         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13019         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13020         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13021         nindy-share/stop.h.
13022         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13023         * saber.suppress: Delete file.
13024
13025 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
13026
13027         * dbxread.c (stabs_data): New static variable.
13028         (fill_symbuf): Support an in-memory buffer for stabs data.
13029         (stabs_seek): New function.
13030         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13031         (read_ofile_symtab): Use stabs_seek.
13032         (elfstab_build_psymtabs): Take an asection* instead of
13033         an offset and size.  Relocate the stabs data if necessary.
13034         Save the section* for dbx_psymtab_to_symtab.
13035         * dwarf2read.c: Add section variables for each debug section.
13036         (dwarf2_locate_sections): Fill them in.
13037         (dwarf2_read_section): Take an asection* argument.
13038         Relocate the section contents if necessary.
13039         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13040         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13041         it to dwarf2_read_section.
13042         (dwarf2_build_frame_info): Update callers.
13043         * elfread.c (elf_symfile_read): Update call to
13044         elfstab_build_psymtabs.
13045         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13046         (DBX_STAB_SECTION): New macro.
13047         * stabsread.h (elfstab_build_psymtabs): Update prototype.
13048         * symfile.c (symfile_dummy_outputs): New function.
13049         (symfile_relocate_debug_section): New function.
13050         * symfile.h (symfile_relocate_debug_section): Add prototype.
13051
13052 2003-01-31  Richard Henderson  <rth@redhat.com>
13053
13054         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13055         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
13056         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13057         * alpha-tdep.c (alpha_register_name): Add "unique".
13058         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13059         (ALPHA_UNIQUE_REGNUM): New.
13060         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13061
13062 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
13063
13064         * README: Remove reference to Ericsson 1800 monitor.
13065         * Makefile.in (remote-es.o): Delete rule.
13066         (ALLDEPFILES): Delete remote-es.c.
13067         * remote-es.c: Delete file.
13068         * config/m68k/es1800.mt: Delete file.
13069         * config/djgpp/fnchange.lst: Update.
13070         * configure.tgt: Delete m68*-ericsson-* target.
13071
13072 2003-01-31  Adam Fedor  <fedor@gnu.org>
13073
13074         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13075         Remove duplicate/shadowing variable of same name.
13076
13077 2003-01-30  Jim Blandy  <jimb@redhat.com>
13078
13079         * symfile.c (find_separate_debug_file): Assert that the objfile's
13080         directory name we compute ends with a slash, and then assume that
13081         that's so everywhere we use it.
13082
13083 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
13084
13085         * valops.c (value_assign): Flush frame cache after stores to memory
13086         also.
13087
13088 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13089
13090         * Makefile.in (mon960-rom.o): Delete rule.
13091         * mon960-rom.c: Delete file.
13092
13093 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13094
13095         * d10v-tdep.c: Include "frame-unwind.h".
13096         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13097         list.
13098         (next_addr, uses_frame): Delete.
13099         (struct d10v_unwind_cache): Define.
13100         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13101         Use info instead of next_addr and uses_frame globals.
13102         (d10v_frame_init_saved_regs): Delete function.
13103         (d10v_init_extra_frame_info): Delete function.
13104         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13105         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13106         init_frame_pc or frame_saved_pc.
13107         (d10v_pop_frame): Delete function.
13108         (do_d10v_pop_frame): Delete function.
13109         (d10v_frame_chain): Delete function.
13110         (d10v_frame_chain_valid): Delete function.
13111         (d10v_frame_pc_unwind): New function.
13112         (d10v_frame_id_unwind): New function.
13113         (saved_regs_unwinder): New function.
13114         (d10v_frame_register_unwind): New function.
13115         (d10v_frame_pop): New function.
13116         (d10v_frame_unwind): New variable.
13117         (d10v_frame_p): New function.
13118         (d10v_frame_saved_pc): Delete function.
13119         * Makefile.in (d10v-tdep.o): Update dependencies.
13120
13121 2003-01-30  J. Brobecker  <brobecker@gnat.com>
13122
13123         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13124         causing some regressions due to a change in the default value
13125         for this macro.
13126
13127 2003-01-29  Richard Henderson  <rth@redhat.com>
13128             Elena Zannoni  <ezannoni@redhat.com>
13129             Daniel Jacobowitz  <drow@mvista.com>
13130
13131         Fix PR gdb/961.
13132         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
13133         variables.
13134         (RANGES_SECTION): New.
13135         (dwarf_ranges_buffer): New variable.
13136         (struct comp_unit_head): Add member "die".
13137         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13138         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13139         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13140         (dwarf2_locate_sections): Likewise.
13141         (dwarf2_build_psymtabs): Read .debug_ranges.
13142         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13143         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
13144         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13145         Look for DW_AT_ranges and return the bounding box.
13146
13147 2003-01-29  Brian Ford <ford@vss.fsi.com>
13148
13149         * win32-nat.c (cygwin_pid): Removed as unused.
13150         (child_attach): Try fall back to Cygwin pid.
13151
13152 2003-01-29  Jim Blandy  <jimb@redhat.com>
13153
13154         * objfiles.h (struct objfile): Doc fix.
13155
13156 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
13157
13158         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13159         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13160         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13161         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13162         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13163         (FRAME_SAVED_PC): Change to a function with predicate.
13164         * gdbarch.h, gdbarch.c: Re-generate.
13165
13166 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
13167
13168         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13169
13170         * complaints.c (complain): Delete function.
13171         * complaints.h (struct deprecated_complaint): Delete definition.
13172         (complain): Delete declaration.
13173
13174 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
13175
13176         * mips-tdep.c (mips_init_extra_frame_info): Return early for
13177         dummy frames.
13178
13179 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
13180
13181         * sentinel-frame.h, sentinel-frame.c: New files.
13182         * Makefile.in (frame.o): Update dependencies.
13183         (SFILES): Add sentinel-frame.c.
13184         (sentinel_frame_h): Define.
13185         (COMMON_OBS): Add sentinel-frame.o.
13186         (sentinel-frame.o): Specify dependencies.
13187         * frame.c: Include "sentinel-frame.h".
13188         (frame_register_unwind): Rewrite assuming that there is always a a
13189         ->next frame.
13190         (frame_register, generic_unwind_get_saved_register): Ditto.
13191         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13192         (create_sentinel_frame, unwind_to_current_frame): New functions.
13193         (get_current_frame): Rewrite using create_sentinel_frame and
13194         unwind_to_current_frame.  When possible, always create a frame.
13195         (create_new_frame): Set next to the sentinel frame.
13196         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
13197         (deprecated_update_frame_pc_hack): Update the next frame's PC and
13198         ID cache when necessary.
13199         (frame_saved_regs_id_unwind): Use frame_relative_level.
13200         (deprecated_generic_get_saved_register): Use frame_relative_level,
13201         get_frame_saved_regs, get_frame_pc, get_frame_base and
13202         get_next_frame.
13203         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13204         frame_register.
13205
13206 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13207
13208         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13209
13210 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13211
13212         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13213         (maintenance_set_profile_cmd): Use error () instead of warning ().
13214
13215 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13216
13217         * configure.in: Check that -pg works if using --enable-profiling.
13218         Check for monstartup and _mcleanup regardless of --enable-profiling.
13219         * maint.c: Check for monstartup and _mcleanup before using them.
13220         * config.in: Regenerated.
13221         * configure: Regenerated.
13222
13223 2003-01-24  Nick Clifton  <nickc@redhat.com>
13224
13225         * Add sh2e support:
13226
13227         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
13228
13229                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13230                 (sh2e_show_regs): New.
13231                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13232                 * config/sh/tm-sh.h: Added sh2e to comments.
13233
13234 2003-01-23  Jim Blandy  <jimb@redhat.com>
13235
13236         * symfile.c (syms_from_objfile): Don't print the "(no debugging
13237         symbols found)" message here; we haven't checked for a separate
13238         debug info file yet, so we don't know yet.
13239         (symbol_file_add_with_addrs_or_offsets): Print it here, after
13240         we've looked everywhere.  Also, there's no need to print a special
13241         message when we're loading the separate debug info file: the one
13242         symbol_file_add prints is fine.
13243
13244 2003-01-23  Alexander Larsson <alexl@redhat.com>
13245             Jim Blandy  <jimb@redhat.com>
13246
13247         Add support for executables whose debug info has been separated
13248         out into a separate file, leaving only a link behind.
13249         * objfiles.h (struct objfile): New fields: separate_debug_objfile
13250         and separate_debug_objfile_backlink.
13251         (put_objfile_before): New declaration.
13252         * symfile.c: #include "filenames.h".
13253         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13254         debug info in a separate file, read that, too. Save the addrs
13255         argument, so we can use it again to read the separated debug info;
13256         syms_from_objfile modifies the table we pass it.
13257         (reread_symbols): After re-reading an objfile, call
13258         reread_separate_symbols to refresh its separate debug info
13259         objfile, if it has one.
13260         (reread_separate_symbols, find_separate_debug_file,
13261         get_debug_link_info, separate_debug_file_exists): New functions.
13262         (debug_file_directory): New global var.
13263         (_initialize_symfile): Initialize debug_file_directory, and
13264         provide the new `set debug-file-directory' command to let the user
13265         change it.
13266         * objfiles.c (free_objfile): If this objfile has its debug info in
13267         a separate objfile, free that one too.  If this is itself a
13268         separate debug info objfile, clear our parent's backlink.
13269         (put_objfile_before): New function.
13270         * utils.c (gnu_debuglink_crc32): New function.
13271         * defs.h (gnu_debuglink_crc32): New declaration.
13272         * Makefile.in (symfile.o): Note dependency on "filenames.h".
13273         * configure.in: Handle --with-separate-debug-dir config option.
13274         * acinclude.m4 (AC_DEFINE_DIR): New macro.
13275         * acconfig.h (DEBUGDIR): New macro.
13276         * configure, aclocal.m4, config.in: Regenerated.
13277
13278 2003-01-22  Jim Blandy  <jimb@redhat.com>
13279
13280         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13281         like the old symbol_file_add, but taking new arguments: you can
13282         now pass in either a `struct section_addr_info' list to say where
13283         each section is loaded, or a `struct section_offsets' table.  Pass
13284         these new arguments through to syms_from_objfile as appropriate.
13285         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13286         with the appropriate quiescent values for the new arguments.
13287
13288         * symfile.c: #include "gdb_assert.h".
13289         (syms_from_objfile): Add the ability to pass in a section offset
13290         table directly, as an alternative to the section_addr_info table.
13291         Document arguments better.
13292         (symbol_file_add): Pass extra arguments to syms_from_objfile.
13293         * symfile.h (syms_from_objfile): Update declaration.
13294         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13295         syms_from_objfile.
13296         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13297
13298 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
13299
13300         Original patch by Tom Tromey <tromey@cygnus.com> and
13301         Jason Molenda <jmolenda@apple.com>.
13302         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13303         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13304         * NEWS: Mention profiling.
13305         * configure.in (--enable-gdbtk): Fix typo.
13306         (--enable-profiling): New.  Set PROFILE_CFLAGS.
13307         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13308         Fill in function.
13309         (profiling_state): New variable.
13310         (mcleanup_wrapper): New function.
13311         (_initialize_maint): Remove NOTYET, fix call to
13312         add_setshow_boolean_cmd for "maint set profile".
13313         * configure: Regenerated.
13314
13315 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
13316
13317         * Makefile.in (install-gdbtk): Install PNG images too.
13318
13319 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
13320
13321         * exec.c (text_start): Delete global variable.
13322         (exec_file_attach): Make text_start local to the function.
13323         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13324         * valops.c (hand_function_call): Delete code that handles
13325         BEFORE_TEXT_END and AFTER_TEXT_END.
13326         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13327         of CALL_DUMMY_LOCATION.
13328         * gdbarch.c: Regenerate.
13329         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13330         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13331         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13332         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13333         (text_end): Delete extern declaration.
13334
13335 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
13336
13337         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13338         * blockframe.c (backtrace_below_main): Move to "frame.c".
13339         (frame_chain_valid): Delete check for backtrace_below_main.
13340         (_initialize_blockframe): Delete initialization, move ``set
13341         backtrace-below-main'' command to "frame.c".
13342         (do_flush_frames_sfunc): Delete function.
13343         * frame.c: Include "command.h" and "gdbcmd.h".
13344         (frame_type_from_pc): New function.
13345         (create_new_frame): Use frame_type_from_pc.
13346         (legacy_get_prev_frame): New function.
13347         (get_prev_frame): Rewrite.  When an old style frame, call
13348         legacy_get_prev_frame.  Otherwize, unwind the PC first.
13349         (_initialize_frame): Add ``set backtrace-below-main'' command.
13350         * Makefile.in (frame.o): Update dependencies.
13351
13352 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13353
13354         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13355         DEPRECATED_REGISTERS_INFO.
13356
13357 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13358
13359         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13360         Maintainers'.  Update `Various Maintainers'.
13361
13362 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13363
13364         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13365         * gdbarch.sh (POP_FRAME): Change to function with predicate.
13366         Suppress actual parameters when `-'.
13367         * gdbarch.h, gdbarch.c: Regenerate.
13368
13369 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13370
13371         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13372         code handling dummy frames.
13373
13374 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13375
13376         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13377         (struct frame_unwind): Add field pop.
13378         * frame.h (frame_pop): Declare.
13379         * frame.c (frame_saved_regs_pop): New function.
13380         (trad_frame_unwinder): Add frame_saved_regs_pop.
13381         (frame_pop): New function.
13382         * dummy-frame.c (dummy_frame_pop): New function.
13383         (discard_innermost_dummy): New function.
13384         (generic_pop_dummy_frame): Use discard_innermost_dummy.
13385         (dummy_frame_unwind): Add dummy_frame_pop.
13386         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13387         * valops.c (hand_function_call): Ditto.
13388         * stack.c (return_command): Ditto.
13389
13390 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13391
13392         * cris-tdep.c: Fix function declaration indentation.
13393         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13394         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13395         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13396         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13397         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13398         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13399
13400 2003-01-18  Michael Chastain  <mec@shout.net>
13401
13402         * README (Unpacking and Installation -- quick overview):
13403         Warn against ".../gdb-5.3/gdb/configure".
13404
13405 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13406
13407         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13408         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13409         (struct frame_unwind): Declare opaque.
13410         (dummy_frame_p): Declare function.
13411         * dummy-frame.c (dummy_frame_id_unwind): Make static.
13412         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13413         * dummy-frame.c: Include "frame-unwind.h".
13414         (dummy_frame_p): New function.
13415         (dummy_frame_unwind): New variable.
13416         * frame.c: Include "frame-unwind.h".
13417         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13418         to use the new unwind field.
13419         (set_unwind_by_pc): Delete function.
13420         (create_new_frame, get_prev_frame): Set unwind field using
13421         frame_unwind_find_by_pc.
13422         (trad_frame_unwind, trad_frame_unwinder): New variables.
13423         * frame.h (trad_frame_unwind): Declare variable.
13424         (frame_id_unwind_ftype): Delete declaration.
13425         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13426         (struct frame_unwind): Declare opaque.
13427         (struct frame_info): Replace the fields id_unwind, pc_unwind and
13428         register_unwind with a single unwind pointer.
13429         * frame-unwind.h, frame-unwind.c: New files.
13430         * Makefile.in (SFILES): Add frame-unwind.c.
13431         (frame_unwind_h): Define.
13432         (COMMON_OBS): Add frame-unwind.o.
13433         (frame-unwind.o): Specify dependencies.
13434         (frame.o, dummy-frame.o): Update dependencies.
13435
13436 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13437
13438         * ada-valprint.c: Eliminate PTR.
13439         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13440         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13441         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13442         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13443         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13444         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13445         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13446
13447 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
13448
13449         * main.c (captured_main): Don't use PTR.
13450         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13451         * gdbtypes.c (lookup_primitive_typename): Ditto.
13452         (lookup_struct_elt_type): Ditto.
13453         * f-valprint.c (info_common_command): Ditto.
13454         (list_all_visible_commons): Ditto.
13455         * jv-typeprint.c (java_type_print_base): Ditto.
13456
13457         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13458         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13459         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
13460         i386-interix-nat.c and i386-interix-tdep.c.  Rename
13461         m68klinux-nat.c and m68klinux-tdep.c.  Rename
13462         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
13463         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
13464         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13465         * main.c (captured_main): Use xfree, not free.
13466
13467 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
13468
13469         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13470         ID back using a parameter.
13471         * frame.c (frame_id_unwind): Update call.
13472         (frame_saved_regs_id_unwind): Update.
13473         * dummy-frame.c (dummy_frame_id_unwind): Update function.
13474         * dummy-frame.h (struct frame_id): Add opaque declaration.
13475         (dummy_frame_id_unwind): Update declaration.
13476
13477 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
13478
13479         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13480
13481 2003-01-15  Stephen P. Smith <ischis2@cox.net>
13482
13483         * MAINTAINERS (Stephen P. Smith): Updated email address.
13484
13485 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
13486
13487         Fix PR gdb/898
13488         * breakpoint.c (until_break_command): Add new argument.  Use it to
13489         decide whether to stop only at the current frame or not.
13490         * breakpoint.h (until_break_command): Update prototype.
13491         * infcmd.c (until_command): Add new argument to until_break_command
13492         call.
13493         (advance_command): New function.
13494         (_initialize_infcmd): Update help string for 'until' command.
13495         Add new 'advance' command.
13496
13497 2003-01-14  David Carlton  <carlton@math.stanford.edu>
13498
13499         * linespec.c (decode_line_1): Normalize comments.
13500         (set_flags): Ditto.
13501         (locate_first_half): Ditto.
13502         (decode_compound): Ditto.
13503         (symtab_from_filename): Ditto.
13504         (decode_all_digits): Ditto.
13505         (decode_dollar): Ditto.
13506         (find_methods): Ditto.
13507         (find_toplevel_char): Ditto.
13508
13509 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13510
13511         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13512         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13513         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13514         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13515         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13516         * language.c, language.h, m32r-tdep.c: Update copyright.
13517         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13518         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13519         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13520         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13521         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13522         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13523
13524 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
13525
13526         * stabsread.h (process_later, resolve_cfront_continuation):
13527         Obsolete.
13528         Update copyright years.
13529         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13530         Update copyright year.
13531         * dbxread.c(struct cont_elem): Obsolete.
13532         (process_later, process_now): Obsolete functions.
13533         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13534         Update copyright year.
13535         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13536         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13537         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13538         (parse_partial_symbols): Obsolete cfront support.
13539         * stabsread.c
13540         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13541         macros.
13542         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13543         read_cfront_baseclasses, read_cfront_member_functions,
13544         resolve_cfront_continuation,read_cfront_static_fields,
13545         copy_cfront_struct_fields): Obsolete functions.
13546         (define_symbol, read_one_struct_field): Obsolete cfront support.
13547         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13548         Update Copyright year.
13549
13550 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
13551
13552         * stack.c (print_frame_info, print_stack_frame_base_stub,
13553         print_stack_frame_base, show_and_print_stack_frame_stub,
13554         show_and_print_stack_frame, print_only_stack_frame_stub,
13555         print_only_stack_frame): Delete functions.
13556         (print_stack_frame_stub): Call print_frame_info instead of
13557         print_frame_info_base.
13558         (print_frame_info_base): Rename to print_frame_info.
13559         (backtrace_command_1): Call print_frame_info, instead of
13560         print_frame_info_base.
13561         (current_frame_command): Call print_stack_frame, instead of
13562         print_only_stack_frame.
13563         (frame_command): Call print_stack_frame, instead of
13564         show_and_print_stack_frame.
13565         (up_command): Ditto.
13566         (down_command): Ditto.
13567         * frame.h (print_only_stack_frame): Delete prototype.
13568         * infrun.c (normal_stop): Call print_stack_frame, instead of
13569         show_and_print_stack_frame.
13570         * thread.c (info_threads_command): Call print_stack_frame, instead
13571         of print_only_stack_frame.
13572
13573 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13574
13575         * README (Graphical interface to GDB): Update URL.  Point at
13576         gdb/links/.
13577
13578         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
13579         version match.
13580
13581 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13582
13583         * symtab.c (find_pc_sect_line): Don't consider end-of-function
13584         lines.
13585
13586 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13587
13588         * thread-db.c (attach_thread): Prototype.
13589         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
13590         thread information (ti), and valid flags (th_valid, ti_valid).
13591         (attach_thread): Move target_pid_to_str call to after the thread
13592         is added to GDB's list.  Initialize the cache.
13593         (thread_get_info_callback, thread_db_map_id2thr)
13594         (thread_db_get_info): New functions.
13595         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13596         (thread_db_store_registers, thread_db_thread_alive)
13597         (thread_db_get_thread_local_address): Use them.
13598         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
13599         of calling error() for threads in unknown state.
13600
13601         (clear_lwpid_callback): New function.
13602         (thread_db_resume): Use it to clear the cache.
13603
13604 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13605
13606         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13607         (resume_callback): Remove dead code.
13608
13609 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13610
13611         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13612         predicate.
13613         * gdbarch.h, gdbarch.c: Regenerate.
13614         * stack.c (frame_info): Only initialize the saved registers when
13615         FRAME_INIT_SAVED_REGS_P.
13616         * frame.c (frame_saved_regs_register_unwind): Assert
13617         FRAME_INIT_SAVED_REGS_P.
13618         (deprecated_generic_get_saved_register): Ditto.
13619
13620 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13621
13622         * source.c (openp): Squelch warning about "filename".
13623
13624 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13625
13626         * source.c (openp): If the file does not exist don't necessarily
13627         search the path.
13628
13629 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13630
13631         Fix PR gdb/872.
13632         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13633         (integer_types_same_name_p): New function.
13634         (rank_one_type): Use it.
13635         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13636
13637 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13638
13639         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13640         variables.
13641         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13642         * configure.in: Add --with-sysroot.
13643         * configure: Regenerated.
13644         * main.c (gdb_sysroot): New variable.
13645         (captured_main): Initialize gdb_sysroot.
13646         * defs.h (gdb_sysroot): New extern declaration.
13647         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13648
13649 2003-01-12  Michael Chastain  <mec@shout.net>
13650
13651         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13652
13653 2003-01-12  Michael Chastain  <mec@shout.net>
13654
13655         * top.c (print_gdb_version): Bump copyright year to 2003.
13656
13657 2003-01-12  David Carlton  <carlton@bactrian.org>
13658
13659         * linespec.c (symtab_from_filename): Rename variable 's' to
13660         'file_symtab'.
13661
13662 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
13663
13664         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13665         dummy frame.
13666         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13667
13668 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
13669
13670         * d10v-tdep.c: Include "gdb_assert.h".
13671         (d10v_store_return_value): Rewrite to match current interface.
13672         (d10v_extract_struct_value_address): Ditto.
13673         (d10v_extract_return_value): Ditto.
13674         (d10v_gdbarch_init): Set store_restore_value,
13675         extract_struct_value_address and extract_return_value.
13676
13677 2003-01-12  J. Brobecker  <brobecker@gnat.com>
13678
13679         * hpread.c (set_namestring): New procedure replacing the
13680         SET_NAMESTRING macro.
13681         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13682         by calls to set_namestring.
13683
13684 2003-01-11  J. Brobecker  <brobecker@gnat.com>
13685
13686         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13687         a compilation warning.
13688         (hpread_process_one_debug_symbol): Likewise.
13689
13690 2003-01-10  David Carlton  <carlton@math.stanford.edu>
13691
13692         * linespec.c (decode_line_1): Rename variable 's' to
13693         'file_symtab'.
13694         (decode_all_digits): Rename argument 's' to 'file_symtab'.
13695         (decode_dollar): Ditto.
13696         (decode_variable): Ditto.
13697         (symbol_found): Ditto.
13698
13699 2003-01-09  Michael Chastain  <mec@shout.net>
13700
13701         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13702
13703 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
13704
13705         * win32-nat.c (set_process_privilege): New function.
13706         (child_attach): Call set_process_privilege() to enable the
13707         SE_DEBUG_NAME user privilege if available in process token.
13708
13709 2003-01-10  J. Brobecker  <brobecker@gnat.com>
13710
13711         * hpread.c (hpread_process_one_debug_symbol): Fix a small
13712         compilation error in the previous revision.
13713
13714 2003-01-09  David Carlton  <carlton@math.stanford.edu>
13715
13716         * linespec.c: Update copyright.
13717
13718 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
13719
13720         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13721         than inferior_ptid.
13722         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13723
13724 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
13725
13726         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13727         Update comments.
13728         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13729         (frame_saved_regs_zalloc): Update.
13730         (frame_saved_regs_register_unwind): Update.
13731         (create_new_frame): Update.
13732         (get_prev_frame): Update.
13733         (frame_extra_info_zalloc): Update.
13734         (deprecated_get_frame_saved_regs): Update.
13735         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13736         * cris-tdep.c: Update comment.
13737
13738         * somsolib.h: Fix function indentation.
13739         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13740         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13741         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13742         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13743         * somsolib.c, inftarg.c: Remove assignment in if conditional.
13744
13745         * infrun.c (follow_fork): Use ISO C definition.
13746         * expprint.c (print_subexp): Use xfree instead of free.
13747         * charset.c: Include "gdb_string.h" instead of <string.h>.
13748         (register_iconv_charsets): Use ISO C definition.
13749         (host_charset, target_charset): Ditto.
13750         * Makefile.in (charset.o): Update dependencies.
13751         (mi-cmd-env.o): Update dependencies.
13752
13753 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13754
13755         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13756         get_frame_base.
13757
13758 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
13759
13760         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
13761         build directories.  Save edited gdb output in Mbuild.log.  If a
13762         build fails, remove any final GDB executable.
13763
13764 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
13765
13766         * gdb_mbuild.sh: Edit the output of `maint print architecture'
13767         replacing hex constants with function names and stripping leading
13768         file name directory prefixes.
13769
13770 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13771
13772         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13773         get_frame_base.
13774
13775 2003-01-08  David Carlton  <carlton@math.stanford.edu>
13776
13777         * linespec.c (decode_line_1): Move code into decode_variable.
13778         (decode_variable): New function.
13779
13780 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
13781
13782         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13783
13784 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13785
13786         * cris-tdep.c (cris_frame_init_saved_regs): Use
13787         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13788         saved_regs buffer.
13789         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13790         (sh64_nofp_frame_init_saved_regs): Ditto.
13791         (sh_fp_frame_init_saved_regs): Ditto.
13792         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13793         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13794         * mcore-tdep.c (analyze_dummy_frame): Ditto.
13795         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13796
13797 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
13798
13799         * minsyms.c (lookup_minimal_symbol): Update comment.
13800         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
13801         (lookup_minimal_symbol_solib_trampoline): Likewise.
13802
13803 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13804
13805         * d10v-tdep.c (d10v_init_extra_frame_info): Use
13806         frame_relative_level.
13807
13808         * alpha-tdep.c: Use get_frame_extra_info.
13809         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13810         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13811         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13812         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13813
13814         * alpha-tdep.c: Use get_next_frame.
13815         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13816         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13817         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13818         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13819         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13820         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13821         * xstormy16-tdep.c: Ditto.
13822
13823 2003-01-07  Andrew Cagney  <cagney@redhat.com>
13824
13825         * alpha-tdep.c: Use get_frame_base.
13826         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13827         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13828         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13829         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13830         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13831         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13832         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13833         * config/sparc/tm-sparc.h: Ditto.
13834
13835 2003-01-07  Andrew Cagney  <cagney@redhat.com>
13836
13837         * frame.c (deprecated_get_frame_context): New function.
13838         (deprecated_set_frame_context): New function.
13839         * frame.h (deprecated_get_frame_context): Declare.
13840         (deprecated_set_frame_context): Declare.
13841         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13842         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13843
13844 2003-01-07  Andrew Cagney  <cagney@redhat.com>
13845
13846         * frame.c (deprecated_set_frame_next_hack): New function.
13847         (deprecated_set_frame_prev_hack): New function.
13848         * frame.h (deprecated_set_frame_next_hack): Declare.
13849         (deprecated_set_frame_prev_hack): Declare.
13850         * mcore-tdep.c (analyze_dummy_frame): Use
13851         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13852         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13853
13854 2003-01-07  David Carlton  <carlton@math.stanford.edu>
13855
13856         * linespec.c (decode_line_1): Move code into decode_dollar.
13857         (decode_dollar): New function.
13858
13859 2003-01-07  Andrew Cagney  <cagney@redhat.com>
13860
13861         * arm-tdep.c (arm_init_extra_frame_info): Use
13862         deprecated_update_frame_base_hack.
13863         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13864         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13865         (fix_frame_pointer): Ditto.
13866         (mn10300_analyze_prologue): Ditto.
13867
13868 2003-01-07  Andrew Cagney  <cagney@redhat.com>
13869
13870         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13871         extra_info using frame_extra_info_zalloc.
13872         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13873         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13874         (sh64_init_extra_frame_info): Ditto.
13875         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13876         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13877         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13878         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13879         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13880         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13881         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13882         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13883         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13884         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13885         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13886         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13887
13888         * mn10300-tdep.c (analyze_dummy_frame): Use
13889         deprecated_set_frame_extra_info_hack.
13890         * mcore-tdep.c (analyze_dummy_frame): Ditto.
13891
13892 2003-01-07  J. Brobecker  <brobecker@gnat.com>
13893
13894         * mdebugread.c (parse_symbol): Skip stProc entries which storage
13895         class is not scText. These do not define "real" procedures.
13896         (parse_partial_symbols): Likewise.
13897
13898 2003-01-06  Michael Snyder  <msnyder@redhat.com>
13899
13900         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13901
13902 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
13903
13904         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13905         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13906         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13907         deprecated_frame_xmalloc_with_cleanup.
13908         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13909         deprecated_frame_xmalloc.
13910         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13911         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13912
13913 2003-01-06  Andrew Cagney  <cagney@redhat.com>
13914
13915         * x86-64-linux-tdep.c: Include "osabi.h".
13916         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13917
13918         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13919
13920 2003-01-06  Andrew Cagney  <cagney@redhat.com>
13921
13922         * MAINTAINERS (Target Instruction Set Architectures): Update
13923         arm-elf.  Can be built with -Werror, has been multiarched.
13924
13925         * value.h (unpack_long): Make buffer parameter constant.
13926         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13927         * scm-lang.h (scm_parse): Ditto.
13928         * defs.h (extract_typed_address, extract_address): Ditto.
13929         (extract_long_unsigned_integer): Ditto.
13930         * inferior.h (unsigned_pointer_to_address): Ditto.
13931         (signed_pointer_to_address): Ditto.
13932         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13933         * gdbarch.h, gdbarch.c: Regenerate.
13934         * findvar.c (extract_long_unsigned_integer): Update.
13935         (extract_address): Update.
13936         (extract_typed_address): Update.
13937         (unsigned_pointer_to_address): Update.
13938         * values.c (unpack_long): Update.
13939         (unpack_double): Update.
13940         (unpack_pointer): Update.
13941         (unpack_field_as_long): Update.
13942         * d10v-tdep.c (d10v_pointer_to_address): Update.
13943         * avr-tdep.c (avr_pointer_to_address): Update.
13944         * scm-lang.c (scm_unpack): Update.
13945         * findvar.c (signed_pointer_to_address): Update.
13946
13947 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
13948
13949         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13950         since it is in i386-tdep.c.
13951
13952 2003-01-06  J. Brobecker  <brobecker@gnat.com>
13953
13954         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13955         failure introduced in the previous change.
13956
13957 2003-01-05  Michael Chastain  <mec@shout.net>
13958
13959         * README: Remove references to deleted remote-*.c files:
13960         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13961         remote-nrom.c, remote-os9k.c, remote-udi.c.
13962
13963 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
13964
13965         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13966         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13967         i386_get_longjmp_target.
13968
13969 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
13970
13971         * arm-tdep.c (prologue_cache): Change to a pointer.
13972         (_initialize_arm_tdep): Allocate prologue_cache.
13973         (check_prologue_cache): Update.
13974         (save_prologue_cache): Update.
13975         (arm_gdbarch_init): Update.
13976
13977 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13978
13979         * stabsread.c (update_method_name_from_physname): Call complaint()
13980         instead of error.
13981
13982 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13983
13984         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
13985         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13986         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13987
13988         * blockframe.c: Include "gdbcmd.h" and "command.h".
13989         (backtrace_below_main): New variable.
13990         (file_frame_chain_valid, func_frame_chain_valid)
13991         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13992         (generic_func_frame_chain_valid): Remove functions.
13993         (frame_chain_valid, do_flush_frames_sfunc): New functions.
13994         (_initialize_blockframe): New function.
13995         * Makefile.in (blockframe.o): Update dependencies.
13996         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13997         comment.  Call frame_chain_valid ().
13998         * frame.h: Remove old prototypes.  Add prototype for
13999         frame_chain_valid and update comments to match.
14000         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14001         Remove old comment.
14002         * gdbarch.h: Regenerated.
14003         * gdbarch.c: Regenerated.
14004
14005         * alpha-tdep.c (alpha_gdbarch_init): Don't call
14006         set_gdbarch_frame_chain_valid.
14007         * avr-tdep.c (avr_gdbarch_init): Likewise.
14008         * cris-tdep.c (cris_gdbarch_init): Likewise.
14009         * frv-tdep.c (frv_gdbarch_init): Likewise.
14010         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14011         * i386-tdep.c (i386_svr4_init_abi): Likewise.
14012         (i386_nw_init_abi): Likewise.
14013         (i386_gdbarch_init): Likewise.
14014         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14015         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14016         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14017         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14018         * mips-tdep.c (mips_gdbarch_init): Likewise.
14019         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14020         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14021         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14022         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14023         * s390-tdep.c (s390_gdbarch_init): Likewise.
14024         * sh-tdep.c (sh_gdbarch_init): Likewise.
14025         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14026         * v850-tdep.c (v850_gdbarch_init): Likewise.
14027         * vax-tdep.c (vax_gdbarch_init): Likewise.
14028         * x86-64-tdep.c (x86_64_init_abi): Likewise.
14029
14030         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14031         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14032         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14033         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14034         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14035         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14036         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14037         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14038
14039 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14040
14041         * Makefile.in (acconfig_h): Remove incorrect macro.
14042         (config_h): Define.
14043         (osabi.o): Update dependencies.
14044         * configure.tgt: Set gdb_osabi based on target triplet.
14045         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14046         * configure: Regenerated.
14047         * config.in: Regenerated.
14048         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14049         (GDB_OSABI_DEFAULT): Define if not already defined.
14050         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14051         (set_osabi_string): New variables.
14052         (gdbarch_register_osabi): Add new OS ABI to
14053         gdb_osabi_available_names.
14054         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14055         (set_osabi, show_osabi): New functions.
14056         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14057
14058 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14059
14060         * arch-utils.c (gdbarch_info_init): Set osabi to
14061         GDB_OSABI_UNINITIALIZED.
14062         * gdbarch.sh: Add osabi to struct gdbarch and to struct
14063         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
14064         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14065         * gdbarch.c: Regenerated.
14066         * gdbarch.h: Regenerated.
14067         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14068         there's no BFD.
14069         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14070         * osabi.h (enum gdb_osabi): Move to defs.h.
14071         (gdbarch_init_osabi): Update prototype.
14072         * defs.h (enum gdb_osabi): Moved here.
14073         * Makefile.in: Update dependencies.
14074
14075         * alpha-tdep.h: Don't include "osabi.h".
14076         (struct gdbarch_tdep): Remove osabi member.
14077         * alpha-tdep.c: Include "osabi.h".
14078         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14079         iterate over arches.  Update call to gdbarch_init_osabi.
14080         (alpha_dump_tdep): Don't dump osabi.
14081         * alpha-linux-tdep.c: Include "osabi.h".
14082         * alpha-osf1-tdep.c: Include "osabi.h".
14083         * alphafbsd-tdep.c: Include "osabi.h".
14084         * alphanbsd-tdep.c: Include "osabi.h".
14085
14086         * arm-tdep.h: Don't include "osabi.h".
14087         (struct gdbarch_tdep): Remove osabi member.
14088         * arm-tdep.c: Include "osabi.h".
14089         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14090         iterate over arches.  Update call to gdbarch_init_osabi.
14091         (arm_dump_tdep): Don't dump osabi.
14092         * arm-linux-tdep.c: Include "osabi.h".
14093         * armnbsd-tdep.c: Include "osabi.h".
14094
14095         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14096         Update call to gdbarch_init_osabi.
14097
14098         * i386-tdep.h: Don't include "osabi.h".
14099         (struct gdbarch_tdep): Remove osabi member.
14100         * i386-tdep.c: Include "osabi.h".
14101         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14102         iterate over arches.  Update call to gdbarch_init_osabi.
14103         (i386_dump_tdep): Don't dump osabi.
14104         * i386-linux-tdep.c: Include "osabi.h".
14105         * i386-sol2-tdep.c: Include "osabi.h".
14106         * i386bsd-tdep.c: Include "osabi.h".
14107         * i386gnu-tdep.c: Include "osabi.h".
14108         * i386ly-tdep.c: Include "osabi.h".
14109         * i386nbsd-tdep.c: Include "osabi.h".
14110         * i386obsd-tdep.c: Include "osabi.h".
14111
14112         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14113         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14114         check osabi when iterating over arches.  Update call to
14115         gdbarch_init_osabi.
14116         (mips_dump_tdep): Don't dump osabi.
14117
14118         * ns32k-tdep.h: Don't include "osabi.h".
14119         (struct gdbarch_tdep): Remove.
14120         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14121         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
14122         allocate tdep.  Update call to gdbarch_init_osabi.
14123         (ns32k_dump_tdep): Remove.
14124         (_initialize_ns32k_tdep): Update call to gdbarch_register.
14125         * ns32knbsd-tdep.c: Include "osabi.h".
14126
14127         * ppc-tdep.h: Don't include "osabi.h".
14128         (struct gdbarch_tdep): Remove osabi member.
14129         * rs6000-tdep.c: Include "osabi.h".
14130         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
14131         osabi when iterating over arches.  Update call to
14132         gdbarch_init_osabi.
14133         (rs6000_dump_tdep): Don't dump osabi.
14134         * ppc-linux-tdep.c: Include "osabi.h".
14135         * ppcnbsd-tdep.c: Include "osabi.h".
14136
14137         * sh-tdep.h: Don't include "osabi.h".
14138         (struct gdbarch_tdep): Remove osabi member.
14139         * sh-tdep.c: Include "osabi.h".
14140         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14141         iterate over arches.  Update call to gdbarch_init_osabi.
14142         (sh_dump_tdep): Don't dump osabi.
14143         * shnbsd-tdep.c: Include "osabi.h".
14144
14145         * sparc-tdep.c: Include "osabi.h".
14146         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14147         iterate over arches.  Update call to gdbarch_init_osabi.
14148         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
14149         tdep structure.
14150
14151         * vax-tdep.h: Don't include "osabi.h".
14152         (struct gdbarch_tdep): Remove.
14153         * vax-tdep.c: Include "osabi.h".
14154         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14155         iterate over arches.  Don't allocate tdep.  Update call
14156         to gdbarch_init_osabi.
14157         (vax_dump_tdep): Remove.
14158         (_initialize_vax_tdep): Update call to gdbarch_register.
14159
14160 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14161
14162         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14163         entirely.
14164         (breakpoint_re_set_one): Don't fetch the value for a disabled
14165         watchpoint.
14166
14167 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14168
14169         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14170         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14171         (COERCE_FLOAT_TO_DOUBLE): Remove.
14172         * gdbarch.c: Regenerate.
14173         * gdbarch.h: Regenerate.
14174         * Makefile.in: Remove value_h from gdbarch_h.
14175         * valops.c (coerce_float_to_double): New variable.
14176         (default_coerce_float_to_double): Remove.
14177         (standard_coerce_float_to_double): Remove.
14178         (value_arg_coerce): Use coerce_float_to_double.
14179         (_initialize_valops): Add "set coerce-float-to-double".
14180         * value.h (default_coerce_float_to_double): Remove prototype.
14181         (standard_coerce_float_to_double): Remove prototype.
14182
14183         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14184         prototyped.
14185         * mdebugread.c (parse_symbol): Likewise.
14186         * stabsread.c (define_symbol): Mark all functions as prototyped.
14187
14188         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14189         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14190         set_gdbarch_coerce_float_to_double.
14191         * arm-tdep.c (arm_gdbarch_init): Likewise.
14192         * frv-tdep.c (frv_gdbarch_init): Likewise.
14193         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14194         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14195         * mips-tdep.c (mips_gdbarch_init): Likewise.
14196         (mips_coerce_float_to_double): Remove.
14197         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14198         (rs6000_coerce_float_to_double): Remove.
14199         * s390-tdep.c (s390_gdbarch_init): Likewise.
14200         * sh-tdep.c (sh_gdbarch_init): Likewise.
14201         (sh_coerce_float_to_double): Remove.
14202         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14203         (sparc_coerce_float_to_double): Remove.
14204         * v850-tdep.c (v850_gdbarch_init): Likewise.
14205         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14206         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14207         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14208         (hppa_coerce_float_to_double): Remove prototype.
14209         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14210
14211 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14212
14213         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14214
14215 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14216
14217         Suggested by Stewart Brown <sb24@avaya.com>:
14218         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14219         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
14220         (c_type_print_varspec_suffix): Likewise.
14221
14222 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14223
14224         * configure.in: Don't set and AC_SUBST SUBDIRS.
14225         * configure: Regenerated.
14226
14227         * configure.in: Remove code dealing with shared libraries.
14228         * Makefile.in: Remove HLDFLAGS and HLDENV.
14229         * configure: Regenerated.
14230
14231 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
14232
14233         * frame.c (deprecated_frame_xmalloc): New function.
14234         (deprecated_set_frame_saved_regs_hack): New function.
14235         (deprecated_set_frame_extra_info_hack): New function.
14236         * frame.h (deprecated_frame_xmalloc): Declare.
14237         (deprecated_set_frame_saved_regs_hack): Declare.
14238         (deprecated_set_frame_extra_info_hack): Declare.
14239
14240 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14241
14242         * configure.in: Move code that provides the --enable-gdbtk option
14243         right after the code that handles the --enable-tui option, and
14244         polish it somewhat.
14245         * configure: Regenerated.
14246
14247         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
14248         AC_CHECK_FUNCS and remove the old check for pread64.
14249         * acinclude.m4 (AC_GNU_SOURCE): New macro.
14250         * acconfig.h (_GNU_SOURCE): Add.
14251         (HAVE_PREAD64): Remove.
14252         * configure, aclocal.m4, config.in: Regenerated.
14253
14254 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
14255
14256         * alpha-tdep.c: Use get_frame_saved_regs.
14257         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14258         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14259         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14260         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14261         * vax-tdep.c, xstormy16-tdep.c: Ditto.
14262
14263 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14264
14265         * configure.in: Remove all use of the SUBDIRS variable; add
14266         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
14267         code providing the --enable-multi-ice option, and move it right in
14268         front of the code that checks whether gdbserver is supported.
14269         Polish that too.
14270         * configure: Regenerated.
14271         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14272         @SUBDIRS@.
14273
14274 2003-01-03  Andrew Cagney  <cagney@redhat.com>
14275
14276         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14277         * avr-tdep.c, cris-tdep.c: Ditto.
14278         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14279         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14280
14281 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14282
14283         * configure.in: Remove --enable-netrom option.
14284         * configure: Regenerated.
14285
14286 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14287
14288         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14289         declaration for `struct re_pattern_buffer' instead.
14290         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14291
14292 2003-01-03  J. Brobecker  <brobecker@gnat.com>
14293
14294         * mdebugread.c (parse_symbol): Count until the stEnd matching
14295         the structure name.
14296
14297 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14298
14299         * configure.in: Remove --with-cpu option.
14300         subscripts.  Remove evil changequotes here.
14301         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14302         * config.in, configure: Regenerated.
14303
14304         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14305         * configure.in: Cleanup section that sources GDB and BFD configure
14306         subscripts.  Remove evil changequotes here.
14307         * config.in, configure: Regenerated.
14308
14309 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14310
14311         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14312         frame accessor methods.
14313         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14314         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14315         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14316         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14317         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14318         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14319         * z8k-tdep.c: Ditto.
14320
14321 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14322
14323         * configure.in: Remove UI_OUT configuration code.
14324         * ada-lang.c: Update assuming UI_OUT is always true.
14325         * Makefile.in (UIOUT_CFLAGS): Remove.
14326         * configure: Regenerated.
14327         * TODO: Remove blurb about elimination of -DUI_OUT.
14328
14329         * configure.in: Move code that provides the --enable-gdbcli,
14330         --enable-gdbmi options right before the code that handles the
14331         --enable-tui option.  Polish a bit.
14332         * configure: Regenerated.
14333
14334         * configure.in: Rewrite check for GNU regex and the
14335         --without-included regex option, and move it into the "Checks for
14336         library functions" section.  This makes us use the system regex
14337         again by default on systems with version 2 of the GNU C library.
14338         This was apparently broken.
14339         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14340         * acconfig.h (USE_INCLUDED_REGEX): Remove.
14341         * config.in, configure: Regenerated.
14342
14343         * configure.in: Move code that provides the --enable-tui option
14344         before the "Checks for libraries" section.  Polish the code
14345         somewhat and set need_curses to yes if we build the TUI.  Rewrite
14346         code that looks for a library providing termcap functionality to
14347         match more closely what's done in the Readline library, and move
14348         it into to the "Checks for libraries" section.
14349         * configure: Regenerated.
14350         * Makefile.in (TERMCAP): Remove variable.
14351         * config/i386/go32.mh (TERMCAP): Remove variable.
14352
14353 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14354
14355         * MAINTAINERS: Mention gdb_mbuild.sh.
14356         * gdb_mbuild.sh: Rewrite.
14357
14358 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14359
14360         * configure.in: Fix typo in last change.
14361         * config.in, configure: Regenerated.
14362
14363 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14364
14365         * valarith.c (value_binop): Delete obsolete code and comments.
14366         * configure.host: Ditto.
14367         * buildsym.h (make_blockvector): Ditto.
14368         * buildsym.c (make_blockvector): Ditto.
14369         * defs.h (enum language): Ditto.
14370         (chill_demangle): Ditto.
14371         * elfread.c (elf_symtab_read): Ditto.
14372         * dwarfread.c (CHILL_PRODUCER): Ditto.
14373         (set_cu_language): Ditto.
14374         (handle_producer): Ditto.
14375         * expprint.c (print_subexp): Ditto.
14376         * gdbtypes.c (chill_varying_type): Ditto.
14377         * gdbtypes.h (builtin_type_chill_bool): Ditto.
14378         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14379         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14380         (chill_varying_type): Ditto.
14381         * language.h (_LANG_chill): Ditto.
14382         * language.c (binop_result_type, integral_type): Ditto.
14383         (character_type, string_type, structured_type): Ditto.
14384         (lang_bool_type, binop_type_check): Ditto.
14385         * stabsread.h (os9k_stabs): Ditto.
14386         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14387         (define_symbol, read_type, read_struct_fields): Ditto.
14388         (read_array_type, read_enum_type, read_huge_number): Ditto.
14389         (read_range_type, start_stabs): Ditto.
14390         * symfile.c (init_filename_language_table): Ditto.
14391         (add_psymbol_with_dem_name_to_list): Ditto.
14392         * symtab.c (symbol_init_language_specific): Ditto.
14393         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14394         * symtab.h (struct general_symbol_info): Ditto.
14395         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14396         * typeprint.c (typedef_print): Ditto.
14397         * utils.c (fprintf_symbol_filtered): Ditto.
14398         * valops.c (value_cast, search_struct_field, value_slice): Delete
14399         obsolete code.
14400         (varying_to_slice): Delete function.
14401         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14402         (varying_to_slice): Delete declaration.
14403         * MAINTAINERS: Update.
14404
14405 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14406
14407         * configure.in: Reorganize "Checks for library functions section"
14408         a bit.  Remove check for `btowc' and `isascii' functions.
14409         * configure: Regenerated.
14410
14411         * acconfig.h (_MSE_INT_H): Remove.
14412         * configure.in: Create "Checks for header files" section, and move
14413         appropriate tests there.  Don't check for objlist.h, wchar.h,
14414         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
14415         misdetection fix.  Also add "Checks for types", "Checks for
14416         compiler characteristics" and "Checks for library functions"
14417         sections.
14418         * config.in, configure: Regenerated.
14419
14420         * configure.in: Create "Checks for programs" section, and move
14421         appropriate tests there.
14422
14423 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
14424
14425         * configure.in: Create "Checks for libraries" section, and move
14426         appropriate tests there.  Cleanup check for wctype in libw.  Use
14427         AC_SEARCH_LIBS to see whether we need libsocket.
14428         * configure: Regenerated.
14429
14430 For older changes see ChangeLog-2002
14431 \f
14432 Local Variables:
14433 mode: change-log
14434 left-margin: 8
14435 fill-column: 74
14436 version-control: never
14437 End: