From David S. Miller <davem@redhat.com>:
[external/binutils.git] / gdb / ChangeLog
1 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
2
3         From David S. Miller  <davem@redhat.com>:
4         * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
5         * gdbarch.c, gdbarch.h: Regenerated.
6         * arch-utils.c (generic_skip_solib_resolver): New function.
7         * arch-utils.h (generic_skip_solib_resolver): New prototype.
8         * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
9
10 2003-11-07  Andrew Cagney  <cagney@redhat.com>
11
12         * top.c (print_gdb_version): Replace STREQ with strcmp.
13         * valops.c (value_struct_elt_for_reference): Ditto.
14         (value_struct_elt_for_reference): Ditto.
15         * symtab.c (gdb_mangle_name): Ditto.
16         (find_line_symtab): Ditto.
17         * symmisc.c (maintenance_print_symbols): Ditto.
18         * symfile.c (symbol_file_command): Ditto.
19         * stabsread.c (define_symbol, read_type): Ditto.
20         (cleanup_undefined_types, scan_file_globals): Ditto.
21         * solib.c (solib_map_sections): Ditto.
22         * solib-svr4.c (bfd_lookup_symbol): Ditto.
23         * rs6000-tdep.c (skip_prologue): Ditto.
24         * p-valprint.c (pascal_value_print): Ditto.
25         (pascal_object_is_vtbl_ptr_type): Ditto.
26         * objfiles.c (in_plt_section): Ditto.
27         * minsyms.c (lookup_minimal_symbol): Ditto.
28         (compact_minimal_symbols): Ditto.
29         (find_solib_trampoline_target): Ditto.
30         * mdebugread.c (parse_type): Ditto.
31         * language.c (set_language_command): Ditto.
32         (set_type_command, set_range_command): Ditto.
33         * f-lang.c (add_common_block): Ditto.
34         (add_common_block): Ditto.
35         (find_first_common_named): Ditto.
36         (patch_all_commons_by_name): Ditto.
37         * elfread.c (elf_locate_sections): Ditto.
38         (elf_locate_sections): Ditto.
39         (elfstab_offset_sections): Ditto.
40         * dwarf2read.c (dwarf2_locate_sections): Ditto.
41         * dbxread.c (add_old_header_file): Ditto.
42         (find_corresponding_bincl_psymtab): Ditto.
43         (read_dbx_symtab, process_one_symbol): Ditto.
44         * coffread.c (patch_opaque_types): Ditto.
45         * cli/cli-decode.c (delete_cmd): Ditto.
46         * cli/cli-cmds.c (pwd_command, list_command): Ditto.
47         * c-typeprint.c (c_type_print_base): Ditto.
48         * breakpoint.c (bpstat_stop_status): Ditto.
49         (clear_command, breakpoint_re_set_one): Ditto.
50
51 2003-11-07  Andrew Cagney  <cagney@redhat.com>
52
53         * bcache.h: Update copyright.  Add comments on bcache VS hashtab.
54         * bcache.c (struct bstring): Make "length" an unsigned short, add
55         "half_hash".
56         (struct bcache): Add "half_hash_error_count".
57         (bcache): Compute and save the "half_hash".  Compare the
58         "half_hash" before comparing the length.  Update
59         half_hash_error_count.
60
61 2003-11-07  Andrew Cagney  <cagney@redhat.com>
62
63         * inftarg.c (child_xfer_partial): New function
64         (init_child_ops): Set "to_xfer_partial".
65
66 2003-11-07  Andrew Cagney  <cagney@redhat.com>
67
68         * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
69         set "return_value" instead of "use_struct_convention".
70         (ppc_linux_use_struct_convention): Delete function.
71         (ppc_linux_return_value): New function.
72         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
73         (ppc_sysv_abi_broken_return_value): New function.
74         (do_ppc_sysv_return_value): Add "gdbarch" parameter.
75         (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
76         static.
77         (ppc_sysv_abi_extract_return_value): Delete function.
78         (ppc_sysv_abi_broken_extract_return_value): Delete function.
79         (ppc_sysv_abi_store_return_value): Delete function.
80         (ppc_sysv_abi_broken_store_return_value): Delete function.
81         (ppc_sysv_abi_use_struct_convention): Delete function.
82         (ppc64_sysv_abi_use_struct_convention): Delete function.
83         (ppc64_sysv_abi_extract_return_value): Delete function.
84         (ppc64_sysv_abi_store_return_value): Delete function.
85         * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
86         (ppcnbsd_init_abi): Set "return_value", instead of
87         "use_struct_convention", "extract_return_value", and
88         "store_return_value".
89         (ppcnbsd_use_struct_convention): Delete function.
90         * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
91         (ppc_sysv_abi_return_value): Declare.
92         (ppc_sysv_abi_broken_return_value): Declare.
93         (ppc_sysv_abi_use_struct_convention): Delete.
94         (ppc_sysv_abi_store_return_value): Delete.
95         (ppc_sysv_abi_extract_return_value): Delete.
96         (ppc_sysv_abi_broken_store_return_value): Delete.
97         (ppc_sysv_abi_broken_extract_return_value): Delete.
98         (ppc64_sysv_abi_use_struct_convention): Delete.
99         (ppc64_sysv_abi_extract_return_value): Delete.
100         (ppc64_sysv_abi_store_return_value): Delete.
101         * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
102         set "return_value" instead of "extract_return_value",
103         "store_return_value", and "use_struct_convention".
104
105 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
106
107         * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
108
109         * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
110         fscanf.
111
112 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
113
114         * fbsd-proc.c: Fix formatting.
115
116 2003-11-06  Kevin Buettner  <kevinb@redhat.com>
117
118         * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
119         Define.
120         (new_variant): Set name for iacc0_regnum.
121         (frv_register_name): Accommodate pseudo-registers.
122         (frv_register_type): Add case for iacc0_regnum.
123         (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
124         (frv_gdbarch_init): Set number of pseudo registers.  Establish
125         pseudo-register read/write methods.
126
127 2003-11-06  Andrew Cagney  <cagney@redhat.com>
128
129         * valops.c (destructor_name_p): Replace STREQN with strncmp.
130         * top.c (command_line_input): Ditto.
131         * objc-exp.y (yylex): Ditto.
132         * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
133         * jv-exp.y (yylex): Ditto.
134         * f-exp.y (yylex): Ditto.
135         * event-top.c (command_line_handler): Ditto.
136         * environ.c (get_in_environ): Ditto.
137         (set_in_environ): Ditto.
138         * dwarfread.c (handle_producer): Ditto.
139         * dbxread.c (process_one_symbol): Ditto.
140         * c-typeprint.c (c_type_print_base): Ditto.
141         * c-exp.y (yylex): Ditto.
142
143 2003-11-06  Andrew Cagney  <cagney@redhat.com>
144             Jeff Johnston  <jjohnstn@redhat.com>
145
146         * target.c (add_target): Only set "to_xfer_partial" when NULL.
147         (init_dummy_target): Set "to_xfer_partial".
148
149 2003-11-06  Andrew Cagney  <cagney@redhat.com>
150
151         * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
152         REGISTER_CONVENTION.
153
154 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
155
156         * breakpoint.c (insert_bp_location, allocate_bp_location): Make
157         static.
158
159 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
160
161         * breakpoint.c (remove_breakpoint): Take an bp_location
162         instead of a breakpoint argument.  Check the bp_location's type.
163         Fix a reversed condition for hardware breakpoints.
164
165         (insert_bp_location): Update call to remove_breakpoint.
166         (remove_breakpoints): Likewise.  Use ALL_BP_LOCATIONS.
167         (remove_hw_watchpoints): Likewise.
168         (reattach_breakpoints): Likewise.
169         (detach_breakpoints): Likewise.
170         (delete_breakpoint): Likewise.
171
172 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
173
174         * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
175         (beakpoint_init_inferior): Likewise.
176         (breakpoint_here_p): Likewise.  Only check addresses for software
177         or hardware breakpoints.
178         (breakpoint_inserted_here_p): Likewise.
179         (breakpoint_thread_match): Likewise.  Correct comment.
180         (bpstat_have_active_hw_watchpoints): Likewise.
181         (check_duplicates): Likewise.
182
183 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
184
185         * breakpoints.c (insert_bp_location): New function, broken out
186         from insert_breakpoints.  Work on an bp_location instead of a
187         breakpoint.
188         (insert_breakpoints): Use it.
189
190 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
191
192         * breakpoint.h (struct bp_location): Add section.
193         (struct breakpoint): Remove section.
194         * breakpoint.c (insert_breakpoints, remove_breakpoint)
195         (breakpoint_here_p, breakpoint_inserted_here_p)
196         (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
197         (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
198         (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
199         section through loc.
200
201 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
202
203         * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
204         instead of ALL_BREAKPOINTS.  Check for software breakpoints only.
205
206 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
207
208         * breakpoint.c (allocate_bp_location): Take bpt and bp_type
209         arguments.  Initialize owner and type for the new breakpoint
210         location item.
211         (set_raw_breakpoint): Update call to allocate_bp_location.
212
213 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
214
215         * breakpoint.h (struct bp_location): Add a chain pointer.
216         * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
217         macros.
218         (bp_location_chain): New variable.
219         (allocate_bp_location): New function.
220         (set_raw_breakpoint): Use it.
221         (delete_breakpoint): Remove ->loc from the bp_location_chain.
222
223 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
224
225         * breakpoint.h (enum bp_loc_type, struct bp_location): New.
226         (struct breakpoint): Remove address, shadow_contents, inserted,
227         requested_address, and duplicate.  Add a struct bp_location.
228         * breakpoint.c (condition_command, read_memory_nobpt)
229         (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
230         (reattach_breakpoints, update_breakpoints_after_exec)
231         (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
232         (breakpoint_init_inferior, breakpoint_here_p)
233         (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
234         (breakpoint_thread_match, bpstat_stop_status)
235         (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
236         (describe_other_breakpoints, check_duplicates)
237         (make_breakpoint_permanent, create_thread_event_breakpoint)
238         (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
239         (set_longjmp_resume_breakpoint, mention, create_breakpoints)
240         (watch_command_1, print_one_exception_catchpoint)
241         (clear_command, breakpoint_re_set_one): Adjust member accesses to
242         use the breakpoint's ->loc.
243         (set_raw_breakpoint): Likewise.  Initialize ->loc.
244         (delete_breakpoint): Likewise.  Free ->loc.
245
246 2003-11-05  Andrew Cagney  <cagney@redhat.com>
247
248         * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
249         macro.
250         * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
251         * config/i386/tm-cygwin.h
252         (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
253         * config/powerpc/tm-linux.h
254         (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
255         (at_subroutine_call_instruction_target): Delete declaration.
256         * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
257         * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
258         * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
259
260         * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
261         "struct bfd_section" and "struct bfd".
262         * target.h (struct section_table): Ditto.
263         * rs6000-nat.c (xcoff_relocate_core): Ditto.
264         * solib-svr4.c (elf_locate_base): Ditto.
265         * pa64solib.c (dld_cache_t): Ditto.
266         * objfiles.h (struct obj_section): Ditto.
267         * objfiles.c (add_to_objfile_sections): Ditto.
268         * exec.c (bfdsec_to_vmap): Ditto.
269         (add_to_section_table): Ditto.
270         (build_section_table): Ditto.
271         * corelow.c (get_core_register_section): Ditto.
272         * coffread.c (find_linenos): Ditto.
273         * elfread.c (elf_interpreter): Delete #if0'd function.
274
275         * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
276         * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
277         * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
278         * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
279
280         * arch-utils.h (generic_cannot_extract_struct_value_address):
281         Delete declaration.
282         * wince.c (_initialize_wince): Fix multi-line string.
283         * ia64-tdep.c (floatformat_valid): Convert to ISO C.
284
285 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
286
287         * top.c (execute_command): Fix broken logic for command execution
288         while inferior is running in async mode.
289
290 2003-11-06  Mark Kettenis  <kettenis@gnu.org>
291
292         * dwarf2-frame.c (execute_cfa_program): Mark register as
293         REG_SAVED_REG for DW_CFA_register opcode.
294
295 2003-11-05  Mark Kettenis  <kettenis@gnu.org>
296
297         * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
298         %rsp, %rip and %eflags to match ABI-change.
299
300 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
301
302         * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
303         (ia64_gdbarch_init): Don't bother calculating the os.  
304         Instead use the gdbarch_info struct and look at the osabi field.  
305         Also use gdbarch_list_lookup_by_info() to look for a 
306         candidate gdbarch. 
307
308 2003-11-05  Kevin Buettner  <kevinb@redhat.com>
309
310         * frv-tdep.c (frv_register_byte): Delete.
311         (frv_extract_return_value, frv_store_return_value)
312         (frv_extract_struct_value_address): Don't call frv_register_byte().
313         Convert to non-deprecated form.
314         (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
315         Convert calls to set_gdbarch_deprecated_extract_return_value(),
316         set_gdbarch_deprecated_store_return_value(), and
317         set_gdbarch_deprecated_extract_struct_value_address() into
318         non-deprecated forms.
319
320 2003-11-05  Andrew Cagney  <cagney@redhat.com>
321
322         * mips-tdep.c (mips_dump_tdep): Do not print
323         PRINT_EXTRA_FRAME_INFO.
324         * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
325         Rename PRINT_EXTRA_FRAME_INFO.
326         * mips-tdep.c (mips_print_extra_frame_info): Delete function.
327         * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
328         (mips_print_extra_frame_info): Delete declaration.
329         * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
330
331 2003-11-05 Elena Zannoni  <ezannoni@redhat.com>
332
333         * coffread.c (coff_symtab_read): Remove passing of info parameter
334         to prim_record_minimal_symbol_and_info.
335
336 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
337
338         * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
339         (decode_base_type): Delete ifdeffed out code.
340
341 2003-11-04  Andrew Cagney  <cagney@redhat.com>
342
343         * symtab.c (find_active_alias): Delete function.
344         (lookup_block_symbol): Delete alias code.
345         * stabsread.c (resolve_live_range): Delete function.
346         (add_live_range): Delete function.
347         (resolve_symbol_reference): Delete function.
348         (define_symbol): Delete live range and alias code.
349         (scan_file_globals): Delete alias code.
350         * symtab.h (SYMBOL_RANGES): Delete macro.
351         (struct range_list): Delete structure.
352         (struct symbol): Delete field "ranges".
353         (SYMBOL_ALIASES): Delete macro.
354         (struct alias_list): Delete structure.
355         (struct symbol): Delete field "aliases".
356
357 2003-11-04  Michael Snyder  <msnyder@redhat.com>
358
359         * MAINTAINERS: Remove myself as owner of breakpoints and 
360         of sparc/solaris.
361
362 2003-11-03  Corinna Vinschen  <vinschen@redhat.com>
363
364         * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
365         (sh_sh4al_dsp_register_name): Ditto.
366         (sh4_nofpu_show_regs): Ditto.
367         (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
368         bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
369
370 2003-11-03  Andrew Cagney  <cagney@redhat.com>
371
372         * bcache.c: Include "gdb_assert.h".
373         (struct bcache): Add fields "expand_count" and
374         "expand_hash_count".
375         (expand_hash_table): Update the expand counts.
376         (print_bcache_statistics): Use XCALLOC, not alloca.  Print stats
377         on object sizes and hashes.
378         * Makefile.in (bcache.o): Update dependencies.
379
380 2003-11-03  Andrew Cagney  <cagney@redhat.com>
381
382         * exec.c (xfer_memory): Eliminate xfer_fn.
383
384 2003-10-31  Kevin Buettner  <kevinb@redhat.com>
385
386         * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
387         (opcodes/frv-desc.h): Include.
388         (iacc0h_regnum, iacc0l_regnum): Define.
389         (last_spr_regnum, frv_num_regs): Update.
390         (new_variant): Don't supply default names for holes in the SPRs.
391         Supply names for iacc0h_regnum and iacc0l_regnum.
392         (frv_register_type): Use symbolic constants first_fpr_regnum and
393         last_fpr_regnum instead of hardcoded constants 64 and 127.  Use
394         builtin_type_int instead of builtin_type_int32.
395         (frv_register_sim_regno): New function.
396         (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
397         * Makefile.in (gdb_sim_frv_h): Define.
398         (frv-tdep.o): Update dependencies.
399
400 2003-10-31  Andrew Cagney  <cagney@redhat.com>
401
402         * avr-tdep.c (avr_frame_this_id): Do not call
403         deprecated_inside_entry_file.
404         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
405         * m32r-tdep.c (m32r_frame_this_id): Ditto.
406         * d10v-tdep.c (d10v_frame_this_id): Ditto.
407         * arm-tdep.c (arm_prologue_this_id): Ditto.
408         * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
409
410 2003-10-31  Jim Blandy  <jimb@redhat.com>
411
412         * elfread.c (elf_symtab_read): Allocate correct number of tail
413         elements to sectinfo structure.  (Fix from Woody LaRue.)
414
415 2003-10-31  Andrew Cagney  <cagney@redhat.com>
416
417         * stack.c (return_command): Use get_frame_type, instead of
418         CALL_DUMMY_HAS_COMPLETED.
419         * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
420         * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
421
422 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
423
424         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
425         explicitly specify size of array.
426         (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
427         TDEP->sc_num_regs.
428
429 2003-10-31  Andrew Cagney  <cagney@redhat.com>
430
431         * s390-tdep.c (s390_cannot_extract_struct_value_address): New
432         function.
433         (s390_gdbarch_init): Set extract_struct_value_address.
434         * arch-utils.c (generic_cannot_extract_struct_value_address):
435         Delete function.
436         * arch-utils.h (generic_cannot_extract_struct_value_address):
437         Delete definition.
438
439 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
440
441         * i386-linux-nat.c (fetch_core_registers): Remove.
442         (linux_elf_core_fns): Remove.
443         (_initialize_i386_linux_nat): Remove.
444
445 2003-10-31  Andrew Cagney  <cagney@redhat.com>
446
447         * solib-svr4.c: Update copyright.  Include "bfd-target.h" and
448         "exec.h".
449         (exec_entry_point): New function.
450         (enable_break): Create a "tmp_bfd_target", use that and
451         entry_point_address when computing the relocation offset.
452         (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
453         * Makefile.in (solib-svr4.o): Update dependencies.
454
455 2003-10-31  Andrew Cagney  <cagney@redhat.com>
456
457         * defs.h (XZALLOC): Define.
458         * target.h (struct target_ops): Add "to_data";
459         * bfd-target.h, bfd-target.c: New files.
460         * Makefile.in (SFILES): Add "bfd-target.c".
461         (COMMON_OBS): Add "bfd-target.o".
462         (bfd-target.o): Specify dependencies.
463         (bfd_target_h): Define.
464         * defs.h (XZALLOC): Define.
465
466 2003-10-31  Andrew Cagney  <cagney@redhat.com>
467
468         * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
469         adjust_breakpoint_address.
470         * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
471         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
472         * ppc-sysv-tdep.c: Include "target.h".  Update copyright.
473         (ppc64_sysv_abi_adjust_breakpoint_address): New function.
474
475 2003-10-31  Andrew Cagney  <cagney@redhat.com>
476
477         * target.h (struct target_ops): Replace "to_read_partial" and
478         "to_write_partial" with "to_xfer_partial".  Update comments.
479         * target.c (debug_to_write_partial): Delete function.
480         (debug_to_xfer_partial): Replace debug_to_read_partial.
481         (add_target, update_current_target, setup_target_debug): Set
482         "to_xfer_partial" instead of "to_read_partial" and
483         "to_write_partial".
484         (default_xfer_partial): Replace "default_write_partial".
485         (default_read_partial): Delete.
486         (target_read_partial, target_write_partial): Call
487         "to_xfer_partial".
488         * remote.c (init_remote_ops): Set "to_xfer_partial".
489         (init_remote_async_ops): Ditto.
490         (remote_xfer_partial): Replace "remote_read_partial".
491
492 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
493
494         * i386-tdep.c (i386_supply_fpregset): Support floating-point
495         registers in `fxsave' format.
496         (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
497
498 2003-10-30  Mark Kettenis  <kettenis@gnu.org>
499
500         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
501         (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
502         TDEP->gregset_num_regs and tdep->sizeof_gregset.
503
504         * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
505         specify size of array.
506         (i386_linux_init_abi): Remove initialization of
507         TDEP->num_xmm_regs.  Use I386_LINUX_NUM_REGS for number of
508         registers.  Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
509
510         * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
511         * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
512         core-regset.o.
513
514         * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
515         the ELF header.
516
517 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
518
519         * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
520         * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
521         core-regset.o.
522
523         * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
524
525         * corelow.c: Include "arch-utils.h", "regset.h" and
526         "gdb_assert.h".
527         (core_gdbarch): New variable.
528         (sniff_core_bfd): Don't sniff if we have support for register sets
529         in CORE_GDBARCH.
530         (core_close): Reset CORE_GDBARCH.
531         (core_open): Initialize CORE_GDBARCH.
532         (get_core_register_section): Use register sets if they are
533         supported by CORE_GDBARCH.
534         (get_core_registers): Don't print error message if we have support
535         for register sets in CORE_GDBARCH.
536
537 2003-10-29  Andrew Cagney  <cagney@redhat.com>
538
539         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
540         default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
541
542 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
543
544         * objfiles.h (clear_objfile_data): New prototype.
545         * objfiles.c (clear_objfile_data): New function.
546         * symfile.c (reread_symbols): Clear per-objfile data.
547
548 2003-10-28  Jeff Johnston  <jjohnstn@redhat.com>
549  
550         * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
551         printf_unfiltered instead of printf_filtered for output messages.
552         (add_symbol_file_command): Ditto.
553         (reread_symbols): Ditto.
554         (overlay_auto_command): Ditto.
555         (overlay_manual_command): Ditto.
556         (overlay_off_command): Ditto.
557
558 2003-10-27  Mark Kettenis  <kettenis@gnu.org>
559
560         * arch-utils.c (deprecated_select_gdbarch_hack): New function.
561         (gdbarch_from_bfd): New function.
562         (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
563         deprecated_select_gdbarch_hack.
564         * arch-utils.h (gdbarch_from_bfd): New prototype.
565
566 2003-10-27  Andrew Cagney  <cagney@redhat.com>
567
568         * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
569         arch_info.  Use warning instead of fprintf_filtered.  Do not use
570         deprecated bfd_printable_arch_mach.
571
572 2003-10-26  Kevin Buettner  <kevinb@redhat.com>
573
574         * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
575         Delete.
576         (frv_register_type): Rename from frv_register_virtual_type.  Add
577         ``struct gdbarch *'' parameter.
578         (frv_gdbarch_init): Delete calls to the following functions:
579         set_gdbarch_deprecated_size(),
580         set_gdbarch_deprecated_register_bytes(),
581         set_gdbarch_deprecated_register_raw_size(),
582         set_gdbarch_deprecated_max_register_raw_size(),
583         set_gdbarch_deprecated_register_virtual_size(),
584         set_gdbarch_deprecated_max_register_virtual_size(),
585         set_gdbarch_deprecated_register_virtual_size(),
586         set_gdbarch_deprecated_register_virtual_type().
587         Add call to function set_gdbarch_register_type().
588
589 2003-10-26  Mark Kettenis  <kettenis@gnu.org>
590
591         * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
592         FDOFF_REGNUM): Remove defines.
593         * win32-nat.c (do_child_fetch_inferior_registers): Include
594         "i387-tdep.h".
595         (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
596         I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM.  Define and
597         undefine I387_ST0_REGNUM.
598
599         * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
600         * x86-64-tdep.c (x86_64_store_return_value): Use
601         I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
602
603         Change register numbers to enumartion values.
604         * i386-tdep.h (enum i386_regnum): New.
605         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
606         I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
607         I386_ST0_REGNUM): Remove defines.
608         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
609         I386_EDI_REGNUM): Remove defines.
610
611 2003-10-24  Andrew Cagney  <cagney@redhat.com>
612
613         * target.c: Include "gdbcore.h".
614         (get_target_memory, get_target_memory_unsigned): New functions.
615         * target.h (get_target_memory, get_target_memory_unsigned): Declare.
616         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
617         Use get_target_memory_unsigned.
618         * Makefile.in (target.o): Update dependencies.
619
620 2003-10-24  Andrew Cagney  <cagney@redhat.com>
621
622         * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
623         * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
624         * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
625         * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
626         * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
627
628         * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
629         (can_run_code_for): Use the OO term "singleton".
630
631 2003-10-23  Andrew Cagney  <cagney@redhat.com>
632
633         * Makefile.in (stack.o): Add $(regcache_h).
634         * stack.c: Include "regcache.h"
635         (return_command): Rewrite.  Use get_frame_id and
636         get_selected_frame.  Eliminate "deprecated_selected_frame".  Warn
637         about unhandled return-values.
638         * value.h (set_return_value): Delete declaration.
639         * values.c (set_return_value): Delete function.
640
641 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
642
643         * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
644         (pseudo_regs): Add comment regarding register stack registers.
645         (ia64_alloc_frame_cache):  Initialize new prev_cfm field to 0.
646         (floatformat_valid): New static routine.
647         (floatformat_ia64_ext): Add name field and set up is_valid routine
648         to floatformat_valid().
649         (examine_prologue):  For the previous cfm, use
650         frame_unwind_register()
651         if the cfm is not stored in a register-stack register.  Save the
652         previous cfm value in the prev_cfm field.  Add debug output.
653         (ia64_frame_this_id): Use frame_id_build_special() to also register
654         the bsp.  Add debug output.
655         (ia64_sigtramp_frame_this_id): Ditto.
656         (ia64_frame_prev_register):  Look at cache saved_regs for a few more
657         registers and also add some checks for framelessness before accepting
658         current register values for fields such as return address.  For cfm,
659         use the cached prev_cfm field if available.  Add comment to explain
660         PSR logic.  Add debug output.
661         (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
662         as part of initialization.
663         (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
664         calculated.  Cache the bsp and cfm values.
665         (ia64_sigtramp_frame_prev_register): Add logic to this routine out
666         instead of using ia64_frame_prev_register() which doesn't expect most
667         registers to be saved.  The saved values for bsp and sp
668         can be taken from the cache.  Add debug output.
669         (ia64_push_dummy_call): Use frame_id_build_special() to also register
670         the bsp.
671
672 2003-10-23  Jim Blandy  <jimb@redhat.com>
673
674         * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
675         architecture the current arch can run code for --- but not if it's
676         a superset.
677         (can_run_code_for): New function.
678
679 2003-10-22  James E Wilson  <wilson@specifixinc.com>
680
681         * MAINTAINERS: Move myself from paper trail section back to write
682         after approval section.
683
684 2003-10-22  Andrew Cagney  <cagney@redhat.com>
685
686         * exec.h: New file.
687         * win32-nat.c: Include "exec.h".
688         * solib.c: Include "exec.h".
689         * target.h (build_section_table): Delete declaration.
690         * somsolib.c: Include "exec.h".
691         (exec_ops): Delete extern declaration.
692         * rs6000-nat.c: Update copyright.  Include "exec.h".
693         (exec_ops): Delete extern declaration.
694         * pa64solib.c: Update copyright.  Include "exec.h".
695         (exec_ops): Delete extern declaration.
696         * exec.c: Update copyright.  Include "exec.h".
697         * corelow.c: Update dependencies.  Include "exec.h".
698         * Makefile.in (exec_h): Define.
699         (exec.o, somsolib.o): Update dependencies.
700         (pa64solib.o, corelow.o): Update dependencies.
701
702 2003-10-22  Andrew Cagney  <cagney@redhat.com>
703
704         * target.c: Include "gdb_assert.h" (target_read): Call
705         "target_read_partial", not "target_write_partial".
706         (default_read_partial, default_write_partial): New function.
707         (target_read_partial, target_write_partial): Simplify, assume that
708         there is always a read/write method.
709         (update_current_target, add_target): Always set "to_read_partial"
710         and "to_write_partial".
711         (target_write, target_read): Fail on a zero byte transfer.
712         * Makefile.in (target.o): Update dependencies.
713         * target.h: Update copyright date.
714         (target_object): Fix typo.
715
716 2003-10-22  Andrew Cagney  <cagney@redhat.com>
717
718         * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
719         multi-arch method, add "targ" parameter.
720         (struct target_ops): Declare.   
721         * gdbarch.h, gdbarch.c: Re-generate.
722         * Makefile.in (c-valprint.o): Update dependencies.
723         * arch-utils.h: Update copyright.
724         (convert_from_func_ptr_addr_identity): Declare.
725         * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
726         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
727         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
728         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
729         * infcall.c (find_function_addr, call_function_by_hand): Update.
730         * c-valprint.c: Include "target.h".
731         (print_function_pointer_address): Update.
732
733 2003-10-22  Andrew Cagney  <cagney@redhat.com>
734
735         * target.c (target_close): New function.
736         (debug_to_close): Use "target_close".
737         (push_target): Use "target_close".
738         (unpush_target): Use "target_close".
739         (pop_target): Use "target_close".
740         * target.h (struct target_ops): Add "to_xclose".
741         (target_open): Delete macro.  Move comment to "to_open".
742         (target_close): Replace macro with function that takes a target.
743         * top.c (quit_target): Pass "current_target" to "target_close".
744
745 2003-10-21  Elena Zannoni  <ezannoni@redhat.com>
746
747         * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
748         Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
749         * symtab.h (lookup_minimal_symbol_text): Update.
750         * breakpoint.c (create_overlay_event_breakpoint,
751         create_longjmp_breakpoint): Update callers.
752         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
753         * symtab.c (find_pc_sect_line): Ditto.
754
755 2003-10-21  Andrew Cagney  <cagney@redhat.com>
756
757         * target.c (errno): Delete extern declaration.
758
759 2003-10-20  Jeff Johnston  <jjohnstn@redhat.com>
760
761         * ia64-tdep.c: Change all occurrences of
762         DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
763         (ia64_frame_prev_register): Minor whitespace change.
764
765 2003-10-20  Michael Chastain  <mec@shout.net>
766
767         * config/djgpp/fnchange.lst: Add lines for:
768         sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
769         sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
770         sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
771         sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
772         sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
773         sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
774         sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
775
776 2003-10-20  Andrew Cagney  <cagney@redhat.com>
777
778         * values.c (register_value_being_returned): Update comments.  Use
779         "gdbarch_return_value" when available.
780         (using_struct_return): Ditto.
781         (set_return_value): Ditto.  Use "gdbarch_return_value" when
782         available..  Print a warning, and not an error, when an unhandled
783         return type is encountered.
784         * infcmd.c: Include "gdb_assert.h".
785         (print_return_value): When gdbarch_return_value_p, and using
786         struct return, assume that the value is not available.
787         * defs.h (return_value_convention): Define.
788         * gdbarch.sh (gdbarch_return_value): New predicate method.
789         * gdbarch.h, gdbarch.c: Re-generate
790         * ppc-sysv-tdep.c (return_value_convention): Delete definition.
791
792 2003-10-20  Andrew Cagney  <cagney@redhat.com>
793
794         * symtab.c: Replace "struct sec" with "struct bfd_section".
795         * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
796
797 2003-10-19  Michael Chastain  <mec@shout.net>
798
799         * config/djgpp/fnchange.lst: Add lines for:
800         gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
801         gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
802         gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
803
804 2003-10-19  Mark Kettenis  <kettenis@gnu.org>
805
806         * amd64fbsd-nat.c (fetch_inferior_registers,
807         store_inferior_registers): Remove functions.
808         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
809
810 2003-10-18  Mark Kettenis  <kettenis@gnu.org>
811
812         Add NetBSD/amd64 native configuration:
813         * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
814         * amd64nbsd-tdep.c: New file.
815         * amd64nbsd-nat.c: New file.
816         * amd64bsd-nat.c: New file.
817         * config/i386/nbsd64.mh: New file.
818         * config/i386/nbsd64.mt: New file.
819         * configure.host: Add x86_64-*-netbsd*.
820         * configure.tgt: Add x86_64-*-netbsd*.
821         * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
822         New targets.
823         * NEWS (New native configurations): Mention NetBSD/amd64.
824
825 2003-10-17  Michael Chastain  <mec@shout.net>
826
827         * config/djgpp/fnchange.lst: Remove dead lines for:
828         bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
829         bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
830         bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
831         gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
832         gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
833         gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
834         gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
835         gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
836         gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
837         gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
838         gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
839         gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
840         gdb/config/sparc/tm-sparclite.h,
841         gdb/gdbtk/generic/ChangeLog-2001,
842         gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
843         gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
844         gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
845         gdb/sparclet-rom.c, gdb/sparclet-stub.c,
846         gdb/testsuite/gdb.mi/mi0-var-block.exp,
847         gdb/testsuite/gdb.mi/mi0-var-child.exp,
848         gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
849         gdb/testsuite/gdb.mi/mi0-var-display.exp,
850         itcl/iwidgets3.0.0/demos/extfileselectionbox,
851         itcl/iwidgets3.0.0/demos/extfileselectiondialog,
852         itcl/iwidgets3.0.0/demos/fileselectionbox,
853         itcl/iwidgets3.0.0/demos/fileselectiondialog,
854         itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
855         itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
856         itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
857         itcl/iwidgets3.0.0/demos/html/combobox.n.html,
858         itcl/iwidgets3.0.0/demos/html/dialog.n.html,
859         itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
860         itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
861         itcl/iwidgets3.0.0/demos/html/feedback.n.html,
862         itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
863         itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
864         itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
865         itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
866         itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
867         itcl/iwidgets3.0.0/demos/html/menubar.n.html,
868         itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
869         itcl/iwidgets3.0.0/demos/html/notebook.n.html,
870         itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
871         itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
872         itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
873         itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
874         itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
875         itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
876         itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
877         itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
878         itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
879         itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
880         itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
881         itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
882         itcl/iwidgets3.0.0/demos/html/shell.n.html,
883         itcl/iwidgets3.0.0/demos/html/spindate.n.html,
884         itcl/iwidgets3.0.0/demos/html/spinint.n.html,
885         itcl/iwidgets3.0.0/demos/html/spinner.n.html,
886         itcl/iwidgets3.0.0/demos/html/spintime.n.html,
887         itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
888         itcl/iwidgets3.0.0/demos/html/tabset.n.html,
889         itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
890         itcl/iwidgets3.0.0/demos/scrolledcanvas,
891         itcl/iwidgets3.0.0/demos/scrolledframe,
892         itcl/iwidgets3.0.0/demos/scrolledhtml,
893         itcl/iwidgets3.0.0/demos/scrolledlistbox,
894         itcl/iwidgets3.0.0/demos/scrolledtext,
895         itcl/iwidgets3.0.0/demos/selectionbox,
896         itcl/iwidgets3.0.0/demos/selectiondialog,
897         itcl/iwidgets3.0.0/doc/canvasprintbox.n,
898         itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
899         itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
900         itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
901         itcl/iwidgets3.0.0/doc/fileselectionbox.n,
902         itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
903         itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
904         itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
905         itcl/iwidgets3.0.0/doc/scrolledframe.n,
906         itcl/iwidgets3.0.0/doc/scrolledhtml.n,
907         itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
908         itcl/iwidgets3.0.0/doc/scrolledtext.n,
909         itcl/iwidgets3.0.0/doc/selectionbox.n,
910         itcl/iwidgets3.0.0/doc/selectiondialog.n,
911         itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
912         itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
913         itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
914         itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
915         itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
916         itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
917         itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
918         itcl/iwidgets3.0.0/generic/scrolledframe.itk,
919         itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
920         itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
921         itcl/iwidgets3.0.0/generic/scrolledtext.itk,
922         itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
923         itcl/iwidgets3.0.0/generic/selectionbox.itk,
924         itcl/iwidgets3.0.0/generic/selectiondialog.itk,
925         itcl/iwidgets3.0.0/tests/canvasprintbox.test,
926         itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
927         itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
928         itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
929         itcl/iwidgets3.0.0/tests/fileselectionbox.test,
930         itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
931         itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
932         itcl/iwidgets3.0.0/tests/scrolledframe.test,
933         itcl/iwidgets3.0.0/tests/scrolledhtml.test,
934         itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
935         itcl/iwidgets3.0.0/tests/scrolledtext.test,
936         itcl/iwidgets3.0.0/tests/selectionbox.test,
937         itcl/iwidgets3.0.0/tests/selectiondialog.test,
938         itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
939         itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
940         tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
941         tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
942         tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
943         tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
944         tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
945         tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
946         tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
947         tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
948         tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
949         tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
950         tk/mac/tkMacProjects.sit.hqx.
951
952 2003-10-17  Andrew Cagney  <cagney@redhat.com>
953
954         * target.c (target_section_by_addr): New function.
955         (do_xfer_memory): Use "target_section_by_addr".
956         * target.h (target_section_by_addr): Declare.
957
958         * target.h (struct target_ops): Add "to_read_partial" and
959         "to_write_partial", delete "to_query".
960         (target_read_partial, target_write_partial): Declare.
961         (target_read, target_write): Declare.
962         (target_query): Delete macro.
963         * target.c (target_read_partial): New function.
964         (target_write_partial, target_read, target_write): New function.
965         (update_current_target): Delete inheritance of "to_query".  Add
966         comments about "to_read_partial" and "to_write_partial".
967         (debug_to_partial_read, debug_to_partial_write): New functions.
968         (debug_to_query): Delete function.
969         (setup_target_debug): Set "to_read_partial" and "to_write_partial"
970         instead of "to_query".
971         * remote.c (remote_read_partial): Replace "remote_query".
972         (init_remote_ops): Set "to_read_partial" instead of "to_query".
973         (init_remote_async_ops): Ditto.
974         * kod.c (gdb_kod_query): Make "bufsize" a LONGEST.  Use
975         "target_read_partial" instead of "target_query".
976         * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
977         Use "target_read_partial" instead of "target_query".
978
979 2003-10-17  Jeff Johnston  <jjohnstn@redhat.com>
980
981         * frame.h (struct frame_id): Add new field: special_addr.
982         (frame_id_build_special): New prototype.
983         * frame.c (frame_id_build_special): New function.
984         (frame_id_build): Change to call frame_id_build_special().
985         (frame_id_eq): Change to also test special_addr field. 
986         (frame_id_inner): Update comment. 
987
988 2003-10-17  Andrew Cagney  <cagney@redhat.com>
989
990         * target.c (update_current_target): Perform the target cleanup.
991         Put the target stack beneath the squashed "current_target".
992         (add_target): Delete disabled call to "cleanup_target".
993         (cleanup_target): Delete function.
994         (push_target, unpush_target): Do not call "cleanup_target".
995
996 2003-10-17  Andrew Cagney  <cagney@redhat.com>
997
998         * target.c (target_stack): Change to a static target_ops.
999         (update_current_target): Walk the "struct target_ops" stack.
1000         (pop_target, do_xfer_memory, target_info): Ditto.
1001         (find_target_beneath): Ditto.
1002         (push_target): Rewrite to use the "struct target_ops" stack.
1003         (unpush_target): Ditto.
1004         * target.h (struct target_stack_item): Delete definition.
1005         (target_stack): Delete declaration.
1006         (struct target_ops): Add field "beneath".
1007
1008 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
1009
1010         * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1011         declaration.
1012         * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1013         (h8300_examine_prologue): Use h8300_normal_mode flag
1014         (h8300_gdbarch_init): Set architecture info for normal mode
1015
1016 2003-10-16  Daniel Jacobowitz  <drow@mvista.com>
1017
1018         * remote.c (remote_protocol_vcont): New variable.
1019         (set_remote_protocol_vcont_packet_cmd): New function.
1020         (show_remote_protocol_vcont_packet_cmd): New function.
1021         (init_all_packet_configs): Handle remote_protocol_vcont.
1022         (remote_vcont_probe): New function.
1023         (remote_vcont_resume): New function.
1024         (remote_resume): Use it.
1025         (remote_async_resume): Call remote_resume.
1026         (_initialize_remote): Add verbose-resume packet commands.
1027
1028 2003-10-16  Andrew Cagney  <cagney@redhat.com>
1029
1030         * infrun.c (handle_inferior_event): Add comment about
1031         "frame_id_inner" being too weak.
1032
1033 2003-10-16  Elena Zannoni  <ezannoni@redhat.com>
1034
1035         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1036         second parameter, which is always null. Remove
1037         SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1038         * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1039         accordingly.
1040         * somsolib.c (som_solib_create_inferior_hook,
1041         som_solib_desire_dynamic_linker_symbols): Update callers.
1042         * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1043
1044 2003-10-16  Kei Sakamoto  <sakamoto.kei@renesas.com>
1045
1046         * remote-m32r-sdi.c : New file, interface to m32r on-chip
1047         debug interface, SDI (Scalable Debug Interface).
1048         * NEWS: Mention m32r SDI protocol was supported.
1049         * Makefile.in (remote-m32r-sdi.o): Add build rule.
1050         * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1051
1052 2003-10-15  Jeff Johnston  <jjohnstn@redhat.com>
1053
1054         * ia64-linux-tdep.c: Include gdbcore.h.
1055         (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1056         (ia64_linux_sigcontext_register_addr): Find the address of the
1057         sigcontext area stored in the sigframe instead of using
1058         a magic offset constant. 
1059
1060 2003-10-15  Andrew Cagney  <cagney@redhat.com>
1061
1062         * remote.c (remote_search): Delete function.
1063         * target.h (target_search): Delete disabled macro.
1064         (struct target_ops): Delete disabled field "to_search".
1065
1066 2003-10-14  Kevin Buettner  <kevinb@redhat.com>
1067
1068         * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1069         instead of deprecated_inside_entry_file().
1070
1071 2003-10-14  Corinna Vinschen  <vinschen@redhat.com>
1072
1073         * sh-tdep.c: Fix copy/paste hangover in comment.
1074         (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1075         mode.
1076         (sh3e_sh4_extract_return_value): Ditto.
1077
1078 2003-10-13  Richard Henderson  <rth@redhat.com>
1079
1080         * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1081         * f-valprint.c (f_val_print): Likewise.  Tweak TYPE_CODE_PTR to
1082         match c_val_print a bit closer.
1083
1084 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1085
1086         * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1087         (frv_gdbarch_adjust_breakpoint_address): New function.
1088         (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1089         method.
1090
1091 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1092
1093         * breakpoint.h (struct breakpoint): Add new member
1094         ``requested_address''.
1095         * breakpoint.c (breakpoint_adjustment_warning)
1096         (adjust_breakpoint_address): New static functions.
1097         (print_it_typical): Issue warning if breakpoint's address is different
1098         from its requested address.
1099         (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1100         (breakpoint_re_set_one):  Set breakpoint's
1101         ``requested_address'' field.  Set ``address'' field to the
1102         result of calling adjust_breakpoint_address() on the requested
1103         address.
1104
1105 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1106
1107         * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1108         * gdbarch.h, gdbarch.c: Regenerate.
1109
1110 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
1111
1112         * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1113         TDEP->sc_num_regs.
1114
1115         * i386fbsd-tdep.c: New file.
1116         (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1117         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1118         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1119         i386bsd-tdep.c.
1120         (_initialize_i386fbsd_tdep): New function.
1121         (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1122         (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1123         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1124         TDEP->sizeof_fpregset.  Use ARRAY_SIZE to initialize
1125         TDEP->sc_num_regs.
1126         (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1127         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1128         to initialize TDEP->sc_num_regs.
1129         * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1130         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1131         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1132         (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1133         FreeBSD ELF OS/ABI's here.
1134         * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1135         (i386fbsd-tdep.o): New target.
1136         * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1137         * config/i386/fbsd64.mt (TDEPFILES):  Add i386fbsd-tdep.o.
1138
1139         * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1140         (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1141         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1142         in initialization of TDEP->sc_num_regs.
1143
1144         * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1145         (x86_64_init_abi): Initialize regset_from_core_section if
1146         appropriate.
1147
1148         * i386-tdep.c (i386_regset_from_core_section): New function.
1149         (i386_gdbarch_init): Initialize regset_from_core_section if
1150         appropriate.
1151         * i386-tdep.h (i386_regset_from_core_section): New declaration.
1152
1153         * i386-tdep.h (struct regset): Declare opaque.
1154
1155         * gdbarch.sh (regset_from_core_section): New method.
1156         (struct regset): Declare opaque.
1157         * gdbarch.c, gdbarch.h: Regenerated.
1158
1159 2003-10-11  Alan Modra  <amodra@bigpond.net.au>
1160
1161         * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1162         _cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
1163         Correct test for pc within section.
1164
1165 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
1166
1167         * gdbarch.sh: Remove trailing whitepsace from comments.
1168
1169 2003-10-08  Roland McGrath  <roland@redhat.com>
1170
1171         * gcore.c (make_mem_sec): Function removed, folded into ...
1172         (gcore_create_callback): ... here.  To omit a section, clear its
1173         SEC_LOAD bit rather than zeroing its size.
1174         Omit read-only sections only if they correspond to a known disk file.
1175         (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1176
1177 2003-10-10  Michael Snyder  <msnyder@redhat.com>
1178
1179         * d10v-tdep.c: Fix typo in comment.
1180
1181 2003-10-10  Andrew Cagney  <cagney@redhat.com>
1182
1183         * rs6000-tdep.c (e500_store_return_value): Delete function.
1184         (e500_extract_return_value): Delete function.
1185         (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1186         "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1187         "ppc_sysv_abi_restore_return_value" where applicable.
1188         * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1189         (ppc_sysv_abi_extract_return_value): Declare.
1190         (ppc_sysv_abi_broken_store_return_value): Declare.
1191         (ppc_sysv_abi_broken_extract_return_value): Declare.
1192         (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1193         * ppc-sysv-tdep.c (return_value_convention): Move definition to
1194         start of file.
1195         (do_ppc_sysv_return_value): New function.
1196         (ppc_sysv_abi_extract_return_value): New function.
1197         (ppc_sysv_abi_store_return_value): New function.
1198         (ppc_sysv_abi_broken_extract_return_value): New function.
1199         (ppc_sysv_abi_broken_store_return_value): New function.
1200         (ppc_sysv_abi_use_struct_convention): Call
1201         do_ppc_sysv_return_value.
1202
1203 2003-10-10  J. Brobecker  <brobecker@gnat.com>
1204
1205         * blockframe.c (inside_main_func): No longer use symbol_lookup()
1206         to lookup the main function symbol.
1207
1208 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
1209
1210         * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1211         types correctly.
1212         (sh_push_dummy_call_fpu): Fix argument passing rules.
1213         (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1214         float types.
1215         (sh3e_sh4_store_return_value): Ditto.
1216
1217 2003-10-10  Elena Zannoni  <ezannoni@redhat.com>
1218
1219         * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1220         comment.
1221
1222 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
1223
1224         * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1225         more readable code.  Accomodate passing of bitfields.
1226
1227 2003-10-10  Andrew Cagney  <cagney@redhat.com>
1228
1229         * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1230         * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1231         push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1232         * ppc-sysv-tdep.c: Include "gdb_assert.h".
1233         (ppc64_sysv_abi_push_dummy_call): New function.
1234         (ppc64_sysv_abi_broken_push_dummy_call): New function.
1235         * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1236         (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1237
1238 2003-10-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
1239
1240         * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1241         * README: Ditto.
1242         * d10v-tdep.c: Ditto.
1243         * h8300-tdep.c: Ditto.
1244         * remote-e7000.c: Ditto.
1245         * remote-hms.c: Ditto.
1246         * ser-e7kpc.c: Ditto.
1247         * sh-stub.c: Ditto.
1248         * sh-tdep.c: Ditto.
1249         * sh-tdep.h: Ditto.
1250         * sh3-rom.c: Ditto.
1251         * sh64-tdep.c: Ditto.
1252         * top.c: Ditto.
1253         * wince.c: Ditto.
1254         * config/d10v/d10v.mt: Ditto.
1255         * config/sh/embed.mt: Ditto.
1256         * config/sh/linux.mt: Ditto.
1257         * config/sh/tm-linux.h: Ditto.
1258         * config/sh/tm-sh.h: Ditto.
1259         * config/sh/wince.mt: Ditto.
1260
1261 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1262
1263         * ppc-tdep.h (struct type): Declare opaque.
1264         * x86-64-tdep.h (struct regcache): Declare opaque.
1265         * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1266         coding style.
1267
1268 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1269
1270         Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1271         * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1272         (SOFTWARE_SINGLE_STEP_P): Ditto.
1273         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1274         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1275         (SOFTWARE_SINGLE_STEP_P): Ditto.
1276         * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1277         software_single_step to rs6000_software_single_step.
1278
1279 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1280
1281         * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1282
1283 2003-10-09  Michael Snyder  <msnyder@redhat.com>
1284
1285         * frame.h: Fix typo in comment.
1286         * dummy-frame.c: Fix typo in comment.
1287         * d10v-tdep.c: Random whitespace/comment tweaks.
1288
1289 2003-10-09  Elena Zannoni  <ezannoni@redhat.com>
1290
1291         * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1292         (sh_push_dummy_code): Delete function, it's only used for dummy calls
1293         on stack.
1294
1295         Based on input by Stephen Clarke (stephen.clarke@superh.com):
1296         * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1297         in detail.
1298
1299 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
1300
1301         * remote-mips.c (mips_initialize): Remove unneeded call to
1302         get_selected_frame.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1303
1304 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
1305
1306         * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1307         a memory pointer.
1308
1309 2003-10-08  Jeff Johnston  <jjohnstn@redhat.com>
1310
1311         * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1312         for any lwp we resume.
1313         (running_callback): Add lwps that have pending status events
1314         against them to be considered running.
1315
1316 2003-10-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
1317
1318         * m32r-tdep.c : Include "dis-asm.h".
1319         * Makefile.in (m32r-tdep.o): Update dependencies.
1320
1321 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1322
1323         * completer.h (get_gdb_completer_word_break_characters): Delete.
1324         * completer.c: include language.h.
1325         (gdb_completer_word_break_characters): Delete.
1326         (get_gdb_completer_word_break_characters): Delete.
1327         (location_completer): Use the word break characters of the current
1328         language.
1329         (complete_line): Likewise.
1330         (line_completion_function): Likewise.
1331         (skip_quoted_chars): Likewise.
1332         * Makefile.in (completer.o): Add dependency on language.h.
1333         * top.c (init_main): Set the readline word break characters
1334         to GDB's default word break characters.
1335
1336 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1337
1338         * language.h (language_defn): new field, la_word_break_characters.
1339         * language.c (unknown_language_defn): Set new field to
1340         default_word_break_characters.
1341         (auto_language_defn): Likewise.
1342         (local_language_defn): Likewise.
1343         * ada-lang.c (ada_language_defn): Likewise.
1344         * c-lang.c (c_language_defn): Likewise.
1345         (cplus_language_defn): Likewise.
1346         (asm_language_defn): Likewise.
1347         (minimal_language_defn): Likewise.
1348         * f-lang.c (f_language_defn): Likewise.
1349         * jv-lang.c (java_language_defn): Likewise.
1350         * m2-lang.c (m2_language_defn): Likewise.
1351         * objc-lang.c (objc_language_defn): Likewise.
1352         * p-lang.c (pascal_language_defn): Likewise.
1353         * scm-lang.c (scm_language_defn): Likewise.
1354
1355 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1356
1357         * ppc-sysv-tdep.c: Re-indent.
1358
1359 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1360
1361         * language.h (default_word_break_characters): Add prototype.
1362         * language.c (default_word_break_characters): New function.
1363
1364 2003-10-06  Andreas Schwab  <schwab@suse.de>
1365
1366         * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1367         with %eax.
1368
1369 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1370
1371         * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1372         "h8500-tdep.c".
1373         (z8k-tdep.o): Delete custom build rule.
1374
1375 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1376
1377         * Makefile.in: Update all dependencies.
1378
1379         * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1380         No longer list PA as as obsolete candidate.  List m32r as
1381         broken instead of obsolete.
1382
1383         * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1384         * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1385         * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1386         * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1387         * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1388         * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1389         * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1390         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1391         * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1392         * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1393         * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1394         * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1395         * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1396         * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1397         * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1398         * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1399         * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1400         * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1401         * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1402         * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1403         * config/z8k/z8k.mt: Ditto.
1404
1405         * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1406         h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1407         mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1408         i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1409         sparclite were removed.
1410         * configure.host, configure.tgt: Remove corresponding tuples.
1411
1412         * breakpoint.c, breakpoint.h: Remove obsolete code.
1413         * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1414         * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1415         * stabsread.h, xcoffread.c: Ditto.
1416
1417         * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1418         * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1419         * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1420         * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1421
1422 2003-10-06  David Lecomber  <dsl@sources.redhat.com>
1423
1424         * f-valprint.c: Reformatting
1425
1426 2003-10-06  Mark Kettenis  <kettenis@gnu.org>
1427
1428         * x86-64-tdep.c: Remove duplicate comment.
1429
1430         * x86-64-tdep.c (x86_64_store_return_value): Don't use
1431         DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
1432         names for return values.  This fixes a bug since we looked at %rbx
1433         instead of %rdx.
1434
1435 2003-10-05  Mark Kettenis  <kettenis@gnu.org>
1436
1437         * x86-64-tdep.c: Include "regset.h".
1438
1439         * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1440         gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1441         sizeof_fpregset.
1442         * i386-tdep.c: Include "regset.h".
1443         (i386_supply_gregset): New function.
1444         (i386_supply_fpregset): New function.
1445         (i386_gdbarch_init): Initialze register set-related members of
1446         TDEP.
1447         * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1448         (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1449
1450 2003-10-03  Andrew Cagney  <cagney@redhat.com>
1451
1452         * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1453         set extract_return_value, store_return_value and
1454         use_struct_convention to ppc64_sysv_abi_extract_return_value,
1455         ppc64_sysv_abi_store_return_value and
1456         ppc64_sysv_abi_use_struct_convention.
1457         * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1458         (ppc64_sysv_abi_store_return_value): Declare.
1459         (ppc64_sysv_abi_use_struct_convention): Declare.
1460         * ppc-sysv-tdep.c (enum return_value_convention): Define.
1461         (ppc64_sysv_abi_extract_return_value): New function.
1462         (ppc64_sysv_abi_store_return_value): New function.
1463         (ppc64_sysv_abi_use_struct_convention): New function.
1464         (ppc64_sysv_abi_return_value): New function.
1465
1466 2003-10-03  Andrew Cagney  <cagney@redhat.com>
1467
1468         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1469         convert a descriptor to a function when it's in the ".opd"
1470         section.
1471
1472 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
1473
1474         * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1475         reg_size to keep GCC silent.
1476
1477 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
1478
1479         * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1480         base for DW_EH_PE_textrel encodings.
1481         (read_encoded_value): Add a DW_EH_PE_textrel case.
1482         (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1483         section.
1484
1485 2003-10-03  Mark Kettenis  <kettenis@gnu.org>
1486
1487         * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1488
1489 2003-10-02  Andrew Cagney  <cagney@redhat.com>
1490
1491         * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1492         REGISTER_RAW_SIZE.
1493         * gdbarch.h, gdbarch.c: Re-generate.
1494         * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1495         * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1496         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1497         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1498         * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1499         * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1500         * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1501         * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1502         * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1503         * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1504         * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1505         * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1506         * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1507         * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1508         * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1509         * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1510
1511 2003-10-02  Jim Blandy  <jimb@redhat.com>
1512
1513         * dwarf2read.c (struct die_info): Doc fix.
1514
1515 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
1516
1517         * sh-tdep.c: Running thru gdb_indent.sh.
1518
1519 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
1520
1521         * sh-tdep.c (sh_justify_value_in_reg): New function.
1522         (sh_stack_allocsize): Ditto.
1523         (flt_argreg_array): New array used for floating point argument
1524         passing.
1525         (sh_init_flt_argreg): New function.
1526         (sh_next_flt_argreg): Ditto.
1527         (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1528         "pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
1529         Fix argument passing strategy.
1530         (sh_push_dummy_call_nofpu): Ditto.
1531
1532 2003-10-01  Andrew Cagney  <cagney@redhat.com>
1533
1534         * value.h (register_value_being_returned): Declare.  Replace
1535         "value_being_returned".
1536         * infcall.c (call_function_by_hand): Use
1537         register_value_being_returned.
1538         * infcmd.c (print_return_value): Call
1539         "register_value_being_returned", handle struct return locally.
1540         * values.c (register_value_being_returned): New function.  Replace
1541         "value_being_returned".
1542
1543 2003-09-30  Elena Zannoni  <ezannoni@redhat.com>
1544
1545         * linux-proc.c (linux_do_registers): New function.
1546         (linux_make_note_section): Use linux_do_registers in case of
1547         single threaded inferior programs.
1548
1549 2003-10-01  Andrew Cagney  <cagney@redhat.com>
1550
1551         * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1552         use STRUCT_ADDR.  When not using "struct return convention", pass
1553         "0" to "value_being_returned".  Add FIXMEs.
1554         * infcmd.c (print_return_value): Pass an explicit 0/1 to
1555         value_being_returned.  Add comments.
1556         * values.c (value_being_returned): Add fixme.
1557         * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1558         (hppa_value_returned_from_stack): Add FIXME.
1559
1560 2003-09-30  David Carlton  <carlton@kealia.com>
1561
1562         * dwarf2read.c (struct die_info): Add 'parent' field; replace
1563         'has_children' and 'next' by 'child' and 'sibling'.
1564         (read_comp_unit): Rework algorithm, breaking body into
1565         read_die_and_children and read_die_and_siblings.
1566         (read_die_and_children, read_die_and_siblings): New.
1567         (read_full_die): Add 'has_children' argument; set it instead of
1568         the die's 'has_children' field.  Minor formatting cleanup.
1569         (free_die_list): Use die->child and die->sibling instead of
1570         die->next.
1571         (dump_die_list): Ditto.
1572         (sibling_die): Use die->sibling.
1573         (psymtab_to_symtab_1): Use die's 'child' field in place of its
1574         'has_children' and 'next' fields.
1575         (process_die, read_file_scope, read_func_scope)
1576         (read_lexical_block_scope, read_structure_scope)
1577         (read_enumeration, read_array_type, read_common_block)
1578         (read_namespace, read_subroutine_type, dump_die): Ditto.
1579
1580 2003-09-30  Andrew Cagney  <cagney@redhat.com>
1581
1582         * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1583         to 224, not 220.
1584
1585 2003-09-30  Andrew Cagney  <cagney@redhat.com>
1586
1587         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1588         REGISTER_VIRTUAL_SIZE.
1589         * gdbarch.h, gdbarch.c: Regenerate.
1590         * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1591         * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1592         * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1593
1594 2003-09-29  Andrew Cagney  <cagney@redhat.com>
1595
1596         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1597         DEPRECATED_REGISTER_VIRTUAL_TYPE.
1598         * gdbarch.h, gdbarch.c: Regenerate.
1599         * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1600         * sh64-tdep.c, sparc-tdep.c: Update.
1601
1602         * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1603         * remote-vxmips.c (vx_read_register): Ditto.
1604         * remote-vx68.c (vx_read_register): Ditto.
1605         * gnu-nat.c (inf_validate_procs): Ditto.
1606
1607 2003-09-29  J. Brobecker  <brobecker@gnat.com>
1608
1609         * infcall.c (call_function_by_hand): Fix build failure
1610         introduced in the previous change to this file.
1611
1612 2003-09-29  Andrew Cagney  <cagney@redhat.com>
1613
1614         * NEWS: Mention Objective-C.
1615
1616 2003-09-29  Jerome Guitton  <guitton@act-europe.fr>
1617
1618         * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1619         test if the register has been saved on the stack.
1620         (arm_scan_prologue_cache): When analysing the instruction
1621         "str lr, [sp, #-4]", save the address where lr has been stored.
1622
1623 2003-09-28  Andrew Cagney  <cagney@redhat.com>
1624
1625         * frame.c (frame_read_unsigned_register): Delete function.
1626         * frame.h (frame_read_unsigned_register): Delete declaration.
1627         * sparc-tdep.c (sparc_init_extra_frame_info): Use
1628         get_frame_register_unsigned.
1629         (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1630         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1631         * d10v-tdep.c (d10v_print_registers_info): Ditto.
1632
1633         * frame.h (frame_read_register): Delete declaration.
1634         * frame.c (frame_read_register): Delete function.
1635         * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1636         * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1637         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1638         * mips-tdep.c (mips_register_to_value): Ditto.
1639         * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1640         * d10v-tdep.c (d10v_print_registers_info): Ditto.
1641
1642         * frame.c (frame_read_signed_register): Delete function.
1643         (frame_read_unsigned_register): Update comments.
1644         * frame.h (frame_read_signed_register): Delete declaration.
1645         * h8300-tdep.c (h8300_print_register): Use
1646         get_frame_register_signed.
1647         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1648
1649         * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1650         Rename VALUE_RETURNED_FROM_STACK.
1651         * infcmd.c (print_return_value): Update.
1652         * infcall.c (call_function_by_hand): Update.
1653
1654 2003-09-28  Mark Kettenis  <kettenis@gnu.org>
1655
1656         * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1657         regcache argument and reverse the order of the other two
1658         arguments.  Remove local regcache variable.  Determine
1659         architecture from REGCACHE.  Update comments.
1660         * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1661         reverse the order of the other two arguments.  Remove local
1662         regcache variable.  Determine architecture from REGCACHE.  Update
1663         comments.
1664         * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1665         prototypes.  Update comments.
1666         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype.  Adjust
1667         comment.
1668         * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1669         Update.
1670         * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1671         * i386-interix-nat.c (supply_fpregset): Update.
1672         * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1673         * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1674         * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1675         * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1676         * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1677         Update.
1678         * i386obsd-tdep.c (fetch_core_registers): Update.
1679         * i386v4-nat.c (supply_fpregset): Update.
1680         * x86-64-linux-nat.c (supply_fpregset): Update.
1681         * x86-64-linux-tdep.c (fetch_core_registers): Update.
1682
1683 2003-09-27  Mark Kettenis  <kettenis@gnu.org>
1684
1685         * i386-tdep.h: Put opaque declarations in alphabetical
1686         order.  Remove spurious whitespace.
1687         (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1688         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1689         * i386-tdep.c (MM0_REGNUM): Remove define.
1690         (i386_mmx_regnum_p): Add gdbarch argument.
1691         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1692         Rewrite using new macro definitions for FPU/SSE registers.
1693         (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1694         definitions from i387-tdep.h.
1695         (i386_register_name): Update.
1696         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1697         new macro definitions for FPU/SSE registers.
1698         (i386_extract_return_value): Determine whether floating-point
1699         registers are present by examining REGCACHE's architecture.
1700         (i386_store_return_value): Likewise.  Use I386_MAX_REGISTER_SIZE
1701         instead of FPU_REG_RAW_SIZE.  Use new macro definitions for
1702         FPU/SSE registers.
1703         (i386_register_type): Update.
1704         (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1705         definitions for FPU registers.  Use REGCACHE's architecture to
1706         determine the appropriate register numbers.
1707         (i386_pseudo_register_read, i386_pseudo_register_write,
1708         i386_register_reggroup_p): Update.
1709         (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1710         TDEP->mm0_regnum.
1711         * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1712         I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1713         I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1714         I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1715         (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1716         i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1717         *' to `void *'.
1718         * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1719         i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1720         i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1721         definitions for FPU/SSE registers.
1722         (FXSAVE_MXCSR_ADDR): New define.
1723         * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1724         TDEP->mm0_regnum.
1725         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1726         (I387_ST0_REGNUM): Define.
1727
1728         * regcache.h (get_regcache_arch): New prototype.
1729         * regcache.c (get_regcache_arch): New function.
1730
1731         * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1732         whitespace.
1733
1734         * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1735         Initialize using ARRAY_SIZE.
1736
1737 2003-09-27  Andrew Cagney  <cagney@redhat.com>
1738
1739         * arch-utils.c (deprecated_init_frame_pc_default): Rename
1740         "init_frame_pc_default".
1741         * arch-utils.h (deprecated_init_frame_pc_default): Update.
1742         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1743         * vax-tdep.c (vax_gdbarch_init): Update.
1744         * v850-tdep.c (v850_gdbarch_init): Update.
1745         * sh64-tdep.c (sh64_gdbarch_init): Update.
1746         * s390-tdep.c (s390_gdbarch_init): Update.
1747         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1748         * mcore-tdep.c (mcore_gdbarch_init): Update.
1749         * h8300-tdep.c (h8300_gdbarch_init): Update.
1750         * cris-tdep.c (cris_gdbarch_init): Update.
1751         * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1752
1753 2003-09-26  Mark Kettenis  <kettenis@gnu.org>
1754
1755         * regset.h: New file.
1756         * Makefile.in (regset_h): Add.
1757
1758 2003-09-25  Andrew Cagney  <cagney@redhat.com>
1759
1760         * frame.h (deprecated_frame_saved_regs): Rename
1761         get_frame_saved_regs.
1762         * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1763         * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1764         * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1765         * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1766         * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1767
1768 2003-09-25  Andrew Cagney  <cagney@redhat.com>
1769
1770         * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1771         file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1772         and Java.
1773         * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1774         arm*-*-* do not use the new frame code.
1775
1776 2003-09-25  David Carlton  <carlton@kealia.com>
1777
1778         * c-exp.y: Remove 'register' declarations.
1779         * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1780
1781 2003-09-25  David Carlton  <carlton@kealia.com>
1782
1783         * c-exp.y: Include cp-support.h.  Add qualified_type.
1784         (yylex): Delete nested type hack; add comments.
1785         * cp-namespace.c (cp_lookup_nested_type): New function.
1786         * cp-support.h: Declare cp_lookup_nested_type.
1787         * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1788         instead of value_struct_elt_for_reference.
1789         * valops.c: Include cp-support.h.
1790         (value_aggregate_elt): New function.
1791         (value_namespace_elt): Ditto.
1792         (value_struct_elt_for_reference): Make static.
1793         * value.h: Delete declaration of value_struct_elt_for_reference;
1794         add declaration for value_aggregate_elt.
1795         * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1796         (valops.o): Ditto.
1797
1798 2003-09-25  Daniel Jacobowitz  <drow@mvista.com>
1799
1800         * stack.c: Include "reggroups.h".
1801         (frame_info): Only display registers in all_reggroup.
1802         * Makefile.in (stack.o): Update dependencies.
1803
1804 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
1805
1806         * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1807         "add ip, sp #n" in the prologue.
1808         (arm_scan_prologue): Ditto.
1809
1810 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
1811
1812         * MAINTAINERS (write after approval): Add myself.
1813
1814 2003-09-25  Andreas Schwab  <schwab@suse.de>
1815
1816         * m68k-tdep.c: Include "dwarf2-frame.h".
1817         (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1818         * Makefile.in (m68k-tdep.o): Update dependencies.
1819
1820 2003-09-25  Corinna Vinschen  <vinschen@redhat.com>
1821
1822         * sh-tdep.c (struct frame_extra_info): Remove.
1823         (struct sh_frame_cache): New structure.
1824         (GET_SOURCE_REG): New macro extracting source register of an opcode.
1825         (GET_TARGET_REG): Ditto but target register.
1826         (GET_PUSHED_REG): Remove.
1827         (IS_MOV_ARG_TO_REG): New macro.
1828         (IS_MOV_ARG_TO_IND_R14): New macro.
1829         (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1830         (IS_MOVW_PCREL_TO_REG): New macro.
1831         (IS_MOVL_PCREL_TO_REG): New macro.
1832         (IS_SUB_REG_FROM_SP): New macro.
1833         (IS_ARG_MOV): Remove.
1834         (IS_MOV_TO_R14): Remove.
1835         (IS_RESTORE_FP): New macro.
1836         (IS_RTS): New macro.
1837         (IS_LDS): New macro.
1838         (IS_MOV_FP_SP): New macro.
1839         (IS_ADD_REG_TO_FP): New macro.
1840         (IS_ADD_IMM_FP): New macro.
1841         (sh_skip_prologue_hard_way): Remove.
1842         (sh_saved_pc_after_call): Remove.
1843         (sh_frame_chain): Remove.
1844         (sh_find_callers_reg): Remove.
1845         (sh_nofp_frame_init_saved_regs): Remove.
1846         (sh_fp_frame_init_saved_regs): Remove.
1847         (sh_init_extra_frame_info): Remove.
1848         (sh_analyze_prologue): New function.
1849         (sh_skip_prologue): Remove deprecated code.  Rely on new function
1850         sh_analyze_prologue when after_prologue fails.
1851         (sh_frame_saved_pc): Remove.
1852         (sh_alloc_frame_cache): New function.
1853         (sh_frame_cache): Ditto.
1854         (sh_frame_prev_register): Ditto.
1855         (sh_frame_this_id): Ditto.
1856         (sh_frame_unwind): New structure defining the heuristic frame
1857         sniffer interface.
1858         (sh_frame_sniffer): New function.
1859         (sh_unwind_sp): Ditto.
1860         (sh_unwind_pc): Ditto.
1861         (sh_unwind_dummy_id): Ditto.
1862         (sh_frame_base_address): Ditto.
1863         (sh_frame_base): New structure defining new frame base code.
1864         (sh_in_function_epilogue_p): New function.
1865         (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1866         code and to call all new code instead.  Initialize dwarf2 and
1867         heuristic frame sniffer.
1868
1869 2003-09-24  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
1870
1871         * parser-defs.h (struct exp_descriptor): New definition, containing
1872         language-specific info for printing, prefixifying, dumping, and
1873         evaluating expressions.
1874         (exp_descriptor_standard): Declare new variable.
1875         (print_subexp): Make global and declare here (from expprint.c).
1876         (dump_subexp): Ditto.
1877         (dump_subexp_body_standard): Declare.
1878         (operator_length_standard): Declare.
1879         (op_name_standard): Declare.
1880         (print_subexp): Declare.
1881         (print_subexp_standard): Declare.
1882
1883         * language.h (struct language_defn): Add la_exp_desc field to hold
1884         pointer to table for language-specific operators.
1885         Remove evaluate_exp field, which is now in struct exp_descriptor.
1886
1887         * parse.c (operator_length): Move most code to new
1888         operator_length_standard function.  Use language-specific information.
1889         (operator_length_standard): New function taking most code from
1890         operator_length.
1891         (exp_descriptor_standard): New constant.
1892
1893         * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1894         and OP_EXTENDED_LAST.
1895
1896         * expprint.c (print_subexp): Use language-specific print_subexp.
1897         Make global; remove static declaration.
1898         Move most code to print_subexp_standard.
1899         (print_subexp_standard): New function, containing code formerly in
1900         print_subexp.
1901         (op_name): Add expression to argument signature.
1902         Use langauge-specific op_name.
1903         Move most code to op_name_standard.
1904         (op_name_standard): New function, containing code formerly in op_name.
1905         (dump_subexp):  Use new version of op_name function.
1906         Use language-specific dump_subexp_body, and move most existing code to
1907         dump_subexp_body_standard.
1908         (dump_raw_expression): Use new op_name interface.
1909         (dump_subexp_body): Move most code to dump_subexp_body_standard.
1910         (dump_subexp_body_standard): New function, containing code formerly
1911         in dump_subexp_body.
1912
1913         * language.c (unknown_language): Add default la_exp_desc field and
1914         remove evaluate_exp field.
1915         (auto_language): Ditto.
1916         (local_language): Ditto.
1917         * f-lang.c (f_language_defn): Ditto.
1918         * c-lang.c (c_language_defn): Ditto.
1919         (cplus_language_defn): Ditto.
1920         (asm_language_defn): Ditto.
1921         (minimal_language_defn): Ditto.
1922         * p-lang.c (pascal_language_defn): Ditto.
1923         * m2-lang.c (m2_language_defn): Ditto.
1924         * objc-lang.c (objc_language_defn): Ditto.
1925
1926         * jv-lang.c (exp_descriptor_java): New variable, containing
1927         Java-specific expression evaluator.
1928         (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1929         field.
1930         * scm-lang.c (exp_descriptor_scm): New variable, containing
1931         Scheme-specific expression evaluator.
1932         (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1933         field.
1934         * objc-lang.c (print_object_command): Take evaluate_exp from the
1935         la_exp_desc field.
1936
1937         * Makefile.in (eval.o): Add dependency on parser-defs.h.
1938
1939         * eval.c: Include parser-defs.h for the full declaration of
1940         la_exp_desc's type.
1941         (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1942
1943 2003-09-23  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
1944
1945         * parser-defs.h (operator_length): Declare.
1946
1947         * parse.c (length_of_subexp): Use operator_length to get operator
1948         lengths and arities for operators.
1949         Move most code to new operator_length function.
1950         (operator_length): New function absorbing most code from
1951         length_of_subexp.
1952         (prefixify_subexp): Remove large case and use operator_length instead.
1953         (parse_exp_1): Use renamings:
1954         dump_prefix_expression => dump_raw_expression and
1955         dump_postfix_expression => dump_prefix_expression.
1956
1957         * expression.h (dump_prefix_expression): Rename to ...
1958         (dump_raw_expression): New name.
1959         (dump_postfix_expression): Rename to ...
1960         (dump_prefix_expression): New name.
1961
1962         * expprint.c (dump_subexp): Make global.  Add comment.
1963         Move most existing code to dump_subexp_body.
1964         (dump_subexp_body): New function.
1965         (dump_prefix_expression): Rename to dump_raw_expression.
1966         Remove attempt to print the expression via print_expression: it can't
1967         work before the expression is prefixified.
1968         (dump_raw_expression): Renamed from dump_prefix_expression.
1969         (dump_postfix_expression): Rename to dump_prefix_expression, since
1970         that's what it does.
1971         Remove 'note' parameter, since this routine must be used on
1972         prefixified expression.
1973         (dump_prefix_expression): Renamed from dump_postfix_expression.
1974
1975 2003-09-22  Jim Blandy  <jimb@redhat.com>
1976
1977         * dwarf2read.c (read_array_type): When building the type for an
1978         array of unspecified length, make sure to choose the upper bound
1979         so that the array's total length comes out to be zero --- that's
1980         how we represent such arrays.
1981
1982 2003-09-22  Michael Chastain  <mec@shout.net>
1983
1984         * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1985
1986 2003-09-22  Jeff Johnston  <jjohnstn@redhat.com>
1987
1988         * top.c (quit_force): Fix indirect call to quit_target so
1989         a struct qt_args pointer is passed.
1990
1991 2003-09-22  Andrew Cagney  <cagney@redhat.com>
1992
1993         * arch-utils.h (init_frame_pc_noop): Delete declaration.
1994         * arch-utils.c (init_frame_pc_noop): Delete function.
1995         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1996         "init_frame_pc".
1997         * mips-tdep.c (mips_gdbarch_init): Ditto.
1998         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1999         * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2000         declaration.
2001         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2002         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2003         declaration.
2004         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2005
2006 2003-09-22  Anthony Green  <green@redhat.com>
2007
2008         * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2009         declaration.
2010
2011 2003-09-20  Andrew Cagney  <cagney@redhat.com>
2012
2013         * breakpoint.c: Eliminate ARGSUSED.
2014         * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2015         * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2016         * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2017         * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2018         * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2019         * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2020         * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2021         * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2022         * wince.c, remote-vx.c: Ditto.
2023
2024         * cli/cli-script.c: Remove "register" attributes.
2025         * config/pa/tm-hppa.h: Ditto.
2026         * cli/cli-decode.c: Ditto.
2027         * cli/cli-cmds.c: Ditto.
2028
2029 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2030
2031         * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2032         DEPRECATED_NPC_REGNUM.
2033         * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2034
2035 2003-09-19  Christopher Faylor  <cgf@redhat.com>
2036
2037         * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2038
2039 2003-09-19  Jim Blandy  <jimb@redhat.com>
2040
2041         * macrotab.c (macro_include): Use the correct comparison to find
2042         the appropriate place for this inclusion in the list.
2043
2044 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2045
2046         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2047         (DEPRECATED_HPUX_TEXT_END): Define.
2048         (deprecated_hpux_text_end): Declare.
2049         (struct target_ops): Declare opaque.
2050         * hppah-nat.c (text_end): Make static.
2051         (deprecated_hpux_text_end): New function.
2052         * exec.c (text_end): Delete global variable.
2053         (NEED_TEXT_START_END): Do not define.
2054         (exec_file_attach): Replace code computing "text_end" code with
2055         call to DEPRECATED_HPUX_TEXT_END.
2056
2057 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2058
2059         * utils.c (align_up, align_down): New functions.
2060         * defs.h (align_up, align_down): Declare.
2061         * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2062         * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2063         and "align_down".
2064         (round_up, round_down): Delete functions.
2065         * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2066         "align_down".
2067         (ROUND_DOWN, ROUND_UP): Delete macros.
2068         (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2069         * h8300-tdep.c: Replace "round_up" and "round_down" with
2070         "align_up" and "align_down".
2071         (round_up, round_down): Delete macros.
2072         * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2073         "align_down".
2074         (ROUND_UP, ROUND_DOWN): Delete macros.
2075
2076 2003-09-18  J. Brobecker  <brobecker@gnat.com>
2077
2078         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2079         hard-coded constant. Use the proper machine name instead.
2080
2081 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2082
2083         * sparc-tdep.c (legacy_register_name): Delete function.
2084         * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2085         (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2086         * infcmd.c (gdb_register_name): Delete variable.
2087         * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2088         REGISTER_NAME and "tm.h".
2089         * gdbarch.h, gdbarch.c: Regenerate.
2090         * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2091         REGISTER_NAMES in comments.
2092         * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2093         * m68klinux-nat.c (regmap): Ditto.
2094
2095 2003-09-17  Jim Blandy  <jimb@redhat.com>
2096
2097         * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2098
2099 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2100
2101         * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2102         (ppcnbsd_init_abi): Set "use_struct_convention" to
2103         "ppcnbsd_use_struct_convention".
2104
2105 2003-09-17  Mark Kettenis  <kettenis@gnu.org>
2106
2107         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2108         * gdbarch.h, gdbarch.c: Regenerate.
2109         (stabs_argument_has_addr): New architecture method.
2110         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2111         * arch-utils.c: Include "buildsym.h".
2112         (default_stabs_argument_has_addr): New function.
2113         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2114         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2115
2116 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2117
2118         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2119         * gdbarch.h, gdbarch.c: Regenerate.
2120         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2121         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2122         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2123         * sparcnbsd-tdep.c: Update.
2124
2125 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2126
2127         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2128         * gdbarch.h, gdbarch.c: Regenerate.
2129         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2130         * d10v-tdep.c, frame.c: Update.
2131         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2132         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2133         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2134         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2135         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2136         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2137         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2138         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2139         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2140         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2141         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2142         * config/pa/nm-hppah.h: Update.
2143
2144 2003-09-16  Andrew Cagney  <cagney@redhat.com>
2145
2146         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2147         "use_struct_convention" to "ppc_linux_use_struct_convention".
2148         (ppc_linux_use_struct_convention): New function.
2149         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2150         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2151         "rs6000_use_struct_convention".
2152         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2153         declaration.
2154         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2155         Delete function.
2156
2157 2003-09-16  Andrew Cagney  <cagney@redhat.com>
2158
2159         * buildsym.c: Remove more occurances of "register".
2160         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2161         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2162         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2163         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2164         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2165         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2166         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2167         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2168
2169 2003-09-16  Corinna Vinschen  <vinschen@redhat.com>
2170
2171         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
2172         numbers to enumeration values.
2173         * sh-tdep.c: Accomodate above change.
2174         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2175         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2176         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2177         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2178         (IS_FPUSH): Rename from IS_FMOV.
2179         (sh_extract_struct_value_address): Remove useless comment.
2180         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2181         instead of own local values.
2182         (sh_dump_tdep): Remove.
2183         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2184         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2185
2186 2003-09-15  Andrew Cagney  <cagney@redhat.com>
2187
2188         * doublest.c (convert_floatformat_to_doublest): No longer need to
2189         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
2190
2191 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
2192
2193         * values.c (unpack_double): Call floatformat_is_valid.
2194
2195 2003-09-15  Mark Kettenis  <kettenis@gnu.org>
2196
2197         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2198         ps_strings into a long.
2199
2200         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2201         _initialize_am64fbsd_nat.
2202
2203 2003-09-15  Kevin Buettner  <kevinb@redhat.com>
2204
2205         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2206         associated with DW_AT_ranges attribute is out of bounds.
2207
2208 2003-09-15  David Lecomber  <dsl@sources.redhat.com>
2209
2210         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2211
2212 2003-09-14  Michael Chastain  <mec@shout.net>
2213
2214         * config/m68k/nm-apollo68v.h: Delete.
2215         * config/m68k/xm-apollo68v.h: Delete.
2216
2217 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2218
2219         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2220         * dcache.c: Update copyrights and descriptions.
2221         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2222
2223 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2224
2225         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2226         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2227
2228 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2229
2230         * alpha-nat.c: Remove some occurances of "register".
2231         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2232         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2233         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2234         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2235         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2236         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2237         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2238         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2239         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2240         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2241         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2242         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2243         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2244         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2245         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2246         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2247         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2248         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2249         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2250         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2251         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2252         * values.c, vax-tdep.c, xcoffread.c: Ditto.
2253
2254 2003-09-13  Andrew Cagney  <cagney@redhat.com>
2255
2256         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2257         * ppc-tdep.h (struct regcache): Declare opaque.
2258         * objfiles.h (struct objfile_data): Declare opaque.
2259         * cp-support.h (struct objfile): Declare opaque.
2260         * linux-nat.h (target_waitstatus): Declare opaque.
2261
2262 2003-09-14  Mark Kettenis  <kettenis@gnu.org>
2263
2264         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2265         (stabs_argument_has_addr): New architecture method.
2266         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2267         * arch-utils.c: Include "buildsym.h".
2268         (default_stabs_argument_has_addr): New function.
2269         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2270         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2271
2272         * cris-tdep.c (cris_gdbarch_init): Set
2273         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2274         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2275         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2276         * mips-tdep.c (mips_gdbarch_init): Likewise.
2277         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2278         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2279
2280 2003-09-13  Andrew Cagney  <cagney@redhat.com>
2281
2282         * values.c (using_struct_return): Delete "function" and "funcaddr"
2283         parameters.
2284         * value.h (using_struct_return): Update declaration.
2285         * infcmd.c (finish_command_continuation): Update.
2286         (finish_command): Update.
2287         * infcall.c (call_function_by_hand): Update.
2288         * eval.c (evaluate_subexp_standard): Update.
2289
2290 2003-09-13  Christopher Faylor  <cgf@redhat.com>
2291
2292         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2293         SSE registers since gdb will not operate correctly without this.
2294         Restore include file ordering munged in previous change.
2295         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2296
2297 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
2298
2299         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2300         REG_STRUCT_HAS_ADDR.
2301         * gdbarch.c, gdbarch.h: Updated.
2302         * infcall.c (call_function_by_hand): Update.
2303         * stabsread.c (define_symbol): Updated.
2304
2305         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2306
2307 2003-09-12  Christopher Faylor  <cgf@redhat.com>
2308
2309         * win32-nat.c: Reorganize so that defines used by target headers are
2310         actually defined by the system headers.
2311         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2312         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2313
2314 2003-09-12  Jim Blandy  <jimb@redhat.com>
2315
2316         * dbxread.c (read_dbx_symtab): Don't report an internal error if
2317         the file has no .data, .bss, or .rodata sections.  Instead wait
2318         until we see a variable alleged to live in one of those sections.
2319
2320         * dbxread.c (read_dbx_symtab): If we have no .data section and no
2321         .bss section, presume that any variables we find live in the
2322         .rodata section.
2323
2324         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2325         offsets for global and static variables.
2326
2327         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2328         symbol types are, by definition, in the .data section, so it is
2329         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2330         If there is no .data section, there should be no N_DATA or N_DATA
2331         | N_EXT symbols.
2332
2333 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
2334
2335         * amd64fbsd-tdep.c: Fix sigtramp recognition.
2336         (amd64fbsd_sigcontext_addr): Rewrite.
2337         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2338         with correct values.
2339         (amd64fbsd_sc_reg_offset): Initialize with correct values.
2340         (amd64fbsd_init_abi): Fix typo.
2341
2342 2003-09-12  Andrew Cagney  <cagney@redhat.com>
2343
2344         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2345         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2346
2347 2003-09-12  Andrew Cagney  <cagney@redhat.com>
2348
2349         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2350         "entry_file_highpc".  Update comments.
2351         * defs.h (deprecated_inside_entry_file): Rename
2352         "inside_entry_file".
2353         * blockframe.c (deprecated_inside_entry_file): Rename
2354         "inside_entry_file".
2355         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
2356         * vax-tdep.c (vax_frame_chain): Update.
2357         * sh64-tdep.c (sh64_frame_chain): Update.
2358         * sh-tdep.c (sh_frame_chain): Update.
2359         * rs6000-tdep.c (rs6000_frame_chain): Update.
2360         * ns32k-tdep.c (ns32k_frame_chain): Update.
2361         * mips-tdep.c (mips_frame_chain): Update.
2362         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2363         * m32r-tdep.c (m32r_frame_this_id): Update.
2364         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2365         * frv-tdep.c (frv_frame_this_id): Update.
2366         * d10v-tdep.c (d10v_frame_this_id): Update.
2367         * cris-tdep.c (cris_frame_chain): Update.
2368         * blockframe.c (legacy_frame_chain_valid): Update.
2369         * avr-tdep.c (avr_frame_this_id): Update.
2370         * arm-tdep.c (arm_prologue_this_id): Update.
2371         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2372         * objfiles.c (objfile_relocate): Update.
2373         * mipsread.c (mipscoff_symfile_read): Update.
2374         (mipscoff_symfile_read): Update.
2375         * mdebugread.c (parse_partial_symbols): Update.
2376         * dwarfread.c (read_file_scope): Update.
2377         * dwarf2read.c (read_file_scope): Update.
2378         * dbxread.c (read_dbx_symtab): Update.
2379         (read_dbx_symtab): Update.
2380         * coffread.c (complete_symtab): Update.
2381
2382 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
2383
2384         * top.c (quit_target): New static helper function.
2385         (quit_force): Moved code to quit_target().  Call quit_target()
2386         via catch_errors() to catch errors during quit.
2387
2388 2003-09-11  David Carlton  <carlton@kealia.com>
2389
2390         * buildsym.c (finish_block): Use allocate_block to allocate the
2391         block.
2392         * mdebugread.c (new_block): Add FIXME.
2393
2394 2003-09-11  David Carlton  <carlton@kealia.com>
2395
2396         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2397         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2398         (recursive_dump_type): Ditto.
2399         * printcmd.c (print_formatted): Ditto.
2400         * typeprint.c (print_type_scalar): Ditto.
2401         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2402         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2403         * cp-support.h: Declare cp_check_possible_namespace_symbols,
2404         maint_cplus_cmd_list.
2405         * cp-support.c: Make maint_cplus_cmd_list extern.
2406         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2407         command.h.
2408         (lookup_symbol_file): Look in possible namespace blocks when
2409         appropriate.
2410         (initialize_namespace_symtab): New.
2411         (get_possible_namespace_block, free_namespace_block)
2412         (check_possible_namespace_symbols)
2413         (check_possible_namespace_symbols_loop)
2414         (check_one_possible_namespace_symbol)
2415         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2416         (_initialize_cp_namespace): Ditto.
2417         * block.h: Declare allocate_block.
2418         * block.c (allocate_block): New.
2419         * jv-lang.c (get_java_class_symtab): Allocate blocks via
2420         allocate_block.
2421         * symfile.h: Update declaration of add_psymbol_to_list.
2422         * symfile.c (add_psymbol_to_list): Return the partial symbol in
2423         question.
2424         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2425         scan_partial_symbols_call.
2426         (scan_partial_symbols): Add NAMESPACE argument; update calls to
2427         helper functions.
2428         (add_partial_symbol): If necessary, scan mangled names for names
2429         of namespaces.
2430         (add_partial_namespace): Add NAMESPACE argument; generate partial
2431         symbols associated  to namespaces.
2432         (add_partial_enumeration): Add NAMESPACE argument.
2433         (new_symbol): Allow namespace syms.
2434         (read_namespace): Generate namespace syms.
2435         * objfiles.h: Add opaque declaration of struct symtab.
2436         (struct objfile): Add cp_namespace_symtab member.
2437         * objfiles.c (allocate_objfile): Set
2438         objfile->cp_namespace_symtab.
2439         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2440         dictionary_h, command_h.
2441
2442 2003-09-11  Andrew Cagney  <cagney@redhat.com>
2443
2444         * rs6000-tdep.c (rs6000_push_dummy_call): Use
2445         regcache_raw_write_signed to set SP_REGNUM, move the operation to
2446         near the function's end.
2447         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2448         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2449         regcache_raw_write_signed to set SP_REGNUM.
2450
2451 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
2452
2453         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2454         orig_addrs is set up properly.
2455
2456 2003-09-11  Andrew Cagney  <cagney@redhat.com>
2457
2458         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2459         * gdbarch.h, gdbarch.c: Re-generate.
2460         * infcall.c (call_function_by_hand): Update.
2461         * hppa-tdep.c (hppa_push_arguments): Update.
2462         * ada-lang.c (place_on_stack): Update.
2463         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2464         * sparc-tdep.c (sparc_gdbarch_init): Update.
2465         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2466         * hppa-tdep.c (hppa_gdbarch_init): Update.
2467         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2468         stack_align.
2469
2470 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
2471
2472         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2473         register do need a frame.
2474
2475 2003-09-11  Andrew Cagney  <cagney@redhat.com>
2476
2477         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2478         buildable since GDB 5.0.
2479         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2480         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2481         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2482         * irix4-nat.c: Delete file.
2483         * config/mips/irix4.mh: Delete file.
2484         * config/mips/irix3.mh: Delete file.
2485         * config/mips/irix3.mt: Delete file.
2486         * config/mips/tm-irix3.h: Delete file.
2487         * config/mips/nm-irix3.h: Delete file.
2488         * config/mips/xm-irix3.h: Delete file.
2489         * config/mips/nm-irix4.h: Delete file.
2490         * config/mips/xm-irix4.h: Delete file.
2491         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2492
2493 2003-09-10  J. Brobecker  <brobecker@gnat.com>
2494
2495         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2496         * Makefile.in (hppa-tdep.o): Update dependencies.
2497
2498 2003-09-10  James E Wilson  <wilson@specifixinc.com>
2499
2500         * MAINTAINERS: Change my e-mail address.  Move to paper trail
2501         section.
2502
2503 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
2504
2505         * MAINTAINERS (frv): New ISA entry.
2506
2507 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
2508
2509         * frv-tdep.c (dis-asm.h): Include.
2510         * Makefile.in (frv-tdep.o): Update dependencies.
2511
2512 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
2513
2514         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2515         Fix typo for high range of floating registers.
2516
2517 2003-09-09  David Carlton  <carlton@kealia.com>
2518
2519         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2520         highpc initialization here out of scan_partial_symbols.
2521         (scan_partial_symbols): Restructure into a recursive version,
2522         calling add_partial_namespace and add_partial_enumeration when
2523         appropriate.
2524         (add_partial_namespace): New.
2525         (add_partial_enumeration, locate_pdi_sibling): Ditto.
2526
2527 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2528
2529         * rs6000-tdep.c (ppc_push_return_address): Delete function.
2530         (rs6000_push_dummy_call): Set LR to BP_ADDR.
2531         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2532         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2533
2534         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2535         (rs6000_push_dummy_call): Set the "TOC" register.
2536
2537         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2538         methods "max_register_raw_size", "max_register_virtual_size" or
2539         "register_virtual_size".
2540
2541 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
2542
2543         * MAINTAINERS: Update my e-mail address.
2544
2545 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2546
2547         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2548         (rs6000_push_dummy_call): Store the struct return address.
2549         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2550
2551 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2552
2553         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2554         "ppc_sysv_abi_push_arguments".
2555         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2556         "ppc_sysv_abi_push_arguments".
2557         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2558         instead of "push_arguments".
2559         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2560
2561 2003-09-09  Andrew Cagney  <cagney@redhat.com>
2562
2563         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2564         instead of CALL_DUMMY_ADDRESS.
2565
2566 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
2567
2568         * p-lang.c: Eliminate "register".
2569         * c-lang.c: Ditto.
2570         * expprint.c: Ditto.
2571         * f-lang.c: Ditto.
2572         * jv-lang.c: Ditto.
2573         * language.c: Ditto.
2574         * m2-lang.c: Ditto.
2575         * parse.c: Ditto.
2576         * scm-lang.c: Ditto.
2577         * objc-lang.c: Ditto.
2578
2579 2003-09-09  Nick Clifton  <nickc@redhat.com>
2580
2581         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2582
2583 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2584
2585         * avr-tdep.c: Include "dis-asm.h".
2586         * cris-tdep.c: Include "dis-asm.h".
2587         (cris_delayed_get_disassembler): Use "struct disassemble_info"
2588         instead of corresponding typedef.
2589         * h8300-tdep.c: Include "dis-asm.h".
2590         * ia64-tdep.c: Include "dis-asm.h".
2591         * i386-tdep.c: Include "dis-asm.h".
2592         (i386_print_insn): Use "struct disassemble_info" instead of
2593         corresponding typedef.
2594         * m68k-tdep.c: Include "dis-asm.h".
2595         * mcore-tdep.c: Include "dis-asm.h".
2596         * mips-tdep.c: Include "dis-asm.h".
2597         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2598         instead of corresponding typedef.
2599         * ns32k-tdep.c: Include "dis-asm.h".
2600         * s390-tdep.c: Include "dis-asm.h".
2601         * sparc-tdep.c: Include "dis-asm.h".
2602         * vax-tdep.c: Include "dis-asm.h".
2603         * v850-tdep.c: Include "dis-asm.h".
2604         * mn10300-tdep.c: Include "dis-asm.h".
2605         * rs6000-tdep.c: Include "dis-asm.h".
2606         * xstormy16-tdep.c: Include "dis-asm.h".
2607         (_initialize_xstormy16_tdep): Delete "extern" declaration of
2608         print_insn_xstormy16.
2609         * Makefile.in (v850-tdep.o): Update dependencies.
2610         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2611         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2612         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2613         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2614         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2615         (gdbarch_h): Remove $(dis_asm_h).
2616         * disasm.c: Include "dis-asm.h".
2617         (dis_asm_read_memory): Use "struct disassemble_info" instead of
2618         corresponding typedef.
2619         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2620         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2621         * gdbarch.sh: Do not include "dis-asm.h".
2622         (struct disassemble_info): Declare opaque.
2623         (TARGET_PRINT_INSN): Update declaration.
2624         * gdbarch.h, gdbarch.c: Re-generate.
2625
2626 2003-09-08  Andrew Cagney  <cagney@redhat.com>
2627
2628         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2629         CALL_DUMMY_ADDRESS, change to a predicate.
2630         * gdbarch.h, gdbarch.c: Re-generate.
2631         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2632         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2633         * infcall.c (call_function_by_hand): Ditto.
2634         * sparc-tdep.c (sparc_push_return_address): Ditto.
2635         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2636         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2637         CALL_DUMMY_ADDRESS with entry_point_address.
2638         * v850-tdep.c (v850_push_return_address): Ditto.
2639         * s390-tdep.c (s390_push_return_address): Ditto.
2640         * rs6000-tdep.c (ppc_push_return_address): Ditto.
2641         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2642         * mcore-tdep.c (mcore_push_return_address): Ditto.
2643         * cris-tdep.c (cris_push_return_address): Ditto.
2644         * arm-tdep.c (arm_push_return_address): Ditto.
2645
2646 2003-09-08  Andrew Cagney  <cagney@redhat.com>
2647
2648         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2649         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2650         and REG_UNMODIFIED to REG_SAME_VALUE.
2651         (execute_cfa_program): Update.
2652         (dwarf2_frame_cache): Update.  Initialize table to
2653         REG_UNSPECIFIED, complain if CFI fails to specify a register's
2654         location.
2655         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
2656
2657 2003-09-08  Andrew Cagney  <cagney@redhat.com>
2658
2659         * gnu-nat.c: Remove "inline" function attribute.
2660         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2661
2662 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
2663
2664         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2665         target.
2666
2667 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
2668
2669         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2670         (frame_extra_info): Rename this struct to frv_unwind_cache.
2671         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2672         Add fields ``prev_sp'' and ``base''.
2673         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2674         (frv_saved_pc_after_call, frv_init_extra_frame_info)
2675         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2676         Delete.
2677         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2678         Revise all callers.  Fill in the unwind cache argument and make
2679         other adjustments to account for new frame mechanisms.
2680         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2681         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2682         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2683         (frv_frame_unwind, frv_frame_base): New structs.
2684         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
2685         additional arguments expected by this method and adjust function
2686         body accordingly.
2687         (frv_gdbarch_init): Remove calls to the following functions:
2688         set_gdbarch_deprecated_init_frame_pc(),
2689         set_gdbarch_deprecated_saved_pc_after_call(),
2690         set_gdbarch_deprecated_frame_chain(),
2691         set_gdbarch_deprecated_frame_saved_pc(),
2692         set_gdbarch_deprecated_frame_init_saved_regs(),
2693         set_gdbarch_deprecated_push_arguments(),
2694         set_gdbarch_deprecated_push_return_address(),
2695         set_gdbarch_deprecated_pop_frame(),
2696         set_gdbarch_deprecated_call_dummy_words(),
2697         set_gdbarch_deprecated_sizeof_call_dummy_words(),
2698         set_gdbarch_deprecated_init_extra_frame_info(),
2699         set_gdbarch_deprecated_dummy_write_sp(), and
2700         set_gdbarch_deprecated_pc_in_call_dummy().
2701         Add calls to the following functions:
2702         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2703         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2704         frame_base_set_default().
2705         * Makefile.in (frv-tdep.o): Update dependencies.
2706
2707 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
2708
2709         * dwarf2-frame.c (read_encoded_value): Add support for
2710         DW_EH_PE_aligned encoding.
2711
2712 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
2713
2714         * infrun.c (normal_stop): Don't print a message if the inferior
2715         has exited.
2716
2717 2003-09-08  Jim Blandy  <jimb@redhat.com>
2718
2719         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2720         * dbxread.c: #include "gdb_assert.h".
2721         (read_dbx_symtab): If the objfile has no .data section, use the
2722         section index for the .bss section instead.
2723
2724 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
2725
2726         * frame.c (deprecated_safe_get_selected_frame): New function.
2727         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2728         * findvar.c (read_var_value): Call it.
2729
2730 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
2731
2732         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2733         (sh64-tdep.o): Add dependencies.
2734         * configure.tgt: Add FIXME to sh-*-linux*.
2735         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2736         (sh_gdbarch_init): Always set correct sh_show_regs function
2737         pointer.  Call sh64_gdbarch_init() if machine type is sh5.
2738         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2739         * sh64-tdep.c: New file, containing all sh64 related code from
2740         sh-tdep.c.
2741         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2742         * config/sh/linux.mt (TDEPFILES): Ditto.
2743         * config/sh/nbsd.mt (TDEPFILES): Ditto.
2744         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2745         * config/sh/wince.mt (TDEPFILES): Ditto.
2746
2747 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
2748
2749         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2750         (stop_wait_callback): Handle !lp->signalled also.
2751         (lin_lwp_has_pending, flush_callback): New functions.
2752         (lin_lwp_wait): Call flush_callback.
2753         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2754         (linux_proc_pending_signals): New function.
2755         * linux-nat.h (linux_proc_pending_signals): Add prototype.
2756
2757 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
2758
2759         From Nick Kelsey <nickk@ubicom.com>:
2760         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2761         when the stop PC is at the beginning of a function also.
2762
2763 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
2764
2765         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2766         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2767
2768 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
2769
2770         * sol-thread.c: Include "gdb_string.h".
2771
2772 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
2773
2774         * gcore.c: Reorder include files in alphabetical order.  Include
2775         "gdb_assert.h".  Various coding style fixes.
2776         (derive_stack_segment, derive_heap_segment): Replace check for
2777         non-null BOTTOM and TOP with gdb_assert.
2778         (derive_heap_segment): Replace check for successful creation of
2779         ZERO with gdb_assert.
2780         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2781
2782 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2783
2784         * thread-db.c (verbose_dlsym): New function.
2785         (thread_db_load): Use verbose_dlsym
2786         (thread_db_new_objfile): Print that libthread_db was loaded, and
2787         that thread debugging was enabled.
2788
2789 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2790
2791         * configure.tgt: Add "mips64*-*-*" target.  Delete
2792         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2793         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2794         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2795         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2796         mips*-sony-*, and mips64*-*-elf* targets.
2797         * config/mips/embedl.mt: Delete file.
2798         * config/mips/embedl64.mt: Delete file.
2799         * config/mips/mips.mt: Delete file.
2800         * config/mips/mips64.mt: Delete file.
2801         * config/mips/tm-embed.h: Delete file.
2802         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2803         * config/mips/embed64.mt: Delete out-of-date comment.
2804
2805 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2806
2807         * hppa-tdep.c (hppa_gdbarch_init): Set
2808         "have_nonsteppable_watchpoint".
2809         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2810         * mips-tdep.c (mips_dump_tdep): Do not print
2811         HAVE_NONSTEPPABLE_WATCHPOINT.
2812         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2813         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2814         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2815         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2816
2817 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
2818
2819         * breakpoint.c (watchpoint_check): Remove accidentally checked in
2820         unused code.  Add comment.
2821
2822 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
2823
2824         * breakpoint.c (watchpoint_check): Check for pc being in an
2825         epilogue if watchpoint frame couldn't be found.
2826
2827 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2828
2829         * Makefile.in: Re-generate all dependencies.
2830
2831 2003-09-03  Andrew Cagney  <cagney@redhat.com>
2832
2833         * arch-utils.h (legacy_print_insn): Delete declaration.
2834         * arch-utils.c (legacy_print_insn): Delete function.
2835         * disasm.c (deprecated_tm_print_insn_info): Delete.
2836         (_initialize_disasm): Delete function, contained code initializing
2837         deprecated_tm_print_insn_info.
2838         * gdbarch.sh (deprecated_tm_print_insn): Delete.
2839         (deprecated_tm_print_insn_info): Delete.
2840         (TARGET_PRINT_INSN): Do not provide a default.
2841         * gdbarch.h, gdbarch.c: Re-generate.
2842
2843 2003-09-03  Andrew Cagney  <cagney@redhat.com>
2844
2845         * disasm.c (fprintf_disasm): New function.
2846         (gdb_disassemble_info): Call "init_disassemble_info", instead of
2847         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
2848         reverts 2003-08-14 change.
2849         (_initialize_disasm): Call "init_disassemble_info", instead of
2850         INIT_DISASSEMBLE_INFO_NO_ARCH.
2851
2852 2003-09-03  Michael Snyder  <msnyder@redhat.com>
2853
2854         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2855
2856 2003-09-03  Andrew Cagney  <cagney@redhat.com>
2857
2858         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2859         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2860         * symfile.c (syms_from_objfile): Update.
2861         (reread_symbols): `Update
2862         * exec.c (exec_file_attach): Update.
2863         (exec_file_attach): Update.
2864         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2865         2003-08-29 change.
2866         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2867
2868 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
2869
2870         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2871         trad-frame.h.
2872         (arm_get_cache): Delete macro.
2873         (struct arm_prologue_cache): Update comments.  Make saved_regs into
2874         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
2875         to prev_sp.
2876         (thumb_scan_prologue): Update for cache changes.  Don't call
2877         DEPRECATED_PC_IN_CALL_DUMMY.
2878         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
2879         argument and use it in desperation search for our prologue.  Do not
2880         search past the specified PC.
2881         (arm_make_prologue_cache): Simplify.
2882
2883         (arm_prologue_this_id, arm_prologue_prev_register)
2884         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2885         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2886         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2887         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2888         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2889
2890         (arm_frame_chain_valid, arm_find_callers_reg)
2891         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2892         (arm_pop_frame): Delete obsolete methods.
2893         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2894
2895         (arm_gdbarch_init): Update for new frame methods.  Register prologue
2896         and sigtramp unwinders.  Set the default frame base method.
2897
2898         * Makefile.in (arm-tdep.o): Update dependencies.
2899         * varobj.c (find_frame_addr_in_frame_chain): Call
2900         get_frame_base_address.
2901         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2902
2903 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
2904
2905         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2906         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
2907         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2908         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2909         Take NEXT_FRAME and CACHE arguments.  Call
2910         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2911         Set unwound_pc in CACHE instead of modifying the frame argument.
2912         Don't bother checking the frame type when looking for sigtramp
2913         frames.
2914         (arm_make_prologue_cache, arm_frame_chain)
2915         (arm_init_extra_frame_info): New functions.
2916
2917 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
2918
2919         * arm-tdep.c (arm_get_cache): Define.
2920         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
2921         unwound_sp, unwound_pc, and saved_regs.
2922         (thumb_scan_prologue): Take a cache instead of the frame.
2923         (arm_scan_prologue): Likewise.
2924         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2925         instead of a temporary frame.
2926         (arm_init_extra_frame_info): Allocate and use a cache.
2927         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2928
2929 2003-09-03  Andrew Cagney  <cagney@redhat.com>
2930
2931         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2932         * config/mips/wince.mt (TM_CLIBS): Ditto.
2933         * config/sh/wince.mt (TM_CLIBS): Ditto.
2934         * config/pa/hppa64.mt (TM_CLIBS): Delete.
2935         * config/sparc/sp64.mt (CC): Delete.
2936
2937 2003-09-03  Andrew Cagney  <cagney@redhat.com>
2938
2939         * defs.h: Do not include "arch-utils.h".
2940         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2941         GDB_MULTI_ARCH_PURE.
2942         * configure.in (GDB_MULTI_ARCH): Do not define.
2943         * configure, config.in: Regenerate.
2944         * configure.tgt: Do not set variable "gdb_multi_arch".
2945         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2946         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2947         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2948         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2949         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2950         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2951         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2952         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2953         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2954         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2955         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2956         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2957         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2958         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2959         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2960         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2961         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2962         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2963
2964 2003-08-30  Michael Chastain  <mec@shout.net>
2965
2966         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2967         * config/m68k/nm-hp300hpux.h: Delete.
2968         * config/m68k/tm-hp300hpux.h: Delete.
2969         * config/m68k/xm-hp300hpux.h: Delete.
2970         * config/m68k/xm-hp300bsd.h: Delete.
2971         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2972         tm-hp300hpux.h, xm-hp300hpux.h.
2973         * somsolib.c: Remove comment about hp300 shared libraries.
2974
2975 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
2976
2977         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2978         Only define PTRACE_GET_THREAD_AREA is not already defined.
2979         Various style fixes in code and comments and some additional
2980         spelling fixes in comments.  Move after functions dealing with
2981         debug registers.
2982         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2983         Fix coding-style.
2984
2985         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2986         frame_unwind_register_unsigned instead of
2987         frame_unwind_unsigned_register.
2988
2989 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
2990
2991         * configure.in: Search for gethostbyname in libnsl.
2992         * configure: Regenerated.
2993
2994 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
2995
2996         * configure.in: Remove redundant AC_MSG_RESULT in check for
2997         uintptr_t in stdint.h.
2998         * configure: Regenerated.
2999
3000         * amd64-nat.h (struct regcache): Add opaque declaration.
3001
3002         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3003         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3004         Change "register array" to "register cache" in comments.
3005         (x86_64_linux_gregset64_reg_offset): New variable.
3006         (GETREGS_SUPPLIES): Remove macro.
3007         (supply_gregset): Call amd64_supply_native_gregset instead of
3008         x86_64_linux_supply_gregset.
3009         (fill_gregset): Rename `regno' to `regnum'.  Call
3010         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3011         (store_regs): Rename `regno' to `regnum'.
3012         (store_fpregs): Rename `regno' to `regnum'.
3013         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
3014         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3015         Reorganize function a bit.
3016         (store_inferior_registers): Rename `regno' to `regnum'.  Use
3017         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3018         Reorganize function a bit.
3019         (_initialize_x86_64_linux_nat): New function.
3020         * config/i386/x86-64linux.mh.
3021
3022 2003-08-29  Andrew Cagney  <cagney@redhat.com>
3023
3024         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3025         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3026         (target_remove_watchpoint): Delete macro.
3027         (target_insert_watchpoint): Delete macro.
3028         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3029         (remote_mips_stopped_by_watchpoint): Delete declaration.
3030         (remote_mips_remove_watchpoint): Delete declaration.
3031         (remote_mips_set_watchpoint): Delete declaration.
3032         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3033         * remote-mips.c (_initialize_remote_mips): Set
3034         "to_insert_watchpoint", "to_stopped_by_watchpoint",
3035         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3036         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3037         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3038         (mips_stopped_by_watchpoint): Rename
3039         remote_mips_stopped_by_watchpoint.
3040         (mips_can_hardware_watchpoint): Rename
3041         remote_mips_can_use_hardware_watchpoint, update function
3042         signature.
3043
3044 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
3045
3046         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3047         USER_DS.  We haven't given them a register number yet.
3048
3049         * amd64-nat.h: New file.
3050         * amd64-nat.c: New file.
3051         * amd64fbsd-nat.c: Include "amd64-nat.h".
3052         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3053         (amd64fbsd32_r_reg_offset): New variable.
3054         (supply_gregset): Simply call amd64_supply_native_gregset.
3055         (fill_gregset): Rename `regno' to `regnum'.  Simply call
3056         amd64_collect_native_gregset.
3057         (fill_fpregset): Rename `regno' to `regnum'.
3058         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
3059         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3060         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3061         `fpregset_t'.  Call amd64_supply_native_gregset instead of
3062         supply_gregset.  Call x86_64_supply_fxsave instead of
3063         supply_fpregset.
3064         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
3065         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3066         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3067         `fpregset_t'.  Call amd64_collect_native_gregset instead of
3068         fill_gregset.  Call x86_64_collect_fxsave instead of
3069         fill_fpregset.
3070         (_initialize_am64fbsd_nat): Initialize
3071         amd64_native_gregset32_reg_offset and
3072         amd64_native_gregset64_reg_offset.
3073         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3074
3075         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3076         null pointer.  Fix typo in comment.
3077
3078         * regcache.c (supply_register): Reimplement to call
3079         regcache_raw_supply.
3080         (regcache_collect): Reimplement by calling regcache_raw_collect.
3081
3082 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
3083
3084         * regcache.c (register_buffer): Consitify first argument.
3085         (regcache_raw_supply, regcache_raw_collect): New
3086         functions.
3087
3088 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
3089
3090         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
3091         by Nathan J. Williams.
3092
3093 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
3094
3095         * lin-lwp.c (wait_lwp): New function, copied from
3096         stop_wait_callback.  Clean up.
3097         (stop_wait_callback): Use wait_lwp.
3098
3099 2003-08-28  Andrew Cagney  <cagney@redhat.com>
3100
3101         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3102         flavour and disassembler options.
3103         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3104         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
3105         deprecated_tm_print_insn_info.
3106
3107 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3108
3109         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3110         Use target_read_memory.
3111         (s390_get_frame_info): Update.  Do not reference
3112         deprecated_tm_print_insn_info.
3113         (s390_check_function_end, s390_is_sigreturn): Ditto.
3114
3115 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3116
3117         * Makefile.in (cris-tdep.o): Update dependencies.
3118         * cris-tdep.c: Include "gdb_assert.h".
3119         (cris_gdbarch_init): Set print_insn.
3120         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3121         (cris_delayed_get_disassembler): Simplify, directly call the
3122         disassembler returned by cris_get_disassembler.
3123         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3124         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3125         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3126         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3127         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3128         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3129         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3130         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3131         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3132         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3133         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3134         (gdb_print_insn_sparc): Delete function.
3135         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3136         deprecated_tm_print_insn_info.
3137         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3138         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3139         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3140         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3141         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3142         * s390-tdep.c (gdb_print_insn_s390): Delete function.
3143         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3144         (s390_gdbarch_init): Set print_insn.
3145
3146 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3147
3148         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3149         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3150         * infcall.c (call_function_by_hand): Convert the entry point
3151         address into a code address.
3152
3153 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3154
3155         * dsrec.c: Include "gdb_string.h".
3156         * Makefile.in (dsrec.o): Update dependencies.
3157
3158 2003-08-27  Michael Chastain  <mec@shout.net>
3159
3160         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3161
3162 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3163
3164         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3165         (alpha_osf1_init_abi): Do not set call_dummy_address.
3166
3167 2003-08-27  David Carlton  <carlton@kealia.com>
3168
3169         From Randolph Chung  <tausq@debian.org>:
3170         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3171         compiles with -Wformat-nonliteral -Werror.
3172
3173 2003-08-26  Jim Blandy  <jimb@redhat.com>
3174
3175         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3176         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3177         bfd_lookup_symbol, since we only want symbols in code sections.
3178         (look_for_base): Pass zero as the SECT_FLAGS argument to
3179         bfd_lookup_symbol, since we're not concerned about which section
3180         the symbol is in.
3181
3182 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3183
3184         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3185         we are frameless or the return address register is already known.
3186
3187 2003-08-26  Andrew Cagney  <cagney@redhat.com>
3188
3189         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3190         in size.  Add comments.
3191
3192 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3193
3194         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3195         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3196
3197 2003-08-26  Jason Merrill  <jason@redhat.com>
3198
3199         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3200         case out of #ifdef MIPS block.
3201
3202 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
3203
3204         PR java/1322
3205         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3206         available before calling SECT_OFF_TEXT.
3207         * PROBLEMS: Remove description of java/1322.
3208
3209 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
3210
3211         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3212         bof, and nat0-nat127 as pseudo-registers.
3213         (ia64_frame_cache): New struct used to cache frame info.
3214         (ia64_register_reggroup_p): New routine used to override default
3215         register grouping so registers without names are still saved and
3216         restored.
3217         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3218         pseudo values.
3219         (ia64_pseudo_register_read): New routine to read pseudo-registers.
3220         (ia64_pseudo_register_write): New routine to write pseudo-registers.
3221         (ia64_alloc_frame_cache): New routine to create a new
3222         ia64_frame_cache.
3223         (examine_prologue): Change prototype to add next_frame pointer.
3224         Assume frameless until otherwise proven.  Verify that the cfm for
3225         current frame matches the cfm that should occur for the prologues
3226         alloc insn and if equal, mark as not frameless.  At end of routine,
3227         if not frameless, calculate registers for the previous frame and store
3228         in the cache, if a cache is provided.
3229         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
3230         and pass 0 for next_frame.
3231         (ia64_store_return_value): Change to use convert_typed_floating()
3232         instead of calling ia64_convert_to_raw().
3233         (ia64_extract_return_value): Change to use convert_typed_floating()
3234         instead of calling ia64_convert_to_virtual().
3235         (ia64_frame_cache): New routine to support new frame model.
3236         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3237         (ia64_frame_sniffer): Ditto.
3238         (ia64_sigtramp_frame_init_saved_regs): Ditto.
3239         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3240         (ia64_sigtramp_frame_prev_register): Ditto.
3241         (ia64_sigtramp_frame_sniffer): Ditto.
3242         (ia64_frame_base_address): Ditto.
3243         (ia64_extract_struct_value_address): Change to issue error message.
3244         (ia64_frame_align): New routine to align sp.
3245         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3246         (ia64_push_arguments): Removed.  Logic moved to
3247         ia64_push_dummy_call().
3248         (ia64_push_return_address): Ditto.
3249         (ia64_unwind_dummy_id): New function.
3250         (ia64_unwind_pc): Ditto.
3251         (ia64_convert_register_p): Ditto.
3252         (ia64_register_to_value): Ditto.
3253         (ia64_value_to_register): Ditto.
3254         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3255         (ia64_register_byte, ia64_register_raw_size): Ditto.
3256         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3257         (ia64_saved_pc_after_call): Ditto.
3258         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3259         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3260         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3261         (ia64_register_convert_to_raw): Ditto.
3262         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3263         (ia64_init_extra_frame_info): Ditto.
3264         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3265         (ia64_gdbarch_init): Remove registering of deprecated functions that
3266         are no longer used.  Add registration of new gdbarch functions.
3267         Remove registering deprecated_write_sp.  Replace
3268         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3269         Delete set_gdbarch_deprecated_register_convertible(),
3270         set_gdbarch_deprecated_register_convert_to_virtual(), and
3271         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
3272         set_gdbarch_deprecated_register_size(),
3273         set_gdbarch_deprecated_register_bytes(),
3274         set_gdbarch_pcregnum(),
3275         set_gdbarch_deprecated_register_byte(),
3276         set_gdbarch_deprecated_register_raw_size(),
3277         set_gdbarch_deprecated_max_register_raw_size(),
3278         set_gdbarch_deprecated_register_virtual_size(),
3279         and set_gdbarch_deprecated_max_register_virtual_size() calls.
3280         Replace set_gdbarch_deprecated_extract_return_value() with
3281         set_gdbarch_extract_return_value().  Remove calls to:
3282         set_gdbarch_deprecated_saved_pc_after_call();
3283         set_gdbarch_deprecated_frame_chain(),
3284         set_gdbarch_deprecated_frame_saved_pc(),
3285         set_gdbarch_deprecated_frame_init_saved_regs(),
3286         set_gdbarch_deprecated_get_saved_register(),
3287         set_gdbarch_deprecated_call_dummy_words(),
3288         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3289         set_gdbarch_deprecated_init_extra_frame_info(),
3290         set_gdbarch_deprecated_frame_args_address(),
3291         set_gdbarch_deprecated_frame_locals_address(),
3292         and set_gdbarch_deprecated_dummy_write_sp().
3293         Add set_gdbarch_convert_register_p(),
3294         set_gdbarch_register_to_value(),
3295         set_gdbarch_value_to_register(),
3296         set_gdbarch_push_dummy_call(),
3297         set_gdbarch_frame_align(),
3298         set_gdbarch_unwind_dummy_id(),
3299         set_gdbarch_unwind_pc(),
3300         frame_unwind_append_sniffer(),
3301         frame_unwind_append_sniffer(),
3302         and frame_base_set_default().
3303
3304 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
3305
3306         * configure.tgt: Document need for special "mipsisa64" handling.
3307         (mipsisa64*-*-linux64): Handle as target linux64.
3308         (mipsisa64*-*-*): Handle as target embed64.
3309
3310 2003-08-18  Michael Chastain  <mec@shout.net>
3311
3312         * PROBLEMS: Document pr gdb/1322, the Java anonymous
3313         objfile bug.
3314
3315 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
3316
3317         * i387-tdep.h: Update copyright date.
3318         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3319
3320         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3321         CFLAGS games to reflect reality.
3322
3323 2003-08-24  Andrew Cagney  <cagney@redhat.com>
3324
3325         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3326         GDB_MULTI_ARCH is always non-zero.
3327         * osabi.c (_initialize_gdb_osabi): Ditto.
3328         (gdbarch_init_osabi): Ditto.
3329         * sparc-tdep.c: Ditto for #if code.
3330
3331 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
3332
3333         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3334         Update comments.
3335         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
3336         comments.
3337         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3338         x86_64_supply_fxsave.
3339         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3340         x86_64_supply_fxsave.
3341         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3342         x86_64_supply_fxsave.
3343
3344 2003-08-23  Andreas Jaeger  <aj@suse.de>
3345
3346         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3347         i387_supply_fxsave.
3348
3349 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
3350
3351         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3352         i387_supply_register.
3353         (go32_fetch_registers): Adjust call to i387_supply_fsave.
3354         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3355         i387_supply_fsave.
3356         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3357         i387_supply_fxsave.
3358         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3359         i387_supply_fsave.
3360         * i386bsd-nat.c (supply_fpregset): Adjust call to
3361         i387_supply_fsave.
3362         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
3363         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
3364         supply_fpregset.
3365         (store_inferior_registers): Remove extraneous whitespace.  Call
3366         i387_fill_fsave instead of fill_fpregset.
3367         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3368         (supply_fpregset): Likewise.
3369         * i386v4-nat.c (supply_fpregset): Adjust call to
3370         i387_supply_fsave.
3371         * i386-interix-nat.c (supply_fpregset): Adjust call to
3372         i387_supply_fsave.
3373         * i386-linux-nat.c (supply_fpregset): Adjust call to
3374         i387_supply_fsave.
3375         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3376         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3377         i387supply_fsave and i387_supply_fxsave.
3378         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3379         Incorporate code from `i387_supply_register.
3380         (i387_supply_register): Remove.
3381         (i387_supply_fxsave): Add `regnum' argument.
3382         Update comments.
3383         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3384         prototype.
3385         (i387_supply_register): remove prototype.
3386         Update comments.
3387
3388 2003-08-22  Michael Chastain  <mec@shout.net>
3389
3390         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3391         Add lines for files in gdb/testsuite/gdb.cp/* that are
3392         still not 8.3 unique.
3393
3394 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
3395
3396         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3397         TYPE_VPTR_FIELDNO is valid.
3398
3399 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
3400
3401         * utils.c (set_width_command): Remove prototypes.
3402         (set_screen_size): New prototype.
3403         (init_page_info): Simplify by fetching the screen size from
3404         Readline.  Call set_screen_size.
3405         (set_screen_size): New function.
3406         (set_width): Add missing whitespace in comment.
3407         (set_width_command): Call set_screen_size.
3408         (set_height_command): New function.
3409         (initialize_utils): Fix formatting.  Make "set height" command
3410         call set_height_command.  Remove redundant code that turns off
3411         pagination if output isn't a terminal.  Remove redundant call to
3412         set_width_command.
3413
3414 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
3415
3416         * sparc64-tdep.h (sparc64_regnum): Fix comment.
3417         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3418         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3419         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3420         `case' keyword.
3421         (sparc64_register_info): Give the reister with number
3422         SPARC64_STATE_REGNUM a name.
3423         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3424         %asi and %ccr.
3425         (sparc64_push_dummy_call): Take BIAS into account when checking
3426         stcak alignment.
3427         (sparc_software_single_step): Remove assertions that check whether
3428         NPC and NNPC were zero.
3429         (sparc_supply_rwindow): Make public.  Merge functionality with
3430         sparc64_supply_rwindow.
3431         (sparc_fill_rwindow): Make public.  Merge functionality with
3432         sparc64_fill_rwindow.
3433         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3434         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3435         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3436         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3437         sparc_supply_rwindow instead of sparc64_supply_rwindow.
3438
3439         * reggroups.c: Add whitespace after declarations of local
3440         variables in functions.
3441
3442 2003-08-21  Michael Chastain  <mec@shout.net>
3443
3444         * gdbtypes.h: Change array bound type from an int to enum.
3445
3446 2003-08-21  Andrew Cagney  <cagney@redhat.com>
3447
3448         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3449         * config/sparc/tm-sparc.h: Ditto.
3450         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3451         unconditionally.
3452         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3453
3454 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
3455
3456         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3457         (register_objfile_data, set_objfile_data, objfile_data): New
3458         prototypes.
3459         * objfiles.c (objfile_alloc_data, objfile_free_data): New
3460         prototypes.
3461         (allocate_objfile): Call objfile_alloc_data.
3462         (free_objfile): Call objfile_free_data.
3463         (struct objfile_data): New.
3464         (struct objfile_data_registration): New.
3465         (struct objfile_data_registry): New.
3466         (objfile_data_registry): New variable.
3467         (register_objfile_data): New function.
3468         (objfile_alloc_data, objfile_free_data): New functions.
3469         (set_objfile_data, objfile_data): New functions.
3470         * dwarf2-frame.c (dwarf2_frame_data): New variable.
3471         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3472         (_initialize_dwarf2_frame): New function and prototype.
3473
3474 2003-08-21  Andrew Cagney  <cagney@redhat.com>
3475
3476         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3477         a specific architecture.
3478         * arch-utils.h (set_architecture_from_arch_mach): Delete
3479         declaration.
3480         (target_architecture_hook): Delete declaration.
3481         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3482         (default_float_format): Assume GDB_MULTI_ARCH.
3483         (default_double_format): Assume GDB_MULTI_ARCH.
3484         (set_endian_from_file): Delete function.
3485         (arch_ok): Delete function.
3486         (set_arch): Delete function.
3487         (set_architecture_from_arch_mach): Delete function.
3488         (set_architecture_from_file): Delete function.
3489         (set_architecture): Assume GDB_MULTI_ARCH.
3490         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3491
3492 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
3493
3494         Rewrite FreeBSD/sparc64 native configuration.
3495         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3496         * sparc64fbsd-nat.c: New file.
3497         * sparc64fbsd-tdep.c: New file.
3498         * sparc64-tdep.c sparc64-tdep.h: New files.
3499         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3500         sparc64fbsd-tdep.o): New dependencies.
3501         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3502         and sparc64fbsd-tdep.c.
3503         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3504         * config/sparc/fbsd.mh: Remove copyright notice.
3505         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3506         sparcbsd-nat.o.
3507         * config/sparc/fbsd.mt: Remove copyright notice.
3508         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3509         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3510         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3511         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3512         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3513         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3514         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3515         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3516         "sparc/tm-sp64.h".
3517         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3518         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3519
3520 2003-08-21  Michael Chastain  <mec@shout.net>
3521
3522         * symtab.h: Add doco on the space critical structures and
3523         some measurements of space usage.
3524
3525 2003-08-21  Michael Snyder  <msnyder@redhat.com>
3526
3527         * tracepoint.c (trace_dump_command): Trace break address
3528         is subject to DECR_PC_AFTER_BREAK.
3529         (set_traceframe_context): Make "trace_line" an int.
3530         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
3531
3532 2003-08-20  Michael Snyder  <msnyder@redhat.com>
3533
3534         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3535         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3536         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3537         argument passing.
3538         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3539         functions, replace sh_push_dummy_call.
3540         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3541
3542 2003-08-20  Michael Chastain  <mec@shout.net>
3543
3544         * gdbtypes.h (struct main_type): Rearrange to save space.
3545
3546 2003-08-20  Michael Snyder  <msnyder@redhat.com>
3547
3548         * trad-frame.c: Comment typo fix.
3549
3550 2003-08-20  Michael Snyder  <msnyder@redhat.com>
3551             Kevin Buettner  <kevinb@redhat.com>
3552
3553         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3554         (frv_frame_init_saved_regs): Add declaration.
3555         (frame_extra_info): Add new field ``saved_regs''.
3556         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3557         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3558         Update frame related code.
3559         (frv_extract_struct_value_address): Adjust formatting.
3560         * Makefile.in (frv-tdep.o): Update dependencies.
3561         * config/frv/tm-frv.h (target_insert_watchpoint)
3562         (target_remove_watchpoint, target_insert_hw_breakpoint)
3563         (target_remove_hw_breakpoint): Delete these macros.
3564         (remote_insert_watchpoint, remote_remove_watchpoint)
3565         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3566         these declarations.
3567
3568 2003-08-20  Michael Chastain  <mec@shout.net>
3569
3570         * defs.h (ENUM_BITFIELD): New macro.
3571         * symtab.h (ENUM_BITFIELD): Use it.
3572         (BYTE_BITFIELD): Remove old macro, which was already disabled.
3573
3574 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
3575
3576         * MAINTAINERS (write after approval): Add myself.
3577
3578 2003-08-18  Andrew Cagney  <cagney@redhat.com>
3579
3580         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3581         * gdbarch.h, gdbarch.c: Re-generate.
3582         * infcall.c (call_function_by_hand): Adjust the SP by
3583         frame_red_zone_size before allocating any stack space.
3584         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3585         * x86-64-tdep.c (x86_64_frame_align): New function.
3586         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3587
3588         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3589         Remove code adjusting SP so that it skips over the Red Zone.
3590
3591 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
3592
3593         * NEWS (New native configurations): Mention FreeBSD/amd64.
3594
3595 2003-08-18  Andrew Cagney  <cagney@redhat.com>
3596
3597         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3598         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
3599         "m68k_frame_p".
3600         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3601
3602 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
3603
3604         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3605
3606 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
3607
3608         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3609         Define.
3610         * i386-linux-nat.c: Include "linux-nat.h".
3611         (child_post_startup_inferior): New function.
3612
3613 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
3614
3615         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3616         at the start of a frameless function.  This probably fixes PR
3617         backtrace/1338.
3618
3619 2003-08-17  Michael Chastain  <mec@shout.net>
3620
3621         * symfile.c (find_sym_fns): Remove special case for apollo target.
3622
3623 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
3624
3625         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3626         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3627         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3628         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3629         (linux_supports_tracevforkdone): New function.
3630         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3631         TRACEVFORKDONE.
3632         (child_follow_fork): Handle vfork.
3633         (linux_handle_extended_wait): Likewise.  Also handle exec.
3634         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3635         * NEWS: Mention fork tracing.
3636
3637 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
3638
3639         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3640
3641 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
3642
3643         * Makefile.in (i386-linux-nat.o): Update dependencies.
3644         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3645         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3646         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3647         * i386-linux-nat.c: Include "linux-nat.h".
3648         (child_post_startup_inferior): New function.
3649         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3650         * infptrace.c (kill_inferior): Wrap in #ifdef.
3651         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3652         attaching to each LWP.
3653         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3654         (init_lin_lwp_ops): Fill in some more operations.
3655         * linux-nat.h (linux_enable_event_reporting)
3656         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3657         prototypes.
3658         * linux-nat.c (linux_enable_event_reporting): New function.
3659         (child_post_attach, linux_child_post_startup_inferior)
3660         (child_post_startup_inferior, child_follow_fork)
3661         (linux_handle_extended_wait, kill_inferior): New functions.
3662
3663 2003-08-16  Andrew Cagney  <cagney@redhat.com>
3664
3665         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3666         * gdbarch.h, gdbarch.c: Re-generate.
3667
3668 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
3669
3670         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3671
3672 2003-08-16  Andrew Cagney  <cagney@redhat.com>
3673
3674         * NEWS: Mention that "set prompt-escape-char" was deleted.
3675         * top.c (get_prompt_1): Delete function.
3676         (gdb_prompt_escape):
3677         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
3678         prompt-escape-char" command.
3679         (MAX_PROMPT_SIZE): Delete macro.
3680         (get_prompt): Simplify, do not call get_prompt_1.
3681
3682 2003-08-16  Andrew Cagney  <cagney@redhat.com>
3683
3684         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3685         -Werror.  -Wformat-nonliteral problems.
3686
3687 2003-08-15  J. Brobecker  <brobecker@gnat.com>
3688
3689         Further multiarching work mostly for hppa64-*-hpux11:
3690         * hppa-tdep.h: New file.
3691         * hppa-tdep.c: #include hppa-tdep.c.
3692         (hppa32_num_regs): Renamed from hppa_num_regs.
3693         (hppa64_num_regs): New constant.
3694         (hppa64_call_dummy_breakpoint_offset): New constant.
3695         (hppa32_call_dummy_length): New constant.
3696         (hppa64_call_dummy_length): New constant.
3697         (hppa32_stack_align): Make name 32bit explicit.
3698         (hppa32_register_virtual_type): Likewise.
3699         (hppa32_extract_return_value): Likewise.
3700         (hppa32_use_struct_convention): Likewise.
3701         (hppa32_store_return_value): Likewise.
3702         (hppa64_register_virtual_type): New function.
3703         (hppa64_extract_return_value): New function.
3704         (hppa64_use_struct_convention): New function.
3705         (hppa64_store_return_value): New function.
3706         (hppa_frame_locals_address): Remove declaration, function does
3707         not exist anymore.
3708         (hppa_register_byte): Add support for PA64 ABI.
3709         (hppa_gdbarch_init): Add support for PA64 ABI.
3710         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3711         Make name 32bit explicit.
3712         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3713         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3714         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3715         (hppa64_hpux_frame_base_before_sigtramp): New function.
3716         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3717         * config/pa/tm-hppa64.h: Remove macros that are no longer
3718         necessary now that the gdbarch vector is properly setup.
3719         Transform some macros into function calls. Some minor cleanup.
3720         * config/pa/tm-hppah.h: Update function calls in macros
3721         following the function renaming in hppa-hpux-tdep.c.
3722         * Makefile.in (hppa_tdep_h): New variable.
3723         (hppa-tdep.o): Add dependency over hppa_tdep_h.
3724
3725 2003-08-14  Michael Snyder  <msnyder@redhat.com>
3726
3727         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3728
3729 2003-08-13  J. Brobecker  <brobecker@gnat.com>
3730
3731         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3732         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3733         routine.
3734
3735 2003-08-13  Michael Snyder  <msnyder@redhat.com>
3736
3737         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3738         (frv_saved_pc_after_call): Use deprecated ftype.
3739         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3740         (frv_remote_translate_xfer_address): Remove.
3741         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3742
3743 2003-08-13  J. Brobecker  <brobecker@gnat.com>
3744
3745         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3746         initialization after the common gdbarch initialization, not before.
3747
3748 2003-08-13  J. Brobecker  <brobecker@gnat.com>
3749
3750         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3751         (ADDR_BITS_REMOVE): Remove, redundant.
3752
3753 2003-08-13  J. Brobecker  <brobecker@gnat.com>
3754
3755         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3756         gdbarch method to clear the 2 low bits of text addresses.
3757
3758 2003-08-12  Andrew Cagney  <cagney@redhat.com>
3759
3760         * Makefile.in (dsrec.o): Update dependencies.
3761         * dsrec.c: Include "gdb_assert.h".
3762         (make_srec): Use snprintf instead of sprintf, use a literal format
3763         string.
3764
3765 2003-08-12  Andrew Cagney  <cagney@redhat.com>
3766
3767         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3768         FRAME_OBSTACK_ZALLOC.
3769
3770 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
3771
3772         * i386-tdep.c (i386_gdbarch_init): Enable default support for
3773         SSE registers.
3774
3775 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
3776
3777         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3778         amd64fbsd_sc_reg_offset): Add extern declarations.
3779         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3780         declarations.
3781
3782 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
3783
3784         * MAINTAINERS (write after approval): Update my mail address.
3785
3786 2003-08-10  Andrew Cagney  <cagney@redhat.com>
3787
3788         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3789
3790 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
3791
3792         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3793         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3794         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3795         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3796         i386bsd_sc_reg_offset): Add extern declarations.
3797         * i386obsd-nat.c: Include "i386-tdep.h"
3798         (_initialize_i386obsd_nat): Remove extern declarations.
3799         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3800         declarations.
3801         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3802         declarations.
3803
3804         * i386-tdep.c (i386_register_to_value): Use get_frame_register
3805         instead of frame_read_register.
3806         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3807         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
3808         SP_REGNUM.
3809         (i386_frame_prev_register): Use frame_unwind_register_unsigned
3810         instead of frame_unwind_unsigned_register.  Use
3811         I386_EFLAGS_REGISTER instead of PS_REGNUM.
3812         (i386_get_longjmp_target): Use regcache_read_unsigned_register
3813         instead of read_register.  Use builtin_type_void_data_ptr instead
3814         of builtin_type_void_func_ptr when extracting the address of the
3815         jmp_buf.
3816         (i386_extract_return_value, i386_store_return_value,
3817         i386_pseudo_register_read, i386_pseudo_register_write): Use
3818         register_size instead REGISTER_RAW_SIZE.
3819
3820 2003-08-10  Andrew Cagney  <cagney@redhat.com>
3821
3822         * infcall.c (call_function_by_hand): Use xstrprintf instead of
3823         sprintf.  Make "name" constant.
3824
3825 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
3826
3827         * i387-tdep.c (i387_register_to_value): Use get_frame_register
3828         instead of frame_read_register.
3829         (i387_print_float_info): Use get_frame_register and
3830         get_frame_register_unsigned instead of frame_register_read.
3831
3832         * i386fbsd-nat.c: Include "i386-tdep.h".
3833         (child_resume): Make `eflags' an ULONGEST.  Use
3834         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3835         instead of register_read and register_write.
3836
3837         * i386bsd-nat.c (fetch_inferior_registers,
3838         store_inferior_registers): Don't use && at the end of a line.
3839         (_initialize_i386bsd_nat): Fix typo.
3840
3841         * frame.c (_initialize_frame): Add missing backslash.
3842
3843         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3844         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3845         and supply_register instead of manipulating the register buffer
3846         directly.
3847
3848         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3849         * config/i386/nm-i386sol2.h
3850         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3851
3852         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3853         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3854         instructions that GCC likes to mingle into the prologue.  Fixes
3855         gdb/1253 and gdb/1255.
3856
3857 2003-08-09  Andrew Cagney  <cagney@redhat.com>
3858
3859         Fix GDB PR cli/926.
3860         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3861         * command.h (add_setshow_uinteger_cmd): Declare.
3862         * frame.c (set_backtrace_cmd): New function.
3863         (show_backtrace_cmd): New function.
3864         * frame.c (_initialize_frame): Replace "set/show
3865         backtrace-below-main" with "set/show backtrace past-main".  Add
3866         command "set/show backtrace limit".
3867         (backtrace_past_main): Rename "backtrace_below_main".
3868         (backtrace_limit): New variable.
3869         (get_prev_frame): Update.  Check the backtrace_limit.
3870
3871 2003-08-09  Andrew Cagney  <cagney@redhat.com>
3872
3873         * defs.h (xstrprintf): Declare.
3874         * utils.c (xstrprintf): New function.
3875         * breakpoint.c (insert_breakpoints): Replace sprintf and
3876         non-literal format strings, with xstrprintf and cleanups.
3877         (delete_breakpoint,breakpoint_re_set): Ditto.
3878         (commands_command, insert_breakpoints): Ditto.
3879         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3880         (break_at_finish_command_1): Ditto.
3881
3882 2003-08-09  Andrew Cagney  <cagney@redhat.com>
3883
3884         * MAINTAINERS (language support): List Adam Fedor as Objective C
3885         maintainer.
3886
3887 2003-08-08  J. Brobecker  <brobecker@gnat.com>
3888
3889         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3890         are now multiarched.
3891
3892 2003-08-08  J. Brobecker  <brobecker@gnat.com>
3893
3894         * config/pa/tm-hppa64.h: Remove lots of macros that are no
3895         longer necessary now that hppa64 is partially multiarch'ed.
3896
3897 2003-08-08  Andrew Cagney  <cagney@redhat.com>
3898
3899         * interps.c (interp_set): Check for a NULL "old_interp".
3900
3901 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
3902
3903         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3904         (install-only): Support DESTDIR.
3905         (uninstall): Likewise.
3906         (install-gdbtk): Likewise.
3907
3908 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
3909
3910         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3911         contains something meaningful at all times.
3912
3913 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
3914
3915         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3916
3917 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
3918
3919         * MAINTAINERS (write after approval): Added self.
3920
3921 2003-08-07  Andrew Cagney  <cagney@redhat.com>
3922
3923         * inferior.h (AT_SYMBOL): Define.
3924         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3925         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3926         * mips-tdep.c (mips_call_dummy_address): Delete function.
3927         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3928         set call_dummy_address.
3929
3930 2003-08-07  Andrew Cagney  <cagney@redhat.com>
3931
3932         * language.c (op_error): Delete function.
3933         (binop_type_check): Delete function.
3934         * language.h (type_op_error, range_op_error): Delete macros.
3935         (op_error): Delete declaration.
3936
3937 2003-08-07  Andrew Cagney  <cagney@redhat.com>
3938
3939         * interps.h (INTERP_MI2, INTERP_MI3): Define.
3940
3941 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
3942
3943         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3944         (x86_64_push_arguments): Skip the red zone.
3945
3946 2003-08-05  Andrew Cagney  <cagney@redhat.com>
3947
3948         * reggroups.c (reggroup_next): Check for the final entry.
3949
3950 2003-08-04  Andrew Cagney  <cagney@redhat.com>
3951
3952         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3953         * cli/cli-script.c (define_command): Call query directly, instead
3954         of passing it a buffer.
3955         * ocd.c (ocd_error): Pass error a constant format string.
3956         * remote-mips.c (mips_error): Use fputs_filtered.
3957
3958         * solib-svr4.c (_initialize_svr4_solib): Update
3959         register_gdbarch_data call.
3960         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3961
3962         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3963         (register_gdbarch_data): Delete "free" parameter.  Update
3964         comments.
3965         * gdbarch.h, gdbarch.c: Re-generate.
3966         * reggroups.c (_initialize_reggroup): Update.
3967         * gnu-v3-abi.c (init_gnuv3_ops): Update.
3968         * frame-base.c (_initialize_frame_base): Update.
3969         * frame-unwind.c (_initialize_frame_unwind): Update.
3970         * user-regs.c (_initialize_user_regs): Update.
3971         * remote.c (_initialize_remote): Update.
3972         * regcache.c (_initialize_regcache): Update.
3973
3974         * regcache.c (xfree_regcache_descr): Delete function.
3975         (_initialize_regcache): Update call to register_gdbarch_data.
3976         (init_regcache_descr, init_legacy_regcache_descr): Use
3977         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3978
3979         * remote.c (free_remote_state): Delete function.
3980         (_initialize_remote): Update register_gdbarch_data.
3981         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3982         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3983
3984 2003-08-04  Andrew Cagney  <cagney@redhat.com>
3985
3986         * reggroups.c (struct reggroup_el): Define.
3987         (struct reggroups): Delete field "nr_group".  Replace array
3988         "group" with a "first" to "last" linked list.
3989         (reggroups_init): Update.  Allocate using gdbarch's obstack.
3990         (reggroups_free): Delete function.
3991         (add_group): Update.  Add "el" parameter.
3992         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3993         (default_groups): Update.
3994         (reggroup_next): Replace reggroups.
3995         (reggroups_dump): Update.
3996         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3997         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3998         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3999
4000 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
4001
4002         * Makefile.in (tui-interp.o): Update dependencies.
4003
4004 2003-08-04  David Carlton  <carlton@kealia.com>
4005
4006         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4007         to internal_error call.
4008         * source.c (forward_search_command): Add "%s" format argument.
4009         (reverse_search_command): Ditto.
4010         * top.c (quit_confirm): Ditto.
4011         * cli/cli-setshow.c (do_setshow_command): Ditto.
4012         * cp-valprint.c (cp_print_class_method): Replace
4013         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4014         (cp_print_class_member): Ditto.
4015         * event-top.c (command_line_handler): Ditto.
4016         * linux-proc.c (linux_info_proc_cmd): Ditto.
4017         * p-typeprint.c (pascal_type_print_base): Ditto.
4018         * p-valprint.c (pascal_object_print_class_method): Ditto.
4019         (pascal_object_print_class_member): Ditto.
4020         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4021         * remote.c (remote_cisco_section_offsets): Ditto.
4022         * top.c (command_line_input): Ditto.
4023         * utils.c (vwarning,error_stream,quit): Ditto.
4024         * valprint.c (print_floating,print_binary_chars)
4025         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4026
4027 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4028
4029         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4030
4031 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4032
4033         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4034         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4035         amd64fbsd-nat.c.
4036
4037 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4038
4039         * Makefile.in: Update all dependencies and definitions.
4040
4041 2003-08-02  Adam Fedor  <fedor@gnu.org>
4042
4043         * linespec.c (is_objc_method_format): New function
4044         (decode_line_1, locate_first_half): Use it.
4045         Fixes PR objc/1298
4046
4047 2003-08-01  Andrew Cagney  <cagney@redhat.com>
4048
4049         * NEWS: Mention that m32r is multi-arch.
4050         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4051         * configure.tgt: Recognize m32r-*-*.
4052         * config/m32r/tm-m32r.h: Delete file.
4053         * config/m32r/m32r.mt: New file.
4054         * m32r-rom.c (m32r_upload_command): Use hostent only when
4055         gethostname succeeds, in order to avoid a compilation
4056         warning.
4057         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4058         compiler warning.
4059
4060 2003-08-01  Michael Snyder  <msnyder@redhat.com>
4061
4062         * sh-tdep.c (sh_frame_align): New gdbarch method.
4063         (sh_gdbarch_init): Set up frame_align method.
4064
4065 2003-07-31  Michael Snyder  <msnyder@redhat.com>
4066
4067         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4068         which is already covered by the new frames infrastructure.
4069
4070 2003-07-31  Andrew Cagney  <cagney@redhat.com>
4071
4072         * user-regs.c (struct user_reg): Add "next" link.
4073         (struct user_regs): Replace "user" with "first" and "last" links.
4074         (append_user_reg): Add pre-allocated "reg" parameter.
4075         (builtin_user_regs): Provide initial value for "last".
4076         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4077         (user_regs_init): Allocate memory from the gdbarch obstack.
4078         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4079         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4080         linked list.
4081         (usernum_to_user_reg): New function.
4082         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4083         (value_of_user_reg): Use usernum_to_user_reg.
4084         (user_regs_free): Delete function.
4085         (_initialize_user_regs): Update register_gdbarch_data call.
4086
4087 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
4088
4089         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4090
4091 2003-07-30  Michael Snyder  <msnyder@redhat.com>
4092
4093         * value.h (value_being_returned): Add a struct_addr argument.
4094         * infcall.c (call_function_by_hand): Pass struct_addr to
4095         value_being_returned.
4096         * infcmd.c (print_return_value): Pass zero as struct_addr.
4097         * values.c (value_being_returned): If struct_addr is passed,
4098         use it instead of trying to recover it from the inferior.
4099
4100 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
4101
4102         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4103         the prologue analyzer won't need to attempt to extract the pc
4104         value from the woefully incomplete dummy frame.
4105         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4106         possible.  Disable code which modifies the frame.
4107
4108 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4109
4110         * annotate.c (annotate_breakpoints_headers): Restrict annotation
4111         to level 2.
4112         (annotate_breakpoints_table, annotate_record): Ditto.
4113         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4114         (annotate_field_name_end, annotate_field_value): Ditto.
4115         (annotate_field_end, annotate_frame_source_begin): Ditto.
4116         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4117         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4118         (annotate_frame_begin, annotate_frame_function_name): Ditto.
4119         (annotate_frame_address_end, annotate_frame_address): Ditto.
4120         (annotate_frame_args, annotate_frame_end): Ditto.
4121         (annotate_frame_where, annotate_arg_begin): Ditto.
4122         (annotate_arg_name_end, annotate_arg_value): Ditto.
4123         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4124         (annotate_function_call, annotate_signal_name): Ditto.
4125         (annotate_signal_string, annotate_signal_name_end): Ditto.
4126         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4127         (annotate_value_begin, annotate_value_history_value): Ditto.
4128         (annotate_value_history_end, annotate_value_end): Ditto.
4129         (annotate_display_begin, annotate_display_number_end): Ditto.
4130         (annotate_display_format, annotate_display_expression): Ditto.
4131         (annotate_display_expression_end, annotate_display_value): Ditto.
4132         (annotate_display_end, annotate_array_section_begin): Ditto.
4133         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4134         (annotate_elt, annotate_array_section_end): Ditto.
4135
4136 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4137
4138         * regcache.c (struct regcache_descr): Update comments on
4139         nr_raw_registers.
4140         (init_legacy_regcache_descr): Don't set nr_raw_registers or
4141         sizeof_raw_register_valid_p.
4142         (init_regcache_descr): Set nr_raw_registers and
4143         sizeof_raw_register_valid_p before calling
4144         init_legacy_regcache_descr.
4145
4146 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4147
4148         * mips-tdep.c (print_gp_register_row): Print the GPR's register
4149         MOD NUM_REGS.
4150
4151 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
4152
4153         * thread.c (info_threads_command): Use get_selected_frame ().
4154         Check that there is at least one non-sentinel frame.
4155
4156 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4157
4158         * m68hc11-tdep.c (struct frame_extra_info): Remove.
4159         (m68hc11_pop_frame): Remove.
4160         (m68hc11_frame_saved_pc): Remove.
4161         (m68hc11_frame_chain): Remove.
4162         (m68hc11_frame_init_saved_regs): Remove.
4163         (m68hc11_init_extra_frame_info): Remove.
4164         (m68hc11_store_struct_return): Remove.
4165         (m68hc11_saved_pc_after_call): Remove.
4166
4167 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4168
4169         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4170         frame unwind information.
4171         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4172         and adapted for frame unwinding.
4173         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4174         (m68hc11_unwind_pc): New function.
4175         (m68hc11_frame_unwind_cache): New function to analyze frames.
4176         (m68hc11_frame_this_id): New function to create new frame struct.
4177         (m68hc11_frame_prev_register): New function to unwind a register from
4178         the frame.
4179         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4180         (m68hc11_frame_p): New function for the above.
4181         (m68hc11_frame_base_address): New function to return fp of frame.
4182         (m68hc11_frame_args_address): Update for frame.
4183         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4184         (m68hc11_unwind_sp): New function.
4185         (m68hc11_unwind_dummy_id): New function.
4186         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4187         calls.
4188
4189 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4190
4191         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4192         (m68hc11_guess_from_prologue): Advance the pc and frame size only
4193         when we are beyond the current pc.
4194
4195 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4196
4197         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4198         from m68hc11_push_arguments.
4199         (m68hc11_push_arguments): Remove.
4200         (m68hc11_push_return_address): Remove.
4201         (m68hc11_gdbarch_init): Install the above; remove above deprecated
4202         handlers; remove deprecated_extra_stack_alignment_needed.
4203
4204 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4205
4206         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4207         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4208         REAL_PC and not the pointer.
4209         * hppa-hpux-tdep.c: Include frame.h
4210
4211 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4212
4213         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4214         GDB_MULTI_ACH_PARTIAL.
4215
4216 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4217
4218         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4219         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4220         operator at start and not end of line.
4221         (decode_prologue): Ditto.
4222         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4223         frame_unwind_register_unsigned instead of
4224         frame_unwind_unsigned_register.
4225         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4226         read_register.
4227         (m32r_push_dummy_call): Use register_size instead of
4228         REGISTER_RAW_SIZE.
4229         (m32r_frame_sniffer): Replace m32r_frame_p.
4230         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4231         * m32r-rom.c (report_transfer_performance): Delete extern
4232         declaration.
4233         (m32r_load, m32r_upload_command): Use print_transfer_performance
4234         instead of report_transfer_performance.
4235         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4236         / add_show_from_set.
4237
4238 2003-07-26  Andrew Cagney  <cagney@redhat.com>
4239
4240         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4241         store_return_value and extract_struct_value_address.
4242
4243 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
4244
4245         PR c++/1267
4246         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4247         NULL, default to the section containing PC.
4248
4249 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
4250
4251         * NEWS: Mention "regs" deprecated for m68hc11 too.
4252
4253         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4254         (m68hc11_print_register): New function to print out one register.
4255         (m68hc11_print_registers_info): New function to print registers.
4256         (show_regs): Deprecate and use the above.
4257         (m68hc11_gdbarch_init): Install the print_registers_info.
4258
4259 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
4260
4261         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4262         that we have a SIGTRAP before returning non-zero.
4263
4264 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
4265             Elena Zannoni  <ezannoni@redhat.com>
4266
4267         * linespec.c (decode_line_2): Avoid crash if
4268         find_function_start_sal() returns empty record.
4269
4270 2003-07-23  Andreas Schwab  <schwab@suse.de>
4271
4272         * ia64-tdep.c (ia64_print_insn): New function.
4273         (ia64_gdbarch_init): Set print_insn to it.
4274         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4275         deprecated_tm_print_insn_info.
4276
4277 2003-07-22  Michael Snyder  <msnyder@redhat.com>
4278
4279         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4280         handle 8-bit returns (long long).
4281         (h8300h_extract_return_value): Ditto.
4282         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4283
4284 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4285
4286         * gdbarch.c Include "gdb_obstack.h".
4287         (struct gdbarch): Add an "obstack".
4288         (alloc_gdbarch_data): Allocate the gdbarch data using
4289         GDBARCH_OBSTACK_CALLOC.
4290         (free_gdbarch_data): Delete function.
4291         (gdbarch_obstack_zalloc): New function.
4292         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4293         Assert that the architecture is not initialized.
4294         (gdbarch_alloc): Allocate an obstack, allocate the architecture
4295         vector from the obstack.
4296         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4297         architecture obstack.
4298         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4299         (set_gdbarch_data): Assert that the data is not initialized.
4300         (struct gdbarch_data): Delete member "free".
4301         (register_gdbarch_data): Do not initialize "free".
4302         * gdbarch.h, gdbarch.c: Re-generate.
4303
4304 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4305
4306         * configure.in (build_warnings): Add -Wformat-nonliteral.
4307         * configure: Re-generate.
4308
4309 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
4310
4311         * dwarf2loc.c (locexpr_describe_location): Fix typos.
4312
4313 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
4314
4315         * findvar.c (read_var_value): Remove case for thread local storage
4316         variables.  It is now entirely handled by the dwarf2 location
4317         expression code.
4318         * printcmd.c (address_info): Ditto.
4319         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4320         enumeration value.
4321         (struct symbol): Remove objfile field, which was used by
4322         LOC_THREAD_LOCAL_STATIC only.
4323         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4324         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4325         usage of objfile pointer.
4326         * dwarf2loc.c (locexpr_describe_location): Add case to handle
4327         thread local variables.
4328         Add include of objfiles.h.
4329         * dwarf2expr.c (execute_stack_op): Add comments about thread local
4330         storage variables.
4331         * Makefile.in (dwarf2loc.o): Update dependencies.
4332
4333 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4334
4335         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4336         get_frame_base.
4337         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4338         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4339         (struct value): Add opaque declaration.
4340         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4341
4342 2003-07-21  Andrew Cagney  <cagney@redhat.com>
4343
4344         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4345         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4346
4347 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
4348
4349         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4350         regcache_cooked_read_unsigned instead of read_register.
4351         (m68hc11_saved_pc_after_call): Likewise.
4352         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4353         instead of write_register.
4354         (m68hc11_register_type): New function.
4355         (m68hc11_register_virtual_type): Remove.
4356         (m68hc11_store_return_value): Convert to use the regcache.
4357         (m68hc11_extract_struct_value_address): Likewise.
4358         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4359         m68hc11_register_type; undeprecate store_return_value and
4360         extract_struct_value_address.
4361
4362 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
4363
4364         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4365         and translate to use regcache.
4366         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4367
4368 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4369
4370         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4371         * gdbarch.h, gdbarch.c: Re-generate.
4372         * i386-tdep.c (i386_gdbarch_init): Do not set
4373         DWARF2_BUILD_FRAME_INFO.
4374         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4375         unconditionally.
4376         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4377         DWARF2_BUILD_FRAME_INFO.
4378
4379 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4380
4381         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4382         * disasm.c (gdb_disassemble_info): Initilize di.arch.
4383
4384 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4385
4386         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4387         frame_unwind_address_in_block, instead of frame_pc_unwind.
4388         (dwarf2_frame_cache): Ditto.
4389
4390 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4391
4392         * user-regs.h (struct gdbarch): Declare opaque.
4393         * ui-out.h (struct ui_file): Declare opaque.
4394         * dwarf2-frame.h (struct frame_info): Declare opaque.
4395
4396 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
4397
4398         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
4399         #include "...".
4400         (procfs_meminfo): Change strerror to safe_strerror.
4401         (procfs_can_run): Remove K&R badness.
4402
4403 2003-07-17  Michael Snyder  <msnyder@redhat.com>
4404
4405         * remote-sim.c: Comment typo fix.
4406
4407 2003-07-17  Andrew Cagney  <cagney@redhat.com>
4408
4409         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
4410         configure.
4411         * sparc-tdep.c (sparc_intreg_size): Make non-static.
4412         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4413         GDB_MULTI_ARCH_PARTIAL.
4414
4415 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
4416
4417         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4418         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
4419         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4420
4421 2003-07-16  Theodore A. Roth  <troth@openavr.org>
4422
4423         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4424         found.
4425         (avr_frame_unwind_cache): Don't unwind FP for main.
4426         Update a comment.
4427         Save the computed prev_sp.
4428         (avr_saved_regs_unwinder): Remove function.
4429         (avr_frame_prev_register): Use PC unwind logic from
4430         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4431
4432 2003-07-16  Andrew Cagney  <cagney@redhat.com>
4433
4434         * frame-base.h (frame_base_p_ftype): Delete definition.
4435         (frame_base_append_predicate): Delete declaration.
4436         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4437         (frame_unwind_append_predicate): Delete declaration.
4438         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4439         (append_predicate): Delete parameter "p".
4440         (frame_unwind_append_predicate): Delete function.
4441         (frame_unwind_append_sniffer): Update call to append_predicate.
4442         (frame_unwind_free): Delete function.
4443         (_initialize_frame_unwind): Pass NULL as "free" to
4444         register_gdbarch_data.
4445         (frame_unwind_init): Append the dummy_frame_sniffer.
4446         (frame_unwind_find_by_frame): Simplify.
4447         * frame-base.c (struct frame_base_table): Delete field "p".
4448         (append_predicate): Delete parameter "p".
4449         (frame_base_append_predicate): Delete function.
4450         (frame_base_append_sniffer): Update call to append_predicate.
4451         (frame_base_free): Delete function.
4452         (frame_base_find_by_frame): Simplify.
4453         (_initialize_frame_base): Pass NULL as "free" to
4454         register_gdbarch_data.
4455         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4456         (x86_64_sigtramp_frame_sniffer): Replace
4457         "x86_64_sigtramp_frame_p".
4458         (x86_64_init_abi): Set the frame unwind sniffers.
4459         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4460         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4461         (m68k_gdbarch_init): Set the frame unwind sniffers.
4462         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4463         "i386_sigtramp_frame_p".
4464         (i386_frame_sniffer): Replace "i386_frame_p".
4465         (i386_gdbarch_init): Set the frame unwind sniffers.
4466         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4467         (avr_gdbarch_init): Set the frame unwind sniffers.
4468         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4469         "alpha_sigtramp_frame_p"
4470         (alpha_heuristic_frame_sniffer): Replace
4471         "alpha_heuristic_frame_p".
4472         (alpha_gdbarch_init): Set the frame unwind sniffers.
4473         (alpha_dwarf2_init_abi): Ditto.
4474         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4475         "alpha_debug_frame_p".
4476         (alpha_mdebug_frame_base_sniffer): Replace
4477         "alpha_mdebug_frame_base_p".
4478         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4479         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4480         (d10v_gdbarch_init): Set the frame unwind sniffer.
4481         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4482         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4483         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4484         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4485         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4486         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4487
4488 2003-07-16  Michael Snyder  <msnyder@redhat.com>
4489
4490         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4491         should go thru sh_dsp_register_sim_regno, else the dsp regs
4492         will not get the right values.
4493
4494 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
4495
4496         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4497         deprecated_store_floating by call to store_typed_floating.
4498         (sh_sh4_register_convert_to_raw): Substitute call to
4499         deprecated_extract_floating by call to extract_typed_floating.
4500
4501 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
4502
4503         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4504
4505 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
4506
4507         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4508         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4509         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
4510         as possible.
4511         (do_pseudo_register): Remove.
4512         (sh_push_dummy_code): New function.
4513         (sh64_store_struct_return): Rename from sh_store_struct_return.
4514         Only called for sh64 now.
4515         (sh_extract_struct_value_address): Regcache'ify.
4516         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
4517         and accomodate new tasks.
4518         (sh64_push_return_address): Rename from sh_push_return_address.
4519         Only called for sh64 now.
4520         (sh_default_extract_return_value): Rename from sh_extract_return_value.
4521         Regcache'ify.
4522         (sh3e_sh4_extract_return_value): Regcache'ify.
4523         (sh_default_store_return_value): Ditto.
4524         (sh3e_sh4_store_return_value): Ditto.
4525         (sh_default_register_byte): Remove.
4526         (sh_sh4_register_byte): Remove.
4527         (sh_default_register_raw_size): Remove.
4528         (sh_sh4_register_raw_size): Remove.
4529         (sh_register_virtual_size): Remove.
4530         (sh_sh3e_register_virtual_type): Remove.
4531         (sh_sh3e_register_type): New function.
4532         (sh_sh4_register_virtual_type): Remove.
4533         (sh_sh4_register_type): New function.
4534         (sh_default_register_virtual_type): Remove.
4535         (sh_default_register_type): New function.
4536         (do_fv_register_info): Add parameters to accomodate call from
4537         sh_print_registers_info.
4538         (do_dr_register_info): Ditto.
4539         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4540         Add parameters to accomodate call from sh_print_registers_info.
4541         (sh_do_fp_register): Ditto.
4542         (sh64_do_pseudo_register): Call do_dr_register_info,
4543         do_fv_register_info and sh_do_fp_register with default parameters.
4544         (sh_do_register): Add parameters to accomodate call from
4545         sh_print_registers_info.
4546         (sh_print_register): Ditto.
4547         (sh_print_registers_info): Rename from sh_do_registers_info.
4548         Add parameters to be used as gdbarch_print_registers_info
4549         implementation.  Accomodate removed do_pseudo_register function
4550         pointer.
4551         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4552         function pointer. Call sh_print_register with default parameters.
4553         (sh64_do_registers_info): Call sh_print_registers_info instead of
4554         sh_do_registers_info.
4555         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4556         detection of deprecated vs. non-deprecated functionality.
4557         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
4558         function pointer assignments by direct function calls.
4559
4560 2003-07-15  Andrew Cagney  <cagney@redhat.com>
4561
4562         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4563         (frame_register_unwind, create_new_frame): Ditto.
4564         (legacy_get_prev_frame, get_frame_type): Ditto.
4565         (get_frame_base_address): Use frame_base_find_by_frame.
4566         (get_frame_locals_address): Use frame_base_find_by_frame.
4567         (get_frame_args_address): Use frame_base_find_by_frame.
4568         * frame-base.h (frame_base_sniffer_ftype): Declare.
4569         (frame_base_append_sniffer): Declare.
4570         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4571         * frame-base.c (append_predicate): Add a "sniffer" parameter.
4572         (frame_base_append_sniffer): New function.
4573         (frame_base_append_predicate): Add a NULL sniffer.
4574         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4575         (struct frame_base_table): Add "sniffer".
4576         (frame_base_free): Free the "sniffer" table.
4577         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4578         (frame_unwind_append_sniffer): Declare.
4579         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4580         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4581         (struct frame_unwind_table): Add "sniffer", delete "middle".
4582         (append_predicate): Add "sniffer" parameter, append the sniffer.
4583         (frame_unwind_init): Update append_predicate call.
4584         (frame_unwind_append_sniffer): New function.
4585         (frame_unwind_append_predicate): Update append_predicate call.
4586         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4587
4588 2003-07-15  Andrew Cagney  <cagney@redhat.com>
4589
4590         * frame.c (get_prev_frame): Move disabled inside_entry_func to
4591         before code inhibiting repeated unwind attempts.  Add to
4592         commentary on that test's problems.
4593         * blockframe.c (inside_main_func): Look for "main" in the minimal
4594         symbol table.
4595         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4596         identical.
4597
4598 2003-07-15  Andrew Cagney  <cagney@redhat.com>
4599
4600         * complaints.c (struct explanation): Define.
4601         (struct complaints): Change type of "explanation" to "struct
4602         explanation".
4603         (symfile_explanations): Convert to a "struct explanation" table.
4604         (vcomplaint): Update.
4605
4606 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
4607
4608         * x86-64-linux-nat.c (regmap): Removed.
4609         (supply_gregset, fill_gregset): Call
4610         x86_64_linux_(fill,supply)_gregset functions.
4611         * x86-64-linux-tdep.c (USER_*): New defines.
4612         (user_to_gdb_regmap, x86_64_core_fns): New structure.
4613         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4614         New functions.
4615         (fetch_core_registers): Ditto.
4616         (_initialize_x86_64_linux_tdep): Call add_core_fns().
4617         * x86-64-linux-tdep.h: New file.
4618         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4619         and core-regset.o.
4620         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4621
4622 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
4623
4624         * x86-64-tdep.c (x86_64_store_return_value): Use
4625         regcache_cooked_write_part instead of regcache_cooked_write.
4626
4627         * configure.host: Add x86_64-*-freebsd*.
4628         * configure.tgt: Add x86_64-*-freebsd*.
4629         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4630         * amd64fbsd-nat.c: New file.
4631         * amd64fbsd-tdep.c: New file.
4632         * config/i386/nm-fbsd64.h: New file.
4633         * config/i386/fbsd64.mh: New file.
4634         * config/i386/fbsd64.mt: New file.
4635
4636 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
4637
4638         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4639         `sc_regs_offset' and `sc_fpregs_offset'.
4640         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4641         SIGFRAME_FPREGSAVE_OFF): Remove defines.
4642         (alpha_sigtramp_register_address): Rewrite to use new members of
4643         `struct gdbarch_tdep'.
4644         (alpha_gdbarch_init): Initialize new members of struct
4645         gdbarch_tdep'.
4646         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4647         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4648         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4649         (alphafbsd_pc_in_sigtramp): Implement.
4650         (alphafbsd_sigtramp_offset): New function.
4651         (alphafbsd_sigcontext_addr): New function.
4652         (alphafbsd_init_abi): Initialize signal trampoline related members
4653         of `struct gdbarch_tdep'.
4654         (_initialize_alphafbsd_tdep): Add prototype.
4655
4656 2003-07-11  Theodore A. Roth  <troth@openavr.org>
4657
4658         * Makefile.in (install-only): Quote sed expression when generating
4659         transformed_name.
4660
4661 2003-07-11  Richard Henderson  <rth@redhat.com>
4662
4663         * Makefile.in (dwarf2-frame.o): Add complaints_h.
4664         * dwarf2-frame.c: Include complaints.h.
4665         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4666         variable initialization; return NULL on error.
4667         (decode_frame_entry): New.
4668
4669 2003-07-11  Andrew Cagney  <cagney@redhat.com>
4670
4671         * frame.h (frame_address_in_block): Delete declaration.
4672         * blockframe.c (frame_address_in_block): Delete function.
4673         (get_frame_block): Use get_frame_address_in_block.
4674         (block_innermost_frame): Ditto.
4675         * stack.c (print_frame, backtrace_command_1): Ditto.
4676
4677         * frame.h (get_frame_address_in_block): Declare.
4678         (frame_unwind_address_in_block): Declare.
4679         * frame.c (frame_unwind_address_in_block): New function.
4680         (get_frame_address_in_block): New function.
4681
4682 2003-07-10  Andrew Cagney  <cagney@redhat.com>
4683
4684         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
4685         pre-default.   Note: re-generate has no effect.
4686
4687 2003-07-10  Andrew Cagney  <cagney@redhat.com>
4688
4689         * gdbarch.sh: When a variable, but not a function, compare against
4690         0.  Fix problem in previous patch.
4691         * gdbarch.c: Re-generate.
4692
4693 2003-07-10  Andrew Cagney  <cagney@redhat.com>
4694
4695         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
4696         functions against NULL, not 0.
4697         * gdbarch.c: Re-generate.
4698
4699 2003-07-10  Fred Fish  <fnf@ninemoons.com>
4700
4701         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4702         null string instead of a null pointer.
4703         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4704
4705 2003-07-09  Michael Snyder  <msnyder@redhat.com>
4706
4707         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4708
4709 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
4710
4711         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4712         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4713         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4714         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4715         * x86-64-tdep.c: ... from here.
4716
4717 2003-07-09  Andreas Schwab  <schwab@suse.de>
4718
4719         * m68k-tdep.h (enum struct_return): Define.
4720         (struct gdbarch_tdep): Add struct_return.
4721         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4722         bytes are padded to the right, not to the left.  Pass struct value
4723         address in register %a1, not on stack.
4724         (m68k_use_struct_convention): New function.
4725         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
4726         struct_return in tdep to pcc_struct_return.
4727         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4728         reg_struct_return.
4729
4730 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
4731
4732         * somread.c (som_symfile_offsets): Fix compilation error.
4733
4734 2003-07-09  Andrew Cagney  <cagney@redhat.com>
4735
4736         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4737         Add comments about the checks.
4738
4739 2003-07-08  Andrew Cagney  <cagney@redhat.com>
4740
4741         * Makefile.in: Make dependency section headers consistent.
4742         (config_h): Move to $BUILD headers section.
4743         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4744         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4745         (ada-exp.tab.c): Move to YACC/LEX section.
4746         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4747         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4748
4749 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
4750
4751         * nto-procfs.c: Cleaned up a bunch of ARI hits.
4752         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4753         of strerror with safe_strerror, use ISO C function definitions,
4754         and replace instances of sprintf with snprintf.
4755
4756 2003-07-07  Andrew Cagney  <cagney@redhat.com>
4757
4758         * frame.c (get_prev_frame): Enable check for identical frames.
4759         Update comments.  Update error messages.
4760
4761 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4762
4763         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4764
4765 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4766
4767         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4768         sort_symtab_syms, no longer necessary.
4769
4770 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4771
4772         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4773
4774 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4775
4776         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4777         (mips_register_byte): Likewise.
4778
4779 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
4780
4781         * Makefile.in (sparc_tdep_h): New.
4782         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4783         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4784         * sparc-linux-nat.c: Include "sparc-tdep.h".
4785         * sparc-nat.c: Likewise.
4786         * sparc-tdep.c: Likewise.
4787         * sparc64nbsd-nat.c: Likewise.
4788         * sparcnbsd-nat.c: Likewise.
4789         * sparcnbsd-tdep.c: Likewise.
4790         * sparc-tdep.h: New file.
4791         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4792         and sparc_npc_regnum.
4793
4794 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
4795
4796         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4797         (mips_linux_cannot_store_register): List supported instead of
4798         unsupported registers.
4799
4800 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
4801
4802         * disasm.c (dump_insns): Separate instructions from addresses.
4803
4804 2003-07-07  Andreas Schwab  <schwab@suse.de>
4805
4806         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4807         dependencies.
4808         * m68k-tdep.c (NUM_FREGS): Delete.
4809         (SIG_PC_FP_OFFSET): Delete.
4810         (TARGET_M68K): Delete.
4811         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4812         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4813         P_MOVEL_SP, P_MOVEML_SP): Define.
4814         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4815         P_TRAP): Delete.
4816         (m68k_register_raw_size): Delete.
4817         (m68k_register_virtual_size): Delete.
4818         (m68k_register_type): Renamed from m68k_register_virtual_type and
4819         add gdbarch argument.
4820         (m68k_store_struct_return): Delete.
4821         (m68k_deprecated_extract_return_value): Delete.
4822         (m68k_deprecated_extract_struct_value_address): Delete.
4823         (m68k_frame_chain): Delete.
4824         (m68k_frame_saved_pc): Delete.
4825         (m68k_fix_call_dummy): Delete.
4826         (m68k_push_dummy_frame): Delete.
4827         (m68k_pop_frame): Delete.
4828         (m68k_extract_return_value): New function.
4829         (m68k_store_return_value): Rewrite using regcache.
4830         (m68k_extract_struct_value_address): Rewrite using regcache.
4831         (m68k_push_dummy_call): New function.
4832         (struct m68k_frame_cache): Define.
4833         (m68k_alloc_frame_cache): New function.
4834         (m68k_analyze_frame_setup): New function.
4835         (m68k_analyze_register_saves): New function.
4836         (m68k_analyze_prologue): New function.
4837         (m68k_skip_prologue): Rewrite using above functions.
4838         (m68k_unwind_pc): New function.
4839         (m68k_frame_cache): New function.
4840         (m68k_frame_this_id): New function.
4841         (m68k_frame_prev_register): New function.
4842         (m68k_frame_unwind): New variable.
4843         (m68k_frame_p): New function.
4844         (m68k_sigtramp_frame_cache): New function.
4845         (m68k_sigtramp_frame_this_id): New function.
4846         (m68k_sigtramp_frame_prev_register): New function.
4847         (m68k_sigtramp_frame_unwind): New variable.
4848         (m68k_sigtramp_frame_p): New function.
4849         (m68k_frame_base_address): New function.
4850         (m68k_frame_base): New function.
4851         (m68k_unwind_dummy_id): New function.
4852         (fill_gregset): Use regcache_collect.
4853         (fill_fpregset): Likewise.
4854         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4855         defined.
4856         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
4857         deprecated_init_frame_pc, deprecated_store_struct_return,
4858         deprecated_extract_return_value, deprecated_store_return_value,
4859         deprecated_frame_chain, deprecated_frame_saved_pc,
4860         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4861         deprecated_register_virtual_size,
4862         deprecated_max_register_raw_size,
4863         deprecated_max_register_virtual_size,
4864         deprecated_register_virtual_type, deprecated_register_size,
4865         deprecated_register_byte, deprecated_register_bytes,
4866         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4867         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4868         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4869         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4870         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4871         deprecated_push_dummy_frame, deprecated_pop_frame,
4872         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
4873         only if SYSCALL_TRAP is defined.  Set extract_return_value,
4874         store_return_value, extract_struct_value_address, register_type,
4875         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
4876         predicates.
4877         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4878         M68K_MAX_REGISTER_SIZE): Define.
4879         (struct m68k_sigtramp_info): Define.
4880         (struct gdbarch_tdep): Add get_sigtramp_info.
4881         * m68klinux-nat.c (fetch_register): Use register_size instead of
4882         REGISTER_RAW_SIZE.  Don't put assignment in if.
4883         (store_register): Likewise.
4884         (fetch_inferior_registers): Likewise.
4885         (store_inferior_registers): Likewise.
4886         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4887         (m68k_linux_frame_saved_pc): Delete.
4888         (m68k_linux_sigcontext_reg_offset,
4889         m68k_linux_ucontext_reg_offset): Define.
4890         (m68k_linux_get_sigtramp_info): New function.
4891         (m68k_linux_extract_return_value): Rewrite using regcache.
4892         (m68k_linux_store_return_value): Likewise.
4893         (m68k_linux_extract_struct_value_address): Likewise.
4894         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4895         Don't set deprecated_frame_saved_pc,
4896         deprecated_extract_return_value, deprecated_store_return_value,
4897         deprecated_extract_struct_value_address.  Set
4898         extract_return_value, store_return_value,
4899         extract_struct_value_address.
4900
4901 2003-07-07  Andrew Cagney  <cagney@redhat.com>
4902
4903         * expprint.c: Include "user-regs.h" instead of "frame.h".
4904         (print_subexp): Use user_reg_map_regnum_to_name, instead of
4905         frame_map_regnum_to_name.
4906         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4907         (frame_map_name_to_regnum): Simplify, call
4908         user_reg_map_name_to_regnum.
4909         (frame_map_regnum_to_name): Simplify, call
4910         user_reg_map_regnum_to_name.
4911         (frame_register_unwind): Update.
4912         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4913         (_initialize_frame_reg): Call user_reg_add_builtin.
4914         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4915         (value_of_register): Use value_of_user_reg.
4916         * eval.c (evaluate_subexp_standard): Update.
4917         * parse.c (write_dollar_variable): Update.
4918         * d10v-tdep.c (d10v_print_registers_info): Update.
4919         * infcmd.c (registers_info): Update.
4920         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4921         (builtin_regs_h): Delete macro.
4922         (user_regs_h): Define.
4923         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4924         (builtin-regs.o): Delete target.
4925         (user-regs.o): Specify dependencies.
4926         (expprint.o): Update dependencies.
4927         (findvar.o): Update dependencies.
4928         (frame.o): Update dependencies.
4929         (std-regs.o): Update dependencies.
4930
4931 2003-07-06  Christopher Faylor  <cgf@redhat.com>
4932
4933         * win32-nat.c (solib_symbols_add): Use one variable for all section
4934         address stuff.  Pass variable rather than address of variable to
4935         safe_symbol_file_add.
4936
4937 2003-07-06  Andreas Schwab  <schwab@suse.de>
4938
4939         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4940
4941 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
4942
4943         * rs6000-nat.c (vmap_symtab): Fix compilation error.
4944
4945 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
4946
4947         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4948
4949 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
4950
4951         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
4952         * config/i386/nto.mh: New file.
4953         * config/i386/nm-nto.h: New file.
4954         * configure.host: Add i[3456]86-*-nto*.
4955
4956 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
4957
4958         * remote-vx.c (vx_add_symbols): Fix compilation error.
4959
4960 2003-07-03  Andrew Cagney  <cagney@redhat.com>
4961
4962         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4963         * gdbarch.h, gdbarch.c: Re-generate.
4964         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4965         (legacy_register_name): Declare.
4966         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4967         (REGISTER_NAME): Define.
4968         * sparc-tdep.c (legacy_register_name): New function.
4969         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4970         (REGISTER_NAME): Define.
4971         (hppa64_register_name): Declare.
4972         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4973         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4974         (hppa64_register_name): New function.
4975         (hppa_register_name): New function.
4976         * arch-utils.c (legacy_register_name): Delete.
4977         * arch-utils.h (legacy_register_name): Delete.
4978
4979 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
4980
4981         * cli/cli-interp.c (cli_interpreter_resume): Update the
4982         cli_uiout's stream to gdb_stdout.
4983
4984 2003-07-03  Andrew Cagney  <cagney@redhat.com>
4985
4986         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4987         predicate.
4988         * gdbarch.h, gdbarch.c: Re-generate.
4989         * regcache.c (init_regcache_descr): Use legacy code when either
4990         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4991
4992 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
4993
4994         * NEWS: Move "set logging" entry into GDB 6.0 section.
4995
4996 2003-07-02  Jim Blandy  <jimb@redhat.com>
4997
4998         * s390-tdep.c (struct frame_extra_info): new member:
4999         'stack_bought_valid'.
5000         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5001         initialize fextra_info->stack_bought.
5002         (s390_frameless_function_invocation): Don't trust the value of
5003         fextra_info_ptr->stack_bought unless
5004         fextra_info->stack_bought_valid is set.
5005
5006         New S390 prologue analyzer.
5007         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5008         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5009         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5010         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5011         compute_x_addr, s390_on_stack, s390_store,
5012         s390_get_signal_frame_info): New functions.
5013         (S390_NUM_SPILL_SLOTS): New macro.
5014         (s390_get_frame_info): Rewritten.
5015         (is_arg_reg): Deleted.
5016
5017         Break out the decoding of S/390 instructions into separate
5018         functions, to make it more legible, and easier to check
5019         against the spec.
5020         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5021         is_rx, is_rxe): New functions.
5022         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5023         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5024         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5025         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5026         enums for opcode values.  (Is this an improvement?)
5027
5028 2003-07-02  Andrew Cagney  <cagney@redhat.com>
5029
5030         * i386-tdep.c: Revert change committed as part of trad-frame code
5031         below.
5032
5033 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
5034
5035         * breakpoint.c (insert_catchpoint): Make static.
5036
5037 2003-07-02  Andreas Schwab  <schwab@suse.de>
5038
5039         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5040         former ia64_push_arguments and ia64_push_return_address, and use
5041         regcache functions instead of read/write_register.
5042         (ia64_gdbarch_init): Set push_dummy_call instead of
5043         deprecated_push_arguments and deprecated_push_return_address.
5044
5045 2003-07-01  Andreas Jaeger  <aj@suse.de>
5046
5047         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5048         before the call.
5049         Set %rax only to number of SSE registers used.
5050
5051 2003-07-01  Andrew Cagney  <cagney@redhat.com>
5052
5053         * trad-frame.h: Update comments, a -1 .addr is reserved.
5054         (trad_frame_value_p, trad_frame_addr_p): Declare.
5055         (trad_frame_reg_p): Declare.
5056         (trad_frame_set_value): Rename trad_frame_register_value.
5057         (trad_frame_set_unknown): Declare.
5058         * trad-frame.c (trad_frame_realreg_p): New function.
5059         (trad_frame_addr_p, trad_frame_value_p): New function.
5060         (trad_frame_set_unknown): New function.
5061         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5062         (trad_frame_prev_register): Use trad_frame_realreg_p,
5063         trad_frame_addr_p and trad_frame_value_p.
5064         (trad_frame_set_value): Rename trad_frame_register_value.
5065         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5066         and trad_frame_set_value.
5067
5068 2003-06-30  Jim Blandy  <jimb@redhat.com>
5069
5070         Patch from IBM (authors unspecified, probably Ulrich Weigand and
5071         Gerhard Tonn) for argument passing on the S/390 and S/390x:
5072         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5073         for 16 registers, and then 32 more bytes.
5074         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5075         New macros.
5076         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5077         Move up in the file, since it's now used by is_simple_arg.
5078         (is_simple_arg): Don't assume registers are four bytes long.
5079         Exclude all double arguments.  Extended floats are not simple
5080         args.
5081         (is_power_of_two): New function.
5082         (pass_by_copy_ref): Call is_power_of_two, and check that the
5083         length fits in a register, rather than listing all the acceptable
5084         sizes.  Extended floats are not passed by reference.
5085         (s390_push_arguments): Don't assume registers are four bytes long.
5086         Reserve an argument register to point to the buffer for structures
5087         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
5088         S390_STACK_FRAME_OVERHEAD.
5089
5090 2003-06-30  Andreas Schwab  <schwab@suse.de>
5091
5092         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5093         format error message.
5094
5095 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
5096
5097         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5098
5099 2003-06-30  David Carlton  <carlton@kealia.com>
5100
5101         Band-aid for PR c++/1245.
5102         * Makefile.in (cp-support.o): Depend on complaints_h.
5103         * cp-support.c: Include complaints.h.  Add declaration for
5104         find_last_component.
5105         (cp_find_first_component): Separate code into
5106         cp_find_first_component_aux.
5107         (cp_find_first_component_aux): Call demangled_name_complaint.
5108         (demangled_name_complaint): New.
5109
5110 2003-06-30  Andrew Cagney  <cagney@redhat.com>
5111
5112         * remote.c (remote_write_bytes): Explicitly compute and then use
5113         the payload size.  Update comments to reflect.  Fixes problem of
5114         GDB not sending small packets as found by Fred Fish.
5115
5116 2003-06-30  Andrew Cagney  <cagney@redhat.com>
5117
5118         * remote.c (remote_async_wait): Fix -Wformat problem.
5119
5120 2003-06-29  Andrew Cagney  <cagney@redhat.com>
5121
5122         * remote.c (remote_wait): Call error, and not warning, when the
5123         packet is corrupt.
5124         (remote_async_wait): Ditto.
5125
5126 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
5127
5128         * sparc-tdep.c (sparc_y_regnum): Make external again.
5129
5130 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
5131
5132         * cli/cli-logging.c (pop_output_files): Add void to function
5133         definition.
5134
5135 2003-06-29  Andrew Cagney  <cagney@redhat.com>
5136
5137         * frame.c (frame_register_unwind): Use unsigned char when dumping
5138         the buffer contents.
5139
5140 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
5141
5142         * cli/cli-logging.c: New file.
5143         * cli-out.c (struct ui_out_data): Add original_stream.
5144         (cli_redirect): New function.
5145         (cli_ui_out_impl): Add cli_redirect.
5146         (cli_out_new): Initialize original_stream.
5147         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5148         (uo_redirect, ui_out_redirect): New.
5149         * ui-out.h (struct ui_out_impl): Add redirect member.
5150         (redirect_ftype): New.
5151         (ui_out_redirect): Add prototype.
5152         * Makefile.in: Add rules for cli-logging.c.
5153         * NEWS: Mention "set logging".
5154
5155 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5156
5157         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5158
5159 2003-06-27  Andrew Cagney  <cagney@redhat.com>
5160
5161         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5162         (m68hc11_gdbarch_init): Do not set call_dummy_address.
5163         * avr-tdep.c (avr_call_dummy_address): Delete function.
5164         (avr_gdbarch_init): Do not set call_dummy_address.
5165
5166 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5167
5168         * symfile.c (syms_from_objfile): Move variables to inner block.
5169         Move the checks for the non-mainline case a bit earlier to avoid
5170         doing some useless computations.
5171
5172 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5173
5174         * dwarfread.c (decode_modified_type): Gag new compiler warning.
5175
5176 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
5177
5178         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5179         sections.
5180
5181 2003-06-26  Michael Chastain  <mec@shout.net>
5182
5183         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5184         gdb/testsuite/gdb.c++/pr-1210.exp.
5185
5186 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5187
5188         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5189         altivec_expression.h and altivec_registers.h.
5190
5191 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5192
5193         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5194         info->mach when MIPS16.  Patch suggested by Fred Fish.
5195
5196 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5197
5198         * utils.c (internal_vproblem): Print the problem to a reason
5199         buffer and then pass to query.  Make the msg variable more local.
5200
5201 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5202
5203         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
5204         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
5205         * gdbarch.h, gdbarch.c: Re-generate.
5206         * frame-base.c (default_frame_args_address): Update.  Use
5207         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5208         not available.
5209         (default_frame_locals_address): Ditto for
5210         DEPRECATED_FRAME_LOCALS_ADDRESS.
5211         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5212         (vax_frame_num_args): Update.
5213         (vax_gdbarch_init): Update.
5214         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5215         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5216         * mcore-tdep.c (mcore_gdbarch_init): Update.
5217         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5218         * ia64-tdep.c (ia64_gdbarch_init): Update.
5219         * symtab.h (address_class): Update comments.
5220         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5221         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5222         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5223         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5224         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5225         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5226         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5227         * alpha-mdebug-tdep.c: Update.
5228         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5229
5230 2003-06-26  Andreas Jaeger  <aj@suse.de>
5231
5232         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5233         of SSE registers so that varargs functions work.  Rework handling
5234         of passing arguments on the stack.
5235         (x86_64_store_return_value): Return double and float values in SSE
5236         register.
5237
5238 2003-06-24  Michael Chastain  <mec@shout.net>
5239
5240         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5241         the "constructor breakpoints ignored" bug.
5242
5243 2003-06-25  David Carlton  <carlton@kealia.com>
5244
5245         * MAINTAINERS: Update e-mail address.
5246
5247 2003-06-24  Jim Blandy  <jimb@redhat.com>
5248
5249         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5250
5251         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5252         function.
5253         (ppc_linux_init_abi): Register it as the
5254         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5255
5256         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5257         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5258         method.
5259
5260         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5261         (ppc64_standard_linkage_target): Use it.
5262
5263 2003-06-23  Andrew Cagney  <cagney@redhat.com>
5264
5265         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5266         for 0 "int0" and 4 "int32" sized registers.
5267         * gdbtypes.c (builtin_type_int0): Define.
5268         (build_gdbtypes): Initialize builtin_type_int0.
5269         * gdbtypes.h (builtin_type_int0): Declare.
5270
5271 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
5272
5273         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5274         as characters are unsigned.
5275
5276 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5277
5278         PR gdb/1179
5279         * dwarfread.c (struct_type): Skip static fields without crashing.
5280
5281 2003-06-22  Andrew Cagney  <cagney@redhat.com>
5282
5283         GDB 6.0 branch created.
5284         * README: Update.
5285         * PROBLEMS: Update.  Empty.
5286         * NEWS: Update.
5287
5288 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5289
5290         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5291         Suggested by Nick Hibma <n_hibma@webweaving.org>.
5292
5293 2003-06-22  Andrew Cagney  <cagney@redhat.com>
5294
5295         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5296         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
5297         Velikov.
5298
5299 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5300
5301         * cli/cli-cmds.c (shell_escape): Silence warnings from old
5302         compilers.
5303
5304 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
5305
5306         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5307         argument of val_print.
5308         * cp-valprint.c (cp_print_value): Don't add the offset parameter
5309         to the address argument of baseclass_offset or target_read_memory.
5310         Do add it to the argument of cp_print_value_fields.
5311
5312 2003-06-21  Andrew Cagney  <cagney@redhat.com>
5313
5314         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5315         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5316         instead of 0..NUM_REGS.
5317         (mips_register_reggroup_p): New function.
5318         (mips_pseudo_register_write): New function.
5319         (mips_pseudo_register_read): New function.
5320         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5321         based on the register's type.
5322         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
5323         cooked.
5324         (mips_get_saved_register): Simplify.  Assert that REGNO is a
5325         pseudo / cooked.
5326         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
5327         (mips_register_type): Replace mips_register_virtual_type.  Map
5328         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
5329         when available.
5330         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
5331         that the register is cooked / virtual.
5332         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5333         Only get the extra info when needed.
5334         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5335         (mips32_heuristic_proc_desc): Fetch the cooked register.
5336         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5337         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5338         (mips_print_register): Use gdbarch_register_type, instead of
5339         REGISTER_VIRTUAL_TYPE.
5340         (print_gp_register_row): Use gdbarch_register_type, instead of
5341         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
5342         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5343         Print the pseudo / cooked registers.
5344         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5345         Print the pseudo / cooked registers.
5346         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
5347         REG_NUM is pseudo / cooked.
5348         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5349         (mips_n32n64_xfer_return_value): Ditto.
5350         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5351         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5352         (mips_register_sim_regno): New function.
5353         (mips_gdbarch_init): Set deprecated_register_byte,
5354         register_group_p, pseudo_register_write, pseudo_register_read,
5355         register_sim_regno, and num_pseudo_regs.  Set register_type,
5356         instead of register_virtual_type.
5357         * Makefile.in (mips-tdep.o): Update dependencies.
5358         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5359         REGISTER_VIRTUAL_TYPE.
5360         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5361         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5362         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5363         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5364         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5365
5366 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
5367
5368         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5369         * cli/cli-cmds.c: Include "gdb_vfork.h".
5370         (shell_escape): Use vfork.
5371
5372 2003-06-21  Andrew Cagney  <cagney@redhat.com>
5373
5374         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5375         32 bit floating-point register saves.
5376
5377         * frame.h (deprecated_unwind_get_saved_register): Delete.
5378         * frame.c (deprecated_unwind_get_saved_register): Delete function.
5379         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5380         and deprecated_get_next_frame_hack instead of
5381         deprecated_unwind_get_saved_register.
5382
5383         * mips-tdep.c (mips_dump_tdep): Do not print
5384         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5385
5386         * frame.c (get_frame_register): New function.
5387         (frame_unwind_register_signed): New function.
5388         (get_frame_register_signed): New function.
5389         (frame_unwind_register_unsigned): New function.
5390         (get_frame_register_unsigned): New function.
5391         * frame.h: Add comments on naming schema.
5392         (get_frame_register, frame_unwind_register_signed): Declare.
5393         (get_frame_register_signed, get_frame_register_signed): Declare.
5394         (frame_unwind_register_unsigned): Declare.
5395         (get_frame_register_unsigned): Declare.
5396
5397 2003-06-20  Theodore A. Roth  <troth@openavr.org>
5398
5399         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5400
5401 2003-06-20  Theodore A. Roth  <troth@openavr.org>
5402
5403         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5404         (avr_read_sp): Ditto.
5405
5406 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
5407
5408         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5409         * config/arm/nm-linux.h: Likewise.
5410         * config/arm/tm-linux.h: Likewise.
5411         * config/ia64/nm-linux.h: Likewise.
5412         * config/ia64/tm-ia64.h: Likewise.
5413         * config/s390/tm-linux.h: Likewise.
5414         * config/s390/tm-s390.h: Likewise.
5415         * s390-nat.c: Likewise.
5416         * s390-tdep.c: Likewise.
5417
5418         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5419         * config/ia64/linux.mt: Likewise.
5420         * config/m68k/linux.mh: Likewise.
5421         * config/mips/linux.mt: Likewise.
5422         * config/powerpc/linux.mh: Likewise.
5423         * config/sh/linux.mt: Likewise.
5424
5425 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
5426
5427         * solib.c (solib_open): Change tests for whether to search
5428         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
5429         comments.
5430
5431 2003-06-19  Theodore A. Roth  <troth@openavr.org>
5432
5433         * avr-tdep.c (avr_frame_address): Delete function.
5434         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5435         set_gdbarch_frame_args_address.
5436
5437 2003-06-19  Andrew Cagney  <cagney@redhat.com>
5438
5439         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5440         (REGISTER_CONVERT_FROM_TYPE): Delete.
5441         (mips_register_convert_to_type): Delete declaration.
5442         (mips_register_convert_from_type): Delete declaration.
5443         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
5444         kernel/.
5445
5446 2003-06-19  Michael Snyder  <msnyder@redhat.com>
5447
5448         * linux-nat.h: New file.
5449         * linux-nat.c: Include linux-nat.h.
5450         * lin-lwp.c: Include linux-nat.h.
5451         Move struct lwp_info def to linux-nat.h.
5452         * linux-proc.c: Include linux-nat.h.
5453         (linux_make_note_section): Iterate over lwps instead of threads.
5454         (linux_do_thread_registers): Use lwp instead of merged pid.
5455         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5456         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5457         Add dependency on linux_nat_h.
5458
5459 2003-06-19  Theodore A. Roth  <troth@openavr.org>
5460
5461         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5462
5463 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
5464
5465         * varobj.c (get_type, get_target_type): Use check_typedef.
5466
5467 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
5468
5469         * breakpoint.c (insert_catchpoint): Call internal_error.
5470
5471 2003-06-19  Theodore A. Roth  <troth@openavr.org>
5472
5473         * avr-tdep.c (avr_push_dummy_code): Delete function.
5474         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5475
5476 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
5477
5478         * arch-utils.c (default_prepare_to_proceed): Remove.
5479         (generic_prepare_to_proceed): Remove.
5480         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5481         (generic_prepare_to_proceed): Remove prototype.
5482         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5483         * gdbarch.c: Regenerate.
5484         * gdbarch.h: Regenerate.
5485         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5486         * hppah-nat.c (hppa_switched_threads): Remove.
5487         * infrun.c (prepare_to_proceed): New static function, copied from
5488         generic_prepare_to_proceed.  Remove select_it argument.
5489         (proceed): Call prepare_to_proceed.
5490         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5491         variables.
5492         (ptrace_wait): Don't set the removed variables.
5493         (hppa_switched_threads): Remove.
5494         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5495         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5496         (lin_lwp_prepare_to_proceed): Remove prototype.
5497         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5498         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5499
5500 2003-06-18  Theodore A. Roth  <troth@openavr.org>
5501
5502         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5503         trad-frame.h.
5504         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5505         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5506         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5507         (AVR_PROLOGUE_*): Enumerate prologue types.
5508         (struct frame_extra_info): Remove.
5509         (struct avr_unwind_cache): Define.
5510         (avr_write_sp): Delete function.
5511         (avr_read_fp): Ditto.
5512         (avr_init_extra_frame_info): Ditto.
5513         (avr_pop_frame): Ditto.
5514         (avr_frame_saved_pc): Ditto.
5515         (avr_saved_pc_after_call): Ditto.
5516         (avr_push_return_address): Ditto.
5517         (avr_frame_chain): Ditto.
5518         (avr_store_struct_return): Ditto.
5519         (avr_push_arguments): Ditto.
5520         (avr_scan_prologue): Update comments. Changed to set up the info for
5521         cache unwinding. Now returns end of prologue PC.
5522         (avr_skip_prologue): Better handling of functions lacking a prologue
5523         by using avr_scan_prologue.
5524         (avr_scan_arg_moves): New function.
5525         (avr_saved_regs_unwinder): Ditto.
5526         (avr_frame_unwind_cache): Ditto.
5527         (avr_unwind_pc): Ditto.
5528         (avr_frame_this_id): Ditto.
5529         (avr_frame_prev_register): Ditto.
5530         (avr_frame_p): Ditto.
5531         (avr_frame_base_address ): Ditto.
5532         (avr_unwind_dummy_id): Ditto.
5533         (avr_push_dummy_code): Ditto.
5534         (push_stack_item): Ditto.
5535         (pop_stack_item): Ditto.
5536         (avr_push_dummy_call): Ditto.
5537         (struct stack_item): Define.
5538         (avr_frame_unwind): Declare structure.
5539         (avr_frame_base): Ditto.
5540         (avr_gdbarch_init): Remove calls to
5541         set_gdbarch_deprecated_init_frame_pc,
5542         set_gdbarch_deprecated_target_read_fp,
5543         set_gdbarch_deprecated_dummy_write_sp,
5544         set_gdbarch_deprecated_fp_regnum,
5545         set_gdbarch_deprecated_push_arguments,
5546         set_gdbarch_deprecated_push_return_address,
5547         set_gdbarch_deprecated_pop_frame,
5548         set_gdbarch_deprecated_store_struct_return,
5549         set_gdbarch_deprecated_frame_init_saved_regs,
5550         set_gdbarch_deprecated_init_extra_frame_info,
5551         set_gdbarch_deprecated_frame_chain,
5552         set_gdbarch_deprecated_frame_saved_pc,
5553         set_gdbarch_deprecated_saved_pc_after_call.
5554         Add calls to set_gdbarch_push_dummy_call,
5555         set_gdbarch_push_dummy_code,
5556         frame_unwind_append_predicate,
5557         frame_base_set_default,
5558         set_gdbarch_unwind_dummy_id,
5559         set_gdbarch_unwind_pc.
5560         Wrap a long line.
5561
5562 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
5563
5564         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5565         registers for H8/300S.
5566         (h8300_print_registers_info): Ditto.
5567         (h8300_gdbarch_init): Accommodate register count for H8/300S.
5568
5569 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
5570
5571         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5572         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5573         (lin_lwp_wait): Likewise.  Update comments.
5574         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5575         (pull_pid_from_list, linux_record_stopped_pid): New.
5576
5577 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
5578
5579         * ada-lang.c (scan_discrim_bound): Name first argument.
5580         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5581         declared by ALL_BLOCK_SYMBOLS.
5582
5583 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
5584
5585         * ada-tasks.c (find_function_in_inferior): Don't declare it.
5586         ("regcache.h"): Include it.
5587         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5588
5589 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
5590
5591         * NEWS: Mention gdbserver detach change and "disconnect" command.
5592         * infcmd.c (disconnect_command): New function.
5593         (_initialize_infcmd): Add ``disconnect'' command.
5594         * remote.c (remote_async_detach): Delete.
5595         (remote_detach): Merge remote_async_detach.
5596         (remote_disconnect): New.
5597         (init_remote_ops): Set to_disconnect.
5598         (init_remote_cisco_ops): Likewise.
5599         (init_remote_async_ops): Likewise.  Use remote_detach.
5600         * target.c (cleanup_target): Default to_disconnect.
5601         (update_current_target): Inherit to_disconnect.
5602         (target_disconnect, debug_to_disconnect): New functions.
5603         (setup_target_debug): Set to_disconnect.
5604         * target.h (struct target_ops): Add to_disconnect.
5605         (target_disconnect): Add prototype.
5606
5607 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
5608
5609         * breakpoint.c (insert_catchpoint): New function.
5610         (insert_breakpoints): Use catch_exceptions to call
5611         insert_catchpoint.  Disable catchpoints if they fail to insert.
5612
5613 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
5614
5615         * symfile.c (reread_symbols): Clear sym_private.
5616
5617 2003-06-17  Andrew Cagney  <cagney@redhat.com>
5618
5619         * trad-frame.h (struct frame_info): Add opaque declaration.
5620         * remote-fileio.h (struct cmd_list_element): Add opaque
5621         declaration.
5622         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5623         comments.
5624
5625 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
5626
5627         * remote.c (remote_prepare_to_store): Replace call to
5628         deprecated_read_register_bytes with multiple regcache_raw_read
5629         calls.
5630
5631 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
5632
5633         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5634         (nto_find_and_open_solib): Likewise.
5635         (nto_init_solib_absolute_prefix): Likewise.
5636         (_initialize_nto_tdep): Fix indentation.
5637
5638 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
5639
5640         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5641
5642 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
5643
5644         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5645
5646 2003-06-17  Jim Blandy  <jimb@redhat.com>
5647
5648         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5649
5650 2003-06-16  Theodore A. Roth  <troth@openavr.org>
5651
5652         * avr-tdep.c (avr_extract_return_value): New function.
5653         (avr_gdbarch_init): Set extract_return_value method.
5654
5655 2003-06-16  Andrew Cagney  <cagney@redhat.com>
5656
5657         * frame.h (deprecated_get_next_frame_hack): Declare.
5658         * frame.c (legacy_saved_regs_prev_register): Only require
5659         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
5660         there are always saved regs.
5661         (deprecated_generic_get_saved_register): Do not require
5662         DEPRECATED_FRAME_INIT_SAVED_REGS.
5663         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5664         use frame ID unwind instead.
5665         (deprecated_get_next_frame_hack): New function.
5666
5667 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
5668
5669         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
5670         (h8300_push_dummy_call): ...this function.  Some minor optimization.
5671         (h8300_push_return_address): Remove.
5672         (h8300_gdbarch_init): Remove calls to
5673         set_gdbarch_deprecated_dummy_write_sp,
5674         set_gdbarch_deprecated_push_arguments and
5675         set_gdbarch_deprecated_push_return_address.
5676         Add call to set_gdbarch_push_dummy_call.
5677
5678 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
5679
5680         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5681         (E_PSEUDO_EXR_REGNUM): Ditto.
5682         (h8300_is_argument_spill): Check for instructions moving argument
5683         registers into safe registers.
5684         (h8300_skip_prologue): Check for stm instruction to push registers
5685         used for register variables onto stack.
5686         (gdb_print_insn_h8300): Remove.
5687         (h8300_examine_prologue): Add a comment.
5688         (h8300_register_name): Take pseudo registers into account.
5689         (h8300s_register_name): Ditto.
5690         (h8300sx_register_name): Ditto.
5691         (h8300_print_register): Ditto.
5692         (h8300_print_registers_info): Define "nice" printing order.
5693         (h8300_saved_pc_after_call): Take pseudo registers into account.
5694         (h8300_register_type): Ditto.  Return type used for remote connection
5695         when requesting real CCR or EXR register, return actual type when
5696         requesting pseudo CCR or EXR.
5697         (h8300_pseudo_register_read): New function.
5698         (h8300_pseudo_register_write): Ditto.
5699         (h8300_dbg_reg_to_regnum): Ditto.
5700         (h8300s_dbg_reg_to_regnum): Ditto.
5701         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5702         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5703         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5704         set_gdbarch_print_insn architecture dependent.
5705         Call set_gdbarch_pseudo_register_read and
5706         set_gdbarch_pseudo_register_write.
5707         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5708
5709 2003-06-16  Andrew Cagney  <cagney@redhat.com>
5710
5711         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5712         * gdbarch.h, gdbarch.c: Re-generate.
5713         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5714         * s390-tdep.c (s390_gdbarch_init): Update.
5715         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5716         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5717         * mips-tdep.c (mips_gdbarch_init): Update.
5718         * mcore-tdep.c (mcore_gdbarch_init): Update.
5719         * cris-tdep.c (cris_gdbarch_init): Update.
5720         * infcall.c (call_function_by_hand): Update.
5721         * ia64-tdep.c (ia64_push_arguments): Update comment.
5722         * frame.c (legacy_get_prev_frame): Do not assume
5723         SAVE_DUMMY_FRAME_TOS_P.
5724         * dummy-frame.c (find_dummy_frame): Update comment.
5725
5726 2003-06-16  Andrew Cagney  <cagney@redhat.com>
5727
5728         * regcache.c (do_cooked_read): Do not use register_valid_p.
5729
5730 2003-06-15  Theodore A. Roth  <troth@openavr.org>
5731
5732         * avr-tdep.c (avr_register_type): Remove a blank line.
5733         (avr_scan_prologue): Correct some comments.
5734
5735 2003-06-15  Theodore A. Roth  <troth@openavr.org>
5736
5737         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5738         prologue types.
5739         Properly scan prologues generated by gcc with the -mcall-prologues
5740         option.
5741         Add code to scan -mcall-prologues for mega devices.
5742
5743 2003-06-15  Theodore A. Roth  <troth@openavr.org>
5744
5745         * avr-tdep.c (avr_register_byte): Delete function.
5746         (avr_register_raw_size): Delete function.
5747         (avr_register_virtual_size): Delete function.
5748         (avr_register_virtual_type): Delete function.
5749         (avr_register_type): New function.
5750         (avr_address_to_pointer): Remove unused code.
5751         (avr_read_fp): Need to read FP as two separate bytes due to change to
5752         avr_register_type() usage.
5753         (avr_gdbarch_init): Don't set deprecated_register_size.
5754         Don't set deprecated_register_bytes.
5755         Don't set deprecated_register_byte.
5756         Don't set deprecated_register_raw_size.
5757         Don't set deprecated_max_register_raw_size.
5758         Don't set deprecated_register_virtual_size.
5759         Don't set deprecated_max_register_virtual_size.
5760         Don't set deprecated_register_virtual_type.
5761         Set register_type method.
5762
5763 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
5764
5765         * Makefile.in (linux-nat.o): Add rule.
5766         * linux-nat.c: New file.
5767         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5768         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5769         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5770         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5771         * config/arm/linux.mh (NATDEPFILES): Likewise.
5772         * config/i386/linux.mh (NATDEPFILES): Likewise.
5773         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5774         * config/ia64/linux.mh (NATDEPFILES): Likewise.
5775         * config/m68k/linux.mh (NATDEPFILES): Likewise.
5776         * config/mips/linux.mh (NATDEPFILES): Likewise.
5777         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5778         * config/s390/s390.mh (NATDEPFILES): Likewise.
5779         * config/sparc/linux.mh (NATDEPFILES): Likewise.
5780
5781 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
5782
5783         * i387-tdep.c: Reorder includes, fix some whitespace issues and
5784         replace out-of-date comment.
5785
5786 2003-06-15  Andrew Cagney  <cagney@redhat.com>
5787
5788         * rdi-share/host.h (Fail): Change to a varargs function.
5789         * remote-rdi.c (Fail): Update.
5790
5791 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
5792
5793         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5794         (i386_convert_register_p, i386_register_to_value,
5795         i386_register_from_value): Handle types longer than 8 bytes.
5796
5797 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
5798
5799         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5800         Move floating-point code to new function in i387-tdep.c.
5801         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5802         New functions containing code moved here from i386-tdep.c.
5803         * i387-tdep.h: Add opaque declaration for `struct type'.
5804         (i387_register_to_value, i387_value_to_register): New prototypes.
5805         * x86-64-tdep.c (x86_64_convert_register_p): New function.
5806         (x86_64_init_abi): Set convert_register_p, register_to_value and
5807         value_to_register here.
5808
5809 2003-06-14  Andrew Cagney  <cagney@redhat.com>
5810
5811         * mips-tdep.c (mips_register_to_value): Make static.
5812         (mips_value_to_register): Make static.
5813         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5814         * ia64-tdep.c (ia64_register_raw_size): Make static.
5815         (ia64_register_virtual_size): Make static.
5816         (ia64_register_byte): Make static.
5817         * i387-tdep.c: Include "i387-tdep.h".
5818         (print_387_control_word): Delete function.
5819         (print_387_status_word): Delete function.
5820         (print_387_status_bits): Delete function.
5821         (print_387_control_bits): Delete function.
5822         * Makefile.in (i387-tdep.o): Update dependencies.
5823         * rdi-share/host.h (Fail): Declare.
5824         * remote-rdi.c (Fail): Update to match declaration.
5825
5826 2003-06-14  Andrew Cagney  <cagney@redhat.com>
5827
5828         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5829         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5830         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5831         * config/djgpp/fnchange.lst: Delete "remote-array.c".
5832         * README: Delete reference to remote-array.
5833         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5834         (remote-array.o): Delete target.
5835         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5836         * remote-array.c: Delete file.
5837
5838 2003-06-14  Andrew Cagney  <cagney@redhat.com>
5839             Mark Kettenis  <kettenis@gnu.org>
5840
5841         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5842         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5843         parameter with "frame".
5844         * gdbarch.h, gdbarch.c: Re-generate.
5845         * frame.h (put_frame_register): Declare.
5846         * frame.c (put_frame_register): New function.
5847         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5848         (legacy_register_to_value): Rewrite, use "frame" to get the
5849         register value.
5850         (legacy_value_to_register): Rewrite, use "frame" to find the
5851         register's location before storing.
5852         * arch-utils.h (legacy_convert_register_p): Update.
5853         (legacy_register_to_value, legacy_value_to_register): Update.
5854         * findvar.c (value_from_register): Rewrite, eliminate use of
5855         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5856         "frame" to REGISTER_TO_VALUE.
5857         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5858         lval_reg_frame_relative + lval_register branch of the switch.  Do
5859         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
5860         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5861         I386_EDI_REGNUM): New defines.
5862         (i386_next_regnum, i386_convert_register_p,
5863         i386_register_to_value, i386_value_to_register): New functions.
5864         (i386_register_convertible, i386_register_convert_to_virtual,
5865         i386_convert_to_raw): Remove functions.
5866         (i386_gdbarch_init): Set convert_register_p, register_to_value and
5867         value_to_register instead of register_convertible,
5868         register_convert_to_virtual and register_convert_to_raw.
5869         * mips-tdep.c (mips_convert_register_p): New function.
5870         (mips_value_to_register): Replace mips_register_convert_from_type.
5871         (mips_register_to_value): Replace mips_register_convert_to_type.
5872         (mips_gdbarch_init): Set conver_register_p, value_to_register and
5873         register_to_value.
5874         * alpha-tdep.c (alpha_convert_register_p): Update.
5875         (alpha_value_to_register): Update, store the register.
5876         (alpha_register_to_value): Update, fetch the register.
5877
5878 2003-06-14  Theodore A. Roth  <troth@openavr.org>
5879
5880         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5881         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5882         Don't set deprecated_call_dummy_words.
5883         Remove commented out set_gdbarch_believe_pcc_promotion() call.
5884         Don't set remote_translate_xfer_address.
5885         (avr_io_reg_read_command): Remove commented out debug printf.
5886         Wrap a long line.
5887
5888 2003-06-14  Theodore A. Roth  <troth@openavr.org>
5889
5890         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5891         causes gdb to seg fault.
5892
5893 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
5894
5895         * sparc-nat.c (fetch_inferior_registers): Correct
5896         a reference to "registers".
5897
5898 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
5899
5900         * Makefile.in (exc_request_U_h): Define
5901         (exc_request_S_h): Likewise.
5902         (msg_reply_S_h): Likewise.
5903         (msg_U_h): Likewise.
5904         (notify_S_h): Likewise.
5905         (process_reply_S_h): Likewise.
5906         (gnu-nat.o): Depend on gdb_obstack_h
5907         * gnu-nat.c: Include "gdb_obstack.h".
5908
5909 2003-06-13  Andrew Cagney  <cagney@redhat.com>
5910
5911         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5912         * gdbarch.h, gdbarch.c: Re-generate.
5913
5914 2003-06-13  Andrew Cagney  <cagney@redhat.com>
5915
5916         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
5917         when deprecated REGISTER macros can be deleted.
5918         * gdbarch.h, gdbarch.c: Re-generate.
5919
5920 2003-06-13  Jim Blandy  <jimb@redhat.com>
5921
5922         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5923         Linux entry point symbols for _dl_debug_state, too.
5924
5925 2003-06-13  Andrew Cagney  <cagney@redhat.com>
5926
5927         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5928         available, do not use the FP register, and always save the TOS.
5929         * dummy-frame.c (dummy_frame_this_id): Do not assert
5930         SAVE_DUMMY_FRAME_TOS.
5931         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5932         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5933         (i386_push_dummy_call): Add 8 to the returned SP.
5934         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5935         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5936         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5937         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5938         (x86_64_push_dummy_call): Return "sp + 16".
5939         (x86_64_init_abi): Do not set save_dummy_frame_tos.
5940         * alpha-tdep.c (alpha_gdbarch_init): Do not set
5941         save_dummy_frame_tos.
5942
5943 2003-06-13  Jim Blandy  <jimb@redhat.com>
5944
5945         * frv-tdep.c (frv_use_struct_convention): Delete static
5946         declaration for function deleted in my change of 2003-06-12.
5947
5948 2003-06-13  Theodore A. Roth  <troth@openavr.org>
5949
5950         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5951         (avr_pointer_to_address): Shift code addrs left 1 bit.
5952         (avr_convert_from_func_ptr_addr): Delete function since operation is
5953         better handled by avr_address_to_pointer and avr_pointer_to_address.
5954         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5955
5956 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
5957
5958         From Kelley Cook  <kelleycook@wideopenwest.com>:
5959         * configure.host: Accept i[34567]86 variants.
5960         * configure.tgt: Likewise.
5961         * nlm/configure.in: Likewise.
5962         * nlm/configure: Regenerated.
5963
5964 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
5965
5966         * arm-tdep.c (solib-svr4.h): Dont' include it.
5967         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5968         * arm-linux-tdep.c: ... here.  Make static.
5969         (arm_linux_init_abi): Register it.
5970         (solib-svr4.h): Include it.
5971         * Makefile.in: Update dependencies.
5972         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5973         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5974
5975 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
5976
5977         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5978         indicate registers used for return values.
5979         (struct frame_extra_info): Drop args_pointer and locals_pointer.
5980         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5981         members.
5982         (h8300_init_extra_frame_info): Ditto.
5983         (h8300_frame_locals_address): Removed.
5984         (h8300_frame_args_address): Removed.
5985         (h8300_extract_return_value): Use new regcache structure. Only care
5986         for 16 bit CPUs.
5987         (h8300h_extract_return_value): Same function for 32 bit CPUs.
5988         (h8300_store_return_value): Use new regcache structure. Only care
5989         for 16 bit CPUs.
5990         (h8300h_store_return_value): Same function for 32 bit CPUs.
5991         (h8300_store_struct_return): Removed.
5992         (h8300_extract_struct_value_address): Use new regcache structure.
5993         (h8300h_extract_struct_value_address): Removed.
5994         (h8300_push_dummy_code): New function.
5995         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5996         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
5997         set_gdbarch_store_return_value architecture dependent.
5998         Call set_gdbarch_push_dummy_code and
5999         set_gdbarch_extract_struct_value_address.
6000         Remove calls to set_gdbarch_frame_args_address,
6001         set_gdbarch_frame_locals_address,
6002         set_gdbarch_deprecated_store_struct_return,
6003         set_gdbarch_deprecated_extract_return_value,
6004         set_gdbarch_deprecated_extract_struct_value_address,
6005         set_gdbarch_deprecated_call_dummy_words and
6006         set_gdbarch_deprecated_sizeof_call_dummy_words.
6007
6008 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
6009
6010         * h8300-tdep.c (h8300_register_byte): Remove.
6011         (h8300h_register_byte): Remove.
6012         (h8300_register_virtual_type): Remove.  Substitute by...
6013         (h8300_register_type): New function.
6014         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6015         (h8300h_extract_struct_value_address): Ditto.
6016         (h8300_gdbarch_init): Drop calls to
6017         set_gdbarch_deprecated_register_byte and
6018         set_gdbarch_deprecated_register_virtual_type.
6019         Add call to set_gdbarch_register_type.
6020
6021 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6022
6023         * gdbarch.sh: Update comments on registers.
6024         (deprecated_register_byte): Rename register_byte.
6025         (deprecated_register_raw_size): Rename register_raw_size.
6026         (deprecated_register_virtual_size): Rename register_virtual_size.
6027         (deprecated_register_virtual_type): Rename register_virtual_type.
6028         * gdbarch.h, gdbarch.c: Re-generate.
6029         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6030         * vax-tdep.c (vax_gdbarch_init): Update.
6031         * v850-tdep.c (v850_gdbarch_init): Update.
6032         * sparc-tdep.c (sparc_gdbarch_init): Update.
6033         * sh-tdep.c (sh_gdbarch_init): Update.
6034         * s390-tdep.c (s390_gdbarch_init): Update.
6035         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6036         * ns32k-tdep.c: Update.
6037         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6038         * mips-tdep.c (mips_gdbarch_init): Update.
6039         * mcore-tdep.c (mcore_gdbarch_init): Update.
6040         * m68k-tdep.c (m68k_gdbarch_init): Update.
6041         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6042         * ia64-tdep.c (ia64_gdbarch_init): Update.
6043         * hppa-tdep.c (hppa_gdbarch_init): Update.
6044         * h8300-tdep.c (h8300_gdbarch_init): Update.
6045         * frv-tdep.c (frv_gdbarch_init): Update.
6046         * cris-tdep.c (cris_gdbarch_init): Update.
6047         * avr-tdep.c (avr_gdbarch_init): Update.
6048         * alpha-tdep.c (alpha_gdbarch_init): Update.
6049         * arm-tdep.c (arm_gdbarch_init): Update.
6050
6051 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6052
6053         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6054         mips_o32_use_struct_convention with always_use_struct_convention.
6055
6056 2003-06-12  David Carlton  <carlton@kealia.com>
6057
6058         * cp-namespace.c (cp_set_block_scope): Comment out
6059         processing_has_namespace_info branch.
6060
6061 2003-06-12  Jim Blandy  <jimb@redhat.com>
6062
6063         Recognize and skip 64-bit PowerPC Linux linkage functions.
6064         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6065         insn_pattern, insns_match_pattern, d_field, ds_field): New
6066         functions, macros, and types for working with PPC instructions.
6067         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6068         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6069         ppc64_skip_trampoline_code): New functions, variables, and macros
6070         for recognizing and skipping linkage functions.
6071         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6072         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6073
6074         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6075         register offsets for both the 32- and 64-bit interfaces.
6076
6077         Actually finish the job started by my change of 2003-05-29.
6078         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6079         other #definition of this.
6080         (ppc_linux_skip_trampoline_code): Remove declaration.
6081         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6082         static.
6083         (ppc_linux_init_abi): Register it as the skip_trampoline_code
6084         method for GDBARCH.
6085
6086         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6087         'long' on ppc64-*-linux*.
6088
6089         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6090         isn't #defined, assume the register doesn't exist: act as if
6091         tdep->ppc_mq_regnum were -1.
6092
6093         * configure.host, configure.tgt: Add entries for
6094         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6095         powerpc/linux.mt.
6096         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6097         New files.
6098
6099         * arch-utils.c (always_use_struct_convention): New function.
6100         * arch-utils.h (always_use_struct_convention): New prototype.
6101         * alpha-tdep.c (alpha_use_struct_convention): Delete.
6102         (alpha_gdbarch_init): Register always_use_struct_convention,
6103         instead of alpha_use_struct_convention.
6104         * cris-tdep.c (cris_use_struct_convention): Delete.
6105         (cris_gdbarch_init): Register always_use_struct_convention,
6106         instead of cris_use_struct_convention.
6107         * frv-tdep.c (frv_use_struct_convention): Delete.
6108         (frv_gdbarch_init): Register always_use_struct_convention,
6109         instead of frv_use_struct_convention.
6110         * h8300-tdep.c (h8300_use_struct_convention): Delete.
6111         (h8300_gdbarch_init): Register always_use_struct_convention,
6112         instead of h8300_use_struct_convention.
6113         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6114         (mips_o32_gdbarch_init): Register always_use_struct_convention,
6115         instead of mips_o32_use_struct_convention.
6116
6117 2003-06-12  Andrew Cagney  <cagney@redhat.com>
6118
6119         * wince.c: Include "mips-tdep.h".
6120         * mips-tdep.h (mips_next_pc): Declare.
6121         * mcore-tdep.c: Make more local functions static.
6122         * Makefile.in (wince.o): Update dependencies.
6123
6124 2003-06-12  David Carlton  <carlton@kealia.com>
6125
6126         * symtab.c (lookup_symbol_aux_minsyms): Replace
6127         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6128         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6129         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6130         SYMBOL_NATURAL_NAME.
6131
6132 2003-06-12  Andreas Schwab  <schwab@suse.de>
6133
6134         * Makefile.in (tuiDisassem.o): Update dependencies.
6135
6136 2003-06-12  David Carlton  <carlton@bactrian.org>
6137
6138         * symtab.h: Delete declaration of make_symbol_overload_list.
6139         Add declaration of lookup_partial_symbol.
6140         * symtab.c (remove_params): Move to cp-support.c.
6141         (overload_list_add_symbol, make_symbol_overload_list)
6142         (sym_return_val_size, sym_return_val_index): Ditto.
6143         (lookup_partial_symbol): Make extern.
6144         * cp-support.h: Add declaration of make_symbol_overload_list.
6145         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6146         symtab.h, and block.h.
6147         (remove_params): Move here from symtab.c.
6148         (overload_list_add_symbol, make_symbol_overload_list)
6149         (sym_return_val_size, sym_return_val_index): Ditto.
6150         * valops.c: Include cp-support.h.
6151         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6152         frame_h, and block_h.
6153         (valops.o): Depend on cp_support_h.
6154
6155 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
6156
6157         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6158         substitute by NUM_REGS throughout.
6159         (h8300_register_name): Only care for H8/300 and H8/300H registers.
6160         (h8300s_register_name): New function for H8S registers.
6161         (h8300sx_register_name): Ditto for H8SX registers.
6162         (h8300_print_register): Revise register printing, avoid depending
6163         on 32 bit long.
6164         (h8300_register_byte): Only care for H8/300 registers.
6165         (h8300h_register_byte): New function for any other architecture.
6166         (h8300_register_raw_size): Remove.
6167         (h8300_register_virtual_type): Revise to return actually useful
6168         type.
6169         (h8300_extract_struct_value_address): Only care for H8/300 registers.
6170         (h8300h_extract_struct_value_address): New function for any other
6171         architecture.
6172         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
6173         set_gdbarch_register_name, set_gdbarch_register_byte,
6174         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6175         Remove calls to set_gdbarch_deprecated_register_size,
6176         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6177         set_gdbarch_deprecated_max_register_raw_size,
6178         set_gdbarch_register_virtual_size and
6179         set_gdbarch_deprecated_max_register_virtual_size entirely.
6180         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6181         set_gdbarch_long_double_bit.
6182
6183 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
6184
6185         * doublest.c (convert_doublest_to_floatformat): When dealing
6186         with the implied integer bit, only alter mant_bits if we are
6187         processing a full 32 bits of mantissa.
6188
6189 2003-06-11  David Carlton  <carlton@bactrian.org>
6190
6191         * dictionary.h: New.
6192         * dictionary.c: New.
6193         * block.h: Add opaque declaration for struct dictionary.
6194         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6195         'sym' members.
6196         (BLOCK_DICT): New macro.
6197         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6198         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6199         BLOCK_SHOULD_SORT.
6200         (ALL_BLOCK_SYMBOLS): Update definition.
6201         * Makefile.in (SFILES): Add dictionary.c.
6202         (dictionary_h): New.
6203         (COMMON_OBS): Add dictionary.o.
6204         (dictionary.o): New.
6205         (ada-lang.o): Depend on dictionary_h.
6206         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6207         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6208         (mi-cmd-stack.o): Ditto.
6209         (gdbtk-cmds.o): Update dependencies.
6210         (gdbtk-stack.o): Ditto.
6211         * ada-lang.c: Include dictionary.h.
6212         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6213         (fill_in_ada_prototype, debug_print_block): Ditto.
6214         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6215         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
6216         'is_sorted'.
6217         * mdebugread.c: Include dictionary.h.
6218         (struct parse_stack): Delete 'maxsyms' member.
6219         (parse_symbol): Update calls to new_block.  Delete calls to
6220         shrink_block.  Use dictionary methods.
6221         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6222         Update calls to new_symtab.  Don't maintain maxsyms data.
6223         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6224         (add_symbol): Just call dict_add_symbol.
6225         (new_symtab): Delete 'maxsyms' argument.
6226         (new_symtab): Update calls to new_block.
6227         (new_block): Delete 'maxsyms' argument; add 'function' argument.
6228         (shrink_block): Delete function.
6229         (fixup_sigtramp): Update call to new_block.  Add symbol via
6230         dict_add_symbol.
6231         * jv-lang.c: Include dictionary.h.
6232         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6233         appropriately.  Set class_symtab->free_func.  Make sure the
6234         blockvector is big enough to hold two blocks.
6235         (add_class_symtab_symbol): Use dictionary methods.
6236         (free_class_block): New function.
6237         (type_from_class): Replace explicit iteration by
6238         ALL_BLOCK_SYMBOLS.
6239         * symtab.h (struct symtab): Replace 'free_ptr' method by
6240         'free_func'.
6241         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6242         sort_symtab_syms.
6243         * dwarfread.c (psymtab_to_symtab_1): Delete call to
6244         sort_symtab_syms.
6245         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6246         Include dictionary.h.
6247         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6248         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6249         sort_symtab_syms.
6250         * objfiles.c: Include dictionary.h.
6251         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6252         * buildsym.c: Include dictionary.h.
6253         (finish_block): Use dictionary methods.
6254         (end_symtab): Set free_func to NULL, not free_ptr.
6255         * tracepoint.c: Include dictionary.h.
6256         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6257         (scope_info): Ditto.
6258         * stack.c: Include dictionary.h.
6259         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6260         (print_block_frame_labels, print_frame_arg_vars)
6261         (print_frame_args): Ditto.
6262         * symmisc.c (free_symtab_block): Use dictionary methods.
6263         (dump_symtab): Ditto.
6264         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6265         Include dictionary.h.
6266         * symfile.h: Delete declarations of sort_block_syms,
6267         sort_symtab_syms.
6268         * symfile.c (sort_block_syms): Delete.
6269         (sort_symtab_syms): Delete.
6270         * symtab.c: Include dictionary.h.
6271         (lookup_block_symbol): Use dictionary iterators.
6272         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6273         (search_symbols, make_symbol_completion_list): Ditto.
6274         (make_symbol_overload_list): Ditto.
6275         * valops.c (value_of_local): Use dict_empty.
6276         Include dictionary.h.
6277
6278 2003-06-11  J. Brobecker  <brobecker@gnat.com>
6279
6280         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6281
6282 2003-06-11  David Carlton  <carlton@bactrian.org>
6283
6284         * block.h (BLOCK_SHOULD_SORT): Delete.
6285         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6286         blocks.
6287         * ada-lang.c (ada_add_block_symbols): Ditto.
6288         * symfile.c (sort_block_syms): Delete.
6289         (sort_symtab_syms): Ditto.
6290         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6291         declarations.
6292         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6293         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6294         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6295         * dwarfread.c (psymtab_to_symtab_1): Ditto.
6296         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6297         * mdebugread.c (psymtab_to_symtab_1): Ditto.
6298         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6299
6300 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
6301
6302         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6303         bits to 128.
6304
6305 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6306
6307         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6308         REGISTER_CONVERTIBLE.
6309         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6310         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6311         * gdbarch.h, gdbarch.c: Re-generate.
6312         * arch-utils.h (deprecated_register_convertible_not): Rename
6313         generic_register_convertible_not.
6314         * arch-utils.c (deprecated_register_convertible_not): Rename
6315         generic_register_convertible.
6316         (legacy_convert_register_p, legacy_register_to_value): Update.
6317         * sh-tdep.c (sh64_push_arguments): Update.
6318         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6319         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6320         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6321         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6322         * arch-utils.c (legacy_value_to_register): Update.
6323         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6324         (rs6000_register_convert_to_raw): Make parameter "from" const.
6325         * mips-tdep.c (mips_gdbarch_init): Update.
6326         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
6327         * infcmd.c (default_print_registers_info): Update.
6328         * ia64-tdep.c (ia64_gdbarch_init): Update.
6329         (ia64_register_convert_to_raw): Make parameter "from" const.
6330         * i386-tdep.c (i386_gdbarch_init): Update.
6331         (i386_register_convert_to_raw): Update.
6332
6333 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6334
6335         * remote-fileio.c: Include "remote-fileio.h".
6336         * Makefile.in (remote-fileio.o): Update dependencies.
6337         (remote_fileio_h): Fix typo.
6338
6339 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6340
6341         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6342         (xstormy16_save_dummy_frame_tos): Make static.
6343         (_initialize_xstormy16_tdep): Add declaration.
6344         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6345         * v850-tdep.c: Make local functions static.
6346         (_initialize_v850_tdep): Add declaration.
6347         * sparc-tdep.c: Make local functions static.
6348         (_initialize_sparc_tdep): Add declaration.
6349         * sh-tdep.c: Make local functions static.
6350         (_initialize_sh_tdep): Add declaration.
6351         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6352         * s390-tdep.c: Make local functions static.
6353         (_initialize_s390_tdep): Add declaration.
6354         * dbxread.c (find_stab_function_addr): Make static.
6355         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6356         * ocd.c (_initialize_remote_ocd): Add declaration.
6357         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6358         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6359         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6360         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6361         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6362         * remote-array.c (_initialize_array): Add declaration.
6363         (_initialize_remote_monitors): Add declaration.
6364         * remote-mips.c: Make local functions static.
6365         (_initialize_remote_mips): Add declaration.
6366         * mcore-tdep.c: Make all local functions static.
6367         (_initialize_mcore_tdep): Add declaration.
6368         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6369         * abug-rom.c (_initialize_abug_rom): Add declaration.
6370         * rom68k-rom.c (_initialize_rom68k): Add declaration.
6371         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6372         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6373         * remote-est.c (_initialize_est): Add declaration.
6374         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6375         (m68hc11_call_dummy_address): Make static.
6376         * ia64-tdep.c: Make local functions static.
6377         (_initialize_ia64_tdep): Add declaration.
6378         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6379         * monitor.c (monitor_wait_filter): Make static.
6380         (_initialize_remote_monitors): Add declaration.
6381         * remote-hms.c (_initialize_remote_hms): Add declaration.
6382         * remote-e7000.c (fetch_regs_from_dump): Make static.
6383         (expect_n): Make static.
6384         (_initialize_remote_e7000): Add declaration.
6385         * ser-e7kpc.c: Always include "defs.h".
6386         (_initialize_ser_e7000pc): Add declaration.
6387         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6388         * cris-tdep.c: Make all but one function static.
6389         (_initialize_cris_tdep): Add declaration.
6390         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6391         * solib.c (update_solib_list): Make static.
6392         (_initialize_solib): Add declaration.
6393         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6394         (_initialize_avr_tdep): Add declaration.
6395         * remote-rdi.c (voiddummy): Make static.
6396         (_initialize_remote_rdi): Add declaration.
6397         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6398         * remote-rdp.c (send_rdp): Make static.
6399         (_initialize_remote_rdp): Add declaration.
6400         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6401
6402 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
6403
6404         * remote-fileio.c: Make ari happy.
6405
6406 2003-06-10  J. Brobecker  <brobecker@gnat.com>
6407
6408         * rs6000-nat.c (child_xfer_memory): Compute the right address when
6409         fetching the trailing bytes of the buffer we are about to write.
6410
6411 2003-06-10  Andrew Cagney  <cagney@redhat.com>
6412
6413         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6414         * Makefile.in (remote-fileio.o): Update dependencies.
6415         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
6416         include <setjmp.h>, or <sys/types.h> conditional on USG.
6417         (remote_fio_jmp_buf): Delete global variable.
6418
6419 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
6420             Martin M. Hunt  <hunt@redhat.com>
6421
6422         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6423         (SFILES): Add remote-fileio.c.
6424         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
6425         dependencies for building remote.o.
6426         * remote-fileio.c: New file implementing the remote File-I/O protocol.
6427         * remote-fileio.h: New header file defining remote File-I/O interface.
6428         * remote.c (remote_write_bytes, remote_read_bytes): Remove
6429         static storage class.
6430         (remote_wait, remote_async_wait): Call remote_fileio_request() on
6431         'F' packet.
6432         (_initialize_remote): Call initialize_remote_fileio().
6433         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6434         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6435         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6436         (captured_main): Initialize new ui_files.
6437         * ui-file.c: Add read and fgets input functions.
6438         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6439         (null_file_read): New function.
6440         (ui_file_read): New function.
6441         (set_ui_file_read): New function.
6442         (stdio_file_read): New function.
6443         * ui-file.h: New type ui_file_read_ftype.
6444         (set_ui_file_read): Declare.
6445         (ui_file_read): Declare.
6446
6447 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6448
6449         * frame.h (deprecated_unwind_get_saved_register): Rename
6450         generic_unwind_get_saved_register, update comments.
6451         * mips-tdep.c (mips_get_saved_register): Update.
6452         * frame.c (deprecated_unwind_get_saved_register): Update.
6453
6454 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6455
6456         * vax-tdep.c (vax_frame_locals_address): Delete function.
6457         (vax_gdbarch_init): Do not set frame_locals_address.
6458         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6459         (m68hc11_gdbarch_init): Do not set frame_locals_address.
6460         * s390-tdep.c (s390_frame_args_address): Delete function.
6461         (s390_gdbarch_init): Do not set frame_args_address or
6462         frame_locals_address.
6463         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6464         (ns32k_gdbarch_init): Do not set frame_locals_address.
6465         * hppa-tdep.c (hppa_frame_args_address): Delete function.
6466         (hppa_frame_locals_address): Delete function.
6467         (hppa_gdbarch_init): Do not set frame_args_address, or
6468         frame_locals_address.
6469         * arm-tdep.c (arm_frame_args_address): Delete.
6470         (arm_frame_locals_address): Delete.
6471         (arm_gdbarch_init): Do not set frame_args_address, or
6472         frame_locals_address.
6473
6474 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6475
6476         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6477         * gdbarch.h, gdbarch.c: Re-generate.
6478         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6479         * arch-utils.c (frame_num_args_unknown): Delete function.
6480         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6481         (frame_info): Use FRAME_NUM_ARGS_P.
6482         * arm-tdep.c (arm_frame_num_args): Delete function.
6483         (arm_gdbarch_init): Do not set frame_num_args.
6484         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6485         * hppa-tdep.c (hppa_frame_num_args): Delete function.
6486         (hppa_gdbarch_init): Do not set frame_num_args.
6487         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6488         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6489         frame_num_args to default frame_num_args_unknown.
6490         * v850-tdep.c (v850_gdbarch_init): Ditto.
6491         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6492         * sh-tdep.c (sh_gdbarch_init): Ditto.
6493         * s390-tdep.c (s390_gdbarch_init): Ditto.
6494         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6495         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6496         * mips-tdep.c (mips_gdbarch_init): Ditto.
6497         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6498         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6499         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6500         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6501         * i386-tdep.c (i386_gdbarch_init): Ditto.
6502         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6503         * frv-tdep.c (frv_gdbarch_init): Ditto.
6504         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6505         * cris-tdep.c (cris_gdbarch_init): Ditto.
6506         * avr-tdep.c (avr_gdbarch_init): Ditto.
6507         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6508
6509 2003-06-09  Andrew Cagney  <cagney@redhat.com>
6510
6511         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6512         (print_frame_args): Moved to "stack.c".
6513         * stack.c: Include "gdb_assert.h".
6514         (print_frame_nameless_args): Moved from "printcmd.c", made static.
6515         (print_frame_args): Moved from "printcmd.c".
6516         * frame.h (print_frame_args): Delete declaration.
6517         * Makefile.in (stack.o): Update dependencies.
6518
6519 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6520
6521         * frame.c (get_prev_frame): Remove reference to
6522         frame_args_address_correct in comments.
6523         * frame-base.c (default_frame_args_address): Delete code
6524         conditional on FRAME_ARGS_ADDRESS_CORRECT.
6525         * vax-tdep.c (vax_frame_args_address_correct): Delete.
6526         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6527         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6528         (vax_frame_args_address_correct): Delete declaration.
6529
6530 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6531
6532         * gdbarch.sh (UNWIND_SP): Add.
6533         * gdbarch.h, gdbarch.c: Re-generate.
6534         * frame.c (frame_sp_unwind): New function.
6535         (get_frame_sp): New function.
6536         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6537         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6538         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6539         value.
6540         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6541         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6542
6543 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6544
6545         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6546         REMOTE_BREAKPOINT.
6547         * remote.c: Update.
6548         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6549         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6550         * config/m68k/tm-sun3.h: Update.
6551         * config/m68k/tm-m68klynx.h: Update.
6552         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6553
6554         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6555         trad_frame".  Update comments.
6556         * d10v-tdep.c (struct d10v_unwind_cache): Update.
6557         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6558         (trad_frame_register_value, trad_frame_prev_register): Update.
6559
6560 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6561
6562         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6563         from GCC's acinclude.m4.
6564         * configure.in: Check for getopt's delcaration.
6565         * aclocal.m4, config.in, configure: Re-generate.
6566         * main.c (error_init): Delete declaration.
6567         * defs.h (error_init): Declare.
6568         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6569         (rs6000_convert_from_func_ptr_addr): Make static.
6570         (_initialize_rs6000_tdep): Add declaration.
6571         * cli/cli-cmds.c (dont_repeat): Delete declaration.
6572         (show_commands, set_verbose, show_history): Delete declaration.
6573         * top.h (set_verbose): Add declaration.
6574         (show_history, set_history, show_commands): Add declaration.
6575         (do_restore_instream_cleanup): Add declaration.
6576         * objc-lang.c (specialcmp): Make static.
6577         (print_object_command): Make static.
6578         (find_objc_msgsend): Make static.
6579         (find_objc_msgcall_submethod_helper): Make static.
6580         (find_objc_msgcall_submethod): Make static.
6581         (_initialize_objc_language): Add declaration.
6582         (find_implementation_from_class): Make static.
6583         (find_implementation): Make static.
6584         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6585         * objc-lang.h (lookup_struct_typedef): Add declaration.
6586         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6587         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6588         (do_restore_user_call_depth): Make static.
6589         (do_restore_instream_cleanup): Delete declaration.
6590         (dont_repeat): Delete declaration.
6591         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6592         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6593         * reggroups.c (_initialize_reggroup): Add declaration.
6594         * cp-support.c (_initialize_cp_support): Add declaration.
6595         * cp-abi.c (_initialize_cp_abi): Add declaration.
6596         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6597         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6598         (_initialize_gnu_v3_abi): Add declaration.
6599         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6600         (_initialize_gnu_v2_abi): Add declaration.
6601         * frame-base.c (_initialize_frame_base): Add declaration.
6602         * doublest.c (floatformat_from_length): Make static.
6603         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6604         * frame.c (create_sentinel_frame): Make static.
6605         (_initialize_frame): Add declaration.
6606         * top.c (do_catch_errors): Make static.
6607         (gdb_rl_operate_and_get_next_completion): Make static.
6608         * typeprint.c: Include "typeprint.h".
6609         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6610         (sentinel_frame_this_id): Make static.
6611         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6612         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6613         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6614         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6615         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6616         * maint.c (maintenance_print_architecture): Make static.
6617         * signals/signals.c (_initialize_signals): Add declaration.
6618         * std-regs.c (_initialize_frame_reg): Add declaration.
6619         * jv-exp.y (push_variable): ISO C definition.
6620         (push_qualified_expression_name): Ditto.
6621         * memattr.c (_initialize_mem): Add declaration.
6622         * remote.c (remote_check_watch_resources): Make static.
6623         (remote_stopped_by_watchpoint): Make static.
6624         (remote_stopped_data_address): Make static.
6625         * d10v-tdep.c (nr_dmap_regs): Make static.
6626         (a0_regnum): Make static.
6627         (d10v_frame_unwind_cache): Make static.
6628         (d10v_frame_p): Make static.
6629         * osabi.c (show_osabi): Make static.
6630         (_initialize_gdb_osabi): Add extern declaration.
6631         * gdbtypes.c (make_qualified_type): Make static.
6632         (safe_parse_type): Make static.
6633         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6634         * macrotab.c (macro_bcache_free): Make static.
6635         * interps.c (interp_set_quiet): Make static.
6636         (interpreter_exec_cmd): Make static.
6637         * stack.h (select_frame_command): New file.
6638         * stack.c: Include "stack.h".
6639         (select_frame_command_wrapper): Delete function.
6640         (select_frame_command): Make global.
6641         * infcall.c: Include "infcall.h".
6642         * linespec.c: Include "linespec.h".
6643         * symfile.c (sections_overlap): Make static.
6644         * cp-support.h (cp_initialize_namespace): ISO C declaration.
6645         * charset.c (_initialize_charset): Add missing prototype.
6646         * regcache.c (init_legacy_regcache_descr): Make static.
6647         (do_regcache_xfree): Make static.
6648         (regcache_xfer_part): Make static.
6649         (_initialize_regcache): Add missing prototype.
6650         * breakpoint.c (parse_breakpoint_sals): Make static.
6651         (breakpoint_sals_to_pc): Make static.
6652         * interps.h (clear_interpreter_hooks): ISO C declaration.
6653         * Makefile.in (stack_h): Define.
6654         (stack.o, typeprint.o, mi-main.o): Update dependencies.
6655         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6656
6657 2003-06-08  Andrew Cagney  <cagney@redhat.com>
6658
6659         * Makefile.in (d10v-tdep.o): Update dependencies.
6660         (SFILES): Add trad-frame.c.
6661         (trad_frame_h): Define.
6662         (COMMON_OBS): Add trad-frame.o.
6663         (trad-frame.o): Specify dependencies.
6664         * d10v-tdep.c: Include "trad-frame.h".
6665         (saved_regs_unwinder): Delete function.
6666         (d10v_frame_prev_register): Use trad_frame_prev_register.
6667         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6668         trad_frame", delete "regs" and "prev_sp".
6669         (prologue_find_regs): Use trad-frame.
6670         * trad-frame.h, trad-frame.c: New files.
6671
6672 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
6673
6674         * dwarf2cfi.c, dwarf2cfi.h: Remove.
6675
6676 2003-06-07  Adam Fedor  <fedor@gnu.org>
6677
6678         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6679         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6680         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6681         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6682         resolve_msgsend_super, resolve_msgsend_super_stret):
6683         Use it.
6684
6685 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6686
6687         * symfile.h: Re-indent, clean up comments.
6688
6689 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6690
6691         * inferior.h (deprecated_write_sp): Replace
6692         generic_target_write_sp.
6693         * regcache.c (deprecated_write_sp): Replace
6694         generic_target_write_sp.
6695         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6696         * vax-tdep.c (vax_gdbarch_init): Update.
6697         * v850-tdep.c (v850_gdbarch_init): Update.
6698         * sparc-tdep.c (sparc_gdbarch_init): Update.
6699         * sh-tdep.c (sh_gdbarch_init): Update.
6700         * s390-tdep.c (s390_gdbarch_init): Update.
6701         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6702         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6703         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6704         * mcore-tdep.c (mcore_gdbarch_init): Update.
6705         * m68k-tdep.c (m68k_gdbarch_init): Update.
6706         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6707         * ia64-tdep.c (ia64_gdbarch_init): Update.
6708         * h8300-tdep.c (h8300_gdbarch_init): Update.
6709         * frv-tdep.c (frv_gdbarch_init): Update.
6710         * cris-tdep.c (cris_gdbarch_init): Update.
6711         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6712
6713 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6714
6715         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6716         Assert that PC_REGNUM is valid.
6717         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6718
6719 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6720
6721         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6722         * gdbarch.h, gdbarch.c: Regenerate.
6723         * mn10300-tdep.c: Include "gdb_assert.h".
6724         (mn10300_read_fp): New function.
6725         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6726         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
6727         * ia64-tdep.c: Include "gdb_assert.h".
6728         (ia64_read_fp): New function.
6729         (ia64_gdbarch_init): Set deprecated_target_read_fp to
6730         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
6731         * regcache.c (generic_target_read_sp): Delete function.
6732         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6733         * inferior.h (generic_target_read_sp): Delete declaration.
6734         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6735         generic_target_read_sp.
6736         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6737         * sparc-tdep.c (sparc_gdbarch_init): Ditto
6738         * sh-tdep.c (sh_gdbarch_init): Ditto.
6739         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6740         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6741
6742 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6743
6744         * gdbarch.sh: Comment each field of startup_gdbarch.
6745         * gdbarch.h, gdbarch.c: Re-generate.
6746
6747 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6748
6749         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6750         * gdbarch.h, gdbarch.c: Re-generate.
6751         * regcache.c: Update comments on read_pc et.al.
6752         (generic_target_read_pc): Delete function.
6753         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6754         * inferior.h (generic_target_read_pc): Delete declaration.
6755         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6756         generic_target_read_pc.
6757         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6758         * sh-tdep.c (sh_gdbarch_init): Ditto.
6759         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6760         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6761
6762 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6763
6764         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6765         "index" with "special_local_sect".  Use strcmp instead of STREQ.
6766         Append period to coments.
6767
6768 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
6769
6770         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6771         (elfstab_offset_sections): Likewise.
6772         * gdb-stabs.h (stab_section_info): Likewise.
6773         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6774         * objfiles.c (objfile_relocate): Likewise.
6775         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6776         * remote.c (get_offsets): Likewise.
6777         (remote_cisco_objfile_relocate): Likewise.
6778         * somread.c (som_symfile_offsets): Likewise.
6779         * symfile.c (alloc_section_addr_info): New function.
6780         (build_section_addr_info_from_section_tab): Use it.
6781         (free_section_addr_info): Adjust.
6782         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6783         (syms_from_objfile): Allocate local_addr dynamically.
6784         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6785         dynamically.
6786         (add_symbol_file_command): Allocate sect_opts dynamically.
6787         (reread_symbols): Avoid use of SECT_OFF_MAX.
6788         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6789         (alloc_section_addr_info): Declare it.
6790         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6791         * win32-nat.c (solib_symbols_add): Allocate section_addrs
6792         dynamically.
6793         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6794
6795 2003-06-06  Andrew Cagney  <cagney@redhat.com>
6796
6797         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6798         (d10v_frame_unwind_cache): Do not set "return_pc".
6799
6800 2003-06-06  Michael Snyder  <msnyder@redhat.com>
6801
6802         * h8300-tdep.c: Make tidy (long lines).
6803
6804 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
6805
6806         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6807         to regcache_collect().
6808
6809 2003-06-05  J. Brobecker  <brobecker@gnat.com>
6810
6811         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6812         pc_in_sigtramp multiarch method.
6813         (hppa_hpux_som_init_abi): Use it.
6814         (hppa_hpux_elf_init_abi): Likewise.
6815         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6816         macro has been multiarched.
6817         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6818         macro here, as hppa64 isn't multiarched yet.
6819
6820 2003-06-05  Andrew Cagney  <cagney@redhat.com>
6821
6822         * Makefile.in (value_h): Add $(frame_h).
6823         * value.h: Include "frame.h".
6824         (struct value): Replace "frame_addr" with "frame_id".
6825         (VALUE_FRAME_ID): Replace VALUE_FRAME.
6826         * values.c (allocate_value): Use VALUE_FRAME_ID.
6827         (value_copy): Use VALUE_FRAME_ID.
6828         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6829         * valops.c (value_assign): Update.  Use frame_find_by_id.
6830
6831 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
6832
6833         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6834         in each pass.
6835
6836 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
6837
6838         * thread-db.c (check_event): For create/death event breakpoints,
6839         loop through all messages to ensure that we read the message
6840         corresponding to the breakpoint we are at.
6841
6842 2003-06-04  Michael Snyder  <msnyder@redhat.com>
6843
6844         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6845
6846 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
6847
6848         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6849         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6850         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6851         when handling .eh_frame sections.
6852
6853 2003-06-04  J. Brobecker  <brobecker@gnat.com>
6854
6855         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6856         prepare_to_proceed procedure instead of the hppa-specific one.
6857         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6858
6859 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
6860
6861         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6862         * config.in: Regenerated.
6863         * configure.in: Add test for syscall function and check for
6864         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6865         * configure: Regenerated.
6866         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6867         <sys/syscall.h>.
6868         (kill_lwp): New function that uses tkill syscall or
6869         uses kill, depending on whether threading model is nptl or not.
6870         All callers of kill() changed to use kill_lwp().
6871         (lin_lwp_wait): Make special check when WIFEXITED occurs to
6872         see if all threads have already exited in the nptl model.
6873         (stop_and_resume_callback): New callback function used by the
6874         lin_lwp_wait thread exit handling code.
6875         (stop_wait_callback): Check for threads already having exited and
6876         delete such threads fromt the lwp list when discovered.
6877         (stop_callback): Don't assert retcode of kill call.
6878
6879         Roland McGrath  <roland@redhat.com>
6880         * i386-linux-nat.c (ps_get_thread_area): New function needed by
6881         nptl libthread_db.
6882
6883 2003-06-03  Richard Henderson  <rth@redhat.com>
6884
6885         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6886         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6887         (alpha_sigtramp_frame_prev_register): Likewise.
6888         (alpha_heuristic_frame_prev_register): Likewise.
6889         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6890
6891         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6892         alpha-specific register id names.
6893         (alpha_mdebug_frame_unwind_cache): Likewise.
6894         (alpha_mdebug_frame_prev_register): Likewise.
6895
6896 2003-06-03  Richard Henderson  <rth@redhat.com>
6897
6898         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6899         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6900         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6901         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6902         unwind routines.
6903         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6904         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6905         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6906
6907         * alpha-linux-tdep.c: Remove unnecessary includes.
6908         * Makefile.in (alpha-linux-tdep.o): Update.
6909
6910 2003-06-03  Richard Henderson  <rth@redhat.com>
6911
6912         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6913         (alphabsd_fill_fpreg): Likewise.
6914
6915 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6916
6917         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
6918         references to struct frame_info fields by calls to the equivalent
6919         accessors. Necessary now that frame_info is opaque.
6920
6921 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6922
6923         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6924         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6925         structure, field no longer exists.
6926
6927 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6928
6929         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6930         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6931
6932 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6933
6934         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6935         references to struct frame_info fields by calls to the equivalent
6936         accessors. Necessary now that frame_info is opaque.
6937
6938 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6939
6940         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6941         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6942         structure, field no longer exists.
6943
6944 2003-06-03  Theodore A. Roth  <troth@openavr.org>
6945
6946         * remote.c (init_remote_state): Compute sizeof_g_packet by
6947         accumulation of the size of all registers instead of blindly using
6948         DEPRECATED_REGISTER_BYTES.
6949
6950 2003-06-03  Michael Snyder  <msnyder@redhat.com>
6951
6952         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6953         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6954         for h8300sx.
6955
6956 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6957
6958         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6959         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6960
6961 2003-06-03  Andrew Cagney  <cagney@redhat.com>
6962
6963         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6964         (sparc_convert_to_raw): Delete function.
6965         (sparc_gdbarch_init): Do not set register_convert_to_raw or
6966         register_convert_to_virtual.
6967
6968 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
6969
6970         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6971         layer if not dealing with a statically-linked threaded program.
6972
6973 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
6974
6975         * solib.c (solib_open): Update comment to reflect actual search order.
6976
6977 2003-06-03  Andrew Cagney  <cagney@redhat.com>
6978
6979         * frame.c (get_frame_memory_signed): New function.
6980         (get_frame_memory, get_frame_memory_unsigned): New function.
6981         (get_frame_arch): New function.
6982         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6983         (get_frame_memory, get_frame_unsigned_memory): Declare.
6984         * d10v-tdep.c (d10v_frame_unwind_cache): Use
6985         get_frame_memory_unsigned and get_frame_arch.
6986         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6987
6988 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
6989
6990         * MAINTAINERS (write after approval): Add myself.
6991
6992 2003-06-03  Jim Blandy  <jimb@redhat.com>
6993
6994         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6995         elements of gregset_t are 64 bits each, but access registers
6996         are still 32 bits, so they're packed two per gregset_t
6997         element.  Unpack/pack them properly.
6998
6999 2003-06-02  David Carlton  <carlton@bactrian.org>
7000
7001         * linespec.c (find_methods): Break out code into
7002         add_matching_methods and add_constructors.
7003         (add_matching_methods): New.
7004         (add_constructors): Ditto.
7005
7006 2003-06-02  Andrew Cagney  <cagney@redhat.com>
7007
7008         * sparc-tdep.c (sparc_print_registers): Delete call to
7009         REGISTER_CONVERTIBLE.
7010         (sparc_gdbarch_init): Do not set register_convertible.
7011         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7012         * frv-tdep.c (frv_gdbarch_init): Ditto.
7013         * cris-tdep.c (cris_gdbarch_init): Ditto.
7014
7015 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
7016
7017         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7018         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7019         (syms_from_objfile): Ditto.
7020
7021 2003-06-03  Andreas Schwab  <schwab@suse.de>
7022
7023         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7024         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7025
7026 2003-06-02  Richard Henderson  <rth@redhat.com>
7027
7028         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7029         a member of all_reggroup.
7030
7031 2003-06-02  Richard Henderson  <rth@redhat.com>
7032
7033         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7034         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7035         (alpha_lds, alpha_sts): New.
7036         (alpha_convert_register_p): Change from _register_convertible.
7037         (alpha_register_to_value): Change from _convert_to_virtual;
7038         restructure and fail for type sizes other than 4 or 8.
7039         (alpha_value_to_register): Similarly.
7040         (alpha_extract_return_value): Use alpha_sts.
7041         (alpha_store_return_value): Use alpha_lds.
7042         (alpha_gdbarch_init): Update hooks.
7043
7044 2003-06-02  Richard Henderson  <rth@redhat.com>
7045
7046         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7047         regnum identifiers.
7048         (alpha_sigtramp_register_address): Likewise.
7049
7050 2003-06-02  Richard Henderson  <rth@redhat.com>
7051
7052         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7053         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7054         * alpha-tdep.h: Declare them.
7055
7056         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7057         Remove zerobuf.  Don't error on UNIQUE.
7058         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7059         (ALPHA_REGSET_UNIQUE): Provide default.
7060         (supply_gregset): Use alpha_supply_int_regs.
7061         (fill_gregset): Use alpha_fill_int_regs.
7062         (supply_fpregset): Use alpha_supply_fp_regs.
7063         (fill_fpregset): Use alpha_fill_fp_regs.
7064         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7065         (alphabsd_supply_reg): Use alpha_supply_int_regs.
7066         (alphabsd_fill_reg): Use alpha_fill_int_regs.
7067         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7068         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7069         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7070
7071 2003-06-02  Richard Henderson  <rth@redhat.com>
7072
7073         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7074
7075         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7076         (alpha_store_return_value): Likewise.
7077
7078 2003-06-02  David Carlton  <carlton@math.stanford.edu>
7079
7080         * block.c (contained_in): Add 'const' to arguments.
7081         (block_function): Ditto.
7082         * block.h: Update declarations for block_function and
7083         contained_in.
7084
7085 2003-06-02  David Carlton  <carlton@math.stanford.edu>
7086
7087         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7088         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7089         * p-valprint.c (pascal_val_print): Ditto.
7090         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7091
7092 2003-06-02  Richard Henderson  <rth@redhat.com>
7093
7094         * alpha-tdep.c (alpha_push_dummy_call): Use
7095         builtin_type_ieee_double_little instead of builtin_type_double.
7096
7097         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7098         sign-extension of 32-bit values.
7099         (alpha_store_return_value): Similarly.
7100
7101         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7102         (alpha_extract_return_value): Likewise.
7103         (alpha_store_return_value): Likewise.
7104
7105         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7106         (alpha_store_return_value): Error on IEEE Quad floats.
7107
7108         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7109         (alpha_extract_struct_value_address): Likewise.
7110         (alpha_store_return_value): Likewise.
7111         (alpha_store_struct_return): Remove.
7112         (alpha_gdbarch_init): Update hook registration to match.
7113
7114         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7115         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7116         macros where appropriate.
7117         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
7118         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7119
7120         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7121         for SP, GP; void_func_ptr for PC; non-language-specific types
7122         for all others.
7123         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7124
7125 2003-06-02  Richard Henderson  <rth@redhat.com>
7126
7127         * top.h (lim_at_start): Declare.
7128         * main.c (captured_main): Set it.
7129         * top.c (lim_at_start): Define.
7130         (command_loop): Use it instead of &environ.
7131         * event-top.c (command_handler): Likewise.
7132
7133 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
7134
7135         * mipsnbsd-tdep.c: Update copyright years.
7136         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7137
7138 2003-06-01  Richard Henderson  <rth@redhat.com>
7139
7140         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7141         (alpha-linux-tdep.o): Update dependencies.
7142         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7143         * alpha-mdebug-tdep.c: Remove unneeded includes.
7144
7145 2003-06-01  Richard Henderson  <rth@redhat.com>
7146
7147         * alpha-tdep.c (alpha_register_reggroup_p): New.
7148         (alpha_gdbarch_init): Register it.
7149
7150 2003-06-02  Andrew Cagney  <cagney@redhat.com>
7151
7152         * dwarfread.c: Eliminate "register"
7153         (decode_die_type): Eliminate assignment within "if".
7154         (struct_type, decode_array_element_type): Ditto.
7155         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7156         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7157         (decode_modified_type, completedieinfo): Ditto.
7158         * block.c: Eliminate "register".
7159         (blockvector_for_pc_sect): Eliminate assignment within "if".
7160         * cp-support.h (struct symbol): Opaque declaration.
7161         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7162
7163 2003-06-01  Richard Henderson  <rth@redhat.com>
7164
7165         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7166         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7167
7168 2003-06-01  Adam Fedor  <fedor@gnu.org>
7169
7170         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7171         * gdbarch.[ch]: Regenerate.
7172         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7173         (hppa_gdbarch_init): Set it in the gdbarch vector.
7174         * i386-tdep.c (i386_fetch_pointer_argument): New
7175         (i386_gdbarch_init): Set it into gdbarch.
7176         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7177         (rs6000_gdbarch_init): Set it in gdbarch.
7178         * sparc-tdep.c (sparc_fetch_pointer_argument): New
7179         (sparc_gdbarch_init): Set it in gdbarch.
7180
7181 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7182
7183         * defs.h (extract_address): Delete declaration.
7184         * findvar.c (extract_address): Delete function.
7185         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7186         extract_address with the inline equivalent,
7187         extract_unsigned_integer.
7188         (xstormy16_extract_struct_value_address): Ditto.
7189         (xstormy16_pointer_to_address): Ditto.
7190         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7191         * v850-tdep.c (v850_push_arguments): Ditto.
7192         (v850_extract_return_value): Ditto.
7193         (v850_extract_struct_value_address): Ditto.
7194         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7195         (sparcnbsd_get_longjmp_target_64): Ditto.
7196         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7197         (get_longjmp_target): Ditto.
7198         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7199         (sh64_extract_struct_value_address): Ditto.
7200         (sh_push_arguments): Ditto.
7201         (sh64_push_arguments): Ditto.
7202         * remote-vxsparc.c (vx_read_register): Ditto.
7203         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7204         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7205         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7206         * mipsv4-nat.c (get_longjmp_target): Ditto.
7207         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7208         * mips-nat.c (get_longjmp_target): Ditto.
7209         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7210         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7211         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7212         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7213         * irix5-nat.c (get_longjmp_target): Ditto.
7214         * irix4-nat.c (get_longjmp_target): Ditto.
7215         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7216         (ia64_push_arguments): Ditto.
7217         * hpux-thread.c (hpux_thread_store_registers): Ditto.
7218         * h8300-tdep.c (h8300_push_arguments): Ditto.
7219         (h8300_store_return_value): Ditto.
7220         (h8300_extract_struct_value_address): Ditto.
7221         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7222         (frv_push_arguments): Ditto.
7223         * avr-tdep.c (avr_pointer_to_address): Ditto.
7224         (avr_push_arguments): Ditto.
7225         * arm-tdep.c (arm_push_dummy_call): Ditto.
7226         (arm_get_longjmp_target): Ditto.
7227         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7228         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7229         (alpha_get_longjmp_target): Ditto.
7230
7231         * solib-irix.c (extract_mips_address): Inline extract_address,
7232         replacing it with extract_signed_integer.
7233         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7234         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7235         (first_link_map_member, open_symbol_file_object): Ditto.
7236         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7237         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7238         (LM_NEXT, LM_NAME): Ditto.
7239
7240 2003-06-01  Richard Henderson  <rth@redhat.com>
7241
7242         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7243         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7244         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7245         (alpha_cannot_store_register): Likewise.
7246         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7247         * alpha-nat.c (supply_gregset): Likewise.
7248         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7249
7250 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7251
7252         * infcall.c (call_function_by_hand): Update comment on
7253         DEPRECATED_DUMMY_WRITE_SP.
7254
7255         * mips-tdep.c (mips_gdbarch_init): Do not set
7256         deprecated_dummy_write_sp.
7257         (mips_eabi_push_dummy_call): Set the SP register.
7258         (mips_o64_push_dummy_call): Set the SP register.
7259         (mips_o32_push_dummy_call): Set the SP register.
7260         (mips_n32n64_push_dummy_call): Set the SP register.
7261
7262 2003-06-01  Richard Henderson  <rth@redhat.com>
7263
7264         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7265         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7266         (supply_gregset): Likewise.
7267         * alpha-tdep.c (alpha_store_return_value): Likewise.
7268         (alpha_get_longjmp_target): Likewise.
7269         (alpha_register_name): Constify array.
7270         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7271         deprecated_register_size, deprecated_register_bytes,
7272         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7273         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7274         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7275
7276 2003-06-01  Richard Henderson  <rth@redhat.com>
7277
7278         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
7279         from arg_reg_buffer to regcache to avoid double conversion.
7280
7281 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
7282
7283         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7284         SP_REGNUM.
7285         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7286         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7287
7288 2003-06-01  Richard Henderson  <rth@redhat.com>
7289
7290         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7291         (decode_frame_entry): Set it.  Skip FDE augmentation.
7292
7293 2003-06-01  Richard Henderson  <rth@redhat.com>
7294
7295         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7296         not overlapping PC_REGNUM.
7297
7298 2003-06-01  Richard Henderson  <rth@redhat.com>
7299
7300         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7301         alpha_push_arguments.  Don't dump argument register data to
7302         the target stack.  Fix float and 128-bit long double semantics.
7303         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
7304         (alpha_fix_call_dummy): Remove.
7305         (alpha_call_dummy_words): Remove.
7306         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7307
7308 2003-06-01  Richard Henderson  <rth@redhat.com>
7309
7310         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7311
7312 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7313
7314         * mips-tdep.c (is_mips16_addr): New function.
7315         (make_mips16_addr, unmake_mips16_addr): New functions.
7316         (pc_is_mips16, mips_fetch_instruction): Use.
7317         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7318         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7319         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7320         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7321         TARGET_MIPS.
7322         * config/mips/tm-mips.h: Update copyright.
7323         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7324         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7325         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7326         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7327         (TM_PRINT_INSN_MACH): Delete.
7328         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7329
7330         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7331         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7332         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7333         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7334         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
7335         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
7336         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
7337         mips*-*-riscos* and mips*-*-sysv* onto mips.
7338         * config/mips/mips64.mt: New file.
7339         * config/mips/mips.mt: New file.
7340         * config/mips/littlemips.mt: Delete file.
7341         * config/mips/decstation.mt: Delete file.
7342         * config/mips/vr4300el.mt: Delete file.
7343         * config/mips/vr5000el.mt: Delete file.
7344         * config/mips/vr5000.mt: Delete file.
7345         * config/mips/vr4100.mt: Delete file.
7346         * config/mips/vr4xxxel.mt: Delete file.
7347         * config/mips/vr4300.mt: Delete file.
7348         * config/mips/vr4xxx.mt: Delete file.
7349         * config/mips/bigmips.mt: Delete file.
7350         * config/mips/bigmips64.mt: Delete file.
7351         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7352         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7353         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7354         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7355         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7356         "tm-bigmips.h".
7357         * config/mips/tm-irix3.h: Ditto.
7358         * config/mips/tm-mipsv4.h: Ditto.
7359         * config/mips/tm-embed.h: Ditto.
7360         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7361         "tm-bigmips64.h".
7362         * config/mips/tm-vr5000el.h: Delete file.
7363         * config/mips/tm-tx39l.h: Delete file.
7364         * config/mips/tm-vr4300el.h: Delete file.
7365         * config/mips/tm-vr4xxxel.h: Delete file.
7366         * config/mips/tm-vr4300.h: Delete file.
7367         * config/mips/tm-vr4100.h: Delete file.
7368         * config/mips/tm-vr4xxx.h: Delete file.
7369         * config/mips/tm-vr5000.h: Delete file.
7370         * config/mips/tm-embedl64.h: Delete file.
7371         * config/mips/tm-embedl.h: Delete file.
7372         * config/mips/tm-embed64.h: Delete file.
7373         * config/mips/tm-bigmips64.h: Delete file.
7374         * config/mips/tm-bigmips.h: Delete file.
7375
7376 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
7377
7378         Fix gdb/1216.
7379         * shnbsd-nat.c: Include "sh-tdep.h".
7380
7381         From Richard Henderson  <rth@redhat.com>:
7382         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7383
7384 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7385
7386         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
7387         forward declaration.
7388         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7389         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7390         (mips_find_saved_regs): Use set_reg_offset.
7391         (mips_frame_init_saved_regs): Delete function.
7392         (mips_pop_frame): Call mips_find_saved_regs instead of
7393         DEPRECATED_FRAME_INIT_SAVED_REGS.
7394
7395 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7396
7397         * mips-tdep.c (mips_gdbarch_init): Do not set
7398         deprecated_max_register_raw_size, register_virtual_size, and
7399         deprecated_max_register_virtual_size.
7400
7401 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7402
7403         * i386-tdep.c: Include "dwarf2-frame.h".
7404         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7405         * Makefile.in (i386-tdep.o): Update dependencies.
7406
7407         * dwarf2-frame.c, dwarf2-frame.h: New files.
7408         * Makefile.in (SFILES): Add dwarf2-frame.c.
7409         (dwarf2_frame_h): Define.
7410         (COMMON_OBS): Add dwarf2-frame.o.
7411         (dwarf2-frame.o): Add dependencies.
7412
7413 2003-05-31  Andreas Jaeger  <aj@suse.de>
7414
7415         * x86-64-linux-nat.c: Fix comment.
7416
7417 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7418
7419         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7420         function signature.
7421
7422         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7423         have a sigcontext_addr handler.
7424         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7425         sigcontext_addr handler.
7426
7427 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7428
7429         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7430         (print_fp_register_row): Replace do_fp_register_row.
7431         (mips_print_fp_register): Add "file" and "frame" parameters.
7432         (mips_print_register): Add "file" and "frame" parameters.
7433         (mips_print_registers_info): Replace mips_do_registers_info.
7434         (mips_gdbarch_init): Set print_registers_info instead of
7435         deprecated_do_registers_info.
7436         (mips_read_fp_register_single): Add "frame" parameter.
7437         (mips_read_fp_register_double): Add "frame" parameter.
7438
7439 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7440
7441         * i386-tdep.c (i386_register_name): Check for MMX registers first.
7442         Fixes a bug where GDB would print the wrong register names for
7443         targets without SSE.
7444
7445         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7446         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7447         registers.
7448
7449         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7450         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7451         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7452         TDEP->sc_sp_offset.
7453
7454         From Michal Ludvig  <mludvig@suse.cz>:
7455         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7456         and `sc_num_regs'.
7457         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7458         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7459         I386_ST0_REGNUM): Move here from...
7460         * i386-tdep.c: ... here.
7461         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7462         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7463         registers if possible.
7464         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7465         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7466         Remove variables.
7467         (i386bsd_sc_reg_offset): New variable.
7468         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7469         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7470         TDEP->sc_sp_offset.
7471         (i386fbsd_sc_reg_offset): New variable.
7472         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7473         TDEP->sc_num_regs.
7474         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7475         variables.
7476         (i386fbsd4_sc_reg_offset): New variable.
7477         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7478         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7479         TDEP->sc_sp_offset.
7480         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7481         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7482         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7483         Remove variables.
7484         (i386nbsd_sc_reg_offset): New variable.
7485         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7486         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7487         TDEP->sc_sp_offset.
7488         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7489         Remove variables.
7490         (i386obsd_sc_reg_offset): New variable.
7491         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7492         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7493         TDEP->sc_sp_offset.
7494         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7495         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
7496         for frame pointer offset in `struct sigcontext'.
7497
7498 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7499
7500         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7501         architecture methods call_dummy_words, sizeof_call_dummy_words,
7502         push_return_address, store_struct_return, and fix_call_dummy.  Set
7503         push_dummy_call instead of deprecated_push_arguments.
7504         (mips_store_struct_return): Delete function.
7505         (mips_fix_call_dummy): Delete function.
7506         (mips_push_return_address): Delete function.
7507         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7508         RA_REGNUM and T9_REGNUM.
7509         (mips_n32n64_push_dummy_call): Ditto for
7510         mips_n32n64_push_arguments.
7511         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7512         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7513
7514 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7515
7516         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
7517         "dummy_addr" to "bp_addr".
7518         * infcall.c (call_function_by_hand): Pass "funaddr" to
7519         gdbarch_push_dummy_call.
7520         * gdbarch.h, gdbarch.c: Re-generate.
7521         * i386-tdep.c (i386_push_dummy_call): Update.
7522         * arm-tdep.c (arm_push_dummy_call): Update.
7523         * d10v-tdep.c (d10v_push_dummy_call): Update.
7524
7525 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7526
7527         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7528         variable declarations.
7529         (x86_64_register_number, x86_64_register_name): Remove prototypes.
7530         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7531         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7532         x86_64_init_frame_pc, x86_64_init_frame_pc,
7533         x86_64_function_has_prologue): Remove prototypes.
7534         (X86_64_NUM_GREGS): New define.
7535         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7536         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
7537         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7538         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7539         XMM1_REGNUM): Remove defines.
7540         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7541         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7542         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7543         X86_64_XMM1_REGNUM): New defines.
7544         (struct x86_64_register_info): Renamed from `struct
7545         register_info'.  Remove `size' member.
7546         (x86_64_register_info_table): Remove variable.
7547         (x86_64_register_info): New variable.
7548         (X86_64_NUM_REGS): New define.
7549         (X86_64_NUM_GREGS): Remove define.
7550         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7551         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7552         Remove variables.
7553         (x86_54_dwarf2_reg_to_regnum): Remove function.
7554         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7555         (x86_64_dwarf_reg_to_regnum): New function.
7556         (x86_64_register_name): Rewrite.
7557         (x86_64_register_raw_size): Remove function.
7558         (x86_64_register_byte_table): Remove variable.
7559         (x86_64_register_byte): Remove function.
7560         (x86_64_register_virtual_type): Remove function.
7561         (x86_64_register_type): New function.
7562         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7563         x86_64_register_convert_to_raw): Remove functions.
7564         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7565         (x86_64_use_struct_convention): Make static.  Adjust for renamed
7566         defines.
7567         (x86_64_frame_init_saved_regs): Remove function.
7568         (x86_64_push_arguments): Make static.  Change to accept a regcache
7569         as argument.
7570         (x86_64_store_return_value, x86_64_extract_return_value): Make
7571         static.  Rewrite based on i386 counterparts.
7572         (x86_64_push_dummy_call): New function.
7573         (X86_64_NUM_SAVED_REGS): New define.
7574         (x86_64_register_number): Remove function.
7575         (x86_64_store_struct_return): Remove function.
7576         (x86_64_frameless_function_invocation,
7577         x86_64_function_has_prologue): Remove functions.
7578         (PROLOG_BUFSIZE): Remove define.
7579         (struct x86_64_frame_cache): New structure.
7580         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7581         x86_64_frame_cache, x86_64_frame_this_id,
7582         x86_64_frame_prev_register, x86_64_frame_p,
7583         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7584         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7585         functions.
7586         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7587         variables.
7588         (x86_64_skip_prologue): Rewrite in terms of
7589         x86_64_analyze_prologue.
7590         (x86_64_frame_base_address): New function.
7591         (x86_64_frame_base): New variable.
7592         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7593         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
7594         set deprecated_fp_regnum, deprecated_register_size,
7595         deprecated_register_bytes, register_raw_size, register_byte,
7596         register_virtual_type, register_convertiable,
7597         register_convert_to_virtual, convert_to_raw,
7598         deprecated_get_saved_register, deprecated_target_read_fp,
7599         deprecated_push_arguments, deprecated_push_return_address,
7600         deprecated_pop_frame, deprecated_store_struct_return,
7601         deprecated_frame_init_saved_regs, deprecated_frame_chain,
7602         frameless_function_invocation, deprecated_frame_saved_pc,
7603         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7604         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7605         deprecated_init_frame_pc and virtual_frame_pointer.  Call
7606         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7607         and x86_64_frame_p.  Call frame_base_set_default to register
7608         x86_64_frame_base.
7609         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7610         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7611         (_initialize_x86_64_tdep): Remove function.
7612         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7613         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7614         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7615         define.
7616         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7617         (x86_64_linux_sigcontext_addr): Rewrite.
7618         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7619         x86_64_linux_frame_saved_pc): Remove functions.
7620         (x86_64_linux_pc_in_sigtramp): Renamed from
7621         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
7622         trampoline.
7623         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7624         Remove_functions.
7625         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
7626         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7627         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7628         (x86_64_regmap): Rename to regmap.
7629         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7630         x86_64_num_gregs.
7631         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
7632         x86_64_regmap.
7633         (x86_64_fxsave_offset): Remove function.
7634         (supply_fpregset): Simply call x86_64_supply_fxsave.
7635         (fill_fpregset): Simply call x86_64_fill_fxsave.
7636         (fetch_inferior_registers, store_inferior_registers): Avoid
7637         asignment in if-statement.
7638         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7639         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7640         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7641         (fetch_core_registers): Remove function.
7642         (linux_elf_core_fns): Remove.
7643         (offsetoff): Don't define.
7644         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7645         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7646         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7647         add core-regset.o.
7648         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7649         protection against multiple includes instead of NM_X86_64_h.  Add
7650         various comments.  Include "config/nm-linux.h".  Don't include
7651         <signal.h>.
7652         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7653         GET_THREAD_SIGNALS): Remove defines.
7654         (x86_64_register_u_addr, kernel_u_size,
7655         lin_thread_get_thread_signals): Remove prototypes.
7656         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7657         [HAVE_LINK_H]: Don't include "solib.h".
7658         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7659         * config/i386/tm-x86-64linux.h: Fix comments.
7660         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7661         x86-64-tdep.o): Update dependencies.
7662
7663 2003-05-30  Andrew Cagney  <cagney@redhat.com>
7664
7665         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7666         Change parameter type to a "struct regcache *".
7667
7668         * gdbarch.sh: Regardless of the multi-arch level, always define
7669         the macro when not already defined.
7670         * gdbarch.h, gdbarch.c: Re-generate.
7671
7672 2003-05-30  Richard Henderson  <rth@redhat.com>
7673
7674         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7675         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7676         (alpha_mdebug_frame_this_id): Likewise.
7677         (alpha_mdebug_frame_prev_register): Likewise.
7678         (alpha_mdebug_frame_base_address): Likewise.
7679         (alpha_mdebug_frame_locals_address): Likewise.
7680         (alpha_mdebug_frame_args_address): Likewise.
7681         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7682         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7683         (alpha_heuristic_frame_unwind_cache): Make static; add missing
7684         loop increment.
7685         (alpha_heuristic_frame_this_id): Make static.
7686         (alpha_heuristic_frame_prev_register): Likewise.
7687         (alpha_heuristic_frame_base_address): Likewise.
7688         * alpha-tdep.h: Update.
7689
7690 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
7691
7692         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7693         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7694         defenitions.
7695         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7696         * i386-tdep.c: Mark functions that are 64-bit safe as such.
7697         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7698         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7699         I386_ST0_REGNUM): New defines.
7700         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7701         codestream_get): Remove define.
7702         (codestream_next_addr, condestream_addr, condestream_buf,
7703         codestream_off, codestream_cnt): Remove variables.
7704         (codestream_fill, codestream_seek, codestream_read): Remove
7705         functions.
7706         (i386_follow_jump): Rewrite to avoid usage of removed codestream
7707         functionality.
7708         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7709         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7710         i386_frame_saved_pc, i386_saved_pc_after_call,
7711         i386_frame_num_args, i386_frame_init_saved_regs,
7712         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7713         i386_push_arguments): Remove functions.
7714         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7715         functionality.  Use i386_analyze_prologue instead of
7716         i386_get_frame_setup.
7717         (I386_NUM_SAVED_REGS): New define.
7718         (struct i386_frame_cache): New structure.
7719         (i386_alloc_frame_cache, i386_analyze_struct_return,
7720         i386_skip_probe, i386_analyze_frame_setup,
7721         i386_analyze_register_saves, i386_analyze_prologue,
7722         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7723         i386_frame_prev_register, i386_sigtramp_frame_cache,
7724         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7725         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7726         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7727         New functions.
7728         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7729         New variables.
7730         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7731         I386_EAX_REGNUM and I386_EDX_REGNUM.
7732         (i386_extract_return_value, i386_store_return_value): Use
7733         I386_ST0_REGNUM where appropriate.
7734         (i386_extract_struct_value_address): Rewrite to use extract_address.
7735         (i386_svr4_pc_in_sigtramp): Add comment.
7736         (i386_svr4_sigcontext_addr): Rewrite.
7737         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7738         TDEP->sc_sp_offset.
7739         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
7740         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7741         of new defines.  Set push_dummy_call, don't set
7742         deprecated_push_arguments, deprecated_push_return_address,
7743         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
7744         deprecated_frame_chain, deprecated_frame_saved_pc,
7745         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
7746         save_dummy_frame_tos, unwind_pc.  Call
7747         frame_unwind_append_predicate and frame_base_set_default.  Don't
7748         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
7749         Don't set frameless_function_invocation.  Don't set
7750         deprecated_register_bytes, deprecated_register_size,
7751         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7752         * i386-linux-tdep.c: Fix formatting in some comments.
7753         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7754         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7755         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7756         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7757         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7758         redundant parentheses.
7759         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7760         (i386_linux_sigcontext_addr): Use it.  Rewrite.
7761         (find_minsym_and_objfile): Change name of second argument.
7762         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
7763         changed.  Use frame_pc_unwind instead of
7764         DEPRECATED_SAVED_PC_AFTER_CALL.
7765         (i386_linux_init_abi): Don't set deprecated_register_bytes.
7766         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7767         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7768         unwinder.
7769         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7770         "dummy-frame.h".
7771         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7772         (_initialize_i386_cygwin_tdep): New prototype.
7773         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7774         deprecated_frame_chain_valid.
7775         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7776         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7777         Rely on the SVR4 defaults.
7778         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7779         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7780
7781 2003-05-30  Andrew Cagney  <cagney@redhat.com>
7782
7783         * infcall.c (call_function_by_hand): Always call
7784         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7785
7786 2003-05-30  Richard Henderson  <rth@redhat.com>
7787
7788         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7789         increment.
7790
7791 2003-05-29  Jim Blandy  <jimb@redhat.com>
7792
7793         Use gdbarch methods for solib stuff on PowerPC Linux.
7794         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7795         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7796         show through.
7797         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7798         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7799         giving the same effect as the #definitions above.
7800
7801 2003-05-29  Adam Fedor  <fedor@gnu.org>
7802
7803         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7804         (find_implementation_from_class): Replace it with the standard
7805         case i.e. do nothing.
7806
7807 2003-05-29  Richard Henderson  <rth@redhat.com>
7808
7809         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7810         (alpha_linux_sigtramp_offset): Use it.  Make static.
7811         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7812         update for new frame model.
7813         * alpha-mdebug-tdep.c: New file.
7814         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7815         (alpha_osf1_init_abi): Install it.
7816         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7817         (linked_proc_desc_table): Remove.
7818         (alpha_frame_past_sigtramp_frame): Remove.
7819         (alpha_dynamic_sigtramp_offset): Remove.
7820         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7821         (alpha_proc_desc_is_dyn_sigtramp): Remove.
7822         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7823         (push_sigtramp_desc): Remove.
7824         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7825         (alpha_cannot_store_register): Likewise.
7826         (alpha_sigcontext_addr): Remove.
7827         (alpha_find_saved_regs): Remove.
7828         (alpha_frame_init_saved_regs): Remove.
7829         (alpha_init_frame_pc_first): Remove.
7830         (read_next_frame_reg): Remove.
7831         (alpha_frame_saved_pc): Remove.
7832         (alpha_saved_pc_after_call): Remove.
7833         (temp_proc_desc, temp_saved_regs): Remove.
7834         (alpha_about_to_return): Remove.
7835         (cached_proc_desc): Remove.
7836         (alpha_frame_chain): Remove.
7837         (alpha_print_extra_frame_info): Remove.
7838         (alpha_init_extra_frame_info): Remove.
7839         (alpha_frame_locals_address): Remove.
7840         (alpha_frame_args_address): Remove.
7841         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7842         (alpha_push_dummy_frame): Remove.
7843         (alpha_pop_frame): Remove.
7844         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7845         (alpha_read_insn): New.
7846         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7847         for different insn encodings.
7848         (alpha_in_lenient_prologue): Remove.
7849         (struct alpha_sigtramp_unwind_cache): New.
7850         (alpha_sigtramp_frame_unwind_cache): New.
7851         (alpha_sigtramp_register_address): New.
7852         (alpha_sigtramp_frame_this_id): New.
7853         (alpha_sigtramp_frame_prev_register): New.
7854         (alpha_sigtramp_frame_unwind): New.
7855         (alpha_sigtramp_frame_p): New.
7856         (struct alpha_heuristic_unwind_cache): New.
7857         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7858         don't count nop insns that occur between functions.
7859         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7860         heuristic_proc_desc, but without the mdebug wrapping.
7861         (alpha_heuristic_frame_this_id): New.
7862         (alpha_heuristic_frame_prev_register): New.
7863         (alpha_heuristic_frame_unwind): New.
7864         (alpha_heuristic_frame_p): New.
7865         (alpha_heuristic_frame_base_address): New.
7866         (alpha_heuristic_frame_base): New.
7867         (alpha_unwind_dummy_id): New.
7868         (alpha_unwind_pc): New.
7869         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
7870         frame related deprecated initializations; install replacements.
7871         (alpha_dump_tdep): Remove.
7872         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7873         (alpha_read_insn, alpha_after_prologue,
7874         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7875         alpha_heuristic_frame_prev_register,
7876         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7877         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7878         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7879         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7880
7881 2003-05-29  Andrew Cagney  <cagney@redhat.com>
7882
7883         * gdb_assert.h (gdb_assert_fail): Provide different definitions
7884         dependant on the availability of ASSERT_FUNCTION.
7885         (ASSERT_FUNCTION): Do not define when there is no function name.
7886
7887 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
7888
7889         From Jimi X <jimix@watson.ibm.com>:
7890         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7891
7892 2003-05-28  Jim Blandy  <jimb@redhat.com>
7893
7894         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7895         argument to ptrace to int; the system headers should give it the
7896         right type, and pointers don't fit in ints on powerpc64-*-*.
7897
7898 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
7899
7900         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7901         DW_TAG_catch_block.
7902
7903 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
7904
7905         * stabsread.c (dbx_lookup_type): Make static.
7906         (read_type): Ditto.
7907         (add_undefined_type): Ditto.
7908         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7909         not export.
7910
7911 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
7912
7913         * hpread.c (hpread_has_name): Make static.
7914         (hpread_psymtab_to_symtab): Ditto.
7915         (file_exists): Ditto.
7916         (hpread_call_pxdb): Ditto.
7917         (hpread_pxdb_needed): Ditto.
7918         (hpread_quick_traverse): Ditto.
7919         (hpread_get_header): Ditto.
7920         (hpread_get_lntt): Ditto.
7921         (hpread_get_slt): Ditto.
7922         (class_of): Ditto.
7923
7924 2003-05-25  Andreas Schwab  <schwab@suse.de>
7925
7926         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7927         stack_align and deprecated_extra_stack_alignment_needed.
7928         (m68k_stack_align): Delete.
7929
7930         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7931         (m68k_register_virtual_size): Likewise.
7932         (altos_skip_prologue): Remove obsolete function.
7933         (isi_frame_num_args): Likewise.
7934         (news_frame_num_args): Likewise.
7935         (m68k_fix_call_dummy): Make static.
7936         (m68k_push_dummy_frame): Likewise.
7937         (m68k_pop_frame): Likewise.
7938         (m68k_skip_prologue): Likewise.
7939         (m68k_frame_init_saved_regs): Likewise.
7940         (m68k_saved_pc_after_call): Likewise.
7941         (m68k_get_longjmp_target): Make multi-arch.
7942         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7943         structure.  Register m68k_get_longjmp_target if enabled.
7944         * m68k-tdep.h (struct gdbarch_tdep): Define.
7945         * config/m68k/tm-m68k.h: Don't include "regcache.h".
7946
7947         * Makefile.in (config.status): Also depend on configure.tgt
7948         and configure.host.
7949         (m68klinux-tdep.o): Update dependencies.
7950         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7951         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7952         (M68K_LINUX_JB_PC): Define.
7953         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7954         and take additional parameter.
7955         (m68k_linux_sigtramp_saved_pc): Update.
7956         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
7957         m68k_linux_pc_in_sigtramp, in_plt_section,
7958         find_solib_trampoline_target.
7959         * config/m68k/tm-linux.h: Don't include any tm headers.
7960         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7961         (JB_ELEMENT_SIZE): Likewise.
7962         (JB_PC): Likewise.
7963         (GET_LONGJMP_TARGET): Likewise.
7964         (IN_SIGTRAMP): Likewise.
7965         (SVR4_SHARED_LIBS): Define this and include "solib.h".
7966
7967 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
7968
7969         * sparc-tdep.c (sparc32_do_push_arguments): New function.
7970         (sparc32_push_arguments): Re-implement by calling
7971         sparc32_do_push_arguments.
7972
7973 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
7974
7975         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7976         SPARC_O1_REGNUM): New defines.
7977         (sparc32_extract_return_value): Rewrite to operate on a regcache.
7978         (sparc32_store_return_value): New function.
7979         (sparc_extract_struct_value_address): Rewrite to operate on a
7980         regcache.
7981         (sparc_gdbarch_init): Don't set
7982         deprecated_extract_struct_value_address.  Set
7983         extract_struct_value_address instead. Don't set
7984         deprecated_extract_return_value and deprecated_store_return_value
7985         for 32-bit targets.  Set extract_return_value and
7986         store_return_value instead.
7987         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7988         DEPRECTAED_EXTRACT_RETURN_VALUE,
7989         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7990         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7991         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7992         (sparc_store_return_value): Remove prototype.
7993         (sparc32_store_return_value): New prototype.
7994         (sparc32_extract_return_value, sparc_extract_struct_value_address):
7995         Adjust prototypes.
7996
7997 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
7998
7999         * sparcnbsd-tdep.c: Include "gdb_string.h".
8000
8001 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8002
8003         * p-valprint.c (pascal_val_print): Replace extract_address with
8004         the inline equivalent extract_unsigned_integer.
8005         * jv-valprint.c (java_value_print): Ditto.
8006         * ada-valprint.c (ada_val_print_1): Ditto.
8007         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8008
8009 2003-05-23  Theodore A. Roth  <troth@openavr.org>
8010
8011         * blockframe.c (frameless_look_for_prologue): Remove unused
8012         after_prologue variable.
8013
8014 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
8015
8016         * blockframe.c (get_pc_function_start): Rewrite to avoid
8017         asignments in if-statements.
8018
8019 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
8020
8021         Committed by Elena Zannoni  <ezannoni@redhat.com>.
8022         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8023         files, don't relocate absolute symbols (and do use mst_abs).
8024
8025 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8026
8027         * objc-lang.c: Include "gdb_assert.h".
8028         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8029         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8030         (gdb_check, gdb_check_fatal): Delete functions.
8031         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8032         gdb_assert.
8033         (parse_selector, parse_method, find_methods, find_imps): Ditto.
8034         * Makefile.in (objc-lang.o): Update dependencies.
8035
8036 2003-05-22  Ian Lance Taylor  <ian@airs.com>
8037
8038         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8039         with fprintf_filtered, not fprintf_unfiltered.
8040
8041 2003-05-22  Andrew Cagney  <cagney@redhat.com>
8042
8043         * stack.c (frame_info): Inline extract_address, replacing it with
8044         extract_unsigned_integer.
8045         * findvar.c (unsigned_pointer_to_address): Ditto.
8046         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8047         * dwarf2expr.c (dwarf2_read_address): Ditto.
8048         * frame.c (frame_pc_unwind): Update comment.
8049         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8050
8051 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
8052
8053         * infptrace.c (detach): Call print_sys_errmsg rather than
8054         perror_with_name to issue warning message when errno is non-zero
8055         after calling ptrace detach.
8056
8057 2003-05-21  J. Brobecker  <brobecker@gnat.com>
8058
8059         * config/pa/tm-hppa.h: Delete some unused macros. Move some
8060         macro definitions from here...
8061         * hppa-tdep.c: ...to there.
8062
8063 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
8064
8065         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8066         register_ptrace_addr().  Fix all callers.
8067
8068 2003-05-21  Andreas Schwab  <schwab@suse.de>
8069
8070         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8071         dependencies.
8072         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8073         end.
8074         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8075         (_initialize_m68k_linux_tdep): New function.
8076         (m68k_linux_frame_saved_pc): Make static.
8077         (m68k_linux_extract_return_value): Likewise.
8078         (m68k_linux_store_return_value): Likewise.
8079         (m68k_linux_extract_struct_value_address): Likewise.
8080         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8081         Remove.
8082         (DEPRECATED_STORE_RETURN_VALUE): Remove.
8083         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8084         (DEPRECATED_FRAME_SAVED_PC): Remove.
8085
8086 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
8087
8088         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8089         regset numbering rather than our own.
8090
8091 2003-05-19  David Carlton  <carlton@bactrian.org>
8092
8093         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8094
8095 2003-05-19  David Carlton  <carlton@bactrian.org>
8096
8097         Partial fix for PR c++/827.
8098         * cp-support.h: Include symtab.h.
8099         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8100         * cp-namespace.c: Update contributors.
8101         (cp_lookup_symbol_nonlocal): New.
8102         (lookup_namespace_scope, cp_lookup_symbol_namespace)
8103         (lookup_symbol_file): Ditto.
8104         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8105         * block.h: Declare block_scope, block_using, block_global_block.
8106         * block.c (block_scope): New.
8107         (block_using, block_global_block): Ditto.
8108         * Makefile.in (cp_support_h): Depend on symtab_h.
8109         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8110
8111 2003-05-19  David Carlton  <carlton@bactrian.org>
8112
8113         * language.h (struct language_defn): Add 'la_value_of_this'
8114         and 'la_lookup_symbol_nonlocal' members.
8115         * symtab.h: Declare basic_lookup_symbol_nonlocal,
8116         lookup_symbol_static, lookup_symbol_global,
8117         lookup_symbol_aux_block.
8118         * symtab.c (lookup_symbol_aux): Call language hooks to determine
8119         if we should search fields of this and how to do static/global
8120         lookup.
8121         (lookup_symbol_aux_block): Make extern.
8122         (basic_lookup_symbol_nonlocal): New.
8123         (lookup_symbol_static, lookup_symbol_global): Ditto.
8124         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8125         'la_lookup_symbol_nonlocal' members.
8126         * c-lang.c (c_language_defn, cplus_language_defn)
8127         (asm_language_defn, minimal_language_defn): Ditto.
8128         * jv-lang.c (java_language_defn): Ditto.
8129         * language.c (unknown_language_defn, auto_language_defn)
8130         (local_language_defn): Ditto.
8131         * m2-lang.c (m2_language_defn): Ditto.
8132         * objc-lang.c (objc_language_defn): Ditto.
8133         * scm-lang.c (scm_language_defn): Ditto.
8134         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8135         * p-lang.c (pascal_language_defn): Ditto for both.
8136         * Makefile.in (f-lang.o): Depend on value_h.
8137         (p-lang.o): Ditto.
8138
8139 2003-05-19  David Carlton  <carlton@bactrian.org>
8140
8141         * block.h: Declare block_static_block.
8142         * block.c (block_static_block): New.
8143         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8144         lookup_symbol_aux_local, calling block_static_block instead.
8145         (lookup_symbol_aux_local): Delete 'static_block' argument.
8146
8147 2003-05-19  David Carlton  <carlton@bactrian.org>
8148
8149         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8150
8151 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
8152
8153         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8154         register numbers mapping.
8155
8156 2003-05-18  Adam Fedor  <fedor@gnu.org>
8157
8158         * symtab.c (completion_list_objc_symbol): New function.
8159         (make_symbol_completion_list): Use it to add ObjC symbols
8160         when looking though the list.
8161         (language_search_unquoted_string): New function.
8162         (make_file_symbol_completion_list): Use it.
8163
8164 2003-05-18  Andreas Schwab  <schwab@suse.de>
8165
8166         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8167         dependencies.
8168         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8169         as m68k_linux_extract_return_value.
8170         (DEPRECATED_STORE_RETURN_VALUE): Define as
8171         m68k_linux_store_return_value.
8172         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8173         m68k_linux_extract_struct_value_address.
8174         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8175         get_next_frame, get_frame_base, get_frame_pc.
8176         (m68k_linux_frame_saved_pc): Use get_frame_base.
8177         (m68k_linux_extract_return_value): New function.
8178         (m68k_linux_store_return_value): New function.
8179         (m68k_linux_extract_struct_value_address): New function.
8180         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8181
8182         * c-exp.y (typebase): Remove duplicate occurence of
8183         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
8184         of lookup_signed_typename.
8185
8186 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
8187
8188         * dwarf2loc.c (find_location_expression): Change type of second
8189         argument to `size_t *'.
8190         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8191         for size variable.
8192
8193 2003-05-18  David Carlton  <carlton@bactrian.org>
8194
8195         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8196         'linkage_name'.  Add comment.
8197         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8198         'linkage_name'.
8199         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8200         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8201         (lookup_block_symbol): Ditto.
8202
8203 2003-05-16  Andrew Cagney  <cagney@redhat.com>
8204
8205         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8206         * gdbarch.h, gdbarch.c: Re-generate.
8207         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8208         * TODO (REGISTER_BYTES): Delete reference.
8209         * alpha-tdep.c (alpha_gdbarch_init): Update.
8210         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8211         * x86-64-tdep.c (x86_64_init_abi): Update.
8212         * vax-tdep.c (vax_gdbarch_init): Update.
8213         * v850-tdep.c (v850_gdbarch_init): Update.
8214         * sparc-tdep.c (sparc_gdbarch_init): Update.
8215         * sh-tdep.c (sh_gdbarch_init): Update.
8216         * s390-tdep.c (s390_gdbarch_init): Update.
8217         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8218         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8219         (ns32k_gdbarch_init_32382): Update.
8220         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8221         * mcore-tdep.c (mcore_gdbarch_init): Update.
8222         * m68k-tdep.c (m68k_gdbarch_init): Update.
8223         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8224         * ia64-tdep.c (ia64_gdbarch_init): Update.
8225         * i386-tdep.c (i386_gdbarch_init): Update.
8226         * i386-linux-tdep.c (i386_linux_init_abi): Update.
8227         * hppa-tdep.c (hppa_gdbarch_init): Update.
8228         * h8300-tdep.c (h8300_gdbarch_init): Update.
8229         * frv-tdep.c (frv_gdbarch_init): Update.
8230         * cris-tdep.c (cris_gdbarch_init): Update.
8231         * avr-tdep.c (avr_gdbarch_init): Update.
8232         * arm-tdep.c (arm_gdbarch_init): Update.
8233         * sparc-tdep.c (sparc_pop_frame): Update.
8234         * rs6000-tdep.c (rs6000_pop_frame): Update.
8235         * remote.c (init_remote_state): Update.
8236         (remote_prepare_to_store): Update.
8237         * remote-vx.c (vx_prepare_to_store): Update.
8238         * remote-sds.c (sds_fetch_registers): Update.
8239         (sds_prepare_to_store): Update.
8240         * remote-array.c: Update.
8241         * regcache.c (init_legacy_regcache_descr): Update.
8242         (init_regcache_descr): Update.
8243         * mips-tdep.c (mips_eabi_extract_return_value): Update.
8244         (mips_o64_extract_return_value): Update.
8245         * irix5-nat.c (fetch_core_registers): Update.
8246         * irix4-nat.c (fetch_core_registers): Update.
8247         * i386-tdep.h: Update.
8248         * hppa-tdep.c (pa_do_registers_info): Update.
8249         (pa_do_strcat_registers_info): Update.
8250         * cris-tdep.c (cris_register_bytes_ok): Update.
8251         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8252         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8253         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8254         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8255         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8256         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8257         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8258         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8259         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8260         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8261         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8262         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8263         (REGISTER_BYTES_OK): Update.
8264         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8265         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8266
8267 2003-05-16  Ian Lance Taylor  <ian@airs.com>
8268
8269         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8270         (vax_print_insn, print_insn_arg): Remove static functions.
8271         (vax_gdbarch_init): Call set_gdbarch_print_insn with
8272         print_insn_vax from opcodes library.
8273         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8274
8275 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8276
8277         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8278         * target.h (memory_breakpoint_from_pc): Delete declaration.
8279         * mem-break.c (memory_breakpoint_from_pc): Delete function.
8280         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8281         * monitor.c (monitor_insert_breakpoint): Use
8282         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8283         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8284         * gdbarch.h, gdbarch.c: Re-generate.
8285         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8286         (sparc_gdbarch_init): Set breakpoint_from_pc to
8287         sparc_breakpoint_from_pc.
8288         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8289         (BREAKPOINT_FROM_PC): Define.
8290         (sparc_breakpoint_from_pc): Declare.
8291         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8292         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8293         (BREAKPOINT_FROM_PC): Define.
8294         (BREAKPOINT): Delete macro.
8295         * target.h: Update comment.
8296         * s390-tdep.c (s390_gdbarch_init): Update comments.
8297         * remote.c: Update comments.
8298         * remote-mips.c: Update comments.
8299         * proc-api.c (write_with_trace): Do not check for a breakpoint.
8300         * mem-break.c: Update comment.
8301         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8302         (ia64_memory_insert_breakpoint): Update.
8303         * config/sparc/tm-sparc.h: Update comment.
8304         * config/pa/tm-hppa64.h: Update comment.
8305         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8306         (rs6000_breakpoint_from_pc): Update.
8307         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8308         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8309         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8310         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8311         (mips_breakpoint_from_pc): Update.
8312         (mips_dump_tdep): Update.
8313
8314         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8315         * minsyms.c (lookup_minimal_symbol): Inline
8316         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
8317
8318         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8319         * p-valprint.c (pascal_object_print_value_fields): Ditto.
8320         * p-lang.c (pascal_printstr): Ditto.
8321         * objc-lang.c (objc_printstr): Ditto.
8322         * m2-lang.c (m2_printstr): Ditto.
8323         * jv-valprint.c (java_print_value_fields): Ditto.
8324         * f-lang.c (f_printstr): Ditto.
8325         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
8326         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8327         for repeat_count_threshold.
8328         * Makefile.in (cp-valprint.o): Update dependencies.
8329
8330 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
8331
8332         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8333         (examine_prologue): Support looking through leaf functions, knowing
8334         they start with mov r2,r12.  Support skipping over indirect stores
8335         of the input registers.  Upon hitting a non-nop branch instruction
8336         or predicated instruction, bail out by setting lim_pc to the current
8337         pc value in the loop.  At the end, if the lim_pc value is still
8338         beyond our calculated value and we have trust_limit set,
8339         use the lim_pc value.
8340
8341 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8342
8343         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8344         generic_find_dummy_frame.
8345         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8346         (deprecated_generic_find_dummy_frame): Update.
8347         (deprecated_read_register_dummy): Update.
8348         * frame.c (deprecated_generic_get_saved_register): Update.
8349
8350 2003-05-15  Theodore A. Roth  <troth@openavr.org>
8351
8352         * avr-tdep.c (avr_breakpoint_from_pc): New function.
8353         (avr_gdbarch_init): Set breakpoint_from_pc method.
8354
8355 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8356
8357         * regcache.c (build_regcache): Set deprecated_register_valid
8358         directly.
8359         (deprecated_grub_regcache_for_register_valid): Delete function.
8360         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8361         declaration.
8362
8363 2003-05-15  David Carlton  <carlton@bactrian.org>
8364
8365         Committed by Elena Zannoni <ezannoni@redhat.com>
8366         * symtab.c (lookup_symbol_aux): Delete calls to
8367         lookup_symbol_aux_minsyms.
8368         (lookup_symbol_aux_minsyms): Comment out function and
8369         prototype. Delete lookup by mangled name.
8370
8371 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
8372
8373         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8374         correctly indicate an empty stack and ``stack_allocated'' to the
8375         indicate the number of elements initially allocated.
8376         (dwarf_expr_grow_stack): Simplify method for computing new
8377         stack size.  Don't loop infinitely if ``stack_len'' is zero.
8378         (execute_stack_op): Move ``ctx->in_reg'' initialization
8379         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8380         be used in conjuction with DW_OP_piece.  Revise error message
8381         accordingly.
8382
8383 2003-05-14  Theodore A. Roth  <troth@openavr.org>
8384
8385         * MAINTAINERS: Update my email address.
8386         * avr-tdep.c: Ditto.
8387
8388 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
8389
8390         * symtab.h (enum domain_enum): Rename from namespace_enum.
8391         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8392         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8393         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8394         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8395         TYPES_NAMESPACE, METHODS_NAMESPACE.
8396         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8397         (struct symbol, struct partial_symbol): Rename field
8398         'namespace_enum namespace' to 'domain_enum domain'.
8399         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8400         Delete old define kludge for namespace.
8401
8402         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8403         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8404         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8405         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8406         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8407         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8408         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8409         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8410         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8411         occurrences of the above.
8412
8413 2003-05-14  Ian Lance Taylor  <ian@airs.com>
8414
8415         * Makefile.in (install-only): Use $(SHELL) when running
8416         mkinstalldirs.
8417
8418 2003-05-13  Ian Lance Taylor  <ian@airs.com>
8419
8420         * MAINTAINERS (write after approval): Add myself.
8421
8422         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8423         second and third arguments.
8424         * ser-tcp.c (_initialize_ser_tcp): Likewise.
8425         * ser-unix.c (_initialize_ser_hardwire): Likewise.
8426
8427 2003-05-13  Andrew Cagney  <cagney@redhat.com>
8428
8429         * defs.h (store_address): Delete declaration.
8430         findvar.c (store_address): Delete function.
8431         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8432         store_unsigned_integer.
8433         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8434         * v850-tdep.c (v850_push_arguments): Ditto.
8435         * sparc-tdep.c (sparc_get_saved_register): Ditto.
8436         * sh-tdep.c (sh64_get_saved_register): Ditto.
8437         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8438         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8439         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8440         (mips_get_saved_register): Ditto.
8441         * ia64-tdep.c (ia64_get_saved_register): Ditto.
8442         (find_func_descr, ia64_push_arguments): Ditto.
8443         * i386-tdep.c (i386_push_arguments): Ditto.
8444         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8445         * frv-tdep.c (frv_push_arguments): Ditto.
8446         * frame.c (legacy_saved_regs_prev_register): Ditto.
8447         (deprecated_generic_get_saved_register): Ditto.
8448         * findvar.c (unsigned_address_to_pointer): Ditto.
8449         * dwarf2read.c (dwarf2_const_value): Ditto.
8450         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8451         * alpha-tdep.c (alpha_push_arguments): Ditto.
8452
8453 2003-05-12  J. Brobecker  <brobecker@gnat.com>
8454
8455         * NEWS: Mention that the hppa-hpux port has been partially
8456         multiarched (32bit ABIT only, so far).
8457
8458 2003-05-11  Andrew Cagney  <cagney@redhat.com>
8459
8460         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8461         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8462         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8463         sim/testsuite/sim/arm/misaligned2.ms, and
8464         sim/testsuite/sim/arm/misaligned3.ms.
8465         * disasm.h (struct ui_file): Add opaque struct declaration.
8466         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8467         * frame.h (struct ui_file): Ditto.
8468
8469 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
8470
8471         * value.h: Pretty print.
8472
8473 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
8474
8475         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8476
8477 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8478
8479         * regcache.h (max_register_size): Delete declaration.
8480         * regcache.c (max_register_size): Delete function.
8481         (struct regcache_descr): Delete field "max_register_size".
8482         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8483         registers fit in MAX_REGISTER_SIZE.
8484         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8485         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8486         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8487         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8488         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8489         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8490         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8491         * dve3900-rom.c, hppa-tdep.c: Ditto.
8492
8493 2003-05-08  David Carlton  <carlton@math.stanford.edu>
8494
8495         * valops.c (push_word): Fix typo.
8496
8497 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8498
8499         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8500         * gdbarch.h: Re-generate.
8501         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8502         (legacy_max_register_raw_size): Delete declaration.
8503         * regcache.c (legacy_max_register_raw_size): Delete function.
8504         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8505         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8506         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8507         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8508         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8509         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8510         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8511         * findvar.c, dwarf2cfi.c: Ditto.
8512
8513 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8514
8515         * mips-tdep.c (read_signed_register): New function, moved to here
8516         from "regcache.c".
8517         (read_signed_register_pid): Ditto.
8518         * regcache.c (read_signed_register_pid): Delete function, moved to
8519         "mips-tdep.c".
8520         (read_signed_register): Ditto.
8521         * regcache.h (read_signed_register): Delete declaration.
8522         (read_signed_register_pid): Delete declaration.
8523
8524 2003-05-08  Andrew Cagney  <cagney@redhat.com>
8525
8526         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8527         * gdbarch.h: Re-generate.
8528         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8529         (legacy_max_register_virtual_size): Delete declaration.
8530         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8531         * d10v-tdep.c (d10v_print_registers_info): Ditto.
8532         * tracepoint.c (memrange_sortmerge): Ditto.
8533         * sparc-tdep.c (sparc_print_registers): Ditto.
8534         * regcache.c (legacy_max_register_virtual_size): Delete function.
8535
8536 2002-05-08  J. Brobecker  <brobecker@gnat.com>
8537
8538         * fork-child.c (escape_bang_in_quoted_argument): New function.
8539         (fork_inferior): Escape '!' characters in quoted arguments
8540         only when needed.
8541
8542 2003-05-08  J. Brobecker  <brobecker@gnat.com>
8543
8544         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8545         the language of the CU is not currently supported by GDB.
8546
8547 2003-05-08  J. Brobecker  <brobecker@gnat.com>
8548
8549         * defs.h (language): Add language_minimal enum value.
8550         * c-lang.c (minimal_language_defn): New language definition.
8551         (_initialize_c_language): Add the new minimal language to the list
8552         of languages known to GDB.
8553
8554 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
8555
8556         * frame.c (get_frame_type): Don't attempt to lazily initialize
8557         frame's unwinder for legacy frames.
8558
8559 2003-05-07  Andrew Cagney  <cagney@redhat.com>
8560
8561         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8562         and "regcache" parameters.
8563         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8564
8565 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
8566
8567         * dwarf2read.c (dwarf_decode_lines): Only use output of
8568         check_cu_functions() when calling record_line().  Do not update
8569         the current address.
8570
8571 2003-05-07  Andrew Cagney  <cagney@redhat.com>
8572
8573         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8574         code.
8575
8576 2003-05-07  Jim Blandy  <jimb@redhat.com>
8577
8578         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8579         'maint info symtabs' and 'maint info psymtabs'.
8580         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8581         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8582         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8583         Declarations updated.
8584         * maint.c (maintenance_list_command): Delete.
8585         (_initialize_maint_cmds): Update calls to add_cmd.
8586         * gdbcmd.h (maintenancelistlist): Delete declaration.
8587         * cli/cli-cmds.c (maintenancelistlist): Delete.
8588         (init_cmd_lists): Don't initialize it.
8589         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8590
8591 2003-05-07  Andrew Cagney  <cagney@redhat.com>
8592
8593         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8594         "regcache".
8595         (d10v_print_registers_info): Update.
8596         (d10v_dmap_register, d10v_imap_register): Delete functions.
8597         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8598         and "imap_register".
8599         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8600         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8601         * arch-utils.c (generic_remote_translate_xfer_address): Add
8602         "regcache" and "gdbarch" parameters.
8603         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8604         parameter.  Change class to multi-arch.
8605         * gdbarch.h, gdbarch.c: Re-generate.
8606         * remote.c (remote_xfer_memory): Use
8607         gdbarch_remote_translate_xfer_address.
8608
8609 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
8610
8611         * infrun.c (prev_pc): Move declaration ahead of proceed().
8612         (proceed): Refresh prev_pc value before resuming.
8613         (stop_stepping): Remove code to refresh prev_pc.
8614
8615 2003-05-06  Kris Warkentin <kewarken@qnx.com>
8616
8617         * nto-tdep.c: Removed stray comment.
8618
8619 2003-05-06  Kris Warkentin <kewarken@qnx.com>
8620
8621         * i386-nto-tdep.c: Fix old K&R function definitions.
8622         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8623         Also change add_show_from_set() call to add_setshow_cmd().
8624         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8625
8626 2003-05-05  Andrew Cagney  <cagney@redhat.com>
8627
8628         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8629         (fprint_dummy_frames): New function.
8630         (maintenance_print_dummy_frames): New function.
8631         (_initialize_dummy_frame): Add command "maint print dummy-frames".
8632         * frame.c (fprint_frame_id): Make global.
8633         * frame.h (fprint_frame_id): Declare.
8634         * Makefile.in (dummy-frame.o): Update dependencies.
8635
8636 2003-05-05  Andrew Cagney  <cagney@redhat.com>
8637
8638         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8639         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8640         SIZEOF_CALL_DUMMY_WORDS.
8641         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8642         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8643         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8644         CALL_DUMMY_BREAKPOINT_OFFSET.
8645         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8646         CALL_DUMMY_START_OFFSET.
8647         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8648         * gdbarch.h, gdbarch.c: Re-generate.
8649         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8650         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8651         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8652         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8653         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8654         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8655         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8656         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8657         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8658         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8659         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8660         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8661         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8662         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8663         * config/sparc/tm-sparc.h: Update.
8664
8665 2003-05-05  Kris Warkentin <kewarken@qnx.com>
8666
8667         * configure.tgt: Add i[3456]86-*-nto*.
8668         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
8669         * nto-tdep.c: New file. Neutrino target support routines.
8670         * nto-tdep.h: New file. Neutrino target header.
8671         * config/tm-qnxnto.h: New file.
8672         * config/i386/i386nto.mt: New file.
8673         * config/i386/tm-i386nto.h: New file.
8674
8675 2003-05-04  Andrew Cagney  <cagney@redhat.com>
8676
8677         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8678         (load_infrun_state): Ditto.
8679         (struct thread_info): Drop "prev_func_name" field.
8680         * thread.c (load_infrun_state): Update.
8681         (save_infrun_state): Update.
8682         * infrun.c (prev_func_name): Delete variable.
8683         (init_wait_for_inferior): Do not clear prev_func_name.
8684         (stop_stepping, keep_going, context_switch): Do not swap
8685         prev_func_name.
8686         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8687         instead of PC_IN_SIGTRAMP.
8688
8689 2003-05-04  Andrew Cagney  <cagney@redhat.com>
8690
8691         * sentinel-frame.c (sentinel_frame_prev_register): Replace
8692         REGISTER_BYTE with register_offset_hack.
8693         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8694         that REGISTER_BYTE is consistent with the regcache.
8695         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8696         * gdbarch.h, gdbarch.c: Regenerate.
8697
8698 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
8699
8700         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8701         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8702
8703         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8704
8705 2003-05-03  J. Brobecker  <brobecker@gnat.com>
8706
8707         From Thierry Schneider <tpschneider1@yahoo.com>
8708         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8709         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8710         (mi-cmd-symbol.o): Add rule.
8711
8712 2003-05-03  Andrew Cagney  <cagney@redhat.com>
8713
8714         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8715         comments noteing that it replaces the old FIX_CALL_DUMMY code.
8716         * gdbarch.h, gdbarch.c: Re-generate.
8717         * d10v-tdep.c (d10v_push_dummy_code): New function.
8718         (d10v_gdbarch_init): Set push_dummy_code.
8719         * infcall.c (legacy_push_dummy_code): New function.
8720         (generic_push_dummy_code): New function.
8721         (push_dummy_code): New function.
8722         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
8723         instead of dummy_addr, to push_dummy_call.  Move call to
8724         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8725         switch.
8726         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8727
8728 2003-05-03  Andrew Cagney  <cagney@redhat.com>
8729
8730         * disasm.h (print_insn): Declare.
8731         * disasm.c (init_gdb_disassemble_info): New function.
8732         (gdb_disassembly): Call init_gdb_disassemble_info.
8733         (gdb_print_insn): New function.
8734         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8735         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
8736         * mcore-tdep.c: Include "disasm.h"
8737         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8738         * d10v-tdep.c: Include "disasm.h".
8739         (display_trace): Call gdb_print_insn, instead of print_insn.
8740         (print_insn): Delete function.
8741         * printcmd.c: Include "disasm.h".
8742         (print_insn): Delete function.
8743         (print_formatted): Call gdb_print_insn, instead of print_insn.
8744         * Makefile.in (printcmd.o): Update dependencies.
8745         (mcore-tdep.o, d10v-tdep.o): Ditto.
8746
8747 2003-05-02  Andrew Cagney  <cagney@redhat.com>
8748
8749         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8750         PC_REGNUM, re-indent.
8751         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8752         PC_REGNUM isn't set.
8753
8754         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8755         * gdbarch.h, gdbarch.c: Re-generate.
8756         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8757         register_virtual_size, pc_regnum, or register_bytes.
8758         (D10V_PC_REGNUM): Rename _PC_REGNUM.
8759         (d10v_register_type): Use D10V_PC_REGNUM.
8760         (d10v_print_registers_info, d10v_read_pc): Ditto.
8761         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8762         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8763
8764 2003-05-02  David Carlton  <carlton@bactrian.org>
8765
8766         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8767         the name with mstrsave.
8768
8769 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
8770
8771         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8772         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8773         (host_charset_name, target_charset_name): New vars for use by
8774         set/show commands.
8775         (host_charset_enum, target_charset_enum): New enums for set/show
8776         commands.
8777         (set_charset_sfunc, set_host_charset_sfunc,
8778         set_target_charset_sfunc): New functions.
8779         (set_host_charset, set_target_charset): Make static.
8780         (list_charsets, set_host_charset_command,
8781         set_target_charset_command): Delete functions.
8782         (show_charset_command): Rewrite as....
8783         (show_charset): Hook this up with the set/show command mechanism.
8784         (_initialize_charset): Change names of charsets to match the
8785         set/show enums. Use host_charset_name and target_charset_name.
8786         Use set/show mechanism for charset, host-charset, target-charset
8787         commands. Do not make 'show host-charset' and 'show
8788         target-charset' be aliases of 'show charset'.
8789
8790         * charset.h (set_host_charset, set_target_charset): Don't export,
8791         they are not used outside the file.
8792
8793 2003-05-01  Andrew Cagney  <cagney@redhat.com>
8794
8795         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8796         (gdb_disassembly): Make "di" non static, always initialize and
8797         cleanup.  Always use dis_asm_read_memory.
8798         (gdb_dis_asm_read_memory): Delete function.
8799
8800 2003-05-01  Andrew Cagney  <cagney@redhat.com>
8801
8802         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8803         (d10v_gdbarch_init): Set frame_align instead of stack_align.
8804
8805 2003-04-30  Andrew Cagney  <cagney@redhat.com>
8806
8807         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8808         "tm_print_insn_info".
8809         (TARGET_PRINT_INSN_INFO): Delete macro.
8810         (dis_asm_read_memory): Delete function declaration.
8811         (dis_asm_memory_error, dis_asm_print_address): Ditto.
8812         (tm_print_insn_info): Delete variable definition.
8813         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8814         * gdbarch.h, gdbarch.c: Re-generate.
8815         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8816         "deprecated_tm_print_insn_info".
8817         * mcore-tdep.c (mcore_dump_insn): Ditto.
8818         * mips-tdep.c (mips_gdbarch_init): Ditto.
8819         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8820         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8821         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8822         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8823         instead of TARGET_PRINT_INSN_INFO, add comment.
8824         * s390-tdep.c (s390_get_frame_info): Instead of
8825         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8826         (s390_check_function_end, s390_is_sigreturn): Ditto.
8827         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8828         (dis_asm_memory_error, dis_asm_print_address): Ditto.
8829         * disasm.c: Include "gdbcore.h".
8830         (_initialize_disasm): New function, initialize
8831         "deprecated_tm_print_insn_info".
8832         (deprecated_tm_print_insn_info): New variable.
8833         (dis_asm_read_memory): Moved from "corefile.c", made static.
8834         (dis_asm_print_address, dis_asm_memory_error): Ditto.
8835         * Makefile.in (disasm.o): Update dependencies.
8836
8837 2003-04-30  Andrew Cagney  <cagney@redhat.com>
8838
8839         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8840
8841 2003-04-29  Adam Fedor  <fedor@gnu.org>
8842
8843         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8844         * infcall.c (find_function_addr): Make non-static.
8845         * infcall.h (find_function_addr): Declare.
8846         * Makefile.in (eval.o): Update dependencies.
8847
8848 2003-04-28  Adam Fedor  <fedor@gnu.org>
8849
8850         * symtab.c (symbol_find_demangled_name): Check for and demangle
8851         ObjC symbols.
8852         (symbol_init_demangled_name): Init for language_objc as well.
8853
8854 2003-04-28  Andrew Cagney  <cagney@redhat.com>
8855
8856         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8857         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8858         * gdbarch.h, gdbarch.c: Re-generate.
8859         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8860         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8861         * inferior.h (deprecated_read_fp): Rename read_fp.
8862         (generic_target_read_fp): Delete declaration.
8863         * regcache.c (generic_target_read_fp): Delete function.
8864         (deprecated_read_fp): Replace read_fp, use
8865         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8866         * d10v-tdep.c (d10v_read_fp): Delete function.
8867         (d10v_gdbarch_init): Do not set deprecated_read_fp.
8868
8869         * sparc-tdep.c (sparc_gdbarch_init): Do not set
8870         deprecated_target_read_fp to generic_target_read_fp.
8871         * sh-tdep.c (sh_gdbarch_init): Ditto.
8872         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8873         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8874         * frv-tdep.c (frv_gdbarch_init): Ditto.
8875
8876         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8877         deprecated_fp_regnum.
8878         * x86-64-tdep.c (x86_64_init_abi): Ditto.
8879         * vax-tdep.c (vax_gdbarch_init): Ditto.
8880         * v850-tdep.c (v850_gdbarch_init): Ditto.
8881         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8882         * sh-tdep.c (sh_gdbarch_init): Ditto.
8883         * s390-tdep.c (s390_gdbarch_init): Ditto.
8884         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8885         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8886         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8887         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8888         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8889         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8890         * i386-tdep.c (i386_gdbarch_init): Ditto.
8891         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8892         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8893         * frv-tdep.c (frv_gdbarch_init): Ditto.
8894         * cris-tdep.c (cris_gdbarch_init): Ditto.
8895         * avr-tdep.c (avr_gdbarch_init): Ditto.
8896         * arm-tdep.c (arm_gdbarch_init): Ditto.
8897         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8898
8899         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8900         * v850-tdep.c (v850_gdbarch_init): Ditto.
8901         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8902         * sh-tdep.c (sh_gdbarch_init): Ditto.
8903         * s390-tdep.c (s390_gdbarch_init): Ditto.
8904         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8905         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8906         * mips-tdep.c (mips_gdbarch_init): Ditto.
8907         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8908         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8909         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8910         * frv-tdep.c (frv_gdbarch_init): Ditto.
8911         * avr-tdep.c (avr_gdbarch_init): Ditto.
8912         * arm-tdep.c (arm_gdbarch_init): Ditto.
8913
8914         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8915         DEPRECATED_FP_REGNUM.
8916         (vax_push_dummy_frame, vax_pop_frame): Ditto.
8917         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8918         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8919         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8920         (sparc32_register_virtual_type): Ditto.
8921         * sh-tdep.c (sh64_frame_chain): Ditto.
8922         (sh64_get_saved_register, sh64_pop_frame): Ditto.
8923         (sh_nofp_frame_init_saved_regs): Ditto.
8924         (sh64_nofp_frame_init_saved_regs): Ditto.
8925         (sh_fp_frame_init_saved_regs): Ditto.
8926         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8927         * remote-e7000.c (fetch_regs_from_dump): Ditto.
8928         * procfs.c (procfs_fetch_registers): Ditto.
8929         (procfs_store_registers): Ditto.
8930         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8931         (store_inferior_registers, fetch_core_registers): Ditto.
8932         (fetch_kcore_registers, clear_regs): Ditto.
8933         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8934         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8935         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8936         * nlm/i386.c (do_status): Ditto.
8937         * mipsv4-nat.c (supply_gregset): Ditto.
8938         * mips-tdep.c: Ditto for comments.
8939         * mips-nat.c (fetch_inferior_registers): Ditto.
8940         (store_inferior_registers, fetch_core_registers): Ditto.
8941         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8942         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8943         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8944         (i386_do_pop_frame, i386_register_type): Ditto.
8945         * hppa-tdep.c (hppa_frame_chain): Ditto.
8946         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8947         (hppa_pop_frame, hppa_read_fp): Ditto.
8948         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8949         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8950         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8951         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8952         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8953         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8954         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8955         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8956         * blockframe.c: Ditto for comments.
8957         * arch-utils.h: Ditto for comments.
8958         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8959         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8960         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8961         * alpha-tdep.h: Ditto for comments.
8962         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8963         (alpha_cannot_store_register): Ditto.
8964         (alpha_push_dummy_frame): Ditto.
8965         * alpha-nat.c (supply_gregset): Ditto.
8966
8967         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8968         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8969         * config/sparc/tm-sparc.h: Update comment.
8970
8971         * hppa-tdep.c (hppa_init_extra_frame_info): Use
8972         deprecated_read_fp instead of TARGET_READ_FP.
8973         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8974         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8975         * sparc-tdep.c (sparc_init_extra_frame_info): Use
8976         deprecated_read_fp instead of read_fp.
8977         * s390-tdep.c (s390_push_arguments): Ditto.
8978         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8979         * frame.h: Ditto in comments.
8980         * frame.c (legacy_get_prev_frame): Ditto.
8981         * dummy-frame.c (dummy_frame_this_id): Ditto.
8982         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8983
8984 2003-04-28  Andrew Cagney  <cagney@redhat.com>
8985
8986         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8987         * gdbarch.h, gdbarch.c: Re-generate.
8988         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8989         * vax-tdep.c (_initialize_vax_tdep): Update.
8990         * v850-tdep.c (_initialize_v850_tdep): Update.
8991         * sparc-tdep.c (_initialize_sparc_tdep): Update.
8992         * s390-tdep.c (_initialize_s390_tdep): Update.
8993         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8994         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8995         * mips-tdep.c (_initialize_mips_tdep): Update.
8996         * mcore-tdep.c (_initialize_mcore_tdep): Update.
8997         * m68k-tdep.c (_initialize_m68k_tdep): Update.
8998         * ia64-tdep.c (_initialize_ia64_tdep): Update.
8999         * hppa-tdep.c (_initialize_hppa_tdep): Update.
9000         * h8300-tdep.c (_initialize_h8300_tdep): Update.
9001         * frv-tdep.c (_initialize_frv_tdep): Update.
9002         * cris-tdep.c (cris_delayed_get_disassembler): Update.
9003         (_initialize_cris_tdep): Update.
9004         * arch-utils.c (legacy_print_insn): Update.
9005         * alpha-tdep.c (_initialize_alpha_tdep): Update.
9006
9007 2003-04-26  Adam Fedor  <fedor@gnu.org>
9008
9009         * linespec.c (decode_objc): New function to decode ObjC calls
9010         (decode_line_1): Check for ObjC calls (using decode_objc)
9011         * Makefile (linespec.o): Update dependencies.
9012
9013 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
9014
9015         * breakpoint.h (struct breakpoint_ops): New.
9016         (struct breakpoint): Add ops member.
9017
9018         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9019         (mention): Use new breakpoint ops member.
9020         (set_raw_breakpoint): Initialize ops field to NULL.
9021         (print_exception_catchpoint, print_one_exception_catchpoint)
9022         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9023         (gnu_v3_exception_catchpoint_ops): New.
9024         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9025
9026 2003-04-25  Adam Fedor  <fedor@gnu.org>
9027
9028         * Makefile.in (COMMON_OBS): Add objc-lang.o
9029
9030 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9031
9032         * d10v-tdep.c (print_insn): Delete function.
9033         (display_trace): Use TARGET_PRINT_INSN.
9034         (_initialize_d10v_tdep): Do not set tm_print_insn.
9035         (d10v_gdbarch_init): Set print_insn.
9036
9037 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9038
9039         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9040         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9041         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9042         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9043         (nr_dmap_regs, a0_regnum): ... new functions.
9044         (d10v_print_registers_info): Use a0_regnum, use register_size.
9045         (d10v_register_byte): Delete function.
9046         (d10v_register_raw_size): Delete function.
9047         (d10v_register_type): Use a0_regnum.
9048         (d10v_print_registers_info): Use a0_regnum.
9049         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9050         (d10v_gdbarch_init): Do not set register_byte or
9051         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9052         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9053         extract_address.
9054         (trace_command): Use XCALLOC.
9055         (print_insn): Delete reference to tm_print_insn.
9056         (saved_regs_unwinder): Use store_unsigned_integer instead of
9057         store_address.
9058         * frame.h (FRAME_OBSTACK_CALLOC): Define
9059
9060 2003-04-25  David Carlton  <carlton@bactrian.org>
9061
9062         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9063
9064 2003-04-24  Adam Fedor  <fedor@gnu.org>
9065
9066         * objc-lang.c: Include "valprint.h"
9067         * Makefile.in (objc-lang.o): Update dependencies.
9068
9069 2003-04-24  Adam Fedor  <fedor@gnu.org>
9070
9071         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9072         architecture dependant compilation and mark as unimplemented
9073         (until they get put in the gdbarch vector).
9074
9075 2003-04-23  David Carlton  <carlton@bactrian.org>
9076
9077         * cp-support.c (cp_find_first_component): Accept 'operator' in
9078         more locations.
9079
9080 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9081
9082         * infcall.c (call_function_by_hand): Eliminate redundant
9083         indentation.  Move "saved_async" and "old_cleanups" to where they
9084         are needed.
9085
9086 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9087
9088         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9089         and "buffer".  Move the "name" code to where it is needed.
9090
9091 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9092
9093         * infcall.c (call_function_by_hand): Move variables "start_sp",
9094         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9095         code to ON_STACK switch branch.
9096
9097 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9098
9099         * infcall.c (call_function_by_hand): Make declaration of "i",
9100         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
9101         lint.
9102
9103 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9104
9105         * infcall.c (call_function_by_hand): Delete variable
9106         "n_method_args".  Localize "param_type"'s declaration to the loop
9107         that it is used.  Reinstate code assigning to said variable -
9108         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
9109         Rationalize code using "param_type".
9110
9111 2003-04-22  Andrew Cagney  <cagney@redhat.com>
9112
9113         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9114         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
9115         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
9116         to DEPRECATED_PUSH_RETURN_ADDRESS.
9117
9118 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
9119
9120         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9121         on the DWARF2 register number prior to fetching a register.
9122
9123 2003-04-22  J. Brobecker  <brobecker@gnat.com>
9124
9125         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9126         Update all the tests using SOFT_FLOAT considering the fact that
9127         this macro was always set to 0.
9128         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9129         considering the fact that this macro was always set to 0.
9130         * hppa-tdep.h (hppa_store_return_value): Likewise.
9131         (hppa_extract_return_value): Likewise.
9132
9133 2003-04-22  J. Brobecker  <brobecker@gnat.com>
9134
9135         * config/pa/tm-hppa.h: Remove obsolete code, was used by
9136         the hppa-pro target only.
9137
9138 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9139
9140         Ongoing multi-arch conversion effort for HP/UX:
9141         * config/pa/tm-hppa.h: Move all macro that are no longer
9142         defined now that GDB_MULTI_ARCH is now set to 1 from here...
9143         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9144
9145 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9146
9147         * config/pa/tm-hppa.h: Obsolete a section that was only used
9148         for hppa-pro.
9149
9150 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9151
9152         Ongoing multi-arch conversion for HP/UX.
9153         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9154         if already defined (allows hppa64 to stay non-multiarched for now).
9155         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9156
9157 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9158
9159         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9160
9161 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9162
9163         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9164         "i386_num_mmx_regs".
9165
9166 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9167
9168         * infcall.c: New file.
9169         * infcall.h: New file.
9170         * valarith.c: Include "infcall.h".
9171         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9172         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9173         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9174         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9175         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9176         (SFILES): Add "infcall.c"
9177         (COMMON_OBS): Add "infcall.o".
9178         (infcall.o): Specify dependencies.
9179         * value.h (call_function_by_hand): Delete declaration.
9180         * inferior.h (run_stack_dummy): Delete declaration.
9181         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9182         (run_stack_dummy): Move to "infcall.c", merged into
9183         call_function_by_hand.
9184         * valops.c (call_function_by_hand): Moved to "infcall.c".
9185         (find_function_addr, value_arg_coerce): Ditto.
9186         (unwindonsignal_p, coerce_float_to_double): Ditto.
9187         (_initialize_valops): Move "set/show coerce-float-to-double", and
9188         "set/show unwindonsignal" commands to "infcall.c".
9189         * v850-tdep.c, target.h: Update comments.
9190         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9191         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9192         (sh64_init_extra_frame_info): Update comments.
9193         * mn10300-tdep.c: Update comments.
9194         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9195         * config/sparc/tm-sparc.h: Update comments.
9196         * breakpoint.h: Update comments.
9197         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9198         * arm-tdep.c: Update comment.
9199
9200 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
9201
9202         * i386-tdep.c (i386_num_register_names): New variable.
9203         (i386_num_mmx_regs): Renamed from mmx_num_regs.
9204         (MM0_REGNUM): Remove redundant parentheses in define.
9205         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9206         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9207         i386_mxcsr_regnum_p): Remove redundant parentheses.
9208         (i386_register_name): Use i386_num_register_names.
9209
9210         * i386-tdep.c (i386_extract_return_value,
9211         i386_store_return_value): Correct check for availability of
9212         floating-point registers.
9213
9214         * i386-tdep.c (i386_frame_num_args): Remove function.
9215         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9216
9217         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9218         mmx_regnum_to_fp_regnum.  Adjust all callers.
9219
9220         * i386-tdep.c (i386_get_longjmp_target): Use
9221         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9222         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
9223         extract_address.
9224
9225 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
9226
9227         * core-regset.c: Update comments to reflect reality.  Re-order
9228         includes.
9229         (fetch_core_registers): Use switch instead of if.  Remove
9230         redundant prototype.
9231
9232 2003-04-18  Jim Blandy  <jimb@redhat.com>
9233
9234         * s390-tdep.c (s390_frame_align): New function.
9235         (s390_gdbarch_init): Register it with the gdbarch object.
9236
9237 2003-04-17  Richard Henderson  <rth@redhat.com>
9238
9239         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9240
9241 2003-04-17  Michael Snyder  <msnyder@redhat.com>
9242             Karen Bennet  <bennet@redhat.com>
9243
9244         Committed by Elena Zannoni  <ezannoni@redhat.com>
9245         * gdb_gcore.sh: New script to create a core dump of a process.
9246
9247 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
9248
9249         * values.c (value_being_returned): Don't fetch the return
9250         value if the return type is void.
9251
9252 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
9253
9254         * thread-db.c: Reindented.
9255
9256 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
9257
9258         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9259         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9260         as types.
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
9287
9288         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9289         the size of ``long double'' to 16, instead of 8.
9290
9291 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
9292
9293         * i386-linux-nat.c: Add some whitespace to make things more
9294         readable.
9295         (fetch_register, store_register, fetch_inferior_registers,
9296         store_inferior_registers): Get rid of assignment in if-statement.
9297         (store_register): Fix typo in error message.
9298
9299 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9300
9301         * utils.c (xmmalloc): Always allocate something, matches
9302         libiberty/xmalloc's semantics.
9303         (xmrealloc, xmcalloc): Ditto.
9304
9305 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9306
9307         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9308         update comments.
9309         (get_frame_type): Initialize unwind and type when needed.
9310         (get_frame_id, frame_register_unwind): Ditto.
9311
9312 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9313
9314         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9315         obsolete.
9316         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9317         * sparcl-stub.c: Obsolete file.
9318         * config/sparc/tm-sparclet.h: Obsolete file.
9319         * sparclet-stub.c: Obsolete file.
9320         * sparclet-rom.c: Obsolete file.
9321         * sparcl-tdep.c: Obsolete file.
9322         * config/sparc/tm-sparclite.h: Obsolete file.
9323         * config/sparc/sparclite.mt: Obsolete file.
9324         * config/sparc/sparclet.mt: Obsolete file.
9325         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9326         sparc86x-*-* obsolete.
9327
9328 2003-04-15  David Carlton  <carlton@math.stanford.edu>
9329
9330         * Makefile.in (SFILES): Add cp-namespace.c.
9331         (COMMON_OBS): Add cp-namespace.o.
9332         (block.o): Depend on gdb_obstack_h and cp_support_h.
9333         (buildsym.o): Depend on cp_support_h.
9334         (cp-namespace.o): New.
9335         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9336         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9337         (dwarf2read.o): Depend on cp_support_h.
9338         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9339         * dwarf2read.c (process_die): Set processing_has_namespace_info,
9340         processing_current_namespace.
9341         (read_namespace): Update processing_current_namespace; check for
9342         anonymous namespaces.
9343         (dwarf2_name): New function.
9344         (dwarf2_extension): Ditto.
9345         * cp-support.h: Update copyright, contributors.
9346         Add inclusion guards.
9347         Add opaque declaration for structs obstack, block, symbol.
9348         (struct using_direct): New struct.
9349         Add declarations for cp_find_first_component,
9350         cp_entire_prefix_len, processing_has_namespace_info,
9351         processing_current_namespace, cp_is_anonymous,
9352         cp_add_using_directive, cp_initialize_namespace,
9353         cp_finalize_namespace, cp_set_block_scope,
9354         cp_scan_for_anonymous_namespaces.
9355         * cp-namespace.c: New file.
9356         * cp-support.c: Update copyright.
9357         Include ctype.h, gdb_assert.h, gdbcmd.h.
9358         New variable maint_cplus_cmd_list.
9359         (cp_find_first_component): New function.
9360         (cp_entire_prefix_len, maint_cplus_command)
9361         (first_component_command, _initialize_cp_support): Ditto.
9362         * buildsym.c: Include cp-support.h.
9363         New variable using_list.
9364         (add_symbol_to_list): Check for anonymous namespaces.
9365         (finish_block): Set block's scope.
9366         (start_symtab): Initialize C++ namespace support.
9367         (end_symtab): Finalize C++ namespace support.
9368         * block.h: Add opaque declarations for structs
9369         block_namespace_info, using_direct, and obstack.
9370         Add declarations for block_set_scope and block_set_using.
9371         (struct block): Add 'language_specific' member.
9372         (BLOCK_NAMESPACE): New macro.
9373         * block.c: Include gdb_obstack.h and cp-support.h.
9374         (struct block_namespace_info): New struct.
9375         (block_set_scope): New function.
9376         (block_set_using, block_initialize_namespace): Ditto.
9377
9378 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
9379
9380         * solib-svr4.c (svr4_have_link_map_offsets): New function.
9381         (locate_base): Return early if there aren't any link map offsets.
9382         (svr4_solib_create_inferior_hook): Warn if shared library support
9383         is unavailable.
9384
9385 2003-04-14  David Carlton  <carlton@math.stanford.edu>
9386
9387         * symtab.c (symbol_set_names): Add prefix when storing Java names
9388         in hash table.  Fix for PR java/1039.
9389
9390 2003-04-14  David Carlton  <carlton@math.stanford.edu>
9391
9392         * symtab.c (symbol_set_names): Rename 'name' arg to
9393         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9394         * symtab.h: Change 'name' argument in declaration of
9395         symbol_set_names to 'linkage_name'.
9396         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9397
9398 2003-04-14  Andrew Cagney  <cagney@redhat.com>
9399
9400         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9401         return the fully sign-extended register value.
9402         (get_frame_pointer): Ditto.
9403         (mips_pop_frame): Initialize "proc_desc" after checking for a
9404         dummy frame.
9405
9406 2003-04-14  Andrew Cagney  <cagney@redhat.com>
9407
9408         * mips-tdep.c (mips_push_dummy_frame): Delete function.
9409         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9410         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9411         (mips_push_register): Delete function.
9412         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9413         PUSH_FP_REGNUM.
9414
9415 2003-04-14  Jim Blandy  <jimb@redhat.com>
9416
9417         * symmisc.c: #include "gdb_regex.h".
9418         (maintenance_list_symtabs, maintenance_list_psymtabs): New
9419         functions.
9420         * maint.c (maintenance_list_command): New function.
9421         (_initialize_maint_cmds): Register the above as commands.
9422         * symtab.h (maintenance_list_symtabs,
9423         maintenance_list_psymtabs): New declarations.
9424         * cli/cli-cmds.c (maintenancelistlist): New variable.
9425         (init_cmd_lists): Initialize it.
9426         * cli/cli-cmds.h (maintenancelistlist): New declaration.
9427         * gdbcmd.h (maintenancelistlist): New declaration.
9428         * Makefile.in (symmisc.o): Update dependencies.
9429
9430 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
9431
9432         * s390-nat.c: Include asm/types.h for addr_t.
9433
9434 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
9435
9436         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9437         actually incoming type.
9438
9439 2003-04-13  Andrew Cagney  <cagney@redhat.com>
9440
9441         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9442         get_next_frame and get_frame_saved_regs.
9443
9444 2003-04-13  Andrew Cagney  <cagney@redhat.com>
9445
9446         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9447         of gdbarch_num_regs.
9448
9449 2003-04-13  Andrew Cagney  <cagney@redhat.com>
9450
9451         * frame.h: Mention what replaced what in "struct frame_info".
9452         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9453         deprecated_update_frame_base_hack and
9454         deprecated_update_frame_pc_hack.
9455         * hppa-tdep.c: Ditto.
9456
9457 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
9458
9459         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9460         to read_reg and update its comment.  Remove regnum member.
9461         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9462         Don't call read_reg when setting in_reg.  Call read_reg to get
9463         the frame base if it's in a register.  Return the register number
9464         on the stack instead of in the context.  Remove extra arguments
9465         to read_reg.
9466         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9467         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
9468         the register number on the expression stack.
9469         (needs_frame_read_reg): Remove extra arguments.
9470
9471 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
9472
9473         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9474         made non-static.
9475         (execute_stack_op): All callers updated.
9476         * dwarf2expr.h: Add prototype for dwarf2_read_address.
9477         * dwarf2loc.c (find_location_expression): New function.
9478         (dwarf_expr_frame_base): Call it.
9479         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9480         (dwarf2_tracepoint_var_ref): New function, broken out from
9481         locexpr_tracepoint_var_ref.
9482         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9483         Make static.
9484         (loclist_read_variable, loclist_read_needs_frame): New functions.
9485         (loclist_describe_location, loclist_tracepoint_var_ref): New
9486         functions.
9487         (dwarf2_loclist_funcs): New struct location_funcs.
9488         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9489         (struct dwarf2_locexpr_baton): Add comments.
9490         (dwarf2_loclist_funcs): New extern.
9491         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9492         base_address and base_known.
9493         (dwarf_loc_buffer): New variable.
9494         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9495         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9496         (dwarf2_has_info): Initialize dwarf_loc_offset.
9497         (dwarf2_build_psymtabs): Read in .debug_loc.
9498         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9499         DWARF_LOC_SIZE.
9500         (psymtab_to_symtab_1): Likewise.  Move base address calculation
9501         here, from...
9502         (dwarf2_get_pc_bounds): ... here.  Use the base address from
9503         cu_header.
9504         (dwarf2_symbol_mark_computed): Handle location lists.
9505
9506 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
9507
9508         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9509         if the linkage name demangled successfully.
9510
9511 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
9512
9513         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9514         disassmbly_flavour): Removed.
9515
9516         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9517
9518 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
9519
9520         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9521
9522 2003-04-12  Andrew Cagney  <cagney@redhat.com>
9523
9524         * frame.h (struct frame_info): Move definition from here ...
9525         * frame.c (struct frame_info): ... to here.
9526
9527 2003-04-12  Andrew Cagney  <cagney@redhat.com>
9528
9529         * gdbthread.h (save_infrun_state): Delete parameter
9530         "prev_func_start".
9531         (struct thread_info): Delete field "prev_func_start".
9532         (load_infrun_state): Ditto.
9533         * thread.c (load_infrun_state, save_infrun_state): Update.
9534         * infrun.c (prev_func_start): Delete variable.
9535         (context_switch, init_wait_for_inferior): Update.
9536         (stop_stepping, keep_going): Update.
9537
9538 2003-04-12  Andrew Cagney  <cagney@redhat.com>
9539
9540         * gdbarch.sh: Add missing opaque declarations.
9541         * gdbarch.h: Regnerate.
9542         * symtab.h: Add missing opaque declarations.
9543         * value.h, target.h, symfile.h, stabsread.h: Ditto.
9544         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9545         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9546         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9547         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9548         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9549         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9550         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9551         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9552         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9553         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9554         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9555         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9556
9557 2003-04-11  Andrew Cagney  <cagney@redhat.com>
9558
9559         * frame.c (get_frame_id): Return this frame's "id".
9560         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9561         function start.
9562         (legacy_saved_regs_this_id): Replace function body with
9563         internal-error.
9564         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9565         FRAME_OBSTACK_ZALLOC.
9566         (create_new_frame): Mark the frame ID as valid.
9567
9568 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
9569
9570         * Makefile.in (libbfd_h): Added missing setting.
9571         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9572         according to the selected ABI.
9573
9574 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
9575
9576         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9577
9578 2003-04-11  Andrew Cagney  <cagney@redhat.com>
9579
9580         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9581         SAVED_PC_AFTER_CALL.
9582         * gdbarch.h, gdbarch.c: Regenerate.
9583         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9584         * x86-64-tdep.c (x86_64_init_abi): Update.
9585         * vax-tdep.c (vax_gdbarch_init): Update.
9586         * v850-tdep.c (v850_gdbarch_init): Update.
9587         * sparc-tdep.c (sparc_gdbarch_init): Update.
9588         * sh-tdep.c (sh_gdbarch_init): Update.
9589         * s390-tdep.c (s390_gdbarch_init): Update.
9590         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9591         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9592         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9593         * mips-tdep.c (mips_gdbarch_init): Update.
9594         * mcore-tdep.c (mcore_gdbarch_init): Update.
9595         * m68k-tdep.c (m68k_gdbarch_init): Update.
9596         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9597         * ia64-tdep.c (ia64_gdbarch_init): Update.
9598         (ia64_saved_pc_after_call): Update declaration.
9599         * i386ly-tdep.c (i386lynx_init_abi): Update.
9600         * i386-tdep.c (i386_gdbarch_init): Update.
9601         * hppa-tdep.c (hppa_gdbarch_init): Update.
9602         * h8300-tdep.c (h8300_gdbarch_init): Update.
9603         * frv-tdep.c (frv_gdbarch_init): Update.
9604         * cris-tdep.c (cris_gdbarch_init): Update.
9605         * avr-tdep.c (avr_gdbarch_init): Update.
9606         * arm-tdep.c (arm_gdbarch_init): Update.
9607         * alpha-tdep.c (alpha_gdbarch_init): Update.
9608         * ns32knbsd-nat.c (frame_num_args): Update.
9609         * ns32k-tdep.c (umax_frame_num_args): Update.
9610         * mips-tdep.c (mips_init_frame_pc_first): Update.
9611         * infrun.c (step_over_function): Update.
9612         * i386-linux-tdep.c (skip_hurd_resolver): Update.
9613         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9614         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9615         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9616         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9617         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9618         * arm-linux-tdep.c (skip_hurd_resolver): Update.
9619         * arch-utils.c (init_frame_pc_default): Update.
9620         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9621         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9622         declaration.
9623
9624 2003-04-11  Andrew Cagney  <cagney@redhat.com>
9625
9626         * i387-tdep.c: Update copyright.
9627         (i387_to_double): Delete function.
9628         (double_to_i387): Delete function.
9629
9630 2003-04-10  Andrew Cagney  <cagney@redhat.com>
9631
9632         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9633         frame's function's address.  Simplify.
9634         (d10v_frame_unwind_cache): Check that the frame's function is
9635         non-zero.
9636
9637 2003-04-10  Jim Blandy  <jimb@redhat.com>
9638
9639         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9640         call to set_gdbarch_deprecated_push_arguments.
9641
9642 2003-04-10  Andrew Cagney  <cagney@redhat.com>
9643
9644         * frame.c (fprint_frame_id): New function.
9645         (fprint_frame_type, fprint_frame): New function.
9646         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9647         (create_sentinel_frame, get_frame_id): Ditto.
9648         (frame_id_p, frame_id_eq): Ditto.
9649         (frame_id_inner, create_new_frame): Ditto.
9650         (legacy_get_prev_frame, get_prev_frame): Ditto.
9651         (deprecated_update_frame_pc_hack): Ditto.
9652         (frame_register_unwind): Ditto.
9653         (deprecated_update_frame_base_hack): Ditto.
9654
9655 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
9656
9657         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9658         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9659         frame_chain function.
9660         * Makefile.in: Add dependencies due to above change.
9661
9662 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
9663
9664         * blockframe.c (legacy_frame_chain_valid): Move call to
9665         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9666         inside_entry_file.
9667
9668 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9669
9670         * frame.h (struct frame_id): Replace "pc" and "base" with
9671         "stack_addr" and "code_addr".  Update comments.
9672         (frame_id_build): Update parameter names and comment.
9673         (struct frame_info): Replace "id_p" and "id" with "this_id".
9674         * dummy-frame.c (dummy_frame_this_id): Update.
9675         * breakpoint.c (print_one_breakpoint): Update.
9676         * frame.c (get_frame_id): Update.
9677         (get_frame_base, frame_id_build): Update.
9678         (create_sentinel_frame, legacy_get_prev_frame): Update.
9679         (deprecated_update_frame_base_hack): Update.
9680         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9681         (frame_id_inner): Ditto.
9682
9683 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9684
9685         * defs.h (gdb_print_host_address): Make "addr" parameter a
9686         pointer constant.
9687         * utils.c (gdb_print_host_address): Update.
9688
9689 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
9690
9691         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9692         register number for R0 is 0.
9693
9694 2003-04-09  J. Brobecker  <brobecker@gnat.com>
9695
9696         * frame.h (struct gdbarch): Add opaque structure definition
9697         to avoid a compilation warning on LynxOS 4.0.
9698
9699 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9700
9701         * frame.h (struct frame_info): Delete field "pc".  Replace
9702         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9703         structure.
9704         * frame.c (frame_pc_unwind): Update.
9705         (create_sentinel_frame): Do not set "pc".
9706         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
9707         (get_frame_pc): Call frame_pc_unwind.
9708         (deprecated_update_frame_pc_hack): Update.
9709         (create_new_frame): Use "pc" not "->pc".
9710
9711 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9712
9713         * frame.c (get_frame_id): Eliminate code updating "frame".
9714         (legacy_get_prev_frame): Ditto.
9715         (get_frame_base): Return id.base directly.
9716         (deprecated_update_frame_base_hack): Update "id.base".
9717         * frame.h (struct frame_info): Delete field "frame".
9718
9719 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9720
9721         * NEWS: Mention that the "Sequent family" is obsolete.
9722         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9723         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9724         * configure.host: Obsolete i[3456]86-sequent-bsd*,
9725         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9726         * config/i386/tm-ptx4.h: Obsolete file.
9727         * config/i386/tm-ptx.h: Obsolete file.
9728         * symm-tdep.c: Obsolete file.
9729         * config/i386/symmetry.mt: Obsolete file.
9730         * config/i386/tm-symmetry.h: Obsolete file.
9731         * symm-nat.c: Obsolete file.
9732         * config/i386/nm-symmetry.h: Obsolete file.
9733         * config/i386/xm-symmetry.h: Obsolete file.
9734         * config/i386/symmetry.mh: Obsolete file.
9735         * config/i386/nm-ptx4.h: Obsolete file.
9736         * config/i386/ptx4.mh: Obsolete file.
9737         * config/i386/ptx.mt: Obsolete file.
9738         * config/i386/ptx.mh: Obsolete file.
9739         * config/i386/xm-ptx4.h: Obsolete file.
9740         * config/i386/xm-ptx.h: Obsolete file.
9741
9742 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9743
9744         Obsolete mips*-*-mach3*.
9745         * NEWS: Mention that mips*-*-mach3* is obsolete.
9746         * m3-nat.c: Obsolete file.
9747         * config/nm-m3.h: Obsolete file.
9748         * config/mips/tm-mipsm3.h: Obsolete file.
9749         * config/mips/mipsm3.mt: Obsolete file.
9750         * config/mips/mipsm3.mh: Obsolete file.
9751         * config/mips/xm-mipsm3.h: Obsolete file.
9752         * mipsm3-nat.c: Obsolete file.
9753         * configure.host: Obsolete mips-dec-mach3*.
9754         * configure.tgt: Obsolete mips*-*-mach3*.
9755
9756 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9757
9758         * doublest.h: Update copyright.
9759         (deprecated_store_floating, deprecated_extract_floating): Rename
9760         store_floating and extract_floating.  Update comments.
9761         * doublest.c: Update copyright.
9762         (extract_floating_by_length): Replace extract_floating.
9763         (store_floating_by_length): Replace store_floating.
9764         (deprecated_extract_floating): New function.
9765         (deprecated_store_floating): New function.
9766         (extract_typed_floating): Call extract_floating_by_length.
9767         (store_typed_floating): Call store_floating_by_length.
9768         * x86-64-tdep.c (x86_64_store_return_value): Update.
9769         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9770         (sh64_extract_return_value): Update.
9771         (sh_sh4_register_convert_to_virtual): Update.
9772         (sh_sh64_register_convert_to_virtual): Update.
9773         (sh_sh4_register_convert_to_raw): Update.
9774         (sh_sh64_register_convert_to_raw): Update.
9775         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9776         (rs6000_register_convert_to_raw): Update.
9777         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9778         (ia64_register_convert_to_raw): Update.
9779         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9780         (REGISTER_CONVERT_TO_VIRTUAL): Update.
9781         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9782         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9783         (alpha_register_convert_to_raw): Update.
9784
9785 2003-04-08  Andrew Cagney  <cagney@redhat.com>
9786
9787         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9788         * gdbarch.h, gdbarch.c: Re-generate.
9789         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9790         (d10v_gdbarch_init): Do not set saved_pc_after_call.
9791         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9792         conditionally, use frame_pc_unwind as an alternative.  Add
9793         comments.
9794         * arch-utils.c (init_frame_pc_default): Only call
9795         SAVED_PC_AFTER_CALL when available.
9796
9797 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
9798
9799         * infrun.c (stop_soon): Rename from stop_soon_quietly.
9800         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9801         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9802         (start_remote): Ditto.
9803         (handle_inferior_event): Ditto.
9804         (save_inferior_status): Ditto.
9805         (restore_inferior_status): Ditto.
9806         * infcmd.c (attach_command): Ditto.
9807         * fork-child.c (startup_inferior): Ditto.
9808         * inferior.h (stop_soon): Rename from stop_soon_quietly.
9809         * alpha-tdep.c (heuristic_proc_start): Ditto.
9810         * mips-tdep.c (heuristic_proc_start): Ditto.
9811         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9812         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9813         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9814         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9815         * remote-vx.c (vx_create_inferior): Ditto.
9816
9817 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
9818
9819         * infrun.c (stop_soon_quietly): Make it an enum, to better
9820         override the default behavior of handle_inferior_event.
9821         (clear_proceed_status): Update uses of stop_soon_quietly to
9822         reflect that it is now an enum.
9823         (start_remote): Ditto.
9824         (handle_inferior_event): Change logic a bit if stop_soon_quietly
9825         is set to handle the new GNU/Linux kernel behavior for
9826         attach/sigstop.  Update uses of stop_soon_quietly.
9827         * inferior.h (enum stop_kind): New enum.
9828         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9829         Reset normal handle_inferior_event behavior, afterwards.
9830         * fork-child.c (startup_inferior): Update.
9831         * alpha-tdep.c (heuristic_proc_start): Update.
9832         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9833         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9834         * solib-osf.c (osf_solib_create_inferior_hook): Update.
9835         * solib-irix.c (irix_solib_create_inferior_hook): Update.
9836         * remote-vx.c (vx_create_inferior): Update.
9837         * mips-tdep.c (heuristic_proc_start): Update.
9838
9839 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
9840
9841         * disasm.c (dump_insns):  Move variables inside loop, or they will
9842         be freed more than once, causing wild memory corruptions.
9843         (gdb_disassembly): Look for the substring "-thread",
9844         instead of "-threads" in the target name, to make sure to find
9845         the 'multi-thread' target.  Also, make sure we do the right thing
9846         with the "core" target.
9847
9848 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
9849
9850         * mips-tdep.c (mips_print_fp_register): New function, created from
9851         do_fp_register_row().  Registers are now (also) printed as hex.
9852         Only one register is printed per row.
9853         (mips_print_register, do_fp_register_row): Print floating point
9854         registers with mips_print_fp_register().
9855
9856 2003-04-06  Andrew Cagney  <cagney@redhat.com>
9857
9858         * valprint.h (inspect_it): Add extern declaration.
9859         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9860         (selectors_info, classes_info): Ditto.
9861         (find_objc_msgcall): Fix indentation.
9862         (objc_printstr): Delete extern declarations.
9863
9864         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9865
9866 2003-04-06  Andrew Cagney  <cagney@redhat.com>
9867
9868         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9869         Update comment.
9870         * frame.c (legacy_saved_regs_this_id): Update.
9871         (legacy_get_prev_frame): Update.
9872         * xstormy16-tdep.c: Update comment.
9873         * sparc-tdep.c (sparc_frame_chain): Update comment.
9874         * blockframe.c (legacy_frame_chain_valid): Update.
9875
9876 2003-04-06  Andrew Cagney  <cagney@redhat.com>
9877
9878         * valprint.c (val_print_type_code_int): Delete #ifdef
9879         PRINT_TYPELESS_INTEGER code.
9880
9881         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9882         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9883         multi-arch definition.
9884         * gdbarch.h: Re-generate.
9885
9886 2003-04-05  Andrew Cagney  <cagney@redhat.com>
9887
9888         Eliminate FRAME_FIND_SAVED_REGS.
9889         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9890         Change FSR parameter to a pointer.
9891         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9892         Assume FSR parameter is a pointer.
9893         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9894         Make fsr a pointer.
9895         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9896         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
9897         saved_regs a pointer.
9898         (hppa_frame_saved_pc): Ditto.
9899         (find_dummy_frame_regs): Make frame_saved_regs a pointer
9900         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
9901         pointer.
9902         (restore_pc_queue): Make fsr a pointer.
9903         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9904         (hppa_frame_chain): Make saved_regs a pointer, call
9905         hppa_frame_init_saved_regs.
9906         * sparc-tdep.c: Include "gdb_assert.h".
9907         (sparc_frame_find_saved_regs): Replace internal_error with
9908         gdb_assert.
9909         * remote-vxsparc.c (vx_read_register): Delete reference to
9910         FRAME_FIND_SAVED_REGS.
9911         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9912         * gdbarch.h: Regenerate.
9913         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9914         (deprecated_get_frame_saved_regs): Delete declaration.
9915         (struct frame_saved_regs): Delete definition.
9916         * frame.c (deprecated_get_frame_saved_regs): Delete function.
9917         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9918         (hppa_frame_find_saved_regs): Delete declaration.
9919         (FRAME_FIND_SAVED_REGS): Delete macro.
9920         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9921         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9922         FRAME_FIND_SAVED_REGS in comment.
9923
9924 2003-04-05  Andrew Cagney  <cagney@redhat.com>
9925
9926         * frame.c (frame_func_unwind, get_frame_func): New functions.
9927         * frame.h (get_frame_func, frame_func_unwind): Declare.
9928         (struct frame_info): Add field "prev_func" for caching the
9929         previous frame's function address.
9930         * arm-tdep.c (arm_frameless_function_invocation): Combine
9931         get_pc_function_start and get_frame_pc into get_frame_func.
9932         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9933         (sh64_nofp_frame_init_saved_regs): Ditto.
9934         * s390-tdep.c (s390_function_start): Ditto.
9935         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9936         (rs6000_frameless_function_invocation): Ditto.
9937         (rs6000_frame_saved_pc): Ditto.
9938         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9939         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9940         * i386-tdep.c (i386_frameless_signal_p): Ditto.
9941         (i386_frame_init_saved_regs): Ditto.
9942         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9943         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9944         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9945         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9946         * blockframe.c (frameless_look_for_prologue): Ditto.
9947
9948 2003-04-05  Andrew Cagney  <cagney@redhat.com>
9949
9950         * frame.c (legacy_get_prev_frame): Link prev to next at the
9951         function start.  Update comments.
9952
9953 2003-04-05  Andrew Cagney  <cagney@redhat.com>
9954
9955         * frame.c (get_frame_id): Update comment.
9956         (legacy_get_prev_frame): Update comment.
9957         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9958         * gdbarch.h: Regenerate.
9959         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9960         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9961
9962 2003-04-05  Andrew Cagney  <cagney@redhat.com>
9963
9964         * stack.c (print_frame_info): Use get_frame_pc.
9965
9966 2003-04-04  Andrew Cagney  <cagney@redhat.com>
9967
9968         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
9969         the frame's type from the unwinder.
9970         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9971         (create_new_frame, legacy_get_prev_frame): When the unwinder's
9972         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9973         (get_frame_base_address): Use get_frame_type.
9974         (get_frame_locals_address, get_frame_args_address): Ditto.
9975         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9976         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9977         (struct frame_info): Add comment explaining why the frame contains
9978         a "type" field.
9979         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9980         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9981         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9982         NORMAL_FRAME.
9983         * frame-unwind.h: Include "frame.h".
9984         (struct frame_unwind): Add "type" field.
9985         * Makefile.in (frame_unwind_h): Add $(frame_h).
9986
9987 2003-04-04  Andrew Cagney  <cagney@redhat.com>
9988
9989         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9990         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9991         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9992         get_frame_base.
9993         (d10v_unwind_dummy_id): Use frame_id_build.
9994         * frame.c (find_frame_sal): Use get_frame_pc.
9995         (create_new_frame): Use deprecated_update_frame_pc_hack and
9996         deprecated_update_frame_base_hack.
9997         (create_sentinel_frame): Add comment about ->pc going away.
9998         (get_prev_frame): Add comment about ->pc going away.
9999         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10000         frame_id_build, deprecated_update_frame_pc_hack and
10001         deprecated_update_frame_base_hack.
10002         (select_frame): Use get_frame_pc.
10003         (legacy_saved_regs_this_id): Use frame_id_build.
10004
10005 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
10006
10007         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10008         signed integer case.
10009         (classify_argument): Handle enumerations and references.
10010
10011 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10012
10013         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10014         ID to NULL.
10015
10016 2003-04-01  Adam Fedor  <fedor@gnu.org>
10017
10018         * gdb/objc-lang.c (selectors_info): Replace calls to
10019         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10020         SYMBOL_NATURAL_NAME.
10021         (classes_info, find_methods): Likewise.
10022
10023 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
10024
10025         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10026         ``mach'' to the value determined by bfd_default_set_arch_mach().
10027
10028 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
10029
10030         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10031         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10032         (mi-cmd-file.o): Update dependencies.
10033
10034 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
10035
10036         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10037         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10038
10039 2003-04-01  Adam Fedor  <fedor@gnu.org>
10040
10041         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10042         * language.h (struct language_defn): Add la_demangle.
10043         (language_demangle): Declare.
10044         * language.c (language_demangle): New function.
10045         (unk_lang_demangle): Likewise.
10046         (unknown_language_defn, auto_language_defn, local_language_defn):
10047         Add ukn_lang_demangle.
10048         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10049         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10050         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10051         (cplus_language_defn): Add cplus_demangle for la_demangle element.
10052         * jv-lang.c (java_demangle): New function
10053         (java_language_defn): Use it for la_demangle element.
10054         * objc-lang.c (objc_demangle): Add options argument
10055         (objc_language_defn): Use objc_demangle for la_demangle element.
10056         * maint.c (maintenance_demangle): Replace switch with
10057         call to language_demangle.
10058         * utils.c (fprintf_symbol_filtered): Likewise.
10059
10060 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10061
10062         * printcmd.c (print_frame_nameless_args): Delete #ifdef
10063         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10064         PRINT_TYPELESS_INTEGER.
10065         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10066         PUSH_RETURN_ADDRESS.
10067
10068 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10069
10070         * Makefile.in (d10v-tdep.o): Update dependencies.
10071         * d10v-tdep.c: Include "frame-base.h".
10072         (d10v_frame_unwind): Make constant.
10073         (d10v_frame_base_address): New function.
10074         (d10v_frame_base): New variable.
10075         (d10v_gdbarch_init): Set frame_base default.
10076         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
10077         comment for base.
10078         (d10v_frame_unwind_cache): Set and use "prev_sp".
10079         (d10v_frame_this_id): Use the previous frame's inner most stack
10080         address and this frame's func address for the frame ID.  Use
10081         frame_id_build.  Don't analyze beyond the current instruction.
10082
10083 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10084
10085         * frame.h (get_frame_locals_address, get_frame_args_address):
10086         Refer to the base address, instead of the address of the first
10087         local or parameter.
10088
10089 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10090
10091         Add frame debug info addresses:
10092         * frame-base.c: New file.
10093         * frame-base.h: New file.
10094         * frame.h (struct frame_base): Add opaque declaration.
10095         (get_frame_base): Update comment.
10096         (get_frame_base_address): Declare.
10097         (get_frame_locals_address): Declare.
10098         (get_frame_args_address): Declare.
10099         (struct frame_info): Add "base" and "base_cache".  Update
10100         comments on the unwinder.
10101         * frame.c: Include "frame-base.h".
10102         (get_frame_locals_address): New function.
10103         (get_frame_base_address): New function.
10104         (get_frame_args_address): New function.
10105         * findvar.c (read_var_value): Use get_frame_locals_address and
10106         get_frame_args_address.
10107         * stack.c (frame_info): Use get_frame_locals_address and
10108         get_frame_args_address.
10109         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10110         moved to "frame-base.c".
10111         * printcmd.c (print_frame_nameless_args): Ditto.
10112         * symtab.h (address_class): Update comments.
10113         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10114         get_frame_base_address.
10115         * dwarf2expr.c (execute_stack_op): Ditto.
10116         * Makefile.in (frame_base_h): Define.
10117         (frame.o): Update dependencies.
10118         (frame-base.o): Add dependencies.
10119         (SFILES): Add frame-base.c.
10120         (COMMON_OBS): Add frame-base.o.
10121
10122 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10123
10124         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10125         CALL_DUMMY_LENGTH): Ditto.
10126         * gdbarch.c: Re-generate.
10127         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10128         (CALL_DUMMY_LENGTH): Delete macro.
10129         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10130         * arm-tdep.c (arm_gdbarch_init): Ditto.
10131         * avr-tdep.c (avr_gdbarch_init): Ditto.
10132         * cris-tdep.c (cris_gdbarch_init): Ditto.
10133         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10134         * frv-tdep.c (frv_gdbarch_init): Ditto.
10135         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10136         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10137         * i386-tdep.c (i386_gdbarch_init): Ditto.
10138         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10139         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10140         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10141         * mips-tdep.c (mips_gdbarch_init): Ditto.
10142         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10143         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10144         * s390-tdep.c (s390_gdbarch_init): Ditto.
10145         * sh-tdep.c (sh_gdbarch_init): Ditto.
10146         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10147         * v850-tdep.c (v850_gdbarch_init): Ditto.
10148         * vax-tdep.c (vax_gdbarch_init): Ditto.
10149         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10150
10151 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
10152
10153         * frame.c (get_prev_frame): Disable call to inside_entry_file().
10154
10155 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10156
10157         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10158         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10159         * gdbarch.h, gdbarch.c: Re-generate.
10160         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10161         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10162         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10163         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10164         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10165         * infcmd.c (run_stack_dummy): Simplify assuming
10166         CALL_DUMMY_BREAKPOINT_OFFSET_P.
10167         * infrun.c (handle_inferior_event): Ditto.
10168         * alpha-tdep.c (alpha_gdbarch_init): Do not set
10169         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10170         * arm-tdep.c (arm_gdbarch_init): Ditto.
10171         * avr-tdep.c (avr_gdbarch_init): Ditto.
10172         * cris-tdep.c (cris_gdbarch_init): Ditto.
10173         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10174         * frv-tdep.c (frv_gdbarch_init): Ditto.
10175         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10176         * i386-tdep.c (i386_gdbarch_init): Ditto.
10177         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10178         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10179         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10180         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10181         * mips-tdep.c (mips_gdbarch_init): Ditto.
10182         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10183         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10184         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10185         * s390-tdep.c (s390_gdbarch_init): Ditto.
10186         * sh-tdep.c (sh_gdbarch_init): Ditto.
10187         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10188         * v850-tdep.c (v850_gdbarch_init): Ditto.
10189         * vax-tdep.c (vax_gdbarch_init): Ditto.
10190         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10191
10192 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
10193
10194         * symfile.c (symfile_relocate_debug_section): Update call to
10195         bfd_simple_get_relocated_section_contents.
10196
10197 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10198
10199         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10200         * gdbarch.h, gdbarch.c: Regenerate.
10201         * inferior.h (FIX_CALL_DUMMY): Delete macro.
10202         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10203         available.
10204         * frame.h (generic_fix_call_dummy): Delete declaration.
10205         * dummy-frame.h: Update comment.
10206         * dummy-frame.c (generic_fix_call_dummy): Delete function.
10207         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10208         fix_call_dummy.
10209         * sh-tdep.c (sh_gdbarch_init): Ditto.
10210         * s390-tdep.c (s390_gdbarch_init): Ditto.
10211         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10212         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10213         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10214         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10215         * i386-tdep.c (i386_gdbarch_init): Ditto.
10216         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10217         * frv-tdep.c (frv_gdbarch_init): Ditto.
10218         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10219         * cris-tdep.c (cris_gdbarch_init): Ditto.
10220         * avr-tdep.c (avr_gdbarch_init): Ditto.
10221         * arm-tdep.c (arm_gdbarch_init): Ditto.
10222
10223 2003-03-31  J. Brobecker  <brobecker@gnat.com>
10224
10225         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10226         (INIT_FRAME_AP): Likewise.
10227         (EXTRA_FRAME_INFO): Likewise.
10228
10229 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10230
10231         * gdbarch.sh: Include "symfile.h".
10232         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10233         * gdbarch.h, gdbarch.c: Re-generate.
10234         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10235         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10236         call_dummy_address, the default is at entry_point_address.
10237         * v850-tdep.c (v850_gdbarch_init): Ditto.
10238         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10239         * sh-tdep.c (sh_gdbarch_init): Ditto.
10240         * s390-tdep.c (s390_gdbarch_init): Ditto.
10241         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10242         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10243         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10244         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10245         * i386-tdep.c (i386_gdbarch_init): Ditto.
10246         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10247         * frv-tdep.c (frv_gdbarch_init): Ditto.
10248         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10249         * cris-tdep.c (cris_gdbarch_init): Ditto.
10250         * arm-tdep.c (arm_gdbarch_init): Ditto.
10251
10252 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10253
10254         * gdbarch.sh (CALL_DUMMY_P): Delete.
10255         * gdbarch.h, gdbarch.c: Re-generate.
10256         * inferior.h (CALL_DUMMY_P): Delete macro.
10257         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10258         * vax-tdep.c (vax_gdbarch_init): Update.
10259         * v850-tdep.c (v850_gdbarch_init): Update.
10260         * sparc-tdep.c (sparc_gdbarch_init): Update.
10261         * sh-tdep.c (sh_gdbarch_init): Update.
10262         * s390-tdep.c (s390_gdbarch_init): Update.
10263         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10264         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10265         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10266         * mips-tdep.c (mips_gdbarch_init): Update.
10267         * mcore-tdep.c (mcore_gdbarch_init): Update.
10268         * m68k-tdep.c (m68k_gdbarch_init): Update.
10269         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10270         * ia64-tdep.c (ia64_gdbarch_init): Update.
10271         * i386-tdep.c (i386_gdbarch_init): Update.
10272         * h8300-tdep.c (h8300_gdbarch_init): Update.
10273         * frv-tdep.c (frv_gdbarch_init): Update.
10274         * d10v-tdep.c (d10v_gdbarch_init): Update.
10275         * cris-tdep.c (cris_gdbarch_init): Update.
10276         * breakpoint.c (deprecated_frame_in_dummy): Update.
10277         * avr-tdep.c (avr_gdbarch_init): Update.
10278         * alpha-tdep.c (alpha_gdbarch_init): Update.
10279         * arm-tdep.c (arm_gdbarch_init): Update.
10280         * dummy-frame.c (dummy_frame_this_id): Update comments.
10281         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10282         * frame.c (legacy_get_prev_frame): Ditto.
10283         * valops.c (call_function_by_hand): Delete function.
10284         (hand_function_call): Rename to call_function_by_hand
10285
10286 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10287
10288         2002-11-10 Klee Dienes <kdienes@apple.com>
10289         * value.h (struct value): Update comment.
10290
10291 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10292
10293         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10294         D10V_FP_REGNUM.
10295         (d10v_gdbarch_init): Do not set fp_regnum.
10296
10297         * frame.c (get_frame_base): Force ID initialization.
10298         (get_prev_frame): Move computation of the frame ID from here ...
10299         (get_frame_id): ... to here.
10300         (legacy_get_prev_frame): Mark the frame ID as valid.
10301         * frame.h (struct frame_info): Add field "id_p".
10302
10303 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
10304
10305         * i386-tdep.c (i386_store_struct_return): Removed.
10306         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10307
10308 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10309
10310         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10311         * gdbarch.h, gdbarch.c: Regenerate.
10312         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10313         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10314         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10315         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10316         * i386-tdep.c (i386_gdbarch_init): Ditto.
10317         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10318         * cris-tdep.c (cris_gdbarch_init): Ditto.
10319         * vax-tdep.c (vax_gdbarch_init): Ditto.
10320         * s390-tdep.c (s390_gdbarch_init): Ditto.
10321         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10322         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10323         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10324         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10325         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10326         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10327         * sparc-tdep.c (sparc_gdbarch_init): Update.
10328         * sh-tdep.c (sh_gdbarch_init): Update.
10329         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10330         * mips-tdep.c (mips_gdbarch_init): Update.
10331         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10332         * ia64-tdep.c (ia64_gdbarch_init): Update.
10333         * frv-tdep.c (frv_gdbarch_init): Update.
10334         * avr-tdep.c (avr_gdbarch_init): Update.
10335         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10336         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
10337         instead of when push_dummy_call is not available.
10338
10339 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10340
10341         * infttrace.c: Include "gdbthread.h".
10342         (parent_attach_all): Fix function signature.
10343         (call_ptrace): Update call.
10344         * Makefile.in (infttrace.o): Update dependencies.
10345
10346 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10347
10348         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10349         PUSH_RETURN_ADDRESS.
10350         * gdbarch.h, gdbarch.c: Regenerate.
10351         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10352         * x86-64-tdep.c (x86_64_init_abi): Update.
10353         * v850-tdep.c (v850_gdbarch_init): Update.
10354         * sparc-tdep.c (sparc_gdbarch_init): Update.
10355         * sh-tdep.c (sh_gdbarch_init): Update.
10356         * s390-tdep.c (s390_gdbarch_init): Update.
10357         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10358         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10359         * mips-tdep.c (mips_gdbarch_init): Update.
10360         * mcore-tdep.c (mcore_gdbarch_init): Update.
10361         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10362         * ia64-tdep.c (ia64_gdbarch_init): Update.
10363         * i386-tdep.c (i386_gdbarch_init): Update.
10364         * h8300-tdep.c (h8300_gdbarch_init): Update.
10365         * frv-tdep.c (frv_gdbarch_init): Update.
10366         * cris-tdep.c (cris_gdbarch_init): Update.
10367         * avr-tdep.c (avr_gdbarch_init): Update.
10368         * arm-tdep.c (arm_gdbarch_init): Update.
10369         * valops.c (hand_function_call): Update.
10370
10371 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10372
10373         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10374         sizeof_call_dummy_words.
10375         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10376         define.
10377         * gdbarch.h: Regenerate.
10378
10379 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10380
10381         * infttrace.h: New file.
10382         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10383         (hpread_get_textlow): Detect an uninitialized dn_bufp.
10384         (hpread_read_doc_function_type): Detect an initialized type1.
10385         (hpread_quick_traverse): Initialize mod_name_string.
10386         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10387         (som_solib_get_solib_by_pc): Declare.
10388         (so_lib_thread_start_addr): Declare.
10389         (no_shared_libraries): Declare.
10390         * somread.c (init_import_symbols): Make static.  Add forward
10391         declaration.
10392         * config/pa/nm-hppah.h: Include "infttrace.h" for
10393         parent_attach_all.
10394         (hppa_insert_hw_watchpoint): Declare.
10395         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10396         * hppah-nat.c: Include "gdb_string.h".
10397         (parent_attach_all): Delete extern declaration, moved to
10398         "infttrace.h".
10399         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10400         int.
10401         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10402         * Makefile.in (infttrace_h): Define.
10403         (hpread.o): Update dependencies.
10404         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10405         * hppa-hpux-tdep.c: Include "gdb_string.h".
10406         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10407         * infrun.c (handle_inferior_event): Always initialize
10408         stepped_after_stopped_by_watchpoint.  Add default and remove
10409         fallthrough in switch statement.
10410         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10411         parameter to int.
10412         (hppa_remove_hw_watchpoint): Ditto.
10413
10414 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10415
10416         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10417         offset.
10418
10419 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
10420
10421         * arm-tdep.c (arm_push_arguments): Delete.
10422         (struct stack_item): New type.
10423         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10424         (arm_store_struct_return): Delte.
10425         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
10426         arm_push_arguments or arm_store_struct_return.
10427
10428 2003-03-28  Andrew Cagney  <cagney@redhat.com>
10429
10430         * Makefile.in (d10v-tdep.o): Update dependencies.
10431         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10432         * d10v-tdep.c: Include "remote.h".
10433         (target_resume_hook): Delete extern declaration.
10434         (target_wait_loop_hook): Ditto.
10435         (tdisassemble_command): Eliminate assignment in "if" conditional.
10436         (d10v_ts2_register_sim_regno): Eliminate call to
10437         legacy_register_sim_regno.
10438         (d10v_ts3_register_sim_regno): Ditto.
10439
10440 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
10441
10442         * thread.c: Reindented.
10443         * lin-lwp.c: Ditto.
10444         * linux-proc.c: Ditto.
10445
10446 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
10447
10448         * MAINTAINERS (write after approval): Add myself.
10449
10450 2003-03-27  Theodore A. Roth  <troth@openavr.org>
10451
10452         * objc-exp.y: Add missing semi-colons.
10453
10454 2003-03-27  Andrew Cagney  <cagney@redhat.com>
10455
10456         * regcache.c (write_sp): Delete function and references.
10457         * inferior.h (write_sp): Delete declaration.
10458         * valops.c (hand_function_call): Replace write_sp with
10459         TARGET_WRITE_SP.
10460         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10461         (sparc_pop_frame): Ditto.
10462
10463 2003-03-27  Andrew Cagney  <cagney@redhat.com>
10464
10465         * NEWS: Mention removal of support for hppa*-*-bsd* and
10466         hppa*-*-osf* natives, and hppa*-*-pro* target.
10467         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10468         * config/pa/xm-pa.h: Obsolete file.
10469         * config/pa/xm-hppab.h: Obsolete file.
10470         * config/pa/nm-hppab.h: Obsolete file.
10471         * config/pa/tm-hppab.h: Obsolete file.
10472         * config/pa/tm-hppao.h: Obsolete file.
10473         * config/pa/nm-hppao.h: Obsolete file.
10474         * config/pa/tm-pro.h: Obsolete file.
10475         * config/pa/hppaosf.mt: Obsolete file.
10476         * config/pa/hppaosf.mh: Obsolete file.
10477         * config/pa/hppapro.mt: Obsolete file.
10478         * config/pa/hppabsd.mt: Obsolete file.
10479         * config/pa/hppabsd.mh: Obsolete file.
10480         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10481         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10482         hppa*-*-osf*.
10483
10484 2003-03-27  Andrew Cagney  <cagney@redhat.com>
10485
10486         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10487         push_arguments.  Don't set push_return_address or write_sp.
10488         (d10v_push_dummy_call): Replace d10v_push_arguments.
10489         (d10v_push_return_address, d10v_write_sp): Delete function,
10490         handled by push_dummy_call.
10491
10492 2003-03-26  Andrew Cagney  <cagney@redhat.com>
10493
10494         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10495         (push_dummy_call): New pure multi-arch replacement with gdbarch,
10496         regcache and dummy_addr parameters.
10497         * gdbarch.h, gdbarch.c: Re-generate.
10498         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10499         available; assume it will handle stack alignment and return
10500         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
10501         legacy_push_arguments.
10502         (legacy_push_arguments): Rename default_push_arguments.
10503         * value.h (legacy_push_arguments): Rename default_push_arguments.
10504         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10505         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10506         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10507         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10508         * config/i386/tm-symmetry.h: Update.
10509         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10510         * x86-64-tdep.c (x86_64_init_abi): Update.
10511         * v850-tdep.c (v850_gdbarch_init): Update.
10512         * sparc-tdep.c (sparc_gdbarch_init): Update.
10513         * sh-tdep.c (sh_gdbarch_init): Update.
10514         * s390-tdep.c (s390_gdbarch_init): Update.
10515         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10516         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10517         * mips-tdep.c (mips_gdbarch_init): Update.
10518         * mcore-tdep.c (mcore_gdbarch_init): Update.
10519         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10520         * ia64-tdep.c (ia64_gdbarch_init): Update.
10521         * i386-tdep.c (i386_gdbarch_init): Update.
10522         * hppa-tdep.c (hppa_gdbarch_init): Update.
10523         * h8300-tdep.c (h8300_gdbarch_init): Update.
10524         * frv-tdep.c (frv_gdbarch_init): Update.
10525         * d10v-tdep.c (d10v_gdbarch_init): Update.
10526         * cris-tdep.c (cris_gdbarch_init): Update.
10527         * avr-tdep.c (avr_gdbarch_init): Update.
10528         * arm-tdep.c (arm_gdbarch_init): Update.
10529         * arm-linux-tdep.c (arm_linux_init_abi): Update.
10530         * alpha-tdep.c (alpha_gdbarch_init): Update.
10531
10532 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10533
10534         * signals/signals.c (do_target_signal_to_host): Correct realtime
10535         signal range test.
10536
10537 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10538
10539         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10540         (struct sal_chain, map_catch_names): Remove.
10541         (catch_exception_command_1): Don't call
10542         handle_gnu_4_16_catch_command.
10543
10544 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10545
10546         From Mark Dettinger <dettinge@de.ibm.com>:
10547         * dwarf2cfi.c (read_2u): Increment pointer by two.
10548
10549 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10550
10551         * signals/signals.c: Fix typos in last change.
10552
10553 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
10554
10555         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10556         not already defined.  Use __SIGRTMIN if available.
10557         (target_signal_from_host): Remove SIGRTMIN block.
10558         (do_target_signal_to_host): Remove SIGRTMIN block; check that
10559         the signal is within the realtime range.
10560
10561 2003-03-25  Adam Fedor  <fedor@gnu.org>
10562
10563         * Makefile.in (infrun.o): Add $(language_h)
10564         * infrun.c (handle_inferior_event): Use skip_language_trampoline
10565         for language specific trampolines.
10566         * language.h (struct language_defn): Add skip_trampoline.
10567         (skip_language_trampoline): Declare.
10568         * language.c (unk_lang_trampoline, skip_language_trampoline):
10569         New functions.
10570         (unknown_language_defn, auto_language_defn, local_language_defn):
10571         Add ukn_lang_trampoline.
10572         * ada-lang.c (ada_language_defn): Add NULL for language
10573         specific skip_trampoline.
10574         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10575         scm-lang.c: Likewise.
10576         * objc-lang.c (objc_skip_trampoline): New function.
10577         (objc_language_defn): Add objc_skip_trampoline.
10578
10579 2003-03-25  Andrew Cagney  <cagney@redhat.com>
10580
10581         * frame.c (get_prev_frame): Delay validating a frame's ID -
10582         non-NULL, didn't go backwards - until an attempt to unwind it to
10583         the previous frame.
10584
10585 2003-03-25  Andrew Cagney  <cagney@redhat.com>
10586
10587         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10588         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
10589         * gdbarch.h, gdbarch.c: Re-generate.
10590         * config/sparc/tm-sparc.h
10591         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10592         * sparc-tdep.c (sparc_gdbarch_init): Set
10593         deprecated_extra_stack_alignment_needed.
10594         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10595         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10596         extra_stack_alignment_needed.
10597         * v850-tdep.c (v850_gdbarch_init): Ditto.
10598         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10599         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10600         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10601         * cris-tdep.c (cris_gdbarch_init): Ditto.
10602         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10603         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10604
10605 2003-03-25  Andrew Cagney  <cagney@redhat.com>
10606
10607         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10608         STORE_STRUCT_RETURN.
10609         * gdbarch.h, gdbarch.c: Regenerate.
10610         * d10v-tdep.c (d10v_store_struct_return): Delete function.
10611         (d10v_push_arguments): Set the struct return register.
10612         (d10v_gdbarch_init): Update.
10613         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10614         * x86-64-tdep.c (x86_64_init_abi): Update.
10615         * vax-tdep.c (vax_gdbarch_init): Update.
10616         * v850-tdep.c (v850_gdbarch_init): Update.
10617         * sparc-tdep.c (sparc_gdbarch_init): Update.
10618         * sh-tdep.c (sh_gdbarch_init): Update.
10619         * s390-tdep.c (s390_gdbarch_init): Update.
10620         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10621         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10622         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10623         * mips-tdep.c (mips_gdbarch_init): Update.
10624         * mcore-tdep.c (mcore_gdbarch_init): Update.
10625         * m68k-tdep.c (m68k_gdbarch_init): Update.
10626         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10627         * ia64-tdep.c (ia64_gdbarch_init): Update.
10628         * i386-tdep.c (i386_gdbarch_init): Update.
10629         * hppa-tdep.c (hppa_gdbarch_init): Update.
10630         * h8300-tdep.c (h8300_gdbarch_init): Update.
10631         * frv-tdep.c (frv_gdbarch_init): Update.
10632         * cris-tdep.c (cris_gdbarch_init): Update.
10633         * avr-tdep.c (avr_gdbarch_init): Update.
10634         * arm-tdep.c (arm_gdbarch_init): Update.
10635         * alpha-tdep.c (alpha_gdbarch_init): Update.
10636
10637 2003-03-25  Andrew Cagney  <cagney@redhat.com>
10638
10639         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10640         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10641         CALL_DUMMY_STACK_ADJUST with a predicate variable.
10642         * gdbarch.h, gdbarch.c: Regenerate.
10643         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10644         call_dummy_stack_adjust_p.
10645         * vax-tdep.c (vax_gdbarch_init): Ditto.
10646         * v850-tdep.c (v850_gdbarch_init): Ditto.
10647         * sh-tdep.c (sh_gdbarch_init): Ditto.
10648         * s390-tdep.c (s390_gdbarch_init): Ditto.
10649         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10650         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10651         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10652         * mips-tdep.c (mips_gdbarch_init): Ditto.
10653         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10654         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10655         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10656         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10657         * i386-tdep.c (i386_gdbarch_init): Ditto.
10658         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10659         * frv-tdep.c (frv_gdbarch_init): Ditto.
10660         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10661         * cris-tdep.c (cris_gdbarch_init): Ditto.
10662         * avr-tdep.c (avr_gdbarch_init): Ditto.
10663         * arm-tdep.c (arm_gdbarch_init): Ditto.
10664         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10665         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10666         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10667         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10668         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
10669         call_dummy_stack_adjust_p.
10670         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10671         (CALL_DUMMY_STACK_ADJUST): Delete macro.
10672         * sparc-tdep.c (sparc32_push_arguments): Update.
10673         * valops.c (hand_function_call): Update.
10674
10675 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
10676
10677         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10678         set_gdbarch_char_signed.
10679
10680 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
10681
10682         PR cli/548
10683         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10684
10685 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
10686
10687         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10688         (_initialize_arm_tdep): Don't set tm_print_insn.
10689
10690 2003-03-24  Adam Fedor  <fedor@gnu.org>
10691
10692         * Makefile.in (YYOBJ): Add objc-exp.tab.o
10693         * objc-lang.h: Add multiple inclusion protection.
10694         (start_msglist, add_msglist, end_msglist): Additional declarations.
10695
10696 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
10697
10698         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10699         value was renamed to ARM_FLOAT_SOFT_FPA.
10700
10701 2003-03-23  Andrew Cagney  <cagney@redhat.com>
10702
10703         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10704         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10705         * gdbarch.h, gdbarch.c: Regenerate.
10706         * valops.c (hand_function_call): Update.
10707         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10708         * frame.c (legacy_saved_regs_this_id): Update.
10709         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10710         * dummy-frame.h: Update.
10711         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10712         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10713         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10714         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10715         * config/m68k/tm-sun3.h: Update.
10716         * blockframe.c (inside_main_func, frame_chain_valid): Update.
10717         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10718         * x86-64-tdep.c (x86_64_init_abi): Update.
10719         * vax-tdep.c (vax_gdbarch_init): Update.
10720         * v850-tdep.c (v850_gdbarch_init): Update.
10721         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10722         * sh-tdep.c (sh_gdbarch_init): Update.
10723         * s390-tdep.c (s390_gdbarch_init): Update.
10724         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10725         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10726         (frame_get_saved_regs): Update.
10727         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10728         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10729         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10730         * mips-tdep.c (mips_gdbarch_init): Update.
10731         * mcore-tdep.c (mcore_gdbarch_init): Update.
10732         * m68k-tdep.c (m68k_gdbarch_init): Update.
10733         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10734         * ia64-tdep.c (ia64_gdbarch_init): Update.
10735         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10736         * i386-interix-tdep.c (i386_interix_init_abi): Update.
10737         (i386_interix_back_one_frame): Update.
10738         * hppa-tdep.c (hppa_gdbarch_init): Update.
10739         (hppa_init_extra_frame_info): Update.
10740         * h8300-tdep.c (h8300_gdbarch_init): Update.
10741         * frv-tdep.c (frv_gdbarch_init): Update.
10742         * cris-tdep.c (cris_gdbarch_init): Update.
10743         * avr-tdep.c (avr_gdbarch_init): Update.
10744         * arm-tdep.c (arm_gdbarch_init): Update.
10745         * alpha-tdep.c (alpha_gdbarch_init): Update.
10746
10747 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10748
10749         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10750         (arm_get_fp_model): Declare.
10751         * arm-tdep.c (fp_model_strings): New string array.
10752         (arm_fp_model, current_fp_model): New variables.
10753         (arm_get_fp_model): New function.
10754         (arm_set_fp): New function.
10755         (set_fp_model_sfunc): New function.
10756         (show_fp_model): New function.
10757         (_initialize_arm_tdep): Add new command to set/show the FPU.
10758         (arm_extract_return_value): Use arm_get_fp_model.
10759         (arm_store_return_value): Likewise.
10760         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
10761         to initialize the floating-point data types.
10762         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10763         model is FPA.
10764
10765 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10766
10767         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
10768         the current setting of each value.
10769         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10770         new_set and new_show.  Use add_setshow_cmd_full and
10771         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
10772         commands and add new version as subcommands of "set/show arm".
10773
10774 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10775
10776         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10777         (set_arm_command, show_arm_command): New functions.
10778         (_initialize_arm_tdep): Add them.
10779         (num_disassembly_options): Renamed from num_flavor_options.
10780         (valid_disassembly_styles): Renamed from valid_flavors.
10781         (disassembly_style): Renamed from disassembly_flavor.
10782         (set_disassembly_style_sfunc): Renamed from
10783         set_disassembly_flavor_sfunc.
10784         (set_disassembly_style): Renamed from set_disassembly_flavor.
10785         (arm_othernames): Updated.
10786         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10787         command.  Add "set/show arm disassembly" commands.  Deprecate
10788         "othernames" command.
10789
10790 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10791
10792         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10793         (arm-tdep.o): Depend on elf_arm_h.
10794
10795 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10796
10797         * Makefile.in (coff_internal_h): Define.
10798         (arm-tdep.o): Update dependencies.
10799
10800 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10801
10802         * arm-tdep.c (prologue_cache): Delete.
10803         (check_prologue_cache, save_prologue_cache): Delete.
10804         (arm_scan_prologue): Don't check or update the prologue_cache.
10805         (arm_gdb_arch_init): Don't initialize it.
10806         (_initialize_arm_tdep): Likewise.
10807
10808 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
10809
10810         * MAINTAINERS (tui): Maintainer of tui code.
10811
10812 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
10813
10814         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10815         (i386-cygwin-tdep.o): Add dependencies.
10816         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10817         * i386-cygwin-tdep.c: New file.
10818         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10819         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10820
10821 2003-03-20  Andrew Cagney  <cagney@redhat.com>
10822
10823         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10824         (handle_inferior_event): Remove code calling
10825         DYNAMIC_TRAMPOLINE_NEXTPC.
10826
10827         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10828         already has a full path.
10829
10830         * main.c (gdb_main): Return 1.
10831         (captured_main): Call error to report an invalid interpreter.
10832
10833         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10834         * alpha-osf1-tdep.c: Include "gdb_string.h".
10835
10836 2003-03-19  J. Brobecker  <brobecker@gnat.com>
10837
10838         Continuing work to convert the hppa targets to multiarch partial.
10839
10840         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10841         method, now that hppa_push_dummy_frame has a conformant prototype.
10842         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10843         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10844         for the switch to multiarch partial.
10845
10846 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
10847
10848         * mdebugread.c (parse_symbol): For stEnd, we're done counting
10849         when iss is issNull.
10850
10851 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
10852
10853         * mips-tdep.c (mips_register_name): Fix fencepost error involving
10854         NUM_REGS bounds check.
10855
10856 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
10857
10858         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10859         * mips-tdep.c (gdb_assert.h): Include.
10860         (mips_generic_reg_names, mips_processor_reg_names): Make static.
10861         (mips_register_name): Handle integer registers explicitly.  Add
10862         bounds checking.
10863         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10864         (mips_lsi33k_reg_names): Don't list integer registers; they're
10865         handled by mips_register_name() now.
10866         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10867         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10868         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10869         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10870         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10871
10872 2003-03-18  Andrew Cagney  <cagney@redhat.com>
10873
10874         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10875         a void pointer.
10876         * gdbtypes.h (print_scalar_formatted): Update declaration.
10877         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10878
10879 2003-03-18  J. Brobecker  <brobecker@gnat.com>
10880
10881         * infrun.c (observer.h): Add #include.
10882         (normal_stop): Add call to observer_notify_normal_stop.
10883         * Makefile.in (infrun.o): Add dependency on observer.h.
10884
10885 2003-03-18  J. Brobecker  <brobecker@gnat.com>
10886
10887         Continuing work to convert the hppa targets to multiarch partial.
10888         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10889         parameter. Reformat comment.
10890         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10891         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10892         to match new profile.
10893
10894 2003-03-18  J. Brobecker  <brobecker@gnat.com>
10895
10896         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10897         appear to be working in any case.
10898
10899 2003-03-18  J. Brobecker  <brobecker@gnat.com>
10900
10901         * observer.c (observer_test_first_observer): New static variable.
10902         (observer_test_second_observer): Likewise.
10903         (observer_test_third_observer): Likewise.
10904         (observer_test_first_notification_function): New static function.
10905         (observer_test_second_notification_function): Likewise.
10906         (observer_test_third_notification_function): Likewise.
10907
10908 2003-03-17  J. Brobecker  <brobecker@gnat.com>
10909
10910         * hppa-tdep.c (gdb_assert.h): Add missing #include.
10911         * somsolib.c (gdb_assert.h): Likewise.
10912         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10913         (somsolib.o): Likewise.
10914
10915 2003-03-17  Andrew Cagney  <cagney@redhat.com>
10916
10917         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10918         BFD.  Simplify setting of di.endian.
10919
10920 2003-03-17  Andrew Cagney  <cagney@redhat.com>
10921
10922         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10923         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10924
10925         From Elena Zannoni  <ezannoni@redhat.com>
10926         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10927         vector and floating-point parameters.
10928         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10929         convention.
10930         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10931
10932 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
10933
10934         * MAINTAINERS: Remove my name from several maintainership roles.
10935
10936 2003-03-17  Andrew Cagney  <cagney@redhat.com>
10937
10938         Fix frame off-by-one bug.
10939         * frame-unwind.h (frame_this_id_ftype): Replace
10940         frame_unwind_id_ftype.
10941         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10942         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
10943         with "prev_register".
10944         * frame-unwind.c (frame_unwind_find_by_pc): Return
10945         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
10946         comment.
10947         * dummy-frame.c (cached_find_dummy_frame): Delete function.
10948         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10949         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10950         (dummy_frame_unwind): Update.
10951         * sentinel-frame.c (sentinel_frame_prev_register): Replace
10952         sentinel_frame_register_unwind.
10953         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10954         (sentinel_frame_unwinder): Update.
10955         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10956         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10957         * frame.c (create_sentinel_frame): Update. Initialize
10958         "prologue_cache" instead of "unwind_cache".
10959         (frame_register_unwind): Call this frame's prev_register with the
10960         next frame and this frame's prologue cache.
10961         (get_prev_frame): Simplify.  Always call prev frame's this_id with
10962         this frame and prev frame's prologue cache.  Document that this
10963         call is shifted one to the left when compared to the
10964         frame_register_unwind call.
10965         (legacy_saved_regs_prev_register): Replace
10966         frame_saved_regs_register_unwind.
10967         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10968         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10969         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10970         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10971         (d10v_frame_unwind): Update.
10972         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10973         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10974         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10975         "saved_regs" with "this_saved_regs".
10976
10977 2003-03-16  Andrew Cagney  <cagney@redhat.com>
10978
10979         * frame.c (frame_pop): Don't call target_store_registers.  Fix
10980         problem reported by Mark Kettenis.
10981
10982 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
10983
10984         * i386-tdep.c (i386_register_type): Renamed from
10985         i386_register_virtual_type.  Adjust function signature.
10986         (i386_gdbarch_init): Set register_type instead of
10987         deprecated_max_register_raw_size,
10988         deprecated_max_register_virtual_size and register_virtual_type.
10989
10990 2003-03-14  Andrew Cagney  <cagney@redhat.com>
10991
10992         * frame.c (get_prev_frame): When a legacy frame, always call
10993         legacy_get_prev_frame.  Simplify unwind code using assumption that
10994         the unwinder is new.
10995         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10996         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10997         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10998
10999 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11000
11001         * frame.c (get_saved_register): Delete function.
11002         * frame.h (get_saved_register): Delete declaration.
11003         * xstormy16-tdep.c: Update comment.
11004         * regcache.h: Update comments.
11005         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11006         get_saved_register and extract_address, use
11007         frame_read_unsigned_register.
11008         (sparc_frame_saved_pc): Ditto.
11009         (sparc_get_saved_register): Instead of get_saved_register, use
11010         frame_register.
11011         (sparc_pop_frame): Ditto.
11012         * findvar.c: Update comments.
11013         (value_of_register): Call frame_register instead of
11014         get_saved_register.
11015         (value_from_register): Ditto.
11016         * config/sparc/tm-sparc.h: Update comment.
11017         * breakpoint.c: Update comment.
11018
11019 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11020
11021         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11022         GET_SAVED_REGISTER.
11023         * gdbarch.h, gdbarch.c: Re-generate.
11024         * frame.h: Update comments.
11025         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11026         * x86-64-tdep.c (x86_64_init_abi): Update.
11027         * sparc-tdep.c (sparc_gdbarch_init): Update.
11028         * sh-tdep.c (sh_gdbarch_init): Update.
11029         * mips-tdep.c (mips_gdbarch_init): Update.
11030         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11031         * cris-tdep.c (cris_gdbarch_init): Update.
11032         * ia64-tdep.c (ia64_gdbarch_init): Update.
11033         * frame.c (frame_register): Update.
11034         (get_saved_register): Update.
11035         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11036
11037 2003-03-13  Andrew Cagney  <cagney@redhat.com>
11038
11039         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11040         * gdbarch.h, gdbarch.c: Regenerate.
11041         * valops.c (hand_function_call): Update comment.
11042         * stack.c (return_command): Update comment.
11043         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11044         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11045         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11046         * x86-64-tdep.c (x86_64_init_abi): Update.
11047         * vax-tdep.c (vax_gdbarch_init): Update.
11048         * v850-tdep.c (v850_gdbarch_init): Update.
11049         * sparc-tdep.c (sparc_gdbarch_init): Update.
11050         * sh-tdep.c (sh_gdbarch_init): Update.
11051         * s390-tdep.c (s390_gdbarch_init): Update.
11052         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11053         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11054         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11055         * mips-tdep.c (mips_gdbarch_init): Update.
11056         * mcore-tdep.c (mcore_gdbarch_init): Update.
11057         * m68k-tdep.c (m68k_gdbarch_init): Update.
11058         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11059         * ia64-tdep.c (ia64_gdbarch_init): Update.
11060         * i386-tdep.c (i386_gdbarch_init): Update.
11061         * hppa-tdep.c (hppa_gdbarch_init): Update.
11062         * h8300-tdep.c (h8300_gdbarch_init): Update.
11063         * frv-tdep.c (frv_gdbarch_init): Update.
11064         * cris-tdep.c (cris_gdbarch_init): Update.
11065         * avr-tdep.c (avr_gdbarch_init): Update.
11066         * arm-tdep.c (arm_gdbarch_init): Update.
11067         * alpha-tdep.c (alpha_gdbarch_init): Update.
11068
11069 2003-03-13  Andrew Cagney  <cagney@redhat.com>
11070
11071         * frame.c (legacy_frame_p): New function.
11072         (get_prev_frame): Use legacy_frame_p.
11073         * frame.h (legacy_frame_p): Declare.
11074
11075 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11076
11077         * MAINTAINERS (write after approval): Alphabetically
11078         listing corrected.
11079
11080 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11081
11082         * MAINTAINERS (write after approval): Add myself.
11083
11084 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11085
11086         * frame.c (get_prev_frame): Rename the frame parameter to
11087         "this_frame".
11088         (get_next_frame, legacy_get_prev_frame): Ditto.
11089
11090 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11091
11092         * frame.c (get_current_frame): Check target_has_registers before
11093         checking target_has_stack.
11094         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11095         instead of deprecated_selected_frame.
11096         * findvar.c (value_of_register): Pass "frame", not
11097         deprecated_selected_frame, to value_of_builtin_reg.
11098
11099 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11100
11101         * regcache.c (regcache_cooked_write_signed): New function.
11102         (regcache_cooked_write_unsigned): New function.
11103         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11104         (regcache_cooked_read_signed): Fix regnum in range assertion.
11105         * regcache.h (regcache_cooked_write_signed): Declare.
11106         (regcache_cooked_write_unsigned): Declare.
11107
11108 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11109
11110         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11111         * gdbarch.h, gdbarch.c: Re-generate.
11112         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11113         * x86-64-tdep.h: Update.
11114         * x86-64-tdep.c (x86_64_init_abi): Update.
11115         * v850-tdep.c (v850_gdbarch_init): Update.
11116         * sparc-tdep.c (sparc_gdbarch_init): Update.
11117         * sh-tdep.c (sh_gdbarch_init): Update.
11118         * s390-tdep.c (s390_gdbarch_init): Update.
11119         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11120         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11121         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11122         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11123         * mips-tdep.c (mips_gdbarch_init): Update.
11124         * mcore-tdep.c (mcore_gdbarch_init): Update.
11125         * m68k-tdep.c (m68k_gdbarch_init): Update.
11126         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11127         * ia64-tdep.c (ia64_gdbarch_init): Update.
11128         * i386-tdep.c (i386_gdbarch_init): Update.
11129         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11130         * hppa-tdep.c (hppa_gdbarch_init): Update.
11131         * h8300-tdep.c (h8300_gdbarch_init): Update.
11132         * frv-tdep.c (frv_gdbarch_init): Update.
11133         * cris-tdep.c (cris_gdbarch_init): Update.
11134         * avr-tdep.c (avr_gdbarch_init): Update.
11135         * arm-tdep.c (arm_gdbarch_init): Update.
11136         * alpha-tdep.c (alpha_gdbarch_init): Update.
11137         * sh-tdep.c (sh_init_extra_frame_info): Update.
11138         (sh64_init_extra_frame_info): Update.
11139         * ns32knbsd-nat.c (frame_num_args): Update.
11140         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11141         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11142         (xstormy16_frame_chain_valid): Update.
11143         * vax-tdep.c (vax_saved_pc_after_call): Update.
11144         * v850-tdep.c (v850_frame_chain): Update.
11145         (v850_pop_frame): Update.
11146         (v850_init_extra_frame_info): Update.
11147         * sparc-tdep.c (setup_arbitrary_frame): Update.
11148         * ns32k-tdep.c (umax_frame_num_args): Update.
11149         * s390-tdep.c (s390_pop_frame_regular): Update.
11150         * mn10300-tdep.c (mn10300_frame_chain): Update.
11151         (mn10300_pop_frame_regular): Update.
11152         (mn10300_init_extra_frame_info): Update.
11153         * mips-tdep.c (mips_init_frame_pc_first): Update.
11154         (mips_frame_chain): Update.
11155         (mips_pop_frame): Update.
11156         * mcore-tdep.c (mcore_frame_chain): Update.
11157         (mcore_pop_frame): Update.
11158         (mcore_init_extra_frame_info): Update.
11159         * arch-utils.c (init_frame_pc_default): Update.
11160         * m68k-tdep.c (isi_frame_num_args): Update.
11161         (delta68_frame_num_args): Update.
11162         (news_frame_num_args): Update.
11163         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11164         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11165         (alpha_frame_chain): Update.
11166         (alpha_pop_frame): Update.
11167         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11168         (hppa_init_extra_frame_info): Update.
11169         (hppa_frame_chain): Update.
11170         (hppa_frame_chain_valid): Update.
11171         * cris-tdep.c (cris_init_extra_frame_info): Update.
11172         * avr-tdep.c (avr_init_extra_frame_info): Update.
11173         * arm-tdep.c (arm_frame_chain_valid): Update.
11174         (arm_init_extra_frame_info): Update.
11175         (arm_pop_frame): Update.
11176         * frame.c (frame_pc_unwind): Update.
11177         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11178         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11179         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11180         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11181         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11182         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11183
11184 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11185
11186         Eliminate the need for POP_FRAME.
11187         * frame.c (do_frame_unwind_register): New function.
11188         (frame_pop): When no POP_FRAME, pop the frame using register
11189         unwind and a scratch regcache.
11190         (frame_saved_regs_pop): Delete function.
11191         (trad_frame_unwinder): Update.
11192         * d10v-tdep.c (d10v_frame_pop): Delete function.
11193         (d10v_frame_unwind): Update.
11194         * sentinel-frame.c (sentinel_frame_pop): Delete function.
11195         (sentinel_frame_unwinder): Update.
11196         * dummy-frame.c (dummy_frame_pop): Delete function.
11197         (dummy_frame_unwind): Update.
11198         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11199         (struct frame_unwind): Update.
11200
11201 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
11202
11203         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11204         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11205         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11206         Do range checks on register number obtained from debugging info.
11207         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11208         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
11209         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11210         mapping function.
11211         (do_fp_register_row): Fix typo which caused double type to be
11212         used when attempting to unpack a float.
11213
11214 2003-03-11  J. Brobecker  <brobecker@gnat.com>
11215
11216         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11217
11218 2003-03-11  Andrew Cagney  <cagney@redhat.com>
11219
11220         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11221         frame.  Problem found by Corinna Vinschen.
11222
11223 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
11224
11225         * doublest.c (floatformat_from_length): Accept also
11226         the real size of 'long double' type.
11227
11228 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
11229
11230         From Klee Dienes <kdienes@apple.com>:
11231         * breakpoint.c (bpstat_copy): Copy the command lines as well
11232         as the old value, to match what is freed in bpstat_clear.
11233
11234 2003-03-10  David Carlton  <carlton@math.stanford.edu>
11235
11236         * minsyms.c (add_minsym_to_hash_table): Replace
11237         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11238         (compare_minimal_symbols, compact_minimal_symbols)
11239         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11240         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11241         of DEPRECATED_SYMBOL_MATCHES_NAME.
11242         (lookup_minimal_symbol_solib_trampoline): Ditto.
11243
11244 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11245
11246         * regcache.h (regcache_cooked_read_ftype): Define.
11247         (regcache_save, regcache_restore): Add a cooked_read parameter.
11248         * regcache.c (regcache_save, regcache_restore): Update.
11249         (do_cooked_read): New function.
11250         (regcache_cpy): Pass do_cooked_read to regcache_save and
11251         regcache_restore.
11252
11253 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11254
11255         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11256         * gdbarch.h, gdbarch.c: Re-generate.
11257         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11258         * x86-64-tdep.h: Update.
11259         * x86-64-tdep.c (x86_64_init_abi): Update.
11260         * v850-tdep.c (v850_gdbarch_init): Update.
11261         * sparc-tdep.c (sparc_gdbarch_init): Update.
11262         * sh-tdep.c (sh_gdbarch_init): Update.
11263         * s390-tdep.c (s390_gdbarch_init): Update.
11264         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11265         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11266         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11267         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11268         * mips-tdep.c (mips_gdbarch_init): Update.
11269         * mcore-tdep.c (mcore_gdbarch_init): Update.
11270         * m68k-tdep.c (m68k_gdbarch_init): Update.
11271         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11272         * ia64-tdep.c (ia64_gdbarch_init): Update.
11273         * i386-tdep.c (i386_gdbarch_init): Update.
11274         * i386-interix-tdep.c (i386_interix_init_abi): 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         * sh-tdep.c (sh_init_extra_frame_info): Update.
11283         (sh64_init_extra_frame_info): Update.
11284         * ns32knbsd-nat.c (frame_num_args): Update.
11285         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11286         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11287         (xstormy16_frame_chain_valid): Update.
11288         * vax-tdep.c (vax_saved_pc_after_call): Update.
11289         * v850-tdep.c (v850_frame_chain): Update.
11290         (v850_pop_frame): Update.
11291         (v850_init_extra_frame_info): Update.
11292         * sparc-tdep.c (setup_arbitrary_frame): Update.
11293         * ns32k-tdep.c (umax_frame_num_args): Update.
11294         * s390-tdep.c (s390_pop_frame_regular): Update.
11295         * mn10300-tdep.c (mn10300_frame_chain): Update.
11296         (mn10300_pop_frame_regular): Update.
11297         (mn10300_init_extra_frame_info): Update.
11298         * mips-tdep.c (mips_init_frame_pc_first): Update.
11299         (mips_frame_chain): Update.
11300         (mips_pop_frame): Update.
11301         * mcore-tdep.c (mcore_frame_chain): Update.
11302         (mcore_pop_frame): Update.
11303         (mcore_init_extra_frame_info): Update.
11304         * arch-utils.c (init_frame_pc_default): Update.
11305         * m68k-tdep.c (isi_frame_num_args): Update.
11306         (delta68_frame_num_args): Update.
11307         (news_frame_num_args): Update.
11308         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11309         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11310         (alpha_frame_chain): Update.
11311         (alpha_pop_frame): Update.
11312         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11313         (hppa_init_extra_frame_info): Update.
11314         (hppa_frame_chain): Update.
11315         (hppa_frame_chain_valid): Update.
11316         * cris-tdep.c (cris_init_extra_frame_info): Update.
11317         * avr-tdep.c (avr_init_extra_frame_info): Update.
11318         * arm-tdep.c (arm_frame_chain_valid): Update.
11319         (arm_init_extra_frame_info): Update.
11320         (arm_pop_frame): Update.
11321         * frame.c (frame_pc_unwind): Update.
11322         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11323         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11324         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11325         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11326         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11327         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11328
11329 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11330
11331         * gdbarch.sh (gdbarch_unwind_pc): New method.
11332         * gdbarch.h, gdbarch.c: Regenerate.
11333         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
11334         but use read_pc and FRAME_SAVED_PC as fall backs.
11335         (frame_saved_regs_pc_unwind): Delete function.
11336         (trad_frame_unwinder): Update.
11337         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11338         (struct frame_unwind): Update.
11339         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11340         (dummy_frame_unwind): Update.
11341         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11342         (sentinel_frame_unwinder): Update.
11343         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11344         (d10v_frame_unwind): Update.
11345         (d10v_unwind_pc): New function.
11346         (d10v_gdbarch_init): Set unwind_pc.
11347
11348 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11349
11350         * gdbarch.h: Re-generate.
11351
11352         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11353         PC.
11354         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11355         the PC register.
11356
11357 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
11358
11359         * gdbarch.sh (save_dummy_frame_tos): Add comment.
11360
11361 2003-03-08  Andrew Cagney  <cagney@redhat.com>
11362
11363         * cli-out.c: Update copyright.
11364         (cli_out_data): Define typedef.  Use instead of ui_out_data.
11365
11366 2003-03-08  Andrew Cagney  <cagney@redhat.com>
11367
11368         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11369         the result.
11370
11371 2003-03-07  Andrew Cagney  <cagney@redhat.com>
11372
11373         * gdbarch.sh: Don't generate two macro definitions when an
11374         undefined macro taking no arguments.
11375         * gdbarch.h: Regenerate.
11376
11377 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
11378
11379         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11380         (x86_64_unwind_dummy_id): New functions.
11381         (x86_64_init_abi): Register these two new functions.
11382
11383 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
11384
11385         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11386         (x86_64_skip_prologue): Move prologue detection to
11387         separate function.
11388         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11389
11390 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11391
11392         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11393         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11394         * frame.c (get_prev_frame): Restructure the frame ID unwind code
11395         to use unwind_dummy_id when a dummy frame.
11396         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11397         predicate.
11398         * gdbarch.h, gdbarch.c: Regneerate.
11399
11400 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11401
11402         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11403         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11404         Do not use d10v_read_sp or d10v_read_fp when obtaining register
11405         values.
11406
11407 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11408
11409         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11410         (struct d10v_unwind_cache): Delete field "frameless".  Replace
11411         "next_addr" with "sp_offset".  Add "r11_offset".
11412         (d10v_frame_unwind_cache): Update.
11413         (prologue_find_regs): Update.  When "mv r11, sp", save the
11414         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
11415         RN was saved in r11_offset.
11416
11417 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11418
11419         * frame.c (deprecated_update_frame_pc_hack): Also update the the
11420         cached PC value in the next frame.
11421
11422 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11423
11424         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11425         "id_unwind_cache" with "id".
11426         (frame_id_unwind): Delete declaration.
11427         * frame.c (frame_id_unwind): Delete function.
11428         (get_prev_frame): Call the frame id unwind method directly.  Store
11429         the returned next frame's ID value in NEXT_FRAME.  Note that there
11430         is a problem with the wrong unwind ID being called with the wrong
11431         unwind cache.
11432
11433 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
11434
11435         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11436
11437 2003-03-05  James Ingham <jingham@apple.com>
11438             Daniel Jacobowitz  <drow@mvista.com>
11439
11440         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11441         (auto_cp_abi): New variable.
11442         (current_cp_abi, num_cp_abis): Make static.
11443         (CP_ABI_MAX): Define.
11444         (cp_abis): Turn into an array.
11445         (value_virtual_fn_field): Fix formatting.
11446         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
11447         takes a pointer.
11448         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11449         (list_cp_abis, _initialize_cp_abi): New functions.
11450         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
11451         declarations for cp_abis, num_cp_abis, current_cp_abi, and
11452         switch_to_cp_abi.  Update prototype for register_cp_abi.
11453         * Makefile.in (cp-abi.o): Update dependencies.
11454         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11455         instead of switch_to_cp_abi.
11456         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
11457         register_cp_abi.
11458         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11459         register_cp_abi.
11460         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11461
11462 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
11463
11464         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11465         * dwarf2loc.c: Include "regcache.h".
11466         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
11467         register_size.
11468         * Makefile.in (dwarf2loc.o): Update dependencies.
11469
11470 2003-03-04  Theodore A. Roth  <troth@openavr.org>
11471
11472         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11473         number of io registers reported by remote target is not a multiple of
11474         step.
11475
11476 2003-03-04  David Carlton  <carlton@math.stanford.edu>
11477
11478         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11479         (lookup_symbol_aux_psymtabs): Update call to
11480         lookup_partial_symbol.
11481         (lookup_transparent_type, find_main_psymtab)
11482         (make_symbol_overload_list): Ditto.
11483
11484 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
11485
11486         * MAINTAINERS (Write after approval): Update my email address.
11487
11488 2003-03-03  Andrew Cagney  <cagney@redhat.com>
11489
11490         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11491         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11492         predicate.  Replace MAX_REGISTER_RAW_SIZE.
11493         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11494         MAX_REGISTER_VIRTUAL_SIZE.
11495         * regcache.c (legacy_max_register_raw_size): New function.
11496         (legacy_max_register_virtual_size): New function.
11497         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11498         (MAX_REGISTER_RAW_SIZE): Define.
11499         (legacy_max_register_raw_size): Declare.
11500         (legacy_max_register_virtual_size): Declare.
11501         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11502         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11503         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11504         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11505         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11506         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11507         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11508         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11509         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11510         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11511         * vax-tdep.c (vax_gdbarch_init): Update.
11512         * v850-tdep.c (v850_gdbarch_init): Update.
11513         * sparc-tdep.c (sparc_gdbarch_init): Update.
11514         * sh-tdep.c (sh_gdbarch_init): Update.
11515         * s390-tdep.c (s390_gdbarch_init): Update.
11516         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11517         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11518         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11519         * mips-tdep.c (mips_gdbarch_init): Update.
11520         * mcore-tdep.c (mcore_gdbarch_init): Update.
11521         * m68k-tdep.c (m68k_gdbarch_init): Update.
11522         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11523         * ia64-tdep.c (ia64_gdbarch_init): Update.
11524         * i386-tdep.c (i386_gdbarch_init): Update.
11525         * hppa-tdep.c (hppa_gdbarch_init): Update.
11526         * h8300-tdep.c (h8300_gdbarch_init): Update.
11527         * frv-tdep.c (frv_gdbarch_init): Update.
11528         * cris-tdep.c (cris_gdbarch_init): Update.
11529         * avr-tdep.c (avr_gdbarch_init): Update.
11530         * arm-tdep.c (arm_gdbarch_init): Update.
11531         * alpha-tdep.c (alpha_gdbarch_init): Update.
11532         * d10v-tdep.c (d10v_gdbarch_init): Do not set
11533         max_register_raw_size or max_register_virtual_size.
11534
11535 2003-03-03  David Carlton  <carlton@math.stanford.edu>
11536
11537         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11538         SYMBOL_MATCHES_NAME, add comment.
11539         (SYMBOL_MATCHES_NATURAL_NAME): New.
11540         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11541         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11542         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11543         * symtab.c (lookup_partial_symbol): Use
11544         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
11545         unhelpful comment.
11546         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11547         SYMBOL_MATCHES_NAME.
11548         Fix for PR c++/33.
11549
11550 2003-03-03  David Carlton  <carlton@math.stanford.edu>
11551
11552         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11553         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11554         by regexp matching against SYMBOL_NATURAL_NAME.
11555
11556 2003-03-03  David Carlton  <carlton@math.stanford.edu>
11557
11558         * linespec.c (find_method): Extract code into collect_methods.
11559         (collect_methods): New.
11560
11561 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
11562
11563         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11564         get_frame_base.
11565
11566         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11567         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11568
11569 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
11570
11571         * arch-utils.c (generic_register_byte): Fix to use the loop index
11572         and not regnum when summing the size of all registers up to regnum.
11573
11574 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11575
11576         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11577         FRAME_INIT_SAVED_REGS.
11578         * gdbarch.h, gdbarch.c: Regenerate.
11579         * stack.c (frame_info): Update.
11580         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11581         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11582         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11583         * ns32k-tdep.c (ns32k_pop_frame): Update.
11584         * mips-tdep.c (mips_pop_frame): Update.
11585         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11586         * ia64-tdep.c (ia64_frame_chain): Update.
11587         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11588         (ia64_frameless_function_invocation): Update.
11589         (ia64_init_extra_frame_info): Update.
11590         (ia64_pop_frame_regular): Update.
11591         * frame.h (struct frame_info): Update comment.
11592         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11593         * frame.c (frame_saved_regs_register_unwind): Update.
11594         (frame_saved_regs_register_unwind): Update.
11595         (deprecated_generic_get_saved_register): Update.
11596         * cris-tdep.c: Update comment.
11597         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11598         Rename macro.
11599         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11600         * x86-64-tdep.c (x86_64_init_abi): Update.
11601         * vax-tdep.c (vax_gdbarch_init): Update.
11602         * v850-tdep.c (v850_gdbarch_init): Update.
11603         * sparc-tdep.c (sparc_gdbarch_init): Update.
11604         * sh-tdep.c (sh_gdbarch_init): Update.
11605         * s390-tdep.c (s390_gdbarch_init): Update.
11606         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11607         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11608         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11609         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11610         * mips-tdep.c (mips_gdbarch_init): Update.
11611         * mcore-tdep.c (mcore_gdbarch_init): Update.
11612         * m68k-tdep.c (m68k_gdbarch_init): Update.
11613         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11614         * ia64-tdep.c (ia64_gdbarch_init): Update.
11615         * i386-tdep.c (i386_gdbarch_init): Update.
11616         * frv-tdep.c (frv_gdbarch_init): Update.
11617         * avr-tdep.c (avr_gdbarch_init): Update.
11618         * arm-tdep.c (arm_gdbarch_init): Update.
11619         * alpha-tdep.c (alpha_gdbarch_init): Update.
11620
11621 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11622
11623         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11624         option enum and switch.  When no windows, set the interpreter to
11625         INTERP_CONSOLE.
11626
11627 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11628
11629         * main.c (captured_main): Replace magic option characters with an
11630         enum.
11631
11632 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11633
11634         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11635         INIT_EXTRA_FRAME_INFO.
11636         * gdbarch.h, gdbarch.c: Regenerate.
11637         * arm-tdep.c: Update comments.
11638         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11639         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11640         * frame.h, avr-tdep.c: Ditto.
11641         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11642         (create_new_frame, legacy_get_prev_frame): Ditto.
11643         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11644         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11645         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11646         deprecated_init_extra_frame_info instead of init_extra_frame_info.
11647         * x86-64-tdep.c (x86_64_init_abi): Ditto.
11648         * v850-tdep.c (v850_gdbarch_init): Ditto.
11649         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11650         * sh-tdep.c (sh_gdbarch_init): Ditto.
11651         * s390-tdep.c (s390_gdbarch_init): Ditto.
11652         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11653         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11654         * mips-tdep.c (mips_gdbarch_init): Ditto.
11655         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11656         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11657         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11658         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11659         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11660         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11661         * frv-tdep.c (frv_gdbarch_init): Ditto.
11662         * cris-tdep.c (cris_gdbarch_init): Ditto.
11663         * avr-tdep.c (avr_gdbarch_init): Ditto.
11664         * arm-tdep.c (arm_gdbarch_init): Ditto.
11665         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11666         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11667
11668 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11669
11670         * gdbarch.sh (register_type): New function with predicate.
11671         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11672         * gdbarch.h, gdbarch.c: Re-generate.
11673         * arch-utils.c (generic_register_byte): Use generic_register_size.
11674         (generic_register_size): When available, use
11675         gdbarch_register_type.
11676         * regcache.c (init_regcache_descr): When available, initialize the
11677         register type array using gdbarch_register_type.  If the
11678         architecture supplies gdbarch_register_type, do not use the legacy
11679         regcache layout.
11680         * d10v-tdep.c (d10v_register_type): Replace
11681         d10v_register_virtual_type.
11682         (d10v_gdbarch_init): Set register_type instead of
11683         register_virtual_type.
11684
11685 2003-03-01  Andrew Cagney  <cagney@redhat.com>
11686
11687         * Makefile.in (ax-gdb.o): Update dependencies.
11688         * ax-gdb.c: Include "regcache.h".
11689         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11690         * findvar.c (value_of_register): Ditto.
11691         * infcmd.c (default_print_registers_info): Ditto.
11692
11693 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
11694
11695         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11696         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11697
11698 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
11699
11700         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11701         of STREQ.
11702
11703 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
11704
11705         * Makefile.in (dwarf2loc.o): Update dependencies.
11706         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11707         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11708         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11709         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11710         (locexpr_tracepoint_var_ref): New function.
11711         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11712
11713 2003-02-28  Andrew Cagney  <cagney@redhat.com>
11714
11715         * regcache.c (register_size): New function.
11716         * regcache.h (register_size): Declare
11717         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11718         max_register_size instead of MAX_REGISTER_RAW_SIZE.
11719
11720 2003-02-28  David Carlton  <carlton@math.stanford.edu>
11721
11722         * linespec.c (decode_compound): Extract code into find_method.
11723         (find_method): New.
11724
11725 2003-02-28  J. Brobecker  <brobecker@gnat.com>
11726
11727         * Makefile.in: Add rules to build and link in observer.o.
11728
11729 2003-02-27  J. Brobecker  <brobecker@gnat.com>
11730
11731         * observer.c: Minor comments edits.
11732
11733 2003-02-27  J. Brobecker  <brobecker@gnat.com>
11734
11735         * observer.h, observer.c: New file.
11736
11737 2003-02-27  Andrew Cagney  <cagney@redhat.com>
11738
11739         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11740
11741 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
11742
11743         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11744         (M6812_OP_STS_EXT): Likewise.
11745         (m6811_prologue): Use the above to recognize prologue.
11746         (m6812_prologue): Likewise.
11747
11748 2003-02-27  David Carlton  <carlton@math.stanford.edu>
11749
11750         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11751         SYMBOL_PRINT_NAME.
11752         (compare_psymbols): Ditto.
11753         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11754
11755 2003-02-27  Michael Snyder  <msnyder@redhat.com>
11756
11757         * f-lang.c (build_fortran_types): New function.
11758         (_initialize_f_language): Gdbarch-register built-in fortran types.
11759         * doublest.c (extract_floating): Fix warning text.
11760
11761 2003-02-27  Andrew Cagney  <cagney@redhat.com>
11762
11763         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11764         predicate.  Replaces PUSH_DUMMY_FRAME.
11765         * gdbarch.h, gdbarch.c: Regnerate.
11766         * valops.c (hand_function_call): Update.  Call
11767         generic_push_dummy_frame directly.
11768         * vax-tdep.c (vax_gdbarch_init): Update.
11769         * sparc-tdep.c (sparc_gdbarch_init): Update.
11770         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11771         * m68k-tdep.c (m68k_gdbarch_init): Update.
11772         * hppa-tdep.c (hppa_gdbarch_init): Update.
11773         * alpha-tdep.c (alpha_gdbarch_init): Update.
11774         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11775         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11776         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11777         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11778         push_dummy_frame to generic_push_dummy_frame.
11779         * v850-tdep.c (v850_gdbarch_init): Ditto.
11780         * sh-tdep.c (sh_gdbarch_init): Ditto.
11781         * s390-tdep.c (s390_gdbarch_init): Ditto.
11782         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11783         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11784         * mips-tdep.c (mips_gdbarch_init): Ditto.
11785         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11786         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11787         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11788         * i386-tdep.c (i386_gdbarch_init): Ditto.
11789         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11790         * frv-tdep.c (frv_gdbarch_init): Ditto.
11791         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11792         * cris-tdep.c (cris_gdbarch_init): Ditto.
11793         * avr-tdep.c (avr_gdbarch_init): Ditto.
11794         * arm-tdep.c (arm_gdbarch_init): Ditto.
11795
11796 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
11797
11798         * mips-tdep.c (show_mips_abi): New function.
11799         (_initialize_mips_tdep): Use show_mips_abi() to implement the
11800         command ``show mips abi''.
11801
11802 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
11803
11804         From Elena Zannoni  <ezannoni@redhat.com>
11805         * dbxread.c (process_one_symbol): Only record line 0 if one or
11806         more sline entries have been seen for the function.
11807
11808 2003-02-26  Michael Chastain  <mec@shout.net>
11809
11810         * configure: Regenerate with autoconf 000227.
11811
11812 2003-02-26  Michael Chastain  <mec@shout.net>
11813
11814         Close PR build/660.
11815         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11816         for old libc5/glibc.
11817         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11818
11819 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
11820
11821         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11822         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11823
11824 2003-02-26  Michael Chastain  <mec@shout.net>
11825
11826         * configure.in: New variable HAVE_UINTPTR_T.
11827         * configure, config.in: Regenerated.
11828
11829 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
11830
11831         Fix PR build/1097.
11832         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11833
11834 2003-02-25  Andrew Cagney  <cagney@redhat.com>
11835
11836         * frame.c (get_prev_frame): Add comment on check for
11837         inside_entry_func. Only check for inside_entry_file when not a
11838         dummy and not a sentinel.  Check that the new frame is not inner
11839         to the old frame.
11840
11841 2003-02-25  Andrew Cagney  <cagney@redhat.com>
11842
11843         * frame.c (frame_debug): New variable.
11844         (_initialize_frame): Add "set/show debug frame" command.
11845         (get_prev_frame): When frame_debug, print reason why unwind
11846         failed.
11847
11848 2003-02-25  Michael Chastain  <mec@shout.net>
11849
11850         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11851         to avoid uintptr_t definition problems.
11852
11853 2003-02-25  David Carlton  <carlton@math.stanford.edu>
11854
11855         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11856         (SYMBOL_LINKAGE_NAME): Ditto.
11857         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11858         SYMBOL_LINKAGE_NAME.
11859         (struct general_symbol_info): Expand comment.
11860         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11861         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11862         (SYMBOL_MATCHES_REGEXP): Ditto.
11863         * symtab.c (symbol_natural_name): New function.
11864         * objfiles.h: Replace all uses of SYMBOL_NAME by
11865         DEPRECATED_SYMBOL_NAME.
11866         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11867         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11868         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11869         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11870         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11871         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11872         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11873         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11874         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11875         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11876         * ada-exp.y: Ditto.
11877         * ada-exp.y: Update copyright.
11878         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11879         * cp-valprint.c: Ditto.
11880
11881 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
11882
11883         * infptrace.c (detach): Do not flag error if ptrace detach fails
11884         and errno is set to ESRCH.
11885
11886 2003-02-24  Andrew Cagney  <cagney@redhat.com>
11887
11888         * infptrace.c (udot_info): Change type of udot_off to long.  Use
11889         paddr when printing udot_off's value.
11890
11891 2003-02-24  David Carlton  <carlton@math.stanford.edu>
11892
11893         * symtab.c (make_symbol_overload_list): Only read in partial
11894         symtabs containing a matching partial symbol.
11895
11896 2003-02-24  David Carlton  <carlton@math.stanford.edu>
11897
11898         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11899         do the comparison, not strcmp.
11900         * symfile.c (compare_psymbols): Ditto.
11901         * defs.h: Declare strcmp_iw_ordered.
11902         * utils.c (strcmp_iw_ordered): New function.
11903
11904 2003-02-24  Jim Blandy  <jimb@redhat.com>
11905
11906         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11907         support, shared libs): Remove my name from here, to better reflect
11908         reality.
11909
11910 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
11911
11912         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11913         (target_ops): Add to_have_continuable_watchpoint.
11914         * target.c (update_current_target): Add INHERIT line for
11915         to_have_continuable_watchpoint.
11916         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11917         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11918         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11919         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11920
11921 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
11922
11923         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11924         maintainership.
11925
11926 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
11927
11928         * solib.c (solib_open): Call target defined search function after
11929         failing with solib-search-path.
11930         * solist.h (target_so_ops): Add find_and_open_solib function hook and
11931         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11932
11933 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
11934
11935         * MAINTAINERS: Add myself to Write After section.
11936
11937 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
11938
11939         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11940
11941 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
11942
11943         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11944         (m68hc11_add_reggroups): New function.
11945         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11946         (m68hc11_gdbarch_init): Install the reggroups.
11947         (_initialize_m68hc11_tdep): Initialize them.
11948
11949 2003-02-21  James E Wilson  <wilson@tuliptree.org>
11950
11951         * MAINTAINERS: Update my email address.
11952
11953 2003-02-21  David Carlton  <carlton@math.stanford.edu>
11954
11955         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11956
11957 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
11958
11959         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11960         * symtab.h: Add opaque declarations of struct axs_value and
11961         struct agent_expr.
11962         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11963         (struct location_funcs): New type.
11964         (struct symbol): Add "loc" to aux_value.
11965         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11966         * dwarf2read.c: Include "dwarf2expr.h".
11967         (dwarf2_symbol_mark_computed): New function.
11968         (read_func_scope): Use it.
11969         (var_decode_location): New function.
11970         (new_symbol): Use it.
11971         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11972
11973         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11974         (dwarf2expr_h, dwarf2loc_h): New variables.
11975         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11976         (dwarf2expr.o, dwarf2loc.o): New rules.
11977         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11978         * buildsym.c (finish_block): Handle LOC_COMPUTED and
11979         LOC_COMPUTED_ARG.
11980         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11981         * m2-exp.y (yylex): Likewise.
11982         * printcmd.c (address_info, print_frame_args): Likewise.
11983         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11984         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11985         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11986         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11987         * symtab.c (lookup_block_symbol): Likewise.
11988
11989 2003-02-20  Adam Fedor  <fedor@gnu.org>
11990
11991         * symtab.h: Remove objc_specific struct
11992         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11993         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11994         Have language_objc use cplus_specific struct.
11995
11996 2003-02-20  Tom Tromey  <tromey@redhat.com>
11997
11998         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11999         TYPE_NAME, when printing a String value.  PR java/1075.
12000
12001 2003-02-20  Adam Fedor  <fedor@gnu.org>
12002
12003         * objc-lang.h (find_methods): Remove declaration.
12004         * objc-lang.c (find_methods): Make static.
12005
12006 2003-02-20  Christopher Faylor  <cgf@redhat.com>
12007
12008         * win32-nat.c (get_image_name): Check return value from
12009         ReadProcessMemory.
12010         (child_xfer_memory): Ditto.
12011
12012 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
12013
12014         * configure.in (TARGET_SYSTEM_ROOT): Set default to
12015         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
12016         '${exec_prefix}' (in addition to the expansion thereof) as
12017         relocatable.
12018         * configure: Rebuilt.
12019
12020 2003-02-20  David Carlton  <carlton@math.stanford.edu>
12021
12022         * symtab.c (search_symbols): Revert the search_symbols part of my
12023         2002-12-23 patch.  Add comment.
12024
12025 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12026
12027         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12028         * dbxread.c (elfstab_build_psymtabs): Don't call
12029         install_minimal_symbols.
12030         (stabsect_build_psymtabs): Likewise.
12031         * elfread.c (elf_symfile_read): Call install_minimal_symbols
12032         earlier.
12033         * somread.c (som_symfile_read): Call install_minimal_symbols
12034         and do_cleanups earlier.
12035         * nlmread.c (nlm_symfile_read): Likewise.
12036         * mdebugread.c (elfmdebug_build_psymtabs): Call
12037         install_minimal_symbols and make appropriate cleanups.
12038
12039 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
12040
12041         * solib.c (reload_shared_libraries): New function.
12042         (_initialize_solib): Add callbacks for ``set solib-search-path''
12043         and ``set solib-absolute-prefix''.
12044
12045 2003-02-20  David Carlton  <carlton@math.stanford.edu>
12046
12047         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12048         expand comment.
12049         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12050         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12051         * ada-typeprint.c (ada_typedef_print): Ditto.
12052         * ax-gdb.c (gen_var_ref): Ditto.
12053         * breakpoint.c (print_one_breakpoint): Ditto.
12054         * buildsym.c (finish_block): Ditto.
12055         * c-valprint.c (c_val_print): Ditto.
12056         * expprint.c (print_subexp): Ditto.
12057         * findvar.c (locate_var_value): Ditto.
12058         * infcmd.c (jump_command): Ditto.
12059         * linespec.c (decode_line_2, decode_compound): Ditto.
12060         * maint.c (maintenance_translate_address): Ditto.
12061         * objc-lang.c (compare_selectors, compare_classes): Ditto.
12062         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12063         Ditto.
12064         * p-valprint.c (pascal_val_print): Ditto.
12065         * stabsread.c (define_symbol): Ditto.
12066         * stack.c (print_frame, frame_info, print_block_frame_locals)
12067         (print_frame_arg_vars, return_command): Ditto.
12068         * symfile.c (compare_symbols, compare_psymbols): Ditto.
12069         * symmisc.c (print_symbol): Ditto.
12070         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12071         (compare_search_syms, print_symbol_info, print_msymbol_info)
12072         (rbreak_command): Ditto.
12073         * tracepoint.c (tracepoints_info): Ditto.
12074         * typeprint.c (typedef_print): Ditto.
12075         * valops.c (value_of_variable, hand_function_call): Ditto.
12076         * cli/cli-cmds.c (edit_command, list_command): Ditto.
12077         * ada-typeprint.c: Update Copyright.
12078         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12079         * tracepoint.c, cli/cli-cmds.c: Ditto.
12080
12081 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
12082
12083         * frame.c (generic_unwind_get_saved_register): Make non-static.
12084         * frame.h (generic_unwind_get_saved_register): Declare.
12085         * mips-tdep.c (read_next_frame_reg): Fetch register from
12086         current regcache when frame is NULL.
12087         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12088         that must be NULL.
12089         (mips_get_saved_register): Call generic_unwind_get_saved_register()
12090         instead of frame_register_unwind().
12091
12092 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
12093
12094         * remote-sim.c (gdbsim_insert_breakpoint)
12095         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12096         code.
12097
12098 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
12099
12100         * remote.c (_initialize_remote): Add commands "set/show remote
12101         hardware-watchpoint-limit" and "set/show remote
12102         hardware-breakpoint-limit".
12103         (remote_hw_watchpoint_limit): Initialize to -1.
12104         (remote_hw_breakpoint_limit): Ditto.
12105         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12106
12107 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
12108
12109         * coff-pe-read.c: New file - support reading of minimal symbols from a
12110         portable executable using the export table.
12111         * coff-pe-read.h: New file.
12112         * coffread.c: Include coff-pe-read.h.
12113         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12114         debugging symbols found.
12115         * Makefile.in (SFILES): Add coff-pe-read.o.
12116         (coff_pe_read_h): Define.
12117         (COMMON_OBS): Add coff-pe-read.o.
12118         (coffread.o): Add coff_pe_read_h dependency.
12119         (coff-pe-read.o): New target.
12120
12121 2003-02-19  David Carlton  <carlton@math.stanford.edu>
12122
12123         * Makefile.in (SFILES): Add block.c.
12124         (block_h): New.
12125         (COMMON_OBS): Add block.o.
12126         (block.o): New.
12127         (x86-64-tdep.o): Add $(block_h).
12128         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12129         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12130         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12131         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12132         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12133         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12134         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12135         * value.h: Add opaque declaration for struct block.
12136         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12137         * ada-lang.h: Ditto.
12138         * x86-64-tdep.c: #include "block.h"
12139         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12140         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12141         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12142         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12143         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12144         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12145         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12146         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12147         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12148         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12149         * symtab.c (block_function): Ditto.
12150         (contained_in): Ditto.
12151         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12152         block.h.  Add opaque declaration for struct block.
12153         * symtab.h: Move block_function and contained_in declarations to
12154         block.h.  Add opaque declarations for struct block, struct
12155         blockvector.
12156         (struct block): Move to block.h.
12157         (struct blockvector): Ditto.
12158         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12159         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12160         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12161         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12162         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12163         Ditto.
12164         * block.c: New file.
12165         * block.h: New file.
12166
12167 2003-02-19  Theodore A. Roth  <troth@openavr.org>
12168
12169         * avr-tdep.c (avr_extract_return_value): Remove function.
12170         (avr_store_return_value): Remove function.
12171         (avr_extract_struct_value_address): Remove function.
12172         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12173
12174 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
12175
12176         * rs6000-tdep.c: Include "gdb_assert.h".
12177         (registers_e500): Add "acc" and "spefscr".
12178         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12179         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12180         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
12181         really is "r0".
12182         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12183
12184 2003-02-18  Keith Seitz  <keiths@redhat.com>
12185
12186         * Makefile.in: Add gdbtk-interps.c.
12187
12188 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
12189
12190         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12191         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12192
12193 2003-02-18  Andrew Cagney  <cagney@redhat.com>
12194
12195         * symtab.h (struct objfile): Add opaque declaration.
12196
12197 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
12198
12199         From Jim Ingham   <jingham@apple.com>:
12200         * dbxread.c (process_one_symbol): Use last_function_start rather
12201         than function_start_offset to find the real beginning of the
12202         current function.  The latter is just the text section offset on
12203         some systems, the former is always the real function start.
12204
12205 2003-02-17  Andrew Cagney  <cagney@redhat.com>
12206
12207         * configure.in: Revert ${target} != ${host}.
12208
12209 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
12210
12211         * configure.in (Makefile): Use the test ${target} != ${host},
12212         instead of the absence of the "nm.h" file, to determine of the
12213         configuration non-native.
12214         * configure: Regenerate.
12215
12216 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
12217
12218         From Brian Ford  <ford@vss.fsi.com>
12219
12220         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12221         conditionalize tui_active test.
12222         (lookup_cmd_1): Ditto.
12223
12224 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
12225
12226         * configure.in: Add check for _etext.
12227         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12228         available.
12229         * config.in, configure: regenerated.
12230
12231 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
12232
12233         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12234
12235 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
12236
12237         * main.c (tui_version): Delete variable.
12238         (captured_main): When --tui, set interpreter_p to "tui" instead of
12239         enabling tui_version.
12240         * printcmd.c (display_command) [TUI]: Test tui_active instead of
12241         tui_version.
12242         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12243         * cli/cli-cmds.c (disassemble_command): Ditto.
12244         * defs.h (tui_version): Delete declaration.
12245         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12246         (tui-interp.o): Add rules.
12247         (SUBDIR_TUI_OBS): Add "tui-interp.o".
12248
12249 2003-02-14  Christopher Faylor  <cgf@redhat.com>
12250
12251         * win32-nat.c (register_loaded_dll): Correctly set address range for
12252         just-loaded dll.
12253
12254 2003-02-12  Jason Molenda  (jmolenda@apple.com)
12255
12256         * symmisc.c (print_objfile_statistics): Include information about
12257         the number of psymtabs and symtabs in each object file.
12258
12259 2003-02-13  Keith R Seitz  <keiths@redhat.com>
12260
12261         * main.h (struct captured_main_args): Add interpreter_p.
12262         * main.c (captured_main): Initialize interpreter_p from context.
12263         * gdb.c (main): Set interpreter_p argument.
12264         * Makefile.in (gdb.o): Add dependency for interps.h.
12265
12266 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
12267
12268         * event-top.c (cli_command_loop): Delete declaration.
12269         (_initialize_event_loop): Delete function setting event_loop_hook.
12270         * event-top.h (cli_command_loop): Declare.  Update copyright.
12271         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
12272         * interps.c (current_interp_command_loop): When event_loop_p, call
12273         cli_command_loop.
12274
12275 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
12276
12277         * interps.h (interp_command_loop_ftype): Change return type to
12278         void.
12279
12280 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
12281
12282         * x86-64-tdep.c (x86_64_extract_return_value)
12283         (x86_64_store_return_value): Use regcache instead of regbuf.
12284         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12285         * x86-64-linux-nat.c (fill_gregset): Use regcache.
12286
12287 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
12288
12289         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12290         * aclocal.m4: Regenerate.
12291         * configure: Regenerate.
12292
12293         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12294         TCL_LD_SEARCH_FLAGS.
12295
12296 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
12297
12298         * dwarf2cfi.c: Reindented.
12299
12300 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
12301
12302         * interps.c (clear_interpreter_hooks): Convert function definition
12303         to ISO C.
12304
12305 2003-02-07  David Carlton  <carlton@math.stanford.edu>
12306
12307         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12308
12309 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
12310
12311         * gdbtypes.h (struct main_type): Move ``length'' field from here...
12312         (struct type): ...to here.
12313         (TYPE_LENGTH): Adjust to reflect different location of ``length''
12314         field.
12315         * gdbtypes.c (make_qualified_type): Set length on newly created type.
12316         (replace_type): Set length on all type variants for a given type.
12317
12318 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
12319
12320         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12321         <sys/stat.h>.
12322         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12323
12324 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
12325
12326         * Makefile.in (symm-nat.o): Update dependencies.
12327         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12328         (lynx-nat.o, ia64-linux-nat.): Ditto.
12329         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12330         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12331         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12332
12333         * Makefile.in (inflow_h): Define.
12334         (procfs.o, inflow.o, procfs.o): Update dependencies.
12335         * inftarg.c (child_stop): Delete extern declaration of
12336         inferior_process_group.  Include "inflow.h".
12337         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
12338         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12339         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
12340         (our_process_group, inferior_process_group): Extern declarations.
12341
12342         * procfs.c: Include "gdb_assert.h".
12343
12344         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12345         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12346         * jv-typeprint.c (java_type_print_base): Ditto.
12347         * typeprint.c (typedef_print): Eliminate STREQ.
12348         * cli/cli-script.c (define_command, define_command): Ditto.
12349         * main.c (captured_main): Ditto.
12350         * values.c (lookup_internalvar): Ditto.
12351         * utils.c (safe_strerror, parse_escape): Eliminate assignment
12352         within `if' conditional.
12353         * linespec.c (decode_line_2): Ditto.
12354         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12355         (bfd_openw_with_cleanup): Ditto.
12356
12357 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
12358
12359         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12360         legacy_extract_return_value and store_return_value to
12361         legacy_return_value.
12362
12363 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
12364
12365         * win32-nat.c (get_relocated_section_addrs): New function.  Find
12366         section load addresses for symbol handling in relocated DLLs.
12367         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12368
12369 2003-02-05  Fred Fish  <fnf@intrinsity.com>
12370
12371         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12372         '=' and '!='.
12373         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12374         with '&' and '=='.
12375         (angel_RDI_info): Ditto.
12376         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12377         with '&' and '!='.
12378         (threads_continue_all_with_signals): Ditto.
12379
12380 2003-02-05  Jim Ingham <jingham@apple.com>
12381             Keith Seitz  <keiths@redhat.com>
12382             Elena Zannoni  <ezannoni@redhat.com>
12383             Andrew Cagney  <ac131313@redhat.com>
12384
12385         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12386         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12387         (SUBDIR_MI_OBS): Add "mi-interp.o".
12388         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12389         (SFILES): Add "interps.c".
12390         (COMMON_OBS): Add "interps.o".
12391         (interps_h, mi_main_h): Define.
12392         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12393         (mi-main.o, main.o, event-top.o): Update dependencies.
12394         * cli/cli-interp.c: New file.
12395         * interps.h, interps.c: New files.
12396         * top.c: (gdb_init): Don't install the default interpreter, handed
12397         by captured_main.
12398         * main.c: Include "interps.h".
12399         (interpreter_p): Note that it should malloc'ed.
12400         (captured_command_loop): Call current_interp_command_loop.
12401         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
12402         xfree and xstrdup when updating interpreter_p.  Install the
12403         default interpreter.  Add hack to stop mi1's copyright notice
12404         being encoded.
12405         * event-top.h (gdb_setup_readline): Declare.
12406         (gdb_disable_readline): Declare.
12407         * event-top.c: Include "interps.h".
12408         (display_gdb_prompt): Call current_interp_display_prompt_p.
12409         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12410         gdb_stdlog, and gdb_stdtarg.
12411         (_initialize_event_loop): Don't call gdb_setup_readline.
12412         * cli-out.c (cli_out_set_stream): New function.
12413         * cli-out.h (cli_out_set_stream): Declare.
12414
12415 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
12416
12417         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12418         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
12419         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12420         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12421         config/i386/i386v42mp.mt: Removed.
12422
12423 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
12424
12425         * configure.tgt (*-*-solaris*): Set gdb_osabi to
12426         GDB_OSABI_SOLARIS.
12427
12428 2003-02-05  Michael Chastain  <mec@shout.net>
12429
12430         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12431         2.12.1 and earlier versions.
12432
12433 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
12434
12435         Remove orphaned hosts, targets and files.
12436         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12437         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12438         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12439         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12440         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12441         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12442         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12443         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12444         * config/sparc/tm-sp64sim.h: Delete.
12445         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12446         hosts.
12447         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12448         mips*-dec-mach3* targets.
12449
12450 2003-02-04  Michael Chastain  <mec@shout.net>
12451
12452         * NEWS: Fix typo: sepcifying -> specifying.
12453
12454 2003-02-04  Michael Chastain  <mec@shout.net>
12455
12456         * dwarfread.c: Add documentation on the state of dwarf-1,
12457         looking towards obsoletion.
12458
12459 2003-02-03  Michael Chastain  <mec@shout.net>
12460
12461         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12462         gdb/testsuite/gdb.c++/pr-1023.exp.
12463
12464 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12465
12466         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12467         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12468
12469         * utils.c (init_page_info): Delete reference to MPW in comments.
12470         * main.c (captured_main): Delete #ifdef MPW.
12471
12472 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12473
12474         * NEWS: Note that the m32r-*-elf* is obsolete.
12475         * monitor.c (monitor_expect): Obsolete reference to m32r.
12476         * configure.tgt: Mark m32r-*-elf* as obsolete.
12477         * MAINTAINERS: Mark m32k as obsolete.
12478         * m32r-rom.c: Obsolete file.
12479         * config/m32r/m32r.mt: Obsolete file.
12480         * config/m32r/tm-m32r.h: Obsolete file.
12481         * m32r-stub.c: Obsolete file.
12482         * m32r-tdep.c: Obsolete file.
12483
12484 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12485
12486         * NEWS: Mention that the z8k-zilog-none is obsolete.
12487         * MAINTAINERS: Mark z8k as obsolete.
12488         * configure.tgt: Obsolete the z8k-*-coff* target.
12489         * config/z8k/z8k.mt: Obsolete file.
12490         * config/z8k/tm-z8k.h: Obsolete file.
12491         * z8k-tdep.c: Obsolete file.
12492
12493 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12494
12495         * NEWS: Mention that the mn10200-elf is obsolete.
12496         * configure.tgt: Obsolete mn10200-*-* target.
12497         * breakpoint.c (update_breakpoints_after_exec): Update comment to
12498         mention that the mn10200 is obsolete.
12499         * breakpoint.h: Ditto.
12500         * MAINTAINERS: Mark the mn10200-elf as obsolete.
12501         * config/mn10200/mn10200.mt: Obsolete file.
12502         * config/mn10200/tm-mn10200.h: Obsolete file.
12503         * mn10200-tdep.c: Obsolete file.
12504
12505 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
12506
12507         * MAINTAINERS: Mark h8500 as obsolete.
12508         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12509         * findvar.c (value_from_register): Ditto.
12510         * h8500-tdep.c: Mark file as obsolete.
12511         * config/h8500/h8500.mt: Ditto.
12512         * config/h8500/tm-h8500.h: Ditto.
12513         * NEWS: Mention that h8500 is obsolete.
12514
12515 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12516
12517         * objfiles.c (allocate_objfile): Always set name.  Add comment at
12518         start of function.
12519         * jv-lang.c (get_dynamics_objfile): Add comment.
12520
12521 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12522
12523         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12524         * printcmd.c (build_address_symbolic): Replace uses of
12525         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12526         SYMBOL_NAME, and asm_demangle.
12527         Update copyright.
12528
12529 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12530
12531         * linespec.c (decode_compound): Extract code into
12532         lookup_prefix_sym.
12533         (lookup_prefix_sym): New function.
12534
12535 2003-02-04  David Carlton  <carlton@math.stanford.edu>
12536
12537         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12538         FLOAT_COERCION_BADNESS.
12539         * gdbtypes.c (rank_one_type): Replace all uses of
12540         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12541
12542 2003-02-04  Jim Blandy  <jimb@redhat.com>
12543
12544         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12545         section, let dwarf_macinfo_section point to it, not
12546         dwarf_loc_section.
12547
12548 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
12549
12550         Pointed out by Anton Blanchard <anton@samba.org>.
12551         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12552         (ppc_linux_at_sigtramp_return_path): Use it.
12553
12554 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
12555
12556         * defs.h (streq): Add prototype.
12557         * utils.c (streq): New function.
12558
12559         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12560         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12561         * mdebugread.c (new_symbol): Likewise.
12562         * stabsread.c (define_symbol): Likewise.
12563         * coffread.c (process_coff_symbol): Likewise.
12564         * dwarfread.c (new_symbol): Likewise.
12565
12566         * minsyms.c (prim_record_minimal_symbol_and_info): Use
12567         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
12568         here.
12569         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12570         SYMBOL_INIT_DEMANGLED_NAME.
12571         * objfiles.c: Include "hashtab.h".
12572         (allocate_objfile): Call htab_set_functions_ex for the
12573         demangled_names_hash.
12574         (free_objfile): Call htab_delete for the demangled_names_hash.
12575         * objfiles.h (struct htab): Add declaration.
12576         (struct objfile): Add demangled_names_hash.
12577         * symfile.c: Include "hashtab.h".
12578         (reread_symbols): Call htab_delete for the demangled_names_hash.
12579         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12580         SYMBOL_NAME in the bcache.
12581         * symtab.c: Include "hashtab.h".  Update comments.
12582         (create_demangled_names_hash, symbol_set_names): New functions.
12583         (symbol_find_demangled_name): New function, broken out from
12584         symbol_init_demangled_names.
12585         (symbol_init_demangled_names): Use it.
12586         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12587         (SYMBOL_SET_NAMES): New macro.
12588         (symbol_set_names): Add prototype.
12589
12590 2003-02-03  Jim Blandy  <jimb@redhat.com>
12591
12592         Use a single, consistent representation for an empty minimal
12593         symbol table in an objfile.
12594         * objfiles.c (terminate_minimal_symbol_table): New function.
12595         (allocate_objfile): Call it.
12596         * objfiles.h (terminate_minimal_symbol_table): New declaration.
12597         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12598         non-NULL.
12599         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12600         objfile has minimal symbols, compare minimal_symbol_count to zero,
12601         instead of comparing msymbols with NULL.
12602         * objfiles.c (have_minimal_symbols): Same.
12603         * solib-sunos.c (solib_add_common_symbols): Call
12604         terminate_minimal_symbol_table.
12605         * symfile.c (reread_symbols): Same.
12606
12607 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
12608
12609         * s390-tdep.c (s390_address_class_type_flags)
12610         (s390_address_class_type_flags_to_name)
12611         (s390_address_class_name_to_type_flags): New functions.
12612         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12613         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12614
12615 2003-02-03  Michael Snyder  <msnyder@redhat.com>
12616
12617         * arm-tdep.c: Fix spell-o in comment.
12618
12619 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
12620
12621         * dwarf2cfi.c (pointer_encoding): Added new parameter.
12622         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12623         error messages to contain BFD filename.
12624
12625 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
12626
12627         Fix PR gdb/742 gdb/743 gdb/877
12628         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12629         (do_mixed_source_and_assembly): Use
12630         make_cleanup_ui_out_tuple_begin_end and
12631         make_cleanup_ui_out_tuple_begin_end.
12632         (do_mixed_source_and_assembly): Ditto.
12633         * thread.c (do_captured_list_thread_ids): Ditto.
12634         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12635         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12636         ui_out_tuple_end): Delete prototypes.
12637         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12638         ui_out_list_end, ui_out_tuple_end): Delete.
12639
12640         From Kevin Buettner  <kevinb@redhat.com>:
12641         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12642         * ui-out.c (make_cleanup_ui_out_table_begin_end)
12643         (do_cleanup_table_end):  New functions.
12644         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12645         Use cleanups to invoke_ui_out_tuple_end().
12646         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12647         * cli/cli-setshow.c (cmd_show_list): Use
12648         make_cleanup_ui_out_tuple_begin_end.
12649
12650 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
12651
12652         * frame.c (frame_unwind_register): New function.
12653         (frame_unwind_unsigned_register): Use.
12654         (frame_unwind_signed_register): Use.
12655         (frame_read_register): New function.
12656         * frame.h (frame_unwind_register): Declare.
12657         (frame_read_register): Declare.
12658
12659         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12660         and frame_unwind_register instead of read_memory, write_register
12661         and deprecated_write_register_bytes.
12662
12663 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
12664
12665         * frame.h: Note that namelen can be negative.
12666         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12667         NAME's length.
12668
12669         * NEWS: Mention that the d10v's `regs' command is deprecated.
12670         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12671         (d10v_print_registers_info): New function.
12672         (show_regs): Call d10v_print_registers_info.
12673         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12674
12675 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
12676
12677         * stack.c (print_frame_info): Restore call to annotate_frame_begin
12678         lost in the previous patch.
12679
12680 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12681
12682         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12683         * stack.c (print_frame_info_base): Output complete FRAME tuple
12684         for synthesized frames.
12685
12686 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
12687
12688         * mips-nat.c (zerobuf): Delete.
12689         (fetch_inferior_registers): Alloc local zerobuf.
12690         (fetch_core_registers): Alloc local zerobuf.
12691         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12692         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12693         * thread-db.c (thread_db_store_registers): Ditto.
12694         * sh-tdep.c (sh_do_register): Ditto.
12695         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12696         * remote-sim.c (gdbsim_store_register): Ditto.
12697         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12698         * remote-e7000.c (fetch_regs_from_dump): Ditto.
12699         * monitor.c (monitor_supply_register): Ditto.
12700         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12701         * mips-nat.c (fetch_inferior_registers): Ditto.
12702         * m68klinux-nat.c (fetch_register): Ditto.
12703         * lynx-nat.c (fetch_inferior_registers): Ditto.
12704         (fetch_inferior_registers): Ditto.
12705         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12706         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12707         (hpux_thread_store_registers): Ditto.
12708         * hppah-nat.c (fetch_register): Ditto.
12709         * hppab-nat.c (fetch_register): Ditto.
12710         * hppa-tdep.c (pa_register_look_aside): Ditto.
12711         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12712         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12713
12714 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12715
12716         * gdbarch.sh: Explictly specify all method levels.  When a
12717         variable with an empty level, provide a non-multi-arch default.
12718         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12719         * gdbarch.h: Re-generate.
12720         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
12721         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12722
12723 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12724
12725         * defs.h (host_pointer_to_address): Delete declaration.
12726         (address_to_host_pointer): Delete declaration.
12727         * utils.c (host_pointer_to_address): Delete function.
12728         (address_to_host_pointer): Delete function.
12729         * procfs.c (procfs_address_to_host_pointer): New function.
12730         * procfs.c (proc_set_watchpoint): Use.
12731         (procfs_can_use_hw_breakpoint): Update comments.
12732         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12733         (som_solib_add): Use.
12734         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12735         * hppa-tdep.c (unwind_command): Use.
12736
12737 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12738
12739         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12740         strlen d_name.
12741
12742         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12743         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12744         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12745         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12746         (define_symbol): Update.
12747         * symfile.c (generic_load): Remove references to nindy.
12748         * symtab.c: Remove references to nindy.
12749
12750 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12751
12752         * infcmd.c (print_float_info): Delete code conditional on
12753         FLOAT_INFO.
12754         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
12755         * config/m68k/nm-apollo68b.h: Ditto.
12756         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
12757         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12758         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12759
12760 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
12761
12762         * config/i386/tm-i386os9k.h: Removed.
12763
12764         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12765         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12766         they're identical to i[3456]86-*-sysv* now.
12767         * config/i386/i386v32.mh: Removed.
12768         * config/i386/xm-i386v32.h: Removed.
12769         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12770
12771         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12772
12773         * config/i386/i386dgux.mh: Removed.
12774         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12775
12776         * configure.in: Fix typo.
12777         * configure: Regenerated.
12778
12779 2003-01-31  David Carlton  <carlton@math.stanford.edu>
12780
12781         * dwarf2read.c (dwarf2_locate_sections): Set
12782         dwarf_ranges_section.
12783
12784 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
12785
12786         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12787         * utils.c: Update comments documenting legitimate uses of PTR.
12788
12789         * utils.c: Re-indent.
12790
12791         * config/djgpp/fnchange.lst: Delete nindy files.
12792         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12793         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12794         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12795         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12796         * nindy-share/README, nindy-share/Onindy.c: Delete files.
12797         * nindy-tdep.c, nindy-share/Makefile: Delete files.
12798         * Makefile.in (init.c): Remove nindy references.
12799         (saber_gdb): Delete rule.
12800         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12801         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12802         and a68v-nat.c.
12803         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12804         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12805         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12806         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12807         nindy-share/stop.h.
12808         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12809         * saber.suppress: Delete file.
12810
12811 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
12812
12813         * dbxread.c (stabs_data): New static variable.
12814         (fill_symbuf): Support an in-memory buffer for stabs data.
12815         (stabs_seek): New function.
12816         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12817         (read_ofile_symtab): Use stabs_seek.
12818         (elfstab_build_psymtabs): Take an asection* instead of
12819         an offset and size.  Relocate the stabs data if necessary.
12820         Save the section* for dbx_psymtab_to_symtab.
12821         * dwarf2read.c: Add section variables for each debug section.
12822         (dwarf2_locate_sections): Fill them in.
12823         (dwarf2_read_section): Take an asection* argument.
12824         Relocate the section contents if necessary.
12825         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12826         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12827         it to dwarf2_read_section.
12828         (dwarf2_build_frame_info): Update callers.
12829         * elfread.c (elf_symfile_read): Update call to
12830         elfstab_build_psymtabs.
12831         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12832         (DBX_STAB_SECTION): New macro.
12833         * stabsread.h (elfstab_build_psymtabs): Update prototype.
12834         * symfile.c (symfile_dummy_outputs): New function.
12835         (symfile_relocate_debug_section): New function.
12836         * symfile.h (symfile_relocate_debug_section): Add prototype.
12837
12838 2003-01-31  Richard Henderson  <rth@redhat.com>
12839
12840         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12841         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
12842         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12843         * alpha-tdep.c (alpha_register_name): Add "unique".
12844         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12845         (ALPHA_UNIQUE_REGNUM): New.
12846         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12847
12848 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
12849
12850         * README: Remove reference to Ericsson 1800 monitor.
12851         * Makefile.in (remote-es.o): Delete rule.
12852         (ALLDEPFILES): Delete remote-es.c.
12853         * remote-es.c: Delete file.
12854         * config/m68k/es1800.mt: Delete file.
12855         * config/djgpp/fnchange.lst: Update.
12856         * configure.tgt: Delete m68*-ericsson-* target.
12857
12858 2003-01-31  Adam Fedor  <fedor@gnu.org>
12859
12860         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12861         Remove duplicate/shadowing variable of same name.
12862
12863 2003-01-30  Jim Blandy  <jimb@redhat.com>
12864
12865         * symfile.c (find_separate_debug_file): Assert that the objfile's
12866         directory name we compute ends with a slash, and then assume that
12867         that's so everywhere we use it.
12868
12869 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
12870
12871         * valops.c (value_assign): Flush frame cache after stores to memory
12872         also.
12873
12874 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
12875
12876         * Makefile.in (mon960-rom.o): Delete rule.
12877         * mon960-rom.c: Delete file.
12878
12879 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
12880
12881         * d10v-tdep.c: Include "frame-unwind.h".
12882         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12883         list.
12884         (next_addr, uses_frame): Delete.
12885         (struct d10v_unwind_cache): Define.
12886         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12887         Use info instead of next_addr and uses_frame globals.
12888         (d10v_frame_init_saved_regs): Delete function.
12889         (d10v_init_extra_frame_info): Delete function.
12890         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12891         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12892         init_frame_pc or frame_saved_pc.
12893         (d10v_pop_frame): Delete function.
12894         (do_d10v_pop_frame): Delete function.
12895         (d10v_frame_chain): Delete function.
12896         (d10v_frame_chain_valid): Delete function.
12897         (d10v_frame_pc_unwind): New function.
12898         (d10v_frame_id_unwind): New function.
12899         (saved_regs_unwinder): New function.
12900         (d10v_frame_register_unwind): New function.
12901         (d10v_frame_pop): New function.
12902         (d10v_frame_unwind): New variable.
12903         (d10v_frame_p): New function.
12904         (d10v_frame_saved_pc): Delete function.
12905         * Makefile.in (d10v-tdep.o): Update dependencies.
12906
12907 2003-01-30  J. Brobecker  <brobecker@gnat.com>
12908
12909         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12910         causing some regressions due to a change in the default value
12911         for this macro.
12912
12913 2003-01-29  Richard Henderson  <rth@redhat.com>
12914             Elena Zannoni  <ezannoni@redhat.com>
12915             Daniel Jacobowitz  <drow@mvista.com>
12916
12917         Fix PR gdb/961.
12918         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
12919         variables.
12920         (RANGES_SECTION): New.
12921         (dwarf_ranges_buffer): New variable.
12922         (struct comp_unit_head): Add member "die".
12923         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12924         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12925         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12926         (dwarf2_locate_sections): Likewise.
12927         (dwarf2_build_psymtabs): Read .debug_ranges.
12928         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12929         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
12930         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12931         Look for DW_AT_ranges and return the bounding box.
12932
12933 2003-01-29  Brian Ford <ford@vss.fsi.com>
12934
12935         * win32-nat.c (cygwin_pid): Removed as unused.
12936         (child_attach): Try fall back to Cygwin pid.
12937
12938 2003-01-29  Jim Blandy  <jimb@redhat.com>
12939
12940         * objfiles.h (struct objfile): Doc fix.
12941
12942 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
12943
12944         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12945         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12946         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12947         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12948         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12949         (FRAME_SAVED_PC): Change to a function with predicate.
12950         * gdbarch.h, gdbarch.c: Re-generate.
12951
12952 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
12953
12954         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12955
12956         * complaints.c (complain): Delete function.
12957         * complaints.h (struct deprecated_complaint): Delete definition.
12958         (complain): Delete declaration.
12959
12960 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
12961
12962         * mips-tdep.c (mips_init_extra_frame_info): Return early for
12963         dummy frames.
12964
12965 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
12966
12967         * sentinel-frame.h, sentinel-frame.c: New files.
12968         * Makefile.in (frame.o): Update dependencies.
12969         (SFILES): Add sentinel-frame.c.
12970         (sentinel_frame_h): Define.
12971         (COMMON_OBS): Add sentinel-frame.o.
12972         (sentinel-frame.o): Specify dependencies.
12973         * frame.c: Include "sentinel-frame.h".
12974         (frame_register_unwind): Rewrite assuming that there is always a a
12975         ->next frame.
12976         (frame_register, generic_unwind_get_saved_register): Ditto.
12977         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12978         (create_sentinel_frame, unwind_to_current_frame): New functions.
12979         (get_current_frame): Rewrite using create_sentinel_frame and
12980         unwind_to_current_frame.  When possible, always create a frame.
12981         (create_new_frame): Set next to the sentinel frame.
12982         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
12983         (deprecated_update_frame_pc_hack): Update the next frame's PC and
12984         ID cache when necessary.
12985         (frame_saved_regs_id_unwind): Use frame_relative_level.
12986         (deprecated_generic_get_saved_register): Use frame_relative_level,
12987         get_frame_saved_regs, get_frame_pc, get_frame_base and
12988         get_next_frame.
12989         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12990         frame_register.
12991
12992 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
12993
12994         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12995
12996 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
12997
12998         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12999         (maintenance_set_profile_cmd): Use error () instead of warning ().
13000
13001 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13002
13003         * configure.in: Check that -pg works if using --enable-profiling.
13004         Check for monstartup and _mcleanup regardless of --enable-profiling.
13005         * maint.c: Check for monstartup and _mcleanup before using them.
13006         * config.in: Regenerated.
13007         * configure: Regenerated.
13008
13009 2003-01-24  Nick Clifton  <nickc@redhat.com>
13010
13011         * Add sh2e support:
13012
13013         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
13014
13015                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13016                 (sh2e_show_regs): New.
13017                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13018                 * config/sh/tm-sh.h: Added sh2e to comments.
13019
13020 2003-01-23  Jim Blandy  <jimb@redhat.com>
13021
13022         * symfile.c (syms_from_objfile): Don't print the "(no debugging
13023         symbols found)" message here; we haven't checked for a separate
13024         debug info file yet, so we don't know yet.
13025         (symbol_file_add_with_addrs_or_offsets): Print it here, after
13026         we've looked everywhere.  Also, there's no need to print a special
13027         message when we're loading the separate debug info file: the one
13028         symbol_file_add prints is fine.
13029
13030 2003-01-23  Alexander Larsson <alexl@redhat.com>
13031             Jim Blandy  <jimb@redhat.com>
13032
13033         Add support for executables whose debug info has been separated
13034         out into a separate file, leaving only a link behind.
13035         * objfiles.h (struct objfile): New fields: separate_debug_objfile
13036         and separate_debug_objfile_backlink.
13037         (put_objfile_before): New declaration.
13038         * symfile.c: #include "filenames.h".
13039         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13040         debug info in a separate file, read that, too. Save the addrs
13041         argument, so we can use it again to read the separated debug info;
13042         syms_from_objfile modifies the table we pass it.
13043         (reread_symbols): After re-reading an objfile, call
13044         reread_separate_symbols to refresh its separate debug info
13045         objfile, if it has one.
13046         (reread_separate_symbols, find_separate_debug_file,
13047         get_debug_link_info, separate_debug_file_exists): New functions.
13048         (debug_file_directory): New global var.
13049         (_initialize_symfile): Initialize debug_file_directory, and
13050         provide the new `set debug-file-directory' command to let the user
13051         change it.
13052         * objfiles.c (free_objfile): If this objfile has its debug info in
13053         a separate objfile, free that one too.  If this is itself a
13054         separate debug info objfile, clear our parent's backlink.
13055         (put_objfile_before): New function.
13056         * utils.c (gnu_debuglink_crc32): New function.
13057         * defs.h (gnu_debuglink_crc32): New declaration.
13058         * Makefile.in (symfile.o): Note dependency on "filenames.h".
13059         * configure.in: Handle --with-separate-debug-dir config option.
13060         * acinclude.m4 (AC_DEFINE_DIR): New macro.
13061         * acconfig.h (DEBUGDIR): New macro.
13062         * configure, aclocal.m4, config.in: Regenerated.
13063
13064 2003-01-22  Jim Blandy  <jimb@redhat.com>
13065
13066         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13067         like the old symbol_file_add, but taking new arguments: you can
13068         now pass in either a `struct section_addr_info' list to say where
13069         each section is loaded, or a `struct section_offsets' table.  Pass
13070         these new arguments through to syms_from_objfile as appropriate.
13071         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13072         with the appropriate quiescent values for the new arguments.
13073
13074         * symfile.c: #include "gdb_assert.h".
13075         (syms_from_objfile): Add the ability to pass in a section offset
13076         table directly, as an alternative to the section_addr_info table.
13077         Document arguments better.
13078         (symbol_file_add): Pass extra arguments to syms_from_objfile.
13079         * symfile.h (syms_from_objfile): Update declaration.
13080         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13081         syms_from_objfile.
13082         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13083
13084 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
13085
13086         Original patch by Tom Tromey <tromey@cygnus.com> and
13087         Jason Molenda <jmolenda@apple.com>.
13088         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13089         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13090         * NEWS: Mention profiling.
13091         * configure.in (--enable-gdbtk): Fix typo.
13092         (--enable-profiling): New.  Set PROFILE_CFLAGS.
13093         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13094         Fill in function.
13095         (profiling_state): New variable.
13096         (mcleanup_wrapper): New function.
13097         (_initialize_maint): Remove NOTYET, fix call to
13098         add_setshow_boolean_cmd for "maint set profile".
13099         * configure: Regenerated.
13100
13101 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
13102
13103         * Makefile.in (install-gdbtk): Install PNG images too.
13104
13105 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
13106
13107         * exec.c (text_start): Delete global variable.
13108         (exec_file_attach): Make text_start local to the function.
13109         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13110         * valops.c (hand_function_call): Delete code that handles
13111         BEFORE_TEXT_END and AFTER_TEXT_END.
13112         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13113         of CALL_DUMMY_LOCATION.
13114         * gdbarch.c: Regenerate.
13115         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13116         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13117         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13118         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13119         (text_end): Delete extern declaration.
13120
13121 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
13122
13123         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13124         * blockframe.c (backtrace_below_main): Move to "frame.c".
13125         (frame_chain_valid): Delete check for backtrace_below_main.
13126         (_initialize_blockframe): Delete initialization, move ``set
13127         backtrace-below-main'' command to "frame.c".
13128         (do_flush_frames_sfunc): Delete function.
13129         * frame.c: Include "command.h" and "gdbcmd.h".
13130         (frame_type_from_pc): New function.
13131         (create_new_frame): Use frame_type_from_pc.
13132         (legacy_get_prev_frame): New function.
13133         (get_prev_frame): Rewrite.  When an old style frame, call
13134         legacy_get_prev_frame.  Otherwize, unwind the PC first.
13135         (_initialize_frame): Add ``set backtrace-below-main'' command.
13136         * Makefile.in (frame.o): Update dependencies.
13137
13138 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13139
13140         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13141         DEPRECATED_REGISTERS_INFO.
13142
13143 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13144
13145         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13146         Maintainers'.  Update `Various Maintainers'.
13147
13148 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13149
13150         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13151         * gdbarch.sh (POP_FRAME): Change to function with predicate.
13152         Suppress actual parameters when `-'.
13153         * gdbarch.h, gdbarch.c: Regenerate.
13154
13155 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13156
13157         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13158         code handling dummy frames.
13159
13160 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13161
13162         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13163         (struct frame_unwind): Add field pop.
13164         * frame.h (frame_pop): Declare.
13165         * frame.c (frame_saved_regs_pop): New function.
13166         (trad_frame_unwinder): Add frame_saved_regs_pop.
13167         (frame_pop): New function.
13168         * dummy-frame.c (dummy_frame_pop): New function.
13169         (discard_innermost_dummy): New function.
13170         (generic_pop_dummy_frame): Use discard_innermost_dummy.
13171         (dummy_frame_unwind): Add dummy_frame_pop.
13172         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13173         * valops.c (hand_function_call): Ditto.
13174         * stack.c (return_command): Ditto.
13175
13176 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13177
13178         * cris-tdep.c: Fix function declaration indentation.
13179         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13180         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13181         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13182         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13183         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13184         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13185
13186 2003-01-18  Michael Chastain  <mec@shout.net>
13187
13188         * README (Unpacking and Installation -- quick overview):
13189         Warn against ".../gdb-5.3/gdb/configure".
13190
13191 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13192
13193         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13194         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13195         (struct frame_unwind): Declare opaque.
13196         (dummy_frame_p): Declare function.
13197         * dummy-frame.c (dummy_frame_id_unwind): Make static.
13198         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13199         * dummy-frame.c: Include "frame-unwind.h".
13200         (dummy_frame_p): New function.
13201         (dummy_frame_unwind): New variable.
13202         * frame.c: Include "frame-unwind.h".
13203         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13204         to use the new unwind field.
13205         (set_unwind_by_pc): Delete function.
13206         (create_new_frame, get_prev_frame): Set unwind field using
13207         frame_unwind_find_by_pc.
13208         (trad_frame_unwind, trad_frame_unwinder): New variables.
13209         * frame.h (trad_frame_unwind): Declare variable.
13210         (frame_id_unwind_ftype): Delete declaration.
13211         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13212         (struct frame_unwind): Declare opaque.
13213         (struct frame_info): Replace the fields id_unwind, pc_unwind and
13214         register_unwind with a single unwind pointer.
13215         * frame-unwind.h, frame-unwind.c: New files.
13216         * Makefile.in (SFILES): Add frame-unwind.c.
13217         (frame_unwind_h): Define.
13218         (COMMON_OBS): Add frame-unwind.o.
13219         (frame-unwind.o): Specify dependencies.
13220         (frame.o, dummy-frame.o): Update dependencies.
13221
13222 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13223
13224         * ada-valprint.c: Eliminate PTR.
13225         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13226         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13227         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13228         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13229         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13230         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13231         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13232
13233 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
13234
13235         * main.c (captured_main): Don't use PTR.
13236         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13237         * gdbtypes.c (lookup_primitive_typename): Ditto.
13238         (lookup_struct_elt_type): Ditto.
13239         * f-valprint.c (info_common_command): Ditto.
13240         (list_all_visible_commons): Ditto.
13241         * jv-typeprint.c (java_type_print_base): Ditto.
13242
13243         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13244         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13245         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
13246         i386-interix-nat.c and i386-interix-tdep.c.  Rename
13247         m68klinux-nat.c and m68klinux-tdep.c.  Rename
13248         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
13249         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
13250         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13251         * main.c (captured_main): Use xfree, not free.
13252
13253 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
13254
13255         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13256         ID back using a parameter.
13257         * frame.c (frame_id_unwind): Update call.
13258         (frame_saved_regs_id_unwind): Update.
13259         * dummy-frame.c (dummy_frame_id_unwind): Update function.
13260         * dummy-frame.h (struct frame_id): Add opaque declaration.
13261         (dummy_frame_id_unwind): Update declaration.
13262
13263 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
13264
13265         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13266
13267 2003-01-15  Stephen P. Smith <ischis2@cox.net>
13268
13269         * MAINTAINERS (Stephen P. Smith): Updated email address.
13270
13271 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
13272
13273         Fix PR gdb/898
13274         * breakpoint.c (until_break_command): Add new argument.  Use it to
13275         decide whether to stop only at the current frame or not.
13276         * breakpoint.h (until_break_command): Update prototype.
13277         * infcmd.c (until_command): Add new argument to until_break_command
13278         call.
13279         (advance_command): New function.
13280         (_initialize_infcmd): Update help string for 'until' command.
13281         Add new 'advance' command.
13282
13283 2003-01-14  David Carlton  <carlton@math.stanford.edu>
13284
13285         * linespec.c (decode_line_1): Normalize comments.
13286         (set_flags): Ditto.
13287         (locate_first_half): Ditto.
13288         (decode_compound): Ditto.
13289         (symtab_from_filename): Ditto.
13290         (decode_all_digits): Ditto.
13291         (decode_dollar): Ditto.
13292         (find_methods): Ditto.
13293         (find_toplevel_char): Ditto.
13294
13295 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13296
13297         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13298         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13299         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13300         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13301         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13302         * language.c, language.h, m32r-tdep.c: Update copyright.
13303         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13304         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13305         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13306         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13307         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13308         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13309
13310 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
13311
13312         * stabsread.h (process_later, resolve_cfront_continuation):
13313         Obsolete.
13314         Update copyright years.
13315         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13316         Update copyright year.
13317         * dbxread.c(struct cont_elem): Obsolete.
13318         (process_later, process_now): Obsolete functions.
13319         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13320         Update copyright year.
13321         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13322         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13323         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13324         (parse_partial_symbols): Obsolete cfront support.
13325         * stabsread.c
13326         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13327         macros.
13328         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13329         read_cfront_baseclasses, read_cfront_member_functions,
13330         resolve_cfront_continuation,read_cfront_static_fields,
13331         copy_cfront_struct_fields): Obsolete functions.
13332         (define_symbol, read_one_struct_field): Obsolete cfront support.
13333         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13334         Update Copyright year.
13335
13336 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
13337
13338         * stack.c (print_frame_info, print_stack_frame_base_stub,
13339         print_stack_frame_base, show_and_print_stack_frame_stub,
13340         show_and_print_stack_frame, print_only_stack_frame_stub,
13341         print_only_stack_frame): Delete functions.
13342         (print_stack_frame_stub): Call print_frame_info instead of
13343         print_frame_info_base.
13344         (print_frame_info_base): Rename to print_frame_info.
13345         (backtrace_command_1): Call print_frame_info, instead of
13346         print_frame_info_base.
13347         (current_frame_command): Call print_stack_frame, instead of
13348         print_only_stack_frame.
13349         (frame_command): Call print_stack_frame, instead of
13350         show_and_print_stack_frame.
13351         (up_command): Ditto.
13352         (down_command): Ditto.
13353         * frame.h (print_only_stack_frame): Delete prototype.
13354         * infrun.c (normal_stop): Call print_stack_frame, instead of
13355         show_and_print_stack_frame.
13356         * thread.c (info_threads_command): Call print_stack_frame, instead
13357         of print_only_stack_frame.
13358
13359 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13360
13361         * README (Graphical interface to GDB): Update URL.  Point at
13362         gdb/links/.
13363
13364         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
13365         version match.
13366
13367 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13368
13369         * symtab.c (find_pc_sect_line): Don't consider end-of-function
13370         lines.
13371
13372 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13373
13374         * thread-db.c (attach_thread): Prototype.
13375         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
13376         thread information (ti), and valid flags (th_valid, ti_valid).
13377         (attach_thread): Move target_pid_to_str call to after the thread
13378         is added to GDB's list.  Initialize the cache.
13379         (thread_get_info_callback, thread_db_map_id2thr)
13380         (thread_db_get_info): New functions.
13381         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13382         (thread_db_store_registers, thread_db_thread_alive)
13383         (thread_db_get_thread_local_address): Use them.
13384         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
13385         of calling error() for threads in unknown state.
13386
13387         (clear_lwpid_callback): New function.
13388         (thread_db_resume): Use it to clear the cache.
13389
13390 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13391
13392         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13393         (resume_callback): Remove dead code.
13394
13395 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13396
13397         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13398         predicate.
13399         * gdbarch.h, gdbarch.c: Regenerate.
13400         * stack.c (frame_info): Only initialize the saved registers when
13401         FRAME_INIT_SAVED_REGS_P.
13402         * frame.c (frame_saved_regs_register_unwind): Assert
13403         FRAME_INIT_SAVED_REGS_P.
13404         (deprecated_generic_get_saved_register): Ditto.
13405
13406 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13407
13408         * source.c (openp): Squelch warning about "filename".
13409
13410 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13411
13412         * source.c (openp): If the file does not exist don't necessarily
13413         search the path.
13414
13415 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13416
13417         Fix PR gdb/872.
13418         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13419         (integer_types_same_name_p): New function.
13420         (rank_one_type): Use it.
13421         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13422
13423 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13424
13425         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13426         variables.
13427         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13428         * configure.in: Add --with-sysroot.
13429         * configure: Regenerated.
13430         * main.c (gdb_sysroot): New variable.
13431         (captured_main): Initialize gdb_sysroot.
13432         * defs.h (gdb_sysroot): New extern declaration.
13433         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13434
13435 2003-01-12  Michael Chastain  <mec@shout.net>
13436
13437         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13438
13439 2003-01-12  Michael Chastain  <mec@shout.net>
13440
13441         * top.c (print_gdb_version): Bump copyright year to 2003.
13442
13443 2003-01-12  David Carlton  <carlton@bactrian.org>
13444
13445         * linespec.c (symtab_from_filename): Rename variable 's' to
13446         'file_symtab'.
13447
13448 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
13449
13450         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13451         dummy frame.
13452         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13453
13454 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
13455
13456         * d10v-tdep.c: Include "gdb_assert.h".
13457         (d10v_store_return_value): Rewrite to match current interface.
13458         (d10v_extract_struct_value_address): Ditto.
13459         (d10v_extract_return_value): Ditto.
13460         (d10v_gdbarch_init): Set store_restore_value,
13461         extract_struct_value_address and extract_return_value.
13462
13463 2003-01-12  J. Brobecker  <brobecker@gnat.com>
13464
13465         * hpread.c (set_namestring): New procedure replacing the
13466         SET_NAMESTRING macro.
13467         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13468         by calls to set_namestring.
13469
13470 2003-01-11  J. Brobecker  <brobecker@gnat.com>
13471
13472         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13473         a compilation warning.
13474         (hpread_process_one_debug_symbol): Likewise.
13475
13476 2003-01-10  David Carlton  <carlton@math.stanford.edu>
13477
13478         * linespec.c (decode_line_1): Rename variable 's' to
13479         'file_symtab'.
13480         (decode_all_digits): Rename argument 's' to 'file_symtab'.
13481         (decode_dollar): Ditto.
13482         (decode_variable): Ditto.
13483         (symbol_found): Ditto.
13484
13485 2003-01-09  Michael Chastain  <mec@shout.net>
13486
13487         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13488
13489 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
13490
13491         * win32-nat.c (set_process_privilege): New function.
13492         (child_attach): Call set_process_privilege() to enable the
13493         SE_DEBUG_NAME user privilege if available in process token.
13494
13495 2003-01-10  J. Brobecker  <brobecker@gnat.com>
13496
13497         * hpread.c (hpread_process_one_debug_symbol): Fix a small
13498         compilation error in the previous revision.
13499
13500 2003-01-09  David Carlton  <carlton@math.stanford.edu>
13501
13502         * linespec.c: Update copyright.
13503
13504 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
13505
13506         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13507         than inferior_ptid.
13508         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13509
13510 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
13511
13512         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13513         Update comments.
13514         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13515         (frame_saved_regs_zalloc): Update.
13516         (frame_saved_regs_register_unwind): Update.
13517         (create_new_frame): Update.
13518         (get_prev_frame): Update.
13519         (frame_extra_info_zalloc): Update.
13520         (deprecated_get_frame_saved_regs): Update.
13521         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13522         * cris-tdep.c: Update comment.
13523
13524         * somsolib.h: Fix function indentation.
13525         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13526         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13527         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13528         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13529         * somsolib.c, inftarg.c: Remove assignment in if conditional.
13530
13531         * infrun.c (follow_fork): Use ISO C definition.
13532         * expprint.c (print_subexp): Use xfree instead of free.
13533         * charset.c: Include "gdb_string.h" instead of <string.h>.
13534         (register_iconv_charsets): Use ISO C definition.
13535         (host_charset, target_charset): Ditto.
13536         * Makefile.in (charset.o): Update dependencies.
13537         (mi-cmd-env.o): Update dependencies.
13538
13539 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13540
13541         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13542         get_frame_base.
13543
13544 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
13545
13546         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
13547         build directories.  Save edited gdb output in Mbuild.log.  If a
13548         build fails, remove any final GDB executable.
13549
13550 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
13551
13552         * gdb_mbuild.sh: Edit the output of `maint print architecture'
13553         replacing hex constants with function names and stripping leading
13554         file name directory prefixes.
13555
13556 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13557
13558         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13559         get_frame_base.
13560
13561 2003-01-08  David Carlton  <carlton@math.stanford.edu>
13562
13563         * linespec.c (decode_line_1): Move code into decode_variable.
13564         (decode_variable): New function.
13565
13566 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
13567
13568         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13569
13570 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13571
13572         * cris-tdep.c (cris_frame_init_saved_regs): Use
13573         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13574         saved_regs buffer.
13575         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13576         (sh64_nofp_frame_init_saved_regs): Ditto.
13577         (sh_fp_frame_init_saved_regs): Ditto.
13578         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13579         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13580         * mcore-tdep.c (analyze_dummy_frame): Ditto.
13581         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13582
13583 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
13584
13585         * minsyms.c (lookup_minimal_symbol): Update comment.
13586         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
13587         (lookup_minimal_symbol_solib_trampoline): Likewise.
13588
13589 2003-01-08  Andrew Cagney  <cagney@redhat.com>
13590
13591         * d10v-tdep.c (d10v_init_extra_frame_info): Use
13592         frame_relative_level.
13593
13594         * alpha-tdep.c: Use get_frame_extra_info.
13595         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13596         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13597         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13598         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13599
13600         * alpha-tdep.c: Use get_next_frame.
13601         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13602         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13603         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13604         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13605         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13606         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13607         * xstormy16-tdep.c: Ditto.
13608
13609 2003-01-07  Andrew Cagney  <cagney@redhat.com>
13610
13611         * alpha-tdep.c: Use get_frame_base.
13612         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13613         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13614         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13615         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13616         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13617         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13618         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13619         * config/sparc/tm-sparc.h: Ditto.
13620
13621 2003-01-07  Andrew Cagney  <cagney@redhat.com>
13622
13623         * frame.c (deprecated_get_frame_context): New function.
13624         (deprecated_set_frame_context): New function.
13625         * frame.h (deprecated_get_frame_context): Declare.
13626         (deprecated_set_frame_context): Declare.
13627         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13628         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13629
13630 2003-01-07  Andrew Cagney  <cagney@redhat.com>
13631
13632         * frame.c (deprecated_set_frame_next_hack): New function.
13633         (deprecated_set_frame_prev_hack): New function.
13634         * frame.h (deprecated_set_frame_next_hack): Declare.
13635         (deprecated_set_frame_prev_hack): Declare.
13636         * mcore-tdep.c (analyze_dummy_frame): Use
13637         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13638         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13639
13640 2003-01-07  David Carlton  <carlton@math.stanford.edu>
13641
13642         * linespec.c (decode_line_1): Move code into decode_dollar.
13643         (decode_dollar): New function.
13644
13645 2003-01-07  Andrew Cagney  <cagney@redhat.com>
13646
13647         * arm-tdep.c (arm_init_extra_frame_info): Use
13648         deprecated_update_frame_base_hack.
13649         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13650         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13651         (fix_frame_pointer): Ditto.
13652         (mn10300_analyze_prologue): Ditto.
13653
13654 2003-01-07  Andrew Cagney  <cagney@redhat.com>
13655
13656         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13657         extra_info using frame_extra_info_zalloc.
13658         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13659         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13660         (sh64_init_extra_frame_info): Ditto.
13661         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13662         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13663         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13664         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13665         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13666         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13667         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13668         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13669         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13670         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13671         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13672         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13673
13674         * mn10300-tdep.c (analyze_dummy_frame): Use
13675         deprecated_set_frame_extra_info_hack.
13676         * mcore-tdep.c (analyze_dummy_frame): Ditto.
13677
13678 2003-01-07  J. Brobecker  <brobecker@gnat.com>
13679
13680         * mdebugread.c (parse_symbol): Skip stProc entries which storage
13681         class is not scText. These do not define "real" procedures.
13682         (parse_partial_symbols): Likewise.
13683
13684 2003-01-06  Michael Snyder  <msnyder@redhat.com>
13685
13686         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13687
13688 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
13689
13690         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13691         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13692         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13693         deprecated_frame_xmalloc_with_cleanup.
13694         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13695         deprecated_frame_xmalloc.
13696         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13697         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13698
13699 2003-01-06  Andrew Cagney  <cagney@redhat.com>
13700
13701         * x86-64-linux-tdep.c: Include "osabi.h".
13702         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13703
13704         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13705
13706 2003-01-06  Andrew Cagney  <cagney@redhat.com>
13707
13708         * MAINTAINERS (Target Instruction Set Architectures): Update
13709         arm-elf.  Can be built with -Werror, has been multiarched.
13710
13711         * value.h (unpack_long): Make buffer parameter constant.
13712         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13713         * scm-lang.h (scm_parse): Ditto.
13714         * defs.h (extract_typed_address, extract_address): Ditto.
13715         (extract_long_unsigned_integer): Ditto.
13716         * inferior.h (unsigned_pointer_to_address): Ditto.
13717         (signed_pointer_to_address): Ditto.
13718         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13719         * gdbarch.h, gdbarch.c: Regenerate.
13720         * findvar.c (extract_long_unsigned_integer): Update.
13721         (extract_address): Update.
13722         (extract_typed_address): Update.
13723         (unsigned_pointer_to_address): Update.
13724         * values.c (unpack_long): Update.
13725         (unpack_double): Update.
13726         (unpack_pointer): Update.
13727         (unpack_field_as_long): Update.
13728         * d10v-tdep.c (d10v_pointer_to_address): Update.
13729         * avr-tdep.c (avr_pointer_to_address): Update.
13730         * scm-lang.c (scm_unpack): Update.
13731         * findvar.c (signed_pointer_to_address): Update.
13732
13733 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
13734
13735         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13736         since it is in i386-tdep.c.
13737
13738 2003-01-06  J. Brobecker  <brobecker@gnat.com>
13739
13740         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13741         failure introduced in the previous change.
13742
13743 2003-01-05  Michael Chastain  <mec@shout.net>
13744
13745         * README: Remove references to deleted remote-*.c files:
13746         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13747         remote-nrom.c, remote-os9k.c, remote-udi.c.
13748
13749 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
13750
13751         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13752         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13753         i386_get_longjmp_target.
13754
13755 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
13756
13757         * arm-tdep.c (prologue_cache): Change to a pointer.
13758         (_initialize_arm_tdep): Allocate prologue_cache.
13759         (check_prologue_cache): Update.
13760         (save_prologue_cache): Update.
13761         (arm_gdbarch_init): Update.
13762
13763 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13764
13765         * stabsread.c (update_method_name_from_physname): Call complaint()
13766         instead of error.
13767
13768 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13769
13770         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
13771         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13772         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13773
13774         * blockframe.c: Include "gdbcmd.h" and "command.h".
13775         (backtrace_below_main): New variable.
13776         (file_frame_chain_valid, func_frame_chain_valid)
13777         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13778         (generic_func_frame_chain_valid): Remove functions.
13779         (frame_chain_valid, do_flush_frames_sfunc): New functions.
13780         (_initialize_blockframe): New function.
13781         * Makefile.in (blockframe.o): Update dependencies.
13782         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13783         comment.  Call frame_chain_valid ().
13784         * frame.h: Remove old prototypes.  Add prototype for
13785         frame_chain_valid and update comments to match.
13786         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13787         Remove old comment.
13788         * gdbarch.h: Regenerated.
13789         * gdbarch.c: Regenerated.
13790
13791         * alpha-tdep.c (alpha_gdbarch_init): Don't call
13792         set_gdbarch_frame_chain_valid.
13793         * avr-tdep.c (avr_gdbarch_init): Likewise.
13794         * cris-tdep.c (cris_gdbarch_init): Likewise.
13795         * frv-tdep.c (frv_gdbarch_init): Likewise.
13796         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13797         * i386-tdep.c (i386_svr4_init_abi): Likewise.
13798         (i386_nw_init_abi): Likewise.
13799         (i386_gdbarch_init): Likewise.
13800         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13801         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13802         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13803         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13804         * mips-tdep.c (mips_gdbarch_init): Likewise.
13805         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13806         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13807         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13808         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13809         * s390-tdep.c (s390_gdbarch_init): Likewise.
13810         * sh-tdep.c (sh_gdbarch_init): Likewise.
13811         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13812         * v850-tdep.c (v850_gdbarch_init): Likewise.
13813         * vax-tdep.c (vax_gdbarch_init): Likewise.
13814         * x86-64-tdep.c (x86_64_init_abi): Likewise.
13815
13816         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13817         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13818         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13819         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13820         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13821         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13822         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13823         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13824
13825 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
13826
13827         * Makefile.in (acconfig_h): Remove incorrect macro.
13828         (config_h): Define.
13829         (osabi.o): Update dependencies.
13830         * configure.tgt: Set gdb_osabi based on target triplet.
13831         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13832         * configure: Regenerated.
13833         * config.in: Regenerated.
13834         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13835         (GDB_OSABI_DEFAULT): Define if not already defined.
13836         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13837         (set_osabi_string): New variables.
13838         (gdbarch_register_osabi): Add new OS ABI to
13839         gdb_osabi_available_names.
13840         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13841         (set_osabi, show_osabi): New functions.
13842         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13843
13844 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13845
13846         * arch-utils.c (gdbarch_info_init): Set osabi to
13847         GDB_OSABI_UNINITIALIZED.
13848         * gdbarch.sh: Add osabi to struct gdbarch and to struct
13849         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
13850         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13851         * gdbarch.c: Regenerated.
13852         * gdbarch.h: Regenerated.
13853         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13854         there's no BFD.
13855         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13856         * osabi.h (enum gdb_osabi): Move to defs.h.
13857         (gdbarch_init_osabi): Update prototype.
13858         * defs.h (enum gdb_osabi): Moved here.
13859         * Makefile.in: Update dependencies.
13860
13861         * alpha-tdep.h: Don't include "osabi.h".
13862         (struct gdbarch_tdep): Remove osabi member.
13863         * alpha-tdep.c: Include "osabi.h".
13864         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13865         iterate over arches.  Update call to gdbarch_init_osabi.
13866         (alpha_dump_tdep): Don't dump osabi.
13867         * alpha-linux-tdep.c: Include "osabi.h".
13868         * alpha-osf1-tdep.c: Include "osabi.h".
13869         * alphafbsd-tdep.c: Include "osabi.h".
13870         * alphanbsd-tdep.c: Include "osabi.h".
13871
13872         * arm-tdep.h: Don't include "osabi.h".
13873         (struct gdbarch_tdep): Remove osabi member.
13874         * arm-tdep.c: Include "osabi.h".
13875         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13876         iterate over arches.  Update call to gdbarch_init_osabi.
13877         (arm_dump_tdep): Don't dump osabi.
13878         * arm-linux-tdep.c: Include "osabi.h".
13879         * armnbsd-tdep.c: Include "osabi.h".
13880
13881         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13882         Update call to gdbarch_init_osabi.
13883
13884         * i386-tdep.h: Don't include "osabi.h".
13885         (struct gdbarch_tdep): Remove osabi member.
13886         * i386-tdep.c: Include "osabi.h".
13887         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13888         iterate over arches.  Update call to gdbarch_init_osabi.
13889         (i386_dump_tdep): Don't dump osabi.
13890         * i386-linux-tdep.c: Include "osabi.h".
13891         * i386-sol2-tdep.c: Include "osabi.h".
13892         * i386bsd-tdep.c: Include "osabi.h".
13893         * i386gnu-tdep.c: Include "osabi.h".
13894         * i386ly-tdep.c: Include "osabi.h".
13895         * i386nbsd-tdep.c: Include "osabi.h".
13896         * i386obsd-tdep.c: Include "osabi.h".
13897
13898         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13899         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13900         check osabi when iterating over arches.  Update call to
13901         gdbarch_init_osabi.
13902         (mips_dump_tdep): Don't dump osabi.
13903
13904         * ns32k-tdep.h: Don't include "osabi.h".
13905         (struct gdbarch_tdep): Remove.
13906         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13907         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
13908         allocate tdep.  Update call to gdbarch_init_osabi.
13909         (ns32k_dump_tdep): Remove.
13910         (_initialize_ns32k_tdep): Update call to gdbarch_register.
13911         * ns32knbsd-tdep.c: Include "osabi.h".
13912
13913         * ppc-tdep.h: Don't include "osabi.h".
13914         (struct gdbarch_tdep): Remove osabi member.
13915         * rs6000-tdep.c: Include "osabi.h".
13916         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
13917         osabi when iterating over arches.  Update call to
13918         gdbarch_init_osabi.
13919         (rs6000_dump_tdep): Don't dump osabi.
13920         * ppc-linux-tdep.c: Include "osabi.h".
13921         * ppcnbsd-tdep.c: Include "osabi.h".
13922
13923         * sh-tdep.h: Don't include "osabi.h".
13924         (struct gdbarch_tdep): Remove osabi member.
13925         * sh-tdep.c: Include "osabi.h".
13926         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13927         iterate over arches.  Update call to gdbarch_init_osabi.
13928         (sh_dump_tdep): Don't dump osabi.
13929         * shnbsd-tdep.c: Include "osabi.h".
13930
13931         * sparc-tdep.c: Include "osabi.h".
13932         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13933         iterate over arches.  Update call to gdbarch_init_osabi.
13934         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
13935         tdep structure.
13936
13937         * vax-tdep.h: Don't include "osabi.h".
13938         (struct gdbarch_tdep): Remove.
13939         * vax-tdep.c: Include "osabi.h".
13940         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13941         iterate over arches.  Don't allocate tdep.  Update call
13942         to gdbarch_init_osabi.
13943         (vax_dump_tdep): Remove.
13944         (_initialize_vax_tdep): Update call to gdbarch_register.
13945
13946 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13947
13948         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13949         entirely.
13950         (breakpoint_re_set_one): Don't fetch the value for a disabled
13951         watchpoint.
13952
13953 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13954
13955         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13956         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13957         (COERCE_FLOAT_TO_DOUBLE): Remove.
13958         * gdbarch.c: Regenerate.
13959         * gdbarch.h: Regenerate.
13960         * Makefile.in: Remove value_h from gdbarch_h.
13961         * valops.c (coerce_float_to_double): New variable.
13962         (default_coerce_float_to_double): Remove.
13963         (standard_coerce_float_to_double): Remove.
13964         (value_arg_coerce): Use coerce_float_to_double.
13965         (_initialize_valops): Add "set coerce-float-to-double".
13966         * value.h (default_coerce_float_to_double): Remove prototype.
13967         (standard_coerce_float_to_double): Remove prototype.
13968
13969         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13970         prototyped.
13971         * mdebugread.c (parse_symbol): Likewise.
13972         * stabsread.c (define_symbol): Mark all functions as prototyped.
13973
13974         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13975         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13976         set_gdbarch_coerce_float_to_double.
13977         * arm-tdep.c (arm_gdbarch_init): Likewise.
13978         * frv-tdep.c (frv_gdbarch_init): Likewise.
13979         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13980         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13981         * mips-tdep.c (mips_gdbarch_init): Likewise.
13982         (mips_coerce_float_to_double): Remove.
13983         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13984         (rs6000_coerce_float_to_double): Remove.
13985         * s390-tdep.c (s390_gdbarch_init): Likewise.
13986         * sh-tdep.c (sh_gdbarch_init): Likewise.
13987         (sh_coerce_float_to_double): Remove.
13988         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13989         (sparc_coerce_float_to_double): Remove.
13990         * v850-tdep.c (v850_gdbarch_init): Likewise.
13991         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13992         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13993         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13994         (hppa_coerce_float_to_double): Remove prototype.
13995         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13996
13997 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13998
13999         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14000
14001 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14002
14003         Suggested by Stewart Brown <sb24@avaya.com>:
14004         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14005         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
14006         (c_type_print_varspec_suffix): Likewise.
14007
14008 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14009
14010         * configure.in: Don't set and AC_SUBST SUBDIRS.
14011         * configure: Regenerated.
14012
14013         * configure.in: Remove code dealing with shared libraries.
14014         * Makefile.in: Remove HLDFLAGS and HLDENV.
14015         * configure: Regenerated.
14016
14017 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
14018
14019         * frame.c (deprecated_frame_xmalloc): New function.
14020         (deprecated_set_frame_saved_regs_hack): New function.
14021         (deprecated_set_frame_extra_info_hack): New function.
14022         * frame.h (deprecated_frame_xmalloc): Declare.
14023         (deprecated_set_frame_saved_regs_hack): Declare.
14024         (deprecated_set_frame_extra_info_hack): Declare.
14025
14026 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14027
14028         * configure.in: Move code that provides the --enable-gdbtk option
14029         right after the code that handles the --enable-tui option, and
14030         polish it somewhat.
14031         * configure: Regenerated.
14032
14033         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
14034         AC_CHECK_FUNCS and remove the old check for pread64.
14035         * acinclude.m4 (AC_GNU_SOURCE): New macro.
14036         * acconfig.h (_GNU_SOURCE): Add.
14037         (HAVE_PREAD64): Remove.
14038         * configure, aclocal.m4, config.in: Regenerated.
14039
14040 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
14041
14042         * alpha-tdep.c: Use get_frame_saved_regs.
14043         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14044         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14045         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14046         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14047         * vax-tdep.c, xstormy16-tdep.c: Ditto.
14048
14049 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14050
14051         * configure.in: Remove all use of the SUBDIRS variable; add
14052         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
14053         code providing the --enable-multi-ice option, and move it right in
14054         front of the code that checks whether gdbserver is supported.
14055         Polish that too.
14056         * configure: Regenerated.
14057         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14058         @SUBDIRS@.
14059
14060 2003-01-03  Andrew Cagney  <cagney@redhat.com>
14061
14062         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14063         * avr-tdep.c, cris-tdep.c: Ditto.
14064         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14065         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14066
14067 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14068
14069         * configure.in: Remove --enable-netrom option.
14070         * configure: Regenerated.
14071
14072 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14073
14074         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14075         declaration for `struct re_pattern_buffer' instead.
14076         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14077
14078 2003-01-03  J. Brobecker  <brobecker@gnat.com>
14079
14080         * mdebugread.c (parse_symbol): Count until the stEnd matching
14081         the structure name.
14082
14083 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14084
14085         * configure.in: Remove --with-cpu option.
14086         subscripts.  Remove evil changequotes here.
14087         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14088         * config.in, configure: Regenerated.
14089
14090         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14091         * configure.in: Cleanup section that sources GDB and BFD configure
14092         subscripts.  Remove evil changequotes here.
14093         * config.in, configure: Regenerated.
14094
14095 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14096
14097         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14098         frame accessor methods.
14099         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14100         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14101         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14102         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14103         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14104         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14105         * z8k-tdep.c: Ditto.
14106
14107 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14108
14109         * configure.in: Remove UI_OUT configuration code.
14110         * ada-lang.c: Update assuming UI_OUT is always true.
14111         * Makefile.in (UIOUT_CFLAGS): Remove.
14112         * configure: Regenerated.
14113         * TODO: Remove blurb about elimination of -DUI_OUT.
14114
14115         * configure.in: Move code that provides the --enable-gdbcli,
14116         --enable-gdbmi options right before the code that handles the
14117         --enable-tui option.  Polish a bit.
14118         * configure: Regenerated.
14119
14120         * configure.in: Rewrite check for GNU regex and the
14121         --without-included regex option, and move it into the "Checks for
14122         library functions" section.  This makes us use the system regex
14123         again by default on systems with version 2 of the GNU C library.
14124         This was apparently broken.
14125         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14126         * acconfig.h (USE_INCLUDED_REGEX): Remove.
14127         * config.in, configure: Regenerated.
14128
14129         * configure.in: Move code that provides the --enable-tui option
14130         before the "Checks for libraries" section.  Polish the code
14131         somewhat and set need_curses to yes if we build the TUI.  Rewrite
14132         code that looks for a library providing termcap functionality to
14133         match more closely what's done in the Readline library, and move
14134         it into to the "Checks for libraries" section.
14135         * configure: Regenerated.
14136         * Makefile.in (TERMCAP): Remove variable.
14137         * config/i386/go32.mh (TERMCAP): Remove variable.
14138
14139 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14140
14141         * MAINTAINERS: Mention gdb_mbuild.sh.
14142         * gdb_mbuild.sh: Rewrite.
14143
14144 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14145
14146         * configure.in: Fix typo in last change.
14147         * config.in, configure: Regenerated.
14148
14149 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14150
14151         * valarith.c (value_binop): Delete obsolete code and comments.
14152         * configure.host: Ditto.
14153         * buildsym.h (make_blockvector): Ditto.
14154         * buildsym.c (make_blockvector): Ditto.
14155         * defs.h (enum language): Ditto.
14156         (chill_demangle): Ditto.
14157         * elfread.c (elf_symtab_read): Ditto.
14158         * dwarfread.c (CHILL_PRODUCER): Ditto.
14159         (set_cu_language): Ditto.
14160         (handle_producer): Ditto.
14161         * expprint.c (print_subexp): Ditto.
14162         * gdbtypes.c (chill_varying_type): Ditto.
14163         * gdbtypes.h (builtin_type_chill_bool): Ditto.
14164         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14165         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14166         (chill_varying_type): Ditto.
14167         * language.h (_LANG_chill): Ditto.
14168         * language.c (binop_result_type, integral_type): Ditto.
14169         (character_type, string_type, structured_type): Ditto.
14170         (lang_bool_type, binop_type_check): Ditto.
14171         * stabsread.h (os9k_stabs): Ditto.
14172         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14173         (define_symbol, read_type, read_struct_fields): Ditto.
14174         (read_array_type, read_enum_type, read_huge_number): Ditto.
14175         (read_range_type, start_stabs): Ditto.
14176         * symfile.c (init_filename_language_table): Ditto.
14177         (add_psymbol_with_dem_name_to_list): Ditto.
14178         * symtab.c (symbol_init_language_specific): Ditto.
14179         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14180         * symtab.h (struct general_symbol_info): Ditto.
14181         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14182         * typeprint.c (typedef_print): Ditto.
14183         * utils.c (fprintf_symbol_filtered): Ditto.
14184         * valops.c (value_cast, search_struct_field, value_slice): Delete
14185         obsolete code.
14186         (varying_to_slice): Delete function.
14187         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14188         (varying_to_slice): Delete declaration.
14189         * MAINTAINERS: Update.
14190
14191 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14192
14193         * configure.in: Reorganize "Checks for library functions section"
14194         a bit.  Remove check for `btowc' and `isascii' functions.
14195         * configure: Regenerated.
14196
14197         * acconfig.h (_MSE_INT_H): Remove.
14198         * configure.in: Create "Checks for header files" section, and move
14199         appropriate tests there.  Don't check for objlist.h, wchar.h,
14200         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
14201         misdetection fix.  Also add "Checks for types", "Checks for
14202         compiler characteristics" and "Checks for library functions"
14203         sections.
14204         * config.in, configure: Regenerated.
14205
14206         * configure.in: Create "Checks for programs" section, and move
14207         appropriate tests there.
14208
14209 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
14210
14211         * configure.in: Create "Checks for libraries" section, and move
14212         appropriate tests there.  Cleanup check for wctype in libw.  Use
14213         AC_SEARCH_LIBS to see whether we need libsocket.
14214         * configure: Regenerated.
14215
14216 For older changes see ChangeLog-2002
14217 \f
14218 Local Variables:
14219 mode: change-log
14220 left-margin: 8
14221 fill-column: 74
14222 version-control: never
14223 End: