2004-07-21 Andrew Cagney <cagney@gnu.org>
[external/binutils.git] / gdb / ChangeLog
1 2004-07-21  Andrew Cagney  <cagney@gnu.org>
2
3         * PROBLEMS: Mention breakpoints/1702.
4         * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5         that is known to work.
6
7 2004-07-21  Andrew Cagney  <cagney@gnu.org>
8
9         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
10         * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
11         * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
12         (handle_inferior_event): Wrap call to deprecated
13         IGNORE_HELPER_CALL in #ifdef.
14         * config/mips/tm-nbsd.h: Update.
15
16 2004-07-20  Jim Blandy  <jimb@redhat.com>
17
18         * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
19         bfd_mach_ppc has no segment registers.
20
21         Include PowerPC SPR numbers for special-purpose registers.
22         * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
23         (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
24         new member in initializer.
25         (S, S4, SN4, S64): New macros for defining special-purpose
26         registers.
27         (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
28         registers_403, registers_403GC, registers_505, registers_860,
29         registers_601, registers_602, registers_603, registers_604,
30         registers_750, registers_e500): Use them.
31
32         * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
33         replace references with expression used to initialize variable.
34
35 2004-07-20  Andrew Cagney  <cagney@gnu.org>
36
37         * breakpoint.c (deprecated_read_memory_nobpt): Rename
38         read_memory_nobpt.
39         * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
40         * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
41         (s390_sigtramp_frame_sniffer): Update.
42         * mn10300-tdep.c (mn10300_analyze_prologue): Update.
43         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
44         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) 
45         (mips32_fetch_instruction): Update.
46         * mcore-tdep.c (get_insn): Update.
47         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
48         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
49         * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
50         * i386-linux-tdep.c (i386_linux_sigtramp_start) 
51         (i386_linux_rt_sigtramp_start): Update.
52         * i386-linux-nat.c (child_resume): Update.
53         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
54         * hppa-linux-tdep.c (insns_match_pattern): Update.
55         * gdbcore.h: Update.
56         * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
57         * frame.c (safe_frame_unwind_memory): Update.
58         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
59         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
60         * alpha-tdep.c (alpha_read_insn): Update.
61
62 2004-07-20  Andrew Cagney  <cagney@gnu.org>
63
64         * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
65         containing both bytes and mask.  Add "frame_type".
66         * tramp-frame.c (tramp_frame_start): Update.
67         (tramp_frame_prepend_unwinder): Update.
68         * mips-linux-tdep.c (mips_linux_o32_sigframe)
69         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
70         (mips_linux_n64_rt_sigframe): Update.  Make "static const".
71         * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
72
73 2004-07-19  Eli Zaretskii  <eliz@gnu.org>
74
75         * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
76         bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
77         sim/testsuite/sim/mips/hilo-hazard-[123].s, and
78         sim/testsuite/sim/mips/fpu64-ps-sb1.s.
79
80 2004-07-17  Andrew Cagney  <cagney@gnu.org>
81
82         * NEWS, PROBLEMS: Update for 6.2.
83
84         * README: Update to 6.2.
85
86         * utils.c (xvasprintf): Call xstrvprintf.
87
88         * parse.c: Update copyright.
89         (null_post_parser): Eliminate ARGSUSED.
90
91         * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
92         * tui/tui-win.c (tui_get_cmd_list): Ditto.
93         * symfile-mem.c (_initialize_symfile_mem): Ditto.
94         
95         * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
96         * ppc-linux-nat.c: Use "Linux kernel".
97         * hppa-linux-tdep.c: Use GNU/Linux.
98         * hppa-linux-nat.c: Use GNU/Linux.
99         * dwarfread.c: Add [sic] to use of Linux.
100
101         * hppa-linux-nat.c: Do not include <string.h>.
102         (supply_fpregset): Remove "register" attribute.
103
104         * solib-frv.c (fetch_loadmap): Use xfree, not free.
105
106 2004-07-17  Mark Kettenis  <kettenis@gnu.org>
107
108         * configure.in: Define _MSE_INT_H on Solaris 9 too.
109         * configure, config.in: Regenerated.
110
111         * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
112         "bsd-kvm.h".
113         (vaxbsd_supply_pcb): New function.
114         (_initialize_vaxbsd_nat): New prototype and function.
115         * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
116         solib-sunos.o.
117         (LOADLIBES): New variable.
118         * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
119         (LOADLIBES): New variable.
120         * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
121         (LOADLIBES): New variable.
122         * Makefile.in (vaxbsd-nat.o): Update dependencies.
123
124 2004-07-16  Andrew Cagney  <cagney@gnu.org>
125
126         * defs.h (event_loop_p): Replace variable declaration with macro,
127         always 1.
128         * main.c (captured_main): Delete options "-async" and "-noasync".
129         (event_loop_p): Delete variable.
130         * NEWS: Mention that "-async" and "-noasync" were removed.
131
132 2004-07-16  Andrew Cagney  <cagney@gnu.org>
133
134         * remote-m32r-sdi.c: Re-indent.
135
136 2004-07-16  Jim Blandy  <jimb@redhat.com>
137
138         * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
139         (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
140         (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
141         missing MPC823 SPRs.
142         (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
143         incorrect.  (This was corrected in GDB's register name tables on
144         2004-07-14.)
145
146         * rs6000-tdep.c (registers_602): Correct register name: "esassr"
147         should be "esasrr" ("ESA Save and Restore Register").
148
149 2004-07-16  Andrew Cagney  <cagney@gnu.org>
150
151         * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
152         calls, no longer applicable.  Update comments and rename parameter
153         "step_frame" to "return_frame".
154
155 2004-07-16  Andrew Cagney  <cagney@gnu.org>
156
157         * frame.c (fprint_field): New function.
158         (fprint_frame_id): Use fprint_field.
159
160 2004-07-15  Joel Brobecker  <brobecker@gnat.com>
161
162         * ada-lang.c (ada_language_defn): Remove commented out code.
163
164 2004-07-15  Jim Blandy  <jimb@redhat.com>
165
166         * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
167         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
168
169 2004-07-14  Jim Blandy  <jimb@redhat.com>
170
171         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
172
173         * ppc-tdep.h (ppc_num_vrs): New enum constant.
174
175         * ppc-tdep.h (ppc_num_srs): New enum constant.
176
177         * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
178         (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
179         (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
180         (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
181         (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
182         (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
183         (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
184         (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
185         (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
186         (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
187         (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
188         (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
189         (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
190         (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
191         (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
192         (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
193         (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
194         (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
195         (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
196         (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
197         (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
198         (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
199         (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
200         (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
201         (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
202         (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
203         (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
204         (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
205         (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
206         (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
207         (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
208         (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
209         (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
210         (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
211         (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
212         (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
213         (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
214         (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
215         (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
216         special-purpose register numbers.
217
218         * rs6000-tdep.c (registers_860): Correct register name.  (No PPC
219         manual mentions 'md_twb', but many mention 'm_twb', and at that
220         point in the register list.)
221
222 2004-07-14  Andrew Cagney  <cagney@gnu.org>
223
224         * utils.c (internal_warning_problem): Fix typo, "internal-warning"
225         instead of "internal-error".
226
227 2004-07-10  Joel Brobecker  <brobecker@gnat.com>
228
229         * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
230         that was inserted inside a comment.
231
232 2004-07-10  Randolph Chung  <tausq@debian.org>
233
234         * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New 
235         function.
236         (hppa_hpux_push_dummy_code): New function.
237         (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
238         Set find_global_pointer method.
239
240 2004-07-10  Mark Kettenis  <kettenis@gnu.org>
241
242         * NEWS: Mention BSD libkvm interface.
243
244 2004-07-10  Michael Snyder  <msnyder@redhat.com>
245
246         * symfile.c (generic_load): Comment typo.
247         * stack.c (get_selected_block): Ditto.
248         * regcache.c (regcache_cooked_read): Ditto.
249         * monitor.c (monitor_debug): Ditto.
250         * mips-tdep.c (mips_read_pc): Ditto.
251         * i386-linux-nat.c (ps_get_thread_area): Ditto.
252         * gdb_mbuild.sh: Ditto.
253         * gdbarch.sh: Ditto.
254         * gdbarch.h: Ditto.
255
256 2004-07-09  Paul N. Hilfinger  <Hilfinger@gnat.com>
257
258         * ada-tasks.c: Remove file.
259         
260         Remove ARI problems:
261         
262         * ada-exp.y (write_var_from_sym): Reformat to put operator at
263         beginning of line.
264
265         * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
266         Add comment.
267         Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
268         (MIN_OF_SIZE): Rename min_of_size.  Add comment.
269         (UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
270         (UMIN_OF_SIZE): Remove.
271         (max_of_type): New function to replace orphan macro in gdbtypes.h
272         (min_of_type): Ditto.
273         (discrete_type_high_bound): Use max_of_type.
274         (discrete_type_low_bound): Use min_of_type.
275         (possible_user_operator_p): Move operator to beginning of line.
276         (ada_is_variant_part): Ditto.
277         (ensure_lval): Rewrite to avoid deprecated operations.
278         (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
279         rather than adding DEPRECATED_FUNCTION_START_OFFSET.
280         (ada_enum_name): Remove assignments in 'if' statements.
281         (build_ada_types): Add gdbarch parameter.
282         (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
283         with gdbarch_data_register_post_init.
284         Use add_setshow_uinteger_cmd rather than add_set_cmd and 
285         add_show_from_set.
286
287         * ada-valprint.c (inspect_it): Remove declaration.
288         (repeat_count_threshold): Remove declaration.
289         (ada_print_floating): Remove assignments in 'if' statements.
290         (print_str): Move operator to beginning of line.
291         
292 2004-07-08  Jim Blandy  <jimb@redhat.com>
293
294         * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
295
296 2004-07-08  Bob Rossi  <bob@brasko.net>
297
298         * symtab.c (lookup_symtab): check return value of symtab_to_fullname
299
300 2004-07-06  Jeff Johnston <jjohnstn@redhat.com>
301
302         * language.h (struct_language_defn): Add new function pointer:
303         la_class_name_from_physname.  Also add new prototype for
304         language_class_name_from_physname.
305         * language.c (language_class_name_from_physname): New function.
306         (unk_lang_class_name): Ditto.
307         (unknown_language_defn, auto_language_defn): Change
308         to add unk_lang_class_name function pointer for
309         la_class_name_from_physname.
310         (local_language_defn): Ditto.
311         * dwarf2read.c (guess_structure_name): Change to call
312         language_class_name_from_physname.
313         (determine_class_name): Ditto.
314         * cp-support.c (class_name_from_physname): Renamed.
315         (cp_class_name_from_physname): New name of function.
316         * cp-support.h: Ditto.
317         * c-lang.c (c_language_defn): Change to add NULL
318         for class_name_from_physname function pointer.
319         (cplus_language_defn): Change to add cp_class_name_from_physname.
320         * jv-lang.c (java_class_name_physname): New function.
321         (java_find_last_component): New static routine.
322         (java_language_defn): Add java_class_name_from_physname pointer.
323         * ada-lang.c (ada_language_defn): Change to add NULL
324         for class_name_from_physname function pointer.
325         * f-lang.c (f_language_defn): Ditto.
326         * m2-lang.c (m2_language_defn): Ditto.
327         * objc-lang.c (objc_language_defn): Ditto.
328         * p-lang.c (pascal_language_defn): Ditto.
329         * scm-lang.c (scm_language_defn): Ditto. 
330
331 2004-07-06  Andrew Cagney  <cagney@gnu.org>
332
333         Patch from Bart Robinson.
334         * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
335         (O_LARGEFILE): Define to 0, if not defined.
336
337 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
338
339         * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
340         <machine/pcb.h> and "bsd-kvm.h".
341         (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
342         (m68kbsd_supply_pcb): New function.
343         (_initialize_m68kbsd_nat): New prototype and function.
344         * Makefile.in (m68kbsd-nat.o): Update dependencies.
345         * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
346         (LOADLIBES): New variable.
347         * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
348         (LOADLIBES): New variable.
349
350         * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
351
352 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
353
354         * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
355         <sys/proc.h>.
356         (bsd_kvm_cmdlist): New variable.
357         (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
358         (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
359         command and "kvm proc" command.
360         * Makefile.in (bsd-kvm.o): Update dependencies.
361
362 2004-07-02  Mark Kettenis  <kettenis@gnu.org>
363
364         * osabi.c: Update copyright year.
365         (generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
366         notes if EI_OSABI is set to ELFOSABI_HPUX.
367
368 2004-07-01  Michael Snyder  <msnyder@redhat.com>
369
370         * win32-nat.c (core_dll_symbols_add): Re-indent a small section
371         that seems to have gotten whacked out of line.
372
373 2004-07-01  Mark Kettenis  <kettenis@gnu.org>
374
375         * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
376         code.
377
378 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
379
380         * ada-lang.c (decode_packed_array): Minor change to comment.
381         (ada_value_slice_ptr): New function. 
382         (ada_value_slice): New function. 
383         (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
384         test.  Don't know why it is there.
385         Change slice code to use ada_value_slice_ptr and ada_value_slice, and
386         to avoid dereferencing huge arrays from which one is slicing.  
387         (empty_array): Correct to return an array rather than
388         a subrange value.
389         * ada-valprint.c (print_optional_low_bound): Don't print lower bound
390         on empty arrays (let'em use 'FIRST instead).
391
392 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
393
394         Address complaints from gdb_ari.sh:
395         
396         * ada-exp.y: Include gdb_string.h rather than string.h.
397         (convert_char_literal): Reformat declaration.
398         * ada-lang.h: Include opaque struct declaration for struct frame_info.
399         * ada-lex.l: Change use of free to xfree (the macro would do so
400         anyway, but this is harmless).
401         Include gdb_string.h rather than string.h.
402         * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
403         
404         * ada-lang.c (parse): Remove K&Rism in parameter list.
405         (is_name_suffix): Correct Linux => GNU/Linux in comment.
406         
407 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
408
409         * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
410         dead code.
411
412 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
413
414         * alphabsd-nat.c: Update copyright year.
415         (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
416
417 2004-06-29  Joel Brobecker  <brobecker@gnat.com>
418
419         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
420         (i386_cygwin_in_solib_call_trampoline): New function.
421         (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
422         and skip_trampoline_code gdbarch methods.
423
424 2004-06-29  Jim Blandy  <jimb@redhat.com>
425
426         * Makefile.in (gdb_callback_h): Renamed from callback_h to the
427         name actually used in the dependency lists.
428
429 2004-06-29  Randolph Chung  <tausq@debian.org>
430
431         * NEWS (New native configurations): Mention GNU/Linux/hppa.
432
433 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
434
435         * win32-nat.c (child_pid_to_exec_file): New function.
436         (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
437         functionality.
438
439 2004-06-28  Andrew Cagney  <cagney@gnu.org>
440
441         * defs.h (xstrvprintf): Declare.
442         * utils.c (xstrvprintf): New function.
443         (internal_vproblem, xstrprintf, xasprintf) 
444         (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
445         * serial.c (serial_printf): Ditto.
446         * complaints.c (vcomplaint): Ditto.
447
448 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
449
450         * infcmd.c (attach_command): Move call to target_terminal_inferior
451         behind loading symbol table.
452
453 2004-06-28  Andrew Cagney  <cagney@gnu.org>
454
455         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
456         change - add back extern deprecated_ui_loop_hook declaration.
457
458 2004-06-28  Andrew Cagney  <cagney@gnu.org>
459
460         * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
461         xstrprintf.
462         * varobj.c (varobj_gen_name, create_child, c_name_of_child)
463         (c_value_of_variable): Ditto.
464         * utils.c (internal_vproblem): Ditto.
465         * solib-aix5.c (build_so_list_from_mapfile): Ditto.
466         * remote.c (add_packet_config_cmd): Ditto.
467         * remote-rdp.c (rdp_set_command_line): Ditto.
468         * regcache.c (regcache_dump): Ditto.
469         * frv-tdep.c (new_variant, new_variant): Ditto.
470         * fbsd-proc.c (child_pid_to_exec_file): Ditto.
471         (fbsd_find_memory_regions): Ditto.
472         * breakpoint.c (create_thread_event_breakpoint) 
473         (create_breakpoints): Ditto.
474         * aix-thread.c (aix_thread_pid_to_str): Ditto.
475         * ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.
476
477 2004-06-28  Joel Brobecker  <brobecker@gnat.com>
478
479         * ada-lang.c: Re-indent file, with some massaging to help indent
480         a bit when the result is otherwise really too ugly.
481
482 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
483
484         * frame.h (struct frame_id): Change bit field type of stack_addr_p, 
485         code_addr_p and special_addr_p to 'unsigned int'.
486
487 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
488
489         * i386v4-nat.c: Update copyright year and tweak comment.
490         (regmap): Remove trailing comma.
491         (supply_gregset): Rename local variable i to regnum.  Call
492         regcache_raw_supply instead of supply_register.
493         (fill_gregset): Rename argument regno to regnum.  Call
494         regcache_raw_collect instead of regcache_collect.
495
496 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
497
498         * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
499         and special_addr_p.
500         (frame_id_build, frame_id_build_special): Update comments.
501         (frame_id_build_wild): New prototype.
502         * frame.c (frame_id_build, frame_id_build_special): Fill in new
503         struct frame_id fields.
504         (frame_id_build_wild): New function.
505         (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
506
507 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
508
509         * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
510         hppabsd-tdep.c.
511
512 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
513
514         * ada-lang.c: Minor reformatting to conform to GNU coding standards.
515
516 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
517
518         * ada-lang.c: Re-indent file.
519
520 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
521
522         * ada-lang.c (symtab_symbol_info): Remove unused declaration.
523         (no_symtab_msg): Likewise.
524
525 2004-06-27  Andreas Schwab  <schwab@suse.de>
526
527         * source.c: Fix whitespace.
528
529 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
530
531         * configure.in: Include <sys/param.h> for td_pcb test.
532         * configure: Regenerated.
533
534         * i386nbsd-nat.c: New file.
535         * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
536         i386obsd-nat.c and i386obsd-tdep.c.
537         (i386nbsd-nat.o): New dependency.
538         * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
539         bsd-kvm.o.
540         (LOADLIBES): New variable.
541         * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
542         bsd-kvm.o.
543         (LOADLIBES): New variable.
544
545         * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
546         (LOADLIBES): New variable.
547
548         * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
549         fetching from BSD_KVM_PADDR.  Correctly lookup address for
550         "_thread0".
551
552         * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
553         "bsd-kvm.h".
554         (amd64fbsd_supply_pcb): New funcion.
555         (_initialize_amd64fbsd_nat): Enable libkvm interface.
556
557 2004-06-27    <david@streamline-computing.com>
558
559         Partial fix for PR cli/1056.
560         * valarith.c: Check for zero in division and remainder 
561         evaluation.
562
563 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
564
565         * i387-tdep.c: Remove excessive whitespace.
566
567 2004-06-26  Andrew Cagney  <cagney@gnu.org>
568
569         * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
570         * gdb-events.h, gdb-events.c: Re-generate.
571         * tui/tui-hooks.c (tui_install_hooks): Update.
572         (tui_remove_hooks): Update.
573         * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
574
575 2004-06-26  Mark Kettenis  <kettenis@gnu.org>
576
577         * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
578         (gregset_t, fpregset_t): Remove typedefs.
579         (REG_OFFSET): Rename argument.
580         (amd64bsd_r_reg_offset): Rename from reg_offset.
581         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
582         Remove functions.
583         (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
584         of reg_offset.
585         * Makefile.in (amd64fbsd-nat.o): Update dependencies.
586
587         * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
588
589         * vax-tdep.c: Tweak comment.
590
591         Add OpenBSD/hppa support.
592         * NEWS (New native configurations): Mention OpenBSD/hppa.
593         * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
594         config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
595         files.
596         * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
597         (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
598         * configure.host: Add hppa*-*-openbsd*.
599         * configure.tgt: Add hppa*-*-openbsd*.
600
601 2004-06-25  Andrew Cagney  <cagney@gnu.org>
602
603         * defs.h (deprecated_ui_loop_hook): Deprecated.
604         * wince.c (child_wait): Update.
605         * win32-nat.c (child_wait): Update.
606         * v850ice.c (v850ice_wait): Update.
607         * top.c (deprecated_ui_loop_hook): Update.
608         * serial.h: Update.
609         * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
610         (do_unix_readchar): Update.
611         * ser-tcp.c (net_open): Update.
612         * remote-sim.c (gdb_os_poll_quit): Update.
613         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
614
615 2004-06-24  Andrew Cagney  <cagney@gnu.org>
616
617         * defs.h (deprecated_pre_add_symbol_hook)
618         (deprecated_post_add_symbol_hook): Deprecated.
619         * symfile.c (symbol_file_add_with_addrs_or_offsets) 
620         (symbol_file_add_with_addrs_or_offsets): Update references.
621
622 2004-06-24  Andrew Cagney  <cagney@gnu.org>
623
624         * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
625         (ui_loop_hook, selected_frame_level_changed_hook): Declare.
626         * wince.c (ui_loop_hook): Delete extern declaration.
627         * win32-nat.c (ui_loop_hook): Delete extern declaration..
628         * v850ice.c (ui_loop_hook): Delete extern declaration..
629         * ser-unix.c (ui_loop_hook): Delete extern declaration..
630         * ser-tcp.c (ui_loop_hook): Delete extern declaration..
631         * remote-sim.c (ui_loop_hook): Delete extern declaration..
632         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
633         ui_loop_hook declaration.
634
635 2004-06-24  Andrew Cagney  <cagney@gnu.org>
636
637         * objfiles.h (struct entry_info): Delete entry_func_lowpc and
638         entry_func_highpc fields.
639         * objfiles.c (init_entry_point_info): Do not clear
640         entry_func_lowpc and entry_func_highpc.
641         (objfile_relocate): Do not relocate entry_func_lowpc and
642         entry_func_highpc.
643         * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
644         entry_func_highpc.
645         * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
646         entry_func_highpc.
647         * blockframe.c (legacy_frame_chain_valid): Replace tests against
648         entry_func_lowpc and entry_func_highpc with call to
649         inside_entry_func.
650
651 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
652
653         * sparc64-tdep.c (sparc64_store_arguments): Fix passing
654         quad-precision floating point arguments in registers.
655
656 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
657
658         From Michael Mueller <m.mueller99@kay-mueller.de>:
659         * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
660         account.
661
662 2004-06-22  Jeff Johnston  <jjohnstn@redhat.com>
663
664         * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
665         to -1.
666         * breakpoint.c (bpstat_stop_status): Move check for ignoring
667         untriggered watchpoints to a separate if clause.  Update function
668         comment regarding STOPPED_BY_WATCHPOINT argument.
669
670 2004-06-22  Jim Blandy  <jimb@redhat.com>
671
672         * gdbarch.sh: Doc fix.
673
674 2004-06-21  Martin Hunt  <hunt@redhat.com>
675         Kevin Buettner <kevinb@redhat.com>
676
677         * config/mips/tm-mips.h (SP_REGNUM): Delete define.
678         * mips-tdep.h (MIPS_SP_REGNUM): Define.
679         * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
680         to set_gdbarch_sp_regnum().  Use cooked register number.
681         (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
682
683 2004-06-21  Andrew Cagney  <cagney@gnu.org>
684
685         * gdbarch.sh: When the macro field is empty, do not generate a
686         macro definition.  When the macro field is "=", generate the macro
687         name from the upper-case function name.
688         (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
689         (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
690         (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
691         (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
692         (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
693         (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
694         (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
695         (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
696         (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
697         (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
698         (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
699         (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
700         (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
701         (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
702         (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
703         (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
704         (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
705         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
706         (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
707         (DEPRECATED_USE_STRUCT_CONVENTION)
708         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
709         (DEPRECATED_FRAME_INIT_SAVED_REGS)
710         (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
711         (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
712         (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
713         (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
714         (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
715         (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
716         (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
717         (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
718         (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
719         (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
720         (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
721         (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
722         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
723         (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
724         (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
725         (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
726
727 2004-06-21  Andrew Cagney  <cagney@gnu.org>
728
729         * gdbarch.sh: For gdbarch_dump, print the "function" rather than
730         macro name, and the function rather than macro value.  Only wrap
731         macro print statements in #ifdef.  Move format logic to where it
732         is needed.
733         * gdbarch.c: Re-generate.
734         
735         * gdbarch.sh (read): Delete "print_p" and "description", add
736         "garbage_at_eol".  Check for non-empty garbage at end-of-line.
737         Delete references to print_p.
738         (TARGET_ARCHITECTURE): Delete print predicate.
739         * gdbarch.c: Re-generate.
740         
741         * gdbarch.sh: Check that multi-arch methods do not provide a
742         macro.
743         (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
744         (print_registers_info, print_float_info, print_vector_info)
745         (adjust_breakpoint_address, remote_translate_xfer_address)
746         (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
747         (address_class_type_flags_to_name, unwind_sp): Remove the macro
748         name from the multi-arch definition.
749         
750 2004-06-20  Andrew Cagney  <cagney@gnu.org>
751
752         * gdbarch.sh: Sort by the function, instead of macro name.
753         * gdbarch.c: Re-generate.
754         
755 2004-06-20  Andrew Cagney  <cagney@gnu.org>
756
757         * gdbarch.sh: Use the function, instead of macro name in
758         errors and the log file.
759         (return_value): Remove stray ":" in spec.
760
761         * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
762         * gdbarch.h, gdbarch.c: Re-generate.
763         * Makefile.in (arch-utils.o): Update dependencies.
764         * values.c (using_struct_return): Move code calling
765         USE_STRUCT_CONVENTION to legacy_return_value, simplify.
766         * stack.c (return_command): Move code calling STORE_RETURN_VALUE
767         to legacy_return_value, simplify.
768         * infcmd.c (print_return_value): Move code calling
769         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
770         to legacy_return_value, simplify.
771         * infcall.c (call_function_by_hand): Move code calling
772         EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
773         * arch-utils.c: Update copyright.  Include "gdbcore.h".
774         (legacy_return_value): New function.
775         * arch-utils.h: Update copyright.
776         (legacy_return_value): Declare.
777         
778 2004-06-20  Andrew Cagney  <cagney@gnu.org>
779
780         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
781         * gdbarch.h, gdbarch.c: Re-generate.
782         * values.c (using_struct_return): Update call.
783         * mcore-tdep.c: Update comment.
784         * infcall.c (call_function_by_hand): Update comment.
785         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
786         * arch-utils.h (always_use_struct_convention): Update.
787         * v850-tdep.c (v850_gdbarch_init): Update.
788         * sh64-tdep.c (sh64_gdbarch_init): Update.
789         * sh-tdep.c (sh_gdbarch_init): Update.
790         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
791         * mips-tdep.c (mips_gdbarch_init): Update.
792         * mcore-tdep.c (mcore_gdbarch_init): Update.
793         * m32r-tdep.c (m32r_gdbarch_init): Update.
794         * ia64-tdep.c (ia64_gdbarch_init): Update.
795         * h8300-tdep.c (h8300_gdbarch_init): Update.
796         * frv-tdep.c (frv_gdbarch_init): Update.
797         * cris-tdep.c (cris_gdbarch_init): Update.
798         * arm-tdep.c (arm_gdbarch_init): Update.
799         * alpha-tdep.c (alpha_gdbarch_init): Update.
800
801 2004-06-18  Michael Chastain  <mec.gnu@mindspring.com>
802
803         * PROBLEMS: Add more specific information, and a work-around,
804         for PR gdb/1458.
805
806 2004-06-18  Andrew Cagney  <cagney@gnu.org>
807
808         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
809         * gdbarch.h, gdbarch.c: Re-generate.
810         * ada-lang.c (ada_finish_decode_line_1): Update.
811         * infrun.c (handle_inferior_event): Update.
812         * infcall.c (find_function_addr): Update.
813         * linespec.c (minsym_found): Update.
814         * symtab.c (find_function_start_sal, skip_prologue_using_sal):
815         Update.
816         * blockframe.c (legacy_frameless_look_for_prologue): Update.
817         * cli/cli-cmds.c (disassemble_command): Update.
818         * vax-tdep.c (vax_gdbarch_init): Update.
819
820 2004-06-18  Mark Kettenis  <kettenis@gnu.org>
821
822         * i386-tdep.c (i386_collect_fpregset): Fix comment.
823
824 2004-06-17  Andrew Cagney  <cagney@gnu.org>
825
826         GDB 6.1.1 released from the GDB 6.1 branch.
827         * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
828         * PROBLEMS: Ditto.
829
830 2004-06-16  Daniel Jacobowitz  <dan@debian.org>
831
832         PR gdb/1658
833         * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
834         operation as a uleb128.  Found by Michael Coulter.
835
836 2004-06-16  Paul N. Hilfinger  <Hilfinger@gnat.com>
837         
838         * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
839         make it non-static.
840         * ada-lang.h (task_control_block): declaration moved from ada-task.c
841         to ada-lang.h; this is needed to be able to implement the kill command
842         in multi-task mode.
843         (task_ptid): Ditto.
844         (task_entry): Ditto.
845         (task_list): Ditto.
846         (ada_build_task_list): Ditto.
847         
848         * ada-lang.c: Conditionalize routines and data structures related 
849         to breakpoints, exceptions, completion, and symbol caching on 
850         GNAT_GDB, since these are not yet used in the submitted public sources.
851         (ada_main_name): Editorial: Move definition out of exception-related 
852         code.
853
854 2004-06-15  Andrew Cagney  <cagney@gnu.org>
855
856         * mips-tdep.c (non_heuristic_proc_desc): Delete call to
857         deprecated_pc_in_call_dummy.
858
859 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
860
861         * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
862         bfd_get_section_size_before_reloc or _raw_size.
863         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
864         * dwarf2read.c (dwarf2_locate_sections): Likewise.
865         (dwarf2_read_section): Likewise.
866         * elfread.c (elf_locate_sections): Likewise.
867         * gcore.c (derive_heap_segment): Likewise.
868         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
869         * remote-e7000.c (e7000_load): Likewise.
870         * remote-m32r-sdi.c (m32r_load): Likewise.
871         * remote-mips.c (mips_load_srec): Likewise.
872         (pmon_load_fast): Likewise.
873         * remote.c (compare_sections_command): Likewise.
874         * symfile.c (add_section_size_callback): Likewise.
875         (load_section_callback): Likewise.
876         (pc_in_unmapped_range): Likewise.
877         (pc_in_mapped_range): Likewise.
878         (sections_overlap): Likewise.
879         (list_overlays_command): Likewise.
880         (simple_overlay_update_1): Likewise.
881         (simple_overlay_update): Likewise.
882         * tracepoint.c (remote_set_transparent_ranges): Likewise.
883         * win32-nat.c (core_section_load_dll_symbols): Likewise.
884
885 2004-06-14  Randolph Chung  <tausq@debian.org>
886
887         * Makefile.in (hppa-hpux-tdep.o): Update dependency.
888         * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make 
889         static.
890         (hppa_hpux_inferior_created): New function.
891         (hppa_hpux_init_abi): Register observer.
892         * symfile.c (hp_cxx_exception_support_initialized)
893         (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
894         (symbol_file_add_main_1, symbol_file_clear): Likewise.
895
896 2004-06-14  Randolph Chung  <tausq@debian.org>
897
898         * MAINTAINERS (Write After Approval): Alphabetize my entry
899         correctly.
900
901 2004-06-14  Andrew Cagney  <cagney@gnu.org>
902
903         * MAINTAINERS (testsuite): List Michael Chastain as the lead
904         testsuite maintainer.
905
906 2004-06-13  Andrew Cagney  <cagney@gnu.org>
907
908         * infcmd.c (print_return_value): Fix logic, allow
909         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
910
911         * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
912         defining any macros.
913         * gdbarch.h: Re-generate.
914
915         * gdbarch.sh: Delete "level" attribute.  Only check for a macro
916         redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
917         * gdbarch.h: Re-generate.
918
919         * values.c (generic_use_struct_convention): Don't check gcc_p.
920
921         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
922         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
923         * gdbarch.h, gdbarch.c: Regenerate.
924         * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE) 
925         (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
926         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
927         deprecated_max_register_raw_size and
928         deprecated_max_register_virtual_size.
929         * v850-tdep.c (v850_gdbarch_init): Ditto.
930         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
931         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
932         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
933         * cris-tdep.c (cris_gdbarch_init): Ditto.
934
935         * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
936         * gdbarch.h, gdbarch.c: Re-generate.
937         * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
938         (m68hc11_use_struct_convention): Delete function.
939         (m68hc11_extract_struct_value_address): Delete function.
940         (m68hc11_return_value): New function.
941         (m68hc11_gdbarch_init): Instead of store_return_value,
942         extract_return_value, return_value_on_stack,
943         deprecated_extract_struct_value_address and use_struct_convention,
944         set return_value.
945         * values.c (using_struct_return): Do not call
946         RETURN_VALUE_ON_STACK.
947         * arch-utils.h (generic_return_value_on_stack_not): Delete
948         declaration.
949         * arch-utils.c (generic_return_value_on_stack_not): Delete
950         function.
951         
952 2004-06-12  Andrew Cagney  <cagney@gnu.org>
953
954         * values.c (register_value_being_returned): Delete function.
955         * infcmd.c (legacy_return_value): Delete function.
956         * infcall.c (call_function_by_hand): Inline
957         "register_value_being_returned", simplify.
958         * values.c (using_struct_return): Update comment, refer to
959         print_return_value instead of register_value_being_returned.
960         * infcmd.c (print_return_value): Inline calls to
961         register_value_being_returned and legacy_return_value.  Simplify.
962
963 2004-06-11  Randolph Chung  <tausq@debian.org>
964
965         * somread.c (som_symtab_read): Exclude gcc local symbols.
966
967 2004-06-11  Randolph Chung  <tausq@debian.org>
968
969         * infrun.c (handle_inferior_event): Handle the case when a
970         trampoline ends up in the runtime resolver, and if the trampoline
971         has no name.  Rearrange the code so that all the trampoline
972         processing happens before other step-out-of-range handling.
973
974 2004-06-11  Martin Hunt  <hunt@redhat.com>
975
976         * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
977         has no fpu.
978
979 2004-06-10  Andrew Cagney  <cagney@gnu.org>
980
981         * blockframe.c (legacy_inside_entry_func): Delete.
982         (legacy_frame_chain_valid): Inline call to
983         legacy_inside_entry_func, simplify.
984
985 2004-06-10  Bob Rossi  <bob@brasko.net>
986
987         * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
988         * dwarf2read.c (partial_die_info): Add dirname field.
989         (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
990         (read_partial_die): Save away DW_AT_comp_dir.
991         * defs.h (symtab_to_filename): Removed.
992         * source.c (find_and_open_source): Added.
993         (open_source_file): Just calls find_and_open_source.
994         (symtab_to_filename): Removed.
995         (symtab_to_fullname, psymtab_to_fullname): Added.
996         * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
997         * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
998         symtab_to_filename.
999         * symtab.h (partial_symtab): Add dirname field.
1000         * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
1001         (mi_cmd_file_list_exec_source_file): Call new function
1002         symtab_to_fullname to find fullname.
1003         (mi_cmd_file_list_exec_source_files): Added.
1004         * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
1005         * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
1006
1007 2004-06-10  Andrew Cagney  <cagney@gnu.org>
1008
1009         * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
1010         to generic_use_struct_convention, the default value.
1011
1012         * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
1013         of abort.
1014
1015         * ns32k-tdep.c (ns32k_push_arguments): New function.
1016         (ns32k_gdbarch_init): Set deprecated_push_arguments.
1017         * infcall.c (call_function_by_hand): Call error instead of
1018         legacy_push_arguments.
1019         * value.h (legacy_push_arguments): Delete declaration.
1020         * valops.c (legacy_push_arguments): Delete function.
1021         (value_push): Delete function.
1022
1023 2004-06-10  Brian Ford  <ford@vss.fsi.com>
1024
1025         * coffread.c (coff_symfile_read): Prevent mixed debugging formats
1026         from corrupting/reinitializing the psymtab.  Support DWARF 2 frame
1027         info.
1028         * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
1029
1030 2004-06-10  Andrew Cagney  <cagney@gnu.org>
1031
1032         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
1033         * gdbarch.h, gdbarch.c: Re-generate.
1034         * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
1035         parameters.
1036         * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
1037         * arm-tdep.c (arm_pc_is_thumb_dummy): Call
1038         deprecated_pc_in_call_dummy instead of
1039         DEPRECATED_PC_IN_CALL_DUMMY.
1040         (arm_skip_prologue): Ditto.
1041         * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
1042         (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
1043         * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
1044         (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
1045         Ditto.
1046         * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr) 
1047         (sh64_init_extra_frame_info, sh64_get_saved_register) 
1048         (sh64_pop_frame): Ditto.
1049         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
1050         * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc) 
1051         (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
1052         * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc) 
1053         (h8300_pop_frame): Ditto.
1054         * blockframe.c (legacy_inside_entry_func) 
1055         (legacy_frame_chain_valid): Ditto.
1056         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
1057         to deprecated_pc_in_call_dummy.
1058         
1059 2004-06-09  Andrew Cagney  <cagney@gnu.org>
1060
1061         * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
1062         provide a default value.
1063         (CONVERT_REGISTER_P): Default to generic_convert_register_p.
1064         * gdbarch.h, gdbarch.c: Re-generate.
1065         * arch-utils.c (generic_convert_register_p): Rename
1066         legacy_convert_register_p
1067         (legacy_register_to_value, legacy_value_to_register): Delete
1068         functions.
1069         * arch-utils.h (generic_convert_register_p): Rename
1070         legacy_convert_register_p.
1071         (legacy_register_to_value, legacy_value_to_register): Delete
1072         declarations.
1073
1074         * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
1075         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
1076         (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
1077         * gdbarch.h, gdbarch.c: Re-generate.
1078         * infcmd.c (default_print_registers_info): Simplify.
1079         * findvar.c (value_of_register): Simplify.
1080         * mi/mi-main.c (get_register): Simplify.
1081         * arch-utils.c (legacy_convert_register_p): Always return 0.
1082         (legacy_register_to_value, legacy_value_to_register): Always call
1083         internal_error.
1084
1085         * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
1086         #ifdef CLEAR_INSN_CACHE code.
1087         * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
1088         Delete #ifdef CLEAR_DEFERRED_STORES code.
1089
1090         * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
1091
1092         * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
1093         copyright.
1094         * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
1095
1096         * config/mips/mipsv4.mh: Delete file.
1097
1098         * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
1099         unreferenced macro.
1100         (hpread_adjust_stack_address): Delete declaration.
1101
1102 2004-06-08  Andrew Cagney  <cagney@gnu.org>
1103
1104         * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
1105         (attach, detach): When neither PT_ATTACH / PT_DETACH nor
1106         PTRACE_ATTACH / PTRACE_DETACH available call error.
1107         (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
1108         * infttrace.c (update_thread_state_after_attach, attach, detach):
1109         Remove #ifdef wrappers.
1110         * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
1111         * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
1112         * config/nm-bsd.h (ATTACH_DETACH): Delete.
1113         * config/nm-sysv4.h (ATTACH_DETACH): Delete.
1114         * config/nm-nbsd.h (ATTACH_DETACH): Delete.
1115         * config/nm-linux.h (ATTACH_DETACH): Delete.
1116         * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
1117         * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
1118         * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
1119         * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
1120         * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
1121
1122 2004-06-08  Corinna Vinschen  <vinschen@redhat.com>
1123
1124         * configure.in: Set $configdir to the right OS specific value.
1125         Use value when setting $tcldir and $tkdir.
1126         * configure: Regenerate.
1127
1128 2004-06-06  Paul Brook  <paul@codesourcery.com>
1129
1130         * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
1131         records.
1132
1133 2004-06-08  Paul N. Hilfinger  <Hilfinger@gnat.com>
1134
1135         * ada-lang.c (lookup_symbol_in_language): New function to allow
1136         re-use of another language's symbol lookup code.  (Placed here
1137         temporarily while Ada support is being integrated into the public
1138         tree).  
1139         (restore_language): New auxiliary function for 
1140         lookup_symbol_in_language.
1141         * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
1142         temporarily while Ada support is being integrated into the public
1143         tree).
1144         
1145 2004-06-08  Alexandre Oliva  <aoliva@redhat.com>
1146
1147         * Makefile.in (check//%): New.
1148
1149         * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
1150         (mn10300_store_return_value): Rewrite.
1151         (mn10300_type_align): New.
1152         (mn10300_use_struct_convention): Rewrite.
1153         (mn10300_return_value): New, using all of the above.
1154         (mn10300_pop_frame_regular): Add saved_regs_size.
1155         (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
1156
1157         * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
1158         regs if PC is on movm.
1159
1160 2004-06-07  Jim Blandy  <jimb@redhat.com>
1161
1162         Add native Linux support for the PowerPC E500.
1163         * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
1164         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
1165         all architectures except the E500.
1166         * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
1167         #definitions.
1168         (struct gdb_evrregset_t): New type.
1169         (have_ptrace_getsetevrregs): New variable.
1170         (get_spe_registers, read_spliced_spe_reg, fetch_spe_register, 
1171         fetch_spe_registers): New functions.
1172         (fetch_register): Call fetch_spe_register as appropriate.
1173         Assert that we're only passed raw register numbers.
1174         (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
1175         Don't fetch gprs if they're pseudoregisters.
1176         (set_spe_registers, write_spliced_spe_reg, store_spe_register,
1177         store_spe_registers): New functions.
1178         (store_register): Call store_spe_register as appropriate.
1179         Assert that we're only passed raw register numbers.
1180         (store_ppc_registers): Call store_spe_registers as appropriate.
1181         Don't store gprs if they're pseudoregisters.
1182         
1183 2004-06-07  Jeff Johnston  <jjohnstn@redhat.com>
1184
1185         * thread-db.c (thread_get_info_callback): Fill in the thread_info
1186         struct if one exists, even if we are dealing with a zombie thread.
1187
1188 2004-06-07  Andrew Cagney  <cagney@gnu.org>
1189
1190         * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
1191         * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
1192         Rename PC_REQUIRES_RUN_BEFORE_USE.
1193         * breakpoint.c (breakpoint_sals_to_pc): Update.  Wrap reference in
1194         #ifdef.
1195
1196 2004-06-07  Randolph Chung  <tausq@debian.org>
1197
1198         * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
1199         unwinding after sp has been saved to the stack but before the end
1200         of the prologue, and after the fp has been modified but before it has
1201         been saved to the stack.
1202         (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): 
1203         Remove superfluous definitions.
1204         (hppa_gdbarch_init): Remove superfluous frame base sniffer.
1205
1206 2004-06-07  Guy Martin  <gmsoft@gentoo.org>
1207
1208         Committed by Randolph Chung.
1209         * hppa-linux-nat.c: Include the correct version of the header file
1210         depending on the kernel version.
1211
1212 2004-06-06  Randolph Chung  <tausq@debian.org>
1213
1214         * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
1215         (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
1216
1217 2004-06-06  Randolph Chung  <tausq@debian.org>
1218
1219         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) 
1220         (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
1221         * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
1222         * hppa-tdep.c (hppa_symbol_address): New function definition.
1223         * hppa-tdep.h (hppa_symbol_address): New function declaration.
1224
1225 2004-06-06  Randolph Chung  <tausq@debian.org>
1226
1227         * hppa-tdep.h (struct value): Forward declaration.
1228         (gdbarch_tdep): Define tdep find_global_pointer method.
1229         * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
1230         associated with the function we are trying to call, and write it
1231         to the gp register.
1232         (hppa32_convert_from_funct_ptr_addr): New function.
1233         (hppa_find_global_pointer): New function.
1234         (hppa_gdbarch_init): Set default find_global_pointer method; set
1235         convert_from_func_ptr_addr method.
1236         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
1237         (hppa_linux_init_abi): Set find_global_pointer method.
1238         * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
1239
1240 2004-06-06  Randolph Chung  <tausq@debian.org>
1241
1242         * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
1243         to struct value *function.
1244         * gdbarch.c: Regenerate.
1245         * gdbarch.h: Likewise.
1246         * infcall.c (call_function_by_hand): Pass entire function value
1247         to push_dummy_call.
1248
1249         * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
1250         (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
1251         * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
1252         * amd64-tdep.c (amd64_push_dummy_call): Likewise.
1253         * arm-tdep.c (arm_push_dummy_call): Likewise.
1254         * avr-tdep.c (avr_push_dummy_call): Likewise.
1255         * cris-tdep.c (cris_push_dummy_call): Likewise.
1256         * d10v-tdep.c (d10v_push_dummy_call): Likewise.
1257         * frv-tdep.c (frv_push_dummy_call): Likewise.
1258         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1259         * hppa-tdep.c (hppa32_push_dummy_call)
1260         (hppa64_push_dummy_call): Likewise.
1261         * i386-tdep.c (i386_push_dummy_call): Likewise.
1262         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
1263         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
1264         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1265         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
1266         * m88k-tdep.c (m88k_push_dummy_call): Likewise.
1267         * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1268         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
1269         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1270         (ppc64_sysv_abi_push_dummy_call): Likewise.
1271         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
1272         (ppc64_sysv_abi_push_dummy_call): Likewise.
1273         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1274         * s390-tdep.c (s390_push_dummy_call): Likewise.
1275         * sh-tdep.c (sh_push_dummy_call_fpu)
1276         (sh_push_dummy_call_nofpu): Likewise.
1277         * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
1278         * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
1279         * vax-tdep.c (vax_push_dummy_call): Likewise.
1280
1281 2004-06-04  Jim Blandy  <jimb@redhat.com>
1282
1283         * ppc-linux-nat.c (fetch_register): Don't forget to pass the
1284         gdbarch argument to register_size.
1285
1286         * rs6000-tdep.c (rs6000_store_return_value): Use
1287         regcache_cooked_write_part instead of
1288         deprecated_write_register_bytes.
1289         (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
1290         not gdbarch_deprecated_store_return_value.
1291
1292         * ppc-linux-nat.c (store_register, fetch_register): Remove
1293         incorrect assertions.  Simplify and generalize handling of
1294         transfers whose sizes are not multiples of, or less than, sizeof
1295         (PTRACE_XFER_TYPE).
1296
1297 2004-06-04  Jeff Johnston  <jjohnstn@redhat.com>
1298
1299         * infrun.c (handle_inferior_event): Don't treat an invalid ptid
1300         as a new thread event.
1301         * thread-db.c (thread_get_info_callback): If the thread is a
1302         zombie, return TD_THR_ZOMBIE.
1303         (thread_from_lwp): If thread_get_info_callback returns
1304         TD_THR_ZOMBIE, check if the thread is still on the thread list
1305         and return a -1 ptid if not found.
1306         (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
1307         change the status to TARGET_WAITKIND_SPURIOUS.
1308
1309 2004-06-03  Corinna Vinschen  <vinschen@redhat.com>
1310
1311         * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
1312         double values in little endian mode.
1313
1314 2004-06-02  Albert Chin-A-Young  <china@thewrittenword.com>
1315
1316         Committed by Andrew Cagney.
1317         * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
1318         after last enum constant to avoid error from IBM C
1319         compiler.
1320
1321 2004-06-02  Jim Blandy  <jimb@redhat.com>
1322
1323         * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
1324         to 'message', and make it local to the lone block that uses it.
1325
1326         * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
1327
1328 2004-06-02  Paul N. Hilfinger  <hilfinger@gnat.com>
1329
1330         * ada-exp.y: Update copyright notice.
1331         Include block.h.
1332         
1333         Replace REGNAME, LAST, INTERNAL_VARIABLE with
1334         SPECIAL_VARIABLE and unify the treatment of these cases.
1335
1336         (write_attribute_call0): Remove.
1337         (write_attribute_call1): Remove.
1338         (write_attribute_calln): Remove.
1339         (save_qualifier): Add missing semicolon.
1340
1341         (simple_exp,exp): Decomment (i.e., reactivate) code that was 
1342         temporarily disabled to allow compilation with FSF head version.
1343
1344         (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and 
1345         use individual operators (OP_*) for all attributes.
1346         (exp syntax): Use write_int.
1347         Handle STRING literals with OP_STRING.
1348         (variable syntax): Add limit parameter to calls to 
1349         write_object_renaming.  
1350
1351         (temp_parse_space): New definition to hold entities that need
1352         only live until the next call to ada_parse.
1353         (string_to_operator): Rename fields of ada_opname_table entries.
1354
1355         (write_var_from_sym): Record block.
1356         (write_var_from_name): Minor reformatting.
1357         Make sure saved name is properly encoded in the case of multiple 
1358         matches, and set its language to Ada.
1359         Update comment.
1360         Modify to indicate unresolved name as symbol in the UNRESOLVED 
1361         namespace, allocated in temp_parse_space.
1362         (write_int): New function.
1363
1364         (write_object_renaming): Add max_depth parameter to limit
1365         chains of object renamings.
1366         Handle case where root of renaming expression is itself a renaming.
1367         Use temp_parse_space for temporary name buffer.
1368         Handle renamings to dereferenced pointers (___XEXA suffices).
1369         
1370         (ada_parse, yyerror, string_to_operator, 
1371         write_var_from_sym, write_var_from_name, write_attribute_call0, 
1372         write_attribute_call1, write_attribute_calln, 
1373         write_object_renaming): Protoize.
1374
1375         (_initialize_ada_exp): New function.
1376         
1377         * ada-lang.c: Update copyright notice.
1378         General terminology change to conform to GNAT compiler usage:
1379         mangle => encode, demangle => decode
1380         Include gdb_obstack.h.
1381         Include gdb_regex.h
1382         Include frame.h
1383         Include hashtab.h
1384         Include completer.h
1385         Include gdb_stat.h
1386         Include block.h
1387         Include infcall.h
1388         
1389         (ADA_RETAIN_DOTS): Make sure this is defined.
1390         (TRUNCATION_TOWARDS_ZERO): Define.
1391         (struct string_vector): Define.
1392         (unresolved_names): Remove definition.
1393         (xnew_string_vector): New function.
1394         (string_vector_append): New function.
1395         (extract_string): Make static.
1396         (ada_unqualified_name): New function.
1397         (add_angle_brackets): New function.
1398         (function_name_from_pc): New function.
1399         (place_on_stack): Rename to ensure_lval.
1400
1401         (ensure_lval): Renamed from place_on_stack.
1402         Make identity on lvals.
1403         Update comment.
1404         (is_nonfunction): New interface.
1405         Only symbols in LOC_CONST class can be enumerals.
1406         (fill_in_ada_prototype): Remove; now independent of language.
1407         (add_defn_to_vec): Add obstack and symtab arguments.
1408         Use obstack to hold collected definitions.
1409         (num_defns_collected): New function.
1410         (defns_collected): New function.
1411         (ada_resolve_subexp): Rename to resolve_subexp.
1412         (resolve_subexp): Renamed from ada_resolve_subexp.
1413         (ada_op_name): Return non-const result.
1414         (ada_decoded_op_name): Renamed from ada_op_name, now used for
1415         other purposes.
1416
1417         (to_fixed_array_type): Add declaration.
1418         (coerce_unspec_val_to_type): Remove offset parameter.
1419         (find_sal_from_funcs_and_line): New interface.
1420         (find_line_in_linetable): Ditto.
1421
1422         (all_sals_for_line): Rename to ada_sals_for_line and make
1423         global.
1424         Add new parameter. When set, do not ask the user to choose the 
1425         instance, but use the first one found instead.
1426         Use given line number in returned sals.
1427         Fix comment. 
1428         Skip the prologue if funfirstline is set.
1429         Correct for memory leak when 0 lines found.
1430
1431         (value_pos_atr): Use pos_atr.
1432         (pos_atr): New function.
1433         (standard_lookup): Add block parameter.
1434
1435         (makeTimeStart): Remove declaration and uses.
1436         (makeTimeStop): Remove declaration and uses.
1437
1438         (ada_completer_word_break_characters): Allow for VMS.
1439         (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
1440         (raise_sym_name): New constant.
1441         (raise_unhandled_sym_name): New constant.
1442         (raise_assert_sym_name): New constant.
1443         (process_raise_exception_name): New constant.
1444         (longest_exception_template): New constant.
1445         (warning_limit): New variable to limit warnings during expression
1446         evaluation.
1447         (warnings_issued): New variable to keep track of warnings issued.
1448         (known_runtime_file_name_patterns): New constant.
1449         (known_auxiliary_function_name_patterns): New constant.
1450         (symbol_list_obstack): New variable.
1451         
1452         (field_name_match,is_suffix,is_suppressed_name,ada_encode,
1453         ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
1454         lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
1455         find_sal_from_funcs_and_line, ada_breakpoint_rewrite, 
1456         ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field, 
1457         ada_variant_discrim_name, field_alignment, dynamic_template_type,
1458         ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type): 
1459         Replace use of deprecated STREQ and STREQN macros by calls to strncmp 
1460         and strcmp. 
1461
1462         (ada_get_field_index): New function.
1463         (lim_warning): New function.
1464         (ada_translate_error_message): New function.
1465         (MAX_OF_SIZE): New function.
1466         (MIN_OF_SIZE): New function.
1467         (UMAX_OF_SIZE): New function.
1468         (UMIN_OF_SIZE): New function.
1469         (discrete_type_high_bound): New function.
1470         (discrete_type_low_bound): New function.
1471         (base_type): New function.
1472         (do_command): Remove.
1473         
1474         (ada_update_initial_language): Use language_ada, not language_unknown.
1475         (ada_encode): Renamed from ada_mangle.
1476         Obey ADA_RETAIN_DOTS.
1477         (ada_decode): Renamed from ada_demangle.
1478         Update coding conventions.
1479         (decoded_names_store): New hash table.
1480         (ada_decode_symbol): New function.
1481         (ada_la_decode): New function.
1482         
1483         (modify_general_field): Correct computations of offset and bit 
1484         position.
1485         (desc_base_type): Handle ref types, too.
1486         (ada_is_direct_array_type): New function.
1487
1488         (ada_is_simple_array): Rename to ada_is_simple_array_type.
1489         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
1490         (ada_is_bogus_array_descriptor,ada_type_of_array,
1491         ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
1492         ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed 
1493         ada_is_array_descriptor_type.
1494         
1495         (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
1496         (ada_is_packed_array_type): Handle pointers or 
1497         references to packed arrays as well.
1498         (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
1499         (decode_packed_array_type): Search for the packed array type 
1500         symbol in the currently selected block and associated 
1501         superblocks too.
1502         Use lookup_symbol again.
1503
1504         (decode_packed_array): Handle pointers and references.
1505         Update call to coerce_unspec_val_to_type.
1506         (decode_packed_array_type,value_subscript_packed): Limit warnings.
1507         (ada_value_primitive_packed_val): Improve comment.
1508         
1509         (ada_index_type): Substitute int type for "undefined".
1510         (ada_index_type,ada_array_bound_from_type,ada_array_bound,
1511         ada_array_langth, ada_is_string_type): Use renamed 
1512         ada_is_simple_array_type.
1513         (empty_array): New function.
1514
1515         (ada_resolve):  Rename to resolve.
1516         (resolve): Make static.
1517         Call renamed resolve_subexp.
1518         Update comment.
1519         (ada_resolve_subexp): Rename to resolve_subexp.
1520         (resolve_subexp): Update comment.
1521         Decomment disabled code.
1522         Add LOC_COMPUTED* cases.
1523         Modify to use temporary struct symbols (marked as being in 
1524         UNDEF_NAMESPACE) to indicate unresolved names, instead of 
1525         OP_UNRESOLVED_VALUE.
1526         Remove OP_ATTRIBUTE; use individual opcodes for attributes.     
1527         Add OP_STRING case.
1528         Remove OP_ARRAY.
1529         Use SYMBOL_PRINT_NAME instead of ada_demangle.
1530         Use new ada_lookup_symbol_list interface.
1531         Use new ada_resolve_function interface.
1532         Remove OP_TYPE case.
1533
1534         (ada_args_match): Idiot proof against null actuals.
1535         Use intermediate variables to clarify.
1536         (ada_resolve_function): Update comment and interface.
1537         (mangled_ordered_before): Rename to encoded_ordered_before and
1538         update comment.
1539         (sort_choices): Update comment and interface.
1540         Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
1541         (user_select_syms): New interface.
1542         Use new sort_choices interface.
1543         Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
1544         (possible_user_operator_p): Idiot-proof against null values.
1545         (ada_simple_renamed_entity): Don't make cleanup; rely on 
1546         caller to free result string.
1547         Remove const from return type.
1548         (make_array_descriptor): Rename uses of place_on_stack to 
1549         ensure_lval.
1550         Make sure that arrays are on stack.
1551         
1552         (HASH_SIZE): Define.
1553         (struct cache_entry): Define.
1554         (cache_space): Define.
1555         (cache): Define.
1556         (clear_ada_sym_cache): New function.
1557         (find_entry): New function.
1558         (lookup_cached_symbol): New function.
1559         (defn_vector_size): Define.
1560         (cache_symbol): New function.
1561         (defn_symbols): Remove.
1562         
1563         (standard_lookup): Use lookup_symbol_in_language to get effect of
1564         C lookup.
1565         Cache results.
1566         
1567         (symbol_completion_match): New function.
1568         (symbol_completion_add): New function.
1569         (ada_make_symbol_completion_list): New function.
1570
1571         (ada_lookup_partial_symbol,ada_lookup_simple_minsym, 
1572         add_symbols_from_enclosing_procs,remove_extra_symbols): Replace 
1573         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME. 
1574         (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
1575         
1576         (ada_lookup_simple_minsym): New function.
1577         (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
1578
1579         (add_symbols_from_enclosing_procs): New interface.
1580         Conditionalize more helpfully.
1581         Don't bother if program isn't running.
1582         Use new interface to get_frame_block.
1583         Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
1584         
1585         (remove_extra_symbols): New interface.
1586         (xget_renaming_scope): New function.
1587         (is_package_name): New function.
1588         (renaming_is_visible): New function.
1589         (remove_out_of_scope_renamings): New function.
1590
1591         (ada_lookup_symbol_list): New interface.
1592         Properly reinitialize the symbol list obstack.
1593         Don't call add_symbols_from_enclosing_procs if we start from a
1594         static or global block.
1595         Use new interfaces to ada_add_block_symbols, add_defn_to_vec, 
1596         add_symbols_from_enclosing_procs.
1597         Add symtab data to cached entries.
1598         Handle symbols prefixed with
1599         "standard__" specially; strip prefix and don't look in local symbols.
1600         Do not include out of scope renaming symbols in list of 
1601         symbols returned.
1602         Add const to block parameter.
1603         Move check for non-local, non-global symbols earlier.  
1604         Remove timing stuff.
1605         (ada_lookup_symbol): New interface.
1606         Find symtab as well.
1607         (ada_lookup_symbol_nonlocal): New function.
1608
1609         (is_name_suffix): Enhance suffix detection to recognize
1610         an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
1611         (is_dot_digits_suffix): New function.
1612         (wild_match): Ignore ".[:digit:]*" suffixes during matches.
1613         
1614         (ada_add_block_symbols): New interface.  Use obstack to return results
1615         in a vector of struct ada_symbol_infos.  Add symtab argument.
1616         Use new interface to add_defn_to_vec.
1617         Remove calls to fill_in_ada_prototype.
1618         Use BLOCK_BUCKETS, BLOCK_BUCKET.
1619         
1620         (ada_finish_decode_line_1): Add const qualification to local to fix
1621         warning.
1622         Start looking in static block for functions to avoid attempts 
1623         to search frame chain for up-level variables.
1624         Adapt to new ada_sals_for_line interface.
1625         Use new interfaces to ada_lookup_symbol_list and user_select_syms.
1626         Handle quoting of the function name inside the spec string.
1627         Skip prologue when funfirstline is set and update the 
1628         function documentation to that effect.
1629
1630         (debug_print_lines, debug_print_block, debug_print_blocks, 
1631         debug_print_symtab): Remove.
1632
1633         (ada_main_name): New function.  
1634         (ada_exception_breakpoint_type): New function.
1635         (is_known_support_routine): New function.
1636         (ada_find_printable_frame): Renamed from find_printable_frame and made
1637         global.
1638         Remove level parameter.
1639         Use new interface to select_frame.
1640
1641         (begin_command): Remove.
1642         (ada_adjust_exception_stop): New function.
1643         (ada_print_exception_stop): New function.
1644         (exception_name_from_cond): New function.
1645         (ada_report_exception_break): Replace disabled code with 
1646         conditionalization on GNAT_GDB.
1647         Get the exception name from the condition string.
1648         Remove and move functionality into new functions 
1649         ada_print_exception_breakpoint_task and 
1650         ada_print_exception_breakpoint_nontask.
1651         (error_breakpoint_runtime_sym_not_found): New function.
1652         (is_runtime_sym_defined): New function.
1653         (ada_breakpoint_rewrite): Uncomment suppressed code.
1654         Use symbolic error-message and runtime-symbol names.
1655         Surround runtime symbol names in quotes.
1656         Allow non-specific breakpoints on exceptions and assertions before
1657         program starts.
1658         
1659         (ada_is_tagged_type): Add parameter.
1660         (ada_is_tag_type): New function.
1661         (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
1662         (ada_variant_discrim_type): Ditto.
1663         (value_tag_from_contents_and_address): New function.
1664         (type_from_tag): New function.
1665         (struct tag_args): New structure used to communicate with
1666         ada_tag_name_1.
1667         (ada_tag_name_1): New function.
1668         (ada_tag_name): New function.
1669
1670         (ada_scan_number): Update comment.
1671         (find_struct_field): New function.
1672         (ada_search_struct_field): Make static.
1673         (ada_value_struct_elt): New version that returns references when
1674         given pointers or references to structs.
1675         (ada_lookup_struct_elt_type): Add 'refok' parameter.
1676         (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
1677         interface.
1678         (ada_value_ind): Use new ada_to_fixed_value interface.
1679         (ada_coerce_ref): Ditto.
1680         (field_offset): Remove.
1681
1682         (ada_find_any_symbol): New function, extracted from ada_find_any_type.
1683         (ada_find_renaming_symbol): New function.
1684         (ada_prefer_type): Prefer named types over unnamed ones.
1685         (variant_field_index): New function.
1686         (contains_variant_part): Removed: subsumed by variant_field_index.
1687         (ada_template_to_fixed_record_type): New function, mostly from
1688         template_to_fixed_record_type.
1689         (template_to_fixed_record_type): 
1690         Do not scan the type fields beyond the last one; prevents a 
1691         potential SEGV.
1692         Handle case where variant field is listed BEFORE discriminant it 
1693         depends on.
1694         Fix calculation of record length when bit length is 
1695         not evenly divisible by char length.
1696         Move code to ada_template_to_fixed_record_type and call it.
1697
1698         (template_to_static_fixed_type): Revise comment.  
1699         Modify to work on ordinary record types as well as templates, 
1700         so as to handle fields that use ___XVE or ___XVU encodings. 
1701         (to_record_with_fixed_variant_part): Fill out comment.
1702         Initialize C++ stuff in right type.
1703         Allow case where DVAL is null.
1704         Handle case where variant field is not last.
1705         Fix typo concerning record length.
1706         (to_fixed_record_type): Decomment disabled code.
1707         (to_fixed_record_type): Use variant_field_index instead of 
1708         contains_variant_part.
1709         (to_fixed_variant_branch_type): Ditto.
1710         (to_fixed_array_type): Decomment disabled code.
1711         (ada_to_fixed_type): Convert tagged types to the specific type.
1712         Deactivate the size-check for array types in order to avoid 
1713         some false size alarms.
1714         (to_static_fixed_type): Decomment disabled code.
1715         Modify to call template_to_static_fixed_type
1716         on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
1717         (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
1718         Remove valaddr argument, as it is never really used.
1719         (ada_to_fixed_value): Change interface to act on single struct value*
1720         operand.
1721         (adjust_pc_past_prologue): New function.
1722         (ada_attribute_name): Modify to take enum exp_opcode argument.
1723                 
1724         (ada_enum_name): Recognize new homonym-distinguishing convention.
1725         Adjust local variable's type to remove compiler warning.
1726         Fix a small problem in the part that unqualifies the enumeration name.
1727         (ada_value_binop): New function.
1728         (ada_value_equal): New function.
1729
1730         (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
1731         Don't give error message when not doing normal evaluation 
1732         and a tagged type doesn't seem to contain a structure member.
1733         Give error message for packed arrays.
1734         For indexing arrays, handle pointers to packed arrays correctly.
1735         Handle case of 'first and 'last attributes of bare integral type 
1736         without encoded subtype info.  
1737         Remove some unnecessary casts.
1738         Fix uninitialized value of type in computing 'first, 'last, or 'length
1739         of array object.  
1740         Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
1741         Remove binop_user_defined_p tests and value_x_binop and value_x_unop
1742         calls.
1743         Attributes are now exp_opcode values.
1744         Correct treatment of 'modulus.
1745         Better error message for taking 'length of wrong kind of type; 
1746         improve comment.
1747         Change EVAL_NORMAL to noside for consistency.
1748         Use ada_value_binop for DIV, MOD, REM.
1749         Make special case out of array of length 0, since an argument 
1750         of 0 upsets some platforms' malloc.
1751         Use OP_STRING instead of OP_ARRAY.
1752         For slice, add check that we have an array type before extracting 
1753         a slice out of it.  Avoids a SEGV.
1754         When evaluating an array slice, if the array type is a reference to 
1755         an aligner type, then replace the aligner type by the actual type.
1756         Decomment disabled code.
1757         Remove some dead code.
1758         Use temporary struct symbols (marked as being in UNDEF_NAMESPACE) 
1759         to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
1760         Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE, 
1761         and UNOP_MBR to UNOP_IN_RANGE.
1762         If an array type has a parallel ___XVE type, then use it.
1763         Turn arrays into pointers for lvalue arrays.
1764         Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
1765         bounds error and handle 0-length slices.
1766         Use lim_warning.
1767         When selecting fields, apply ada_to_fixed_value (because the fields 
1768         might have ___XVU or ___XVE encodings even if not dynamic.)
1769         Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
1770         (ada_is_system_address_type): New function.
1771
1772         (get_var_value): Use new interface to ada_lookup_symbol_list.
1773         (get_int_var_value): New interface.
1774         (to_fixed_range_type): Allow unknown bound, with warning.
1775         (ada_is_modular_type): Decomment disabled code.
1776         (ADA_OPERATORS): New definition.
1777         (ada_operator_length): New function.
1778         (ada_expr_op_name): New function.
1779         (ada_forward_operator_length): New function.
1780         (ada_dump_subexp_body): New function.
1781         (ada_print_subexp): New function.
1782         (ada_exp_descriptor): New constant.
1783         (ada_op_print_tab): Add 'size.  Remove FIXMEs.
1784         (ada_language_defn): Add ada_exp_descriptor entry.
1785         Change ada_parse => parse.
1786         Add post-parser entry.
1787         Use ada-specific non-local symbol lookup.
1788         Don't use C-style arrays. 
1789         String lower-bound is 1.
1790         Decomment disabled code.        
1791         (parse): New function.
1792         New fields ada_translate_error_message, ada_lookup_symbol, 
1793         ada_lookup_minimal_symbol.
1794         
1795         * ada-lang.h: Update copyright dates.
1796         Replace the mangle/demangle terminology throughout by the
1797         more appropriate encode/decode one. 
1798         Include breakpoint.h.
1799         Forward declare struct partial_symbol, struct block.
1800         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
1801         (EXTRACT_ADDRESS): Remove.
1802         (EXTRACT_INT): Remove.
1803         (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
1804         (MAX_ENCLOSING_FRAME_LEVELS): Define.
1805         (MAX_RENAMING_CHAIN_LENGTH): Define.
1806         (struct ada_opname_map): mangled => decoded, demangled=>encoded.
1807
1808         (enum task_states): Remove.
1809         ada_task_states: Remove.
1810         (fat_string): Remove.
1811         (struct entry_call): Remove.
1812         (struct task_fields): Remove.
1813         (struct task_entry): Remove.
1814
1815         (struct ada_symbol_info): Define.
1816         (enum ada_attribute): Remove.
1817         (enum ada_operator): Define.
1818         
1819         (ada_get_field_index): Declare.
1820         (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
1821         (ada_is_simple_array): Rename to ada_is_simple_array_type.
1822         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
1823         (ada_lookup_symbol_list): New interface.
1824         (ada_decode_symbol): Declare.
1825         (ada_decode): Declare.
1826         (ada_lookup_symbol): New interface.
1827         (ada_update_initial_language): Declare.
1828         (ada_lookup_simple_minsym): Declare.
1829         (user_select_syms): New interface.
1830         (ada_sals_for_line): Declare.
1831         (ada_is_tagged_type): New interface.
1832         (ada_tag_name): Declare.
1833         (ada_lookup_struct_elt_type): Remove declaration.
1834         (ada_search_struct_field): Remove declaration.
1835         (ada_attribute_name): New interface.
1836         (ada_is_system_address_type): Declare.
1837         (ada_to_fixed_value): Remove declaration.
1838         (ada_template_to_fixed_record_type_1): Declare.
1839         (get_int_var_value): New interface.
1840         (ada_find_any_symbol): Declare.
1841         (ada_find_renaming_symbol): Declare.
1842         (ada_mangle): Rename to ada_encode.
1843         (ada_simple_renamed_entity): Remove const.
1844         (ada_main_name): Declare.
1845         (get_current_task): Rename to ada_get_current_task.
1846         (get_entry_number): Remove declaration.
1847         (ada_report_exception_break): Remove declaration.
1848         (ada_print_exception_breakpoint_nontask): Declare.
1849         (ada_print_exception_breakpoint_task): Declare.
1850         (ada_find_printable_frame): Declare.
1851
1852         * ada-lex.l: Update copyright notices.
1853         Use xmalloc and xfree instead of malloc and free.
1854         Use new interface to name_lookup.
1855         Use new interface to 
1856         ada_mangle=>ada_encode.
1857         Redo handling of '$...' variable to parallel current treatment 
1858         in c-exp.y.  
1859         (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
1860         digit_to_int, strtoulst, processInt, processReal, processId, 
1861         block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
1862         yywrap): Protoize.
1863         
1864         (processInt): Use cast to remove harmless warning.
1865         (processReal): Modify to get rid of compiler warning on scan formats.
1866
1867         (processId): Replace xmalloc with obstack_alloc for name and remove
1868         call to ada_name_string_cleanup.
1869         Remove obsolete disabled code.
1870         (name_lookup): Ditto. 
1871         New interface.
1872         Use obsavestring on temp_parse_space instead of savestring 
1873         on name, and remove call to ada_name_string_cleanup.  
1874         Free string returned from ada_simple_renamed_entity.
1875         Use new interface to ada_lookup_symbol_list.
1876         Decomment disabled code.
1877         Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables, 
1878         not types.
1879         When a type name lookup succeeds as a result of 
1880         lookup_primitive_typename, check for regular type entry that has not 
1881         yet been read in.
1882         Limit length of chain of renamed symbols we are willing to follow.  
1883         Do not break names beginning with "standard__" into segments.  
1884         (block_lookup): Use new interface to ada_lookup_symbol_list.
1885         
1886         * ada-typeprint.c: Update copyright notice.
1887         (demangled_type_name): Rename to decoded_type_name.
1888         (ada_typedef_print): Use SYMBOL_PRINT_NAME.
1889         (print_range_bound):  Correct handling of negative
1890         bounds that make the index type looked unsigned under STABS.  
1891         (print_dynamic_range_bound): Use new interface to get_int_var_value.
1892         (print_range_type_named):  Use the builtin int type if no type 
1893         corresponding to the given type name could be found.
1894         (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
1895         Add some bullet-proofing.
1896         (print_variant_clauses): Allow for variant branches with ___XVU 
1897         encodings that are not dynamic fields.  
1898         Use new interface to ada_is_tagged_type.
1899         (print_record_type): Allow for fields with ___XVE encodings that 
1900         are not dynamic fields. 
1901         Use new interface to ada_is_tagged_type.
1902         (ada_print_type): ada_is_array_descriptor => 
1903         ada_is_array_descriptor_type.
1904
1905         * ada-valprint.c: Update copyright notice.
1906         Include gdb_string.h
1907         Include infcall.h
1908         (ui_memcpy): New function.
1909         (ada_print_floating): New function.
1910         (ada_print_str): Order arguments correctly.
1911         Correct handling of empty arrays and arrays of 0-length items. 
1912         ada_is_array_descriptor => ada_is_array_descriptor_type 
1913         Print values of type System.Address in hexadecimal format.
1914         Use ada_print_floating to print floating-point numbers in Ada format.
1915         Print class tag values with type names.  
1916         No longer print the address of reference values. Avoids 
1917         a potential confusion.  
1918         (ada_value_print): Stop printing the object type for reference
1919         values, but preserve that behavior for access types. Avoids
1920         a potential confusion.
1921         Simplify one conditional expression, as the first part is now
1922         necessarily true.
1923         ada_is_array_descriptor => ada_is_array_descriptor_type 
1924         Add check for arrays for null records, and print them by hand.
1925         
1926 2004-06-01  Jim Blandy  <jimb@redhat.com>
1927
1928         * ppc-tdep.h: Delete unused 'regoff' member.
1929         * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
1930
1931 2004-06-01  Michael Chastain  <mec.gnu@mindspring.com>
1932
1933         Fix PR symtab/1661.
1934         * hpread.c (hpread_pxdb_needed): Call memset after alloca.
1935         (hpread_read_struct_type): Likewise.
1936
1937 2004-06-01  Andrew Cagney  <cagney@gnu.org>
1938
1939         * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
1940         instead of xasprintf.
1941         * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) 
1942         (mi_cmd_thread_select, mi_cmd_thread_list_ids) 
1943         (mi_cmd_data_list_register_names) 
1944         (mi_cmd_data_list_changed_registers) 
1945         (mi_cmd_data_list_register_values) 
1946         (get_register, mi_cmd_data_write_register_values) 
1947         (mi_cmd_data_write_register_values) 
1948         (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) 
1949         (mi_cmd_target_download, mi_cmd_target_select) 
1950         (mi_cmd_data_read_memory, mi_cmd_data_write_memory) 
1951         (mi_execute_cli_command, mi_execute_async_cli_command) 
1952         (mi_execute_async_cli_command): Ditto.
1953         * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
1954         * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
1955
1956         * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
1957         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
1958         error_last_message instead of mi_error_last_message.
1959         * mi/mi-main.c (mi_error_last_message): Delete function.
1960
1961         * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
1962         "invalid number of columns" error.  Delete redundant "out of
1963         memory" check.
1964
1965 2004-05-31  Mark Kettenis  <kettenis@gnu.org>
1966
1967         * i386bsd-nat.c: Don't include <sys/procfs.h>.
1968         (gregset_t, fpregset_t): Remove typedefs.
1969         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
1970         (REG_OFFSET): Rename argument.
1971         (i386bsd_r_reg_offset): Rename from reg_offset.
1972         (REG_ADDR): Remove macro.
1973         (cannot_fetch_register, supply_gregset, fill_gregset): Remove
1974         functions.
1975         (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
1976         (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
1977         instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
1978         instead of supply_gregset.
1979         (store_inferior_registers): Use `struct reg' and `struct fpreg'
1980         instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
1981         instead of fill_gregset.
1982         (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
1983
1984         * i386bsd-nat.c: Don't include "gregset.h".
1985         (supply_gregset, fill_gregset): Make static.
1986         (supply_fpregset, fill_fpregset): Remove.
1987         * Makefile.in (i386bsd-nat.o): Update dependencies.
1988
1989 2004-05-30  Mark Kettenis  <kettenis@gnu.org>
1990
1991         * fbsd-proc.c: Include "regcache.h", "regset.h" and
1992         "gdb_assert.h".  Con't include "gregset.h".
1993         (fbsd_make_corefile_notes): Use regset-based core file support
1994         instead off fill_gregset and fill_fpregset.
1995         * Makefile.in (fbsd-proc.o): Update dependencies.
1996
1997         * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
1998         instructions.
1999         (m88k_frame_prev_register): Simplify code a bit.
2000
2001         * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
2002         (amd64_collect_fpregset): New function.
2003         (amd64_regset_from_core_section): Use amd64_collect_fpregset.
2004
2005         * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
2006
2007         * i386-tdep.c (i386_supply_gregset): Adjust comment.
2008         (i386_collect_gregset): New function.
2009         (i386_supply_fpregset): Adjust comment.
2010         (i386_collect_fpregset): New function.
2011         (i386_regset_from_core_section): Use i386_collect_gregset and
2012         i386_collect_fpregset.
2013
2014         * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
2015         handle VALUEP being null.
2016
2017         * regset.h (collect_regset_ftype): Unconstify fourth argument.
2018
2019 2004-05-29  Mark Kettenis  <kettenis@gnu.org>
2020
2021         * MAINTAINERS: Undelete m88k.  Add myself as maintainer.
2022
2023         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
2024         assembler in OpenBSD 3.5-current.
2025         (amd64obsd_sigcontext_addr): Likewise.
2026
2027 2004-05-28  Jim Blandy  <jimb@redhat.com>
2028
2029         * rs6000-tdep.c: Use the modern gdbarch methods for handling the
2030         register set, so our regcache isn't declared "legacy" and our E500
2031         pseudoregister read and write functions aren't ignored.
2032         (rs6000_register_byte, rs6000_register_raw_size,
2033         rs6000_register_virtual_type, rs6000_register_convertible,
2034         rs6000_register_convert_to_virtual,
2035         rs6000_register_convert_to_raw): Deleted.
2036         (rs6000_register_type, rs6000_convert_register_p,
2037         rs6000_register_to_value, rs6000_value_to_register): New
2038         functions.
2039         (rs6000_gdbarch_init): Don't register
2040         gdbarch_deprecated_register_size,
2041         gdbarch_deprecated_register_bytes,
2042         gdbarch_deprecated_register_byte,
2043         gdbarch_deprecated_register_raw_size,
2044         gdbarch_deprecated_register_virtual_type,
2045         gdbarch_deprecated_register_convertible,
2046         gdbarch_deprecated_register_convert_to_virtual, or
2047         gdbarch_deprecated_register_convert_to_raw methods.  Instead,
2048         register gdbarch_register_type, gdbarch_convert_register_p,
2049         gdbarch_register_to_value, and gdbarch_value_to_register methods.
2050
2051 2004-05-26  Jim Blandy  <jimb@redhat.com>
2052
2053         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
2054         (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
2055         functions, updated to match the register numberings used in GCC.
2056         (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
2057         rs6000_dwarf2_reg_to_regnum as register number conversions
2058         functions for STABS and Dwarf2.
2059
2060 2004-05-26  Randolph Chung  <tausq@debian.org>
2061
2062         * infttrace.h (target_waitkind): Forward declare type instead of pulling
2063         in header file.
2064
2065 2004-05-25  Joel Brobecker  <brobecker@gnat.com>
2066
2067         * NEWS: Document new "start" command.
2068
2069 2004-05-25  Randolph Chung  <tausq@debian.org>
2070
2071         * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
2072         hppa-linux.
2073
2074 2004-05-25  Randolph Chung  <tausq@debian.org>
2075
2076         * hppa-hpux-tdep.c (offsetof): Define.
2077         (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
2078         (hppa32_hpux_frame_base_before_sigtramp)
2079         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
2080         (hppa64_hpux_frame_saved_pc_in_sigtramp)
2081         (hppa64_hpux_frame_base_before_sigtramp)
2082         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused 
2083         functions.
2084         (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
2085         (hppa_hpux_sigtramp_frame_unwind_cache)
2086         (hppa_hpux_sigtramp_frame_this_id)
2087         (hppa_hpux_sigtramp_frame_prev_register)
2088         (hppa_hpux_sigtramp_frame_unwind)
2089         (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
2090         (hppa_hpux_init_abi): Register sigtramp unwinder.
2091         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
2092
2093 2004-05-25  Randolph Chung  <tausq@debian.org>
2094
2095         * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
2096         and multiple stack unwinds.
2097         (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
2098
2099 2004-05-25  Andrew Cagney  <cagney@gnu.org>
2100
2101         * symfile.h (symbol_file_add_from_memory): Delete declaration.
2102         * symfile-mem.h: Delete file.
2103         * symfile-mem.c: Do not include "symfile-mem.h".
2104         (symbol_file_add_from_memory): Make static. Use "struct bfd" and
2105         "struct bfd_section".  When an error do not bother returning NULL.
2106         (add_symbol_file_from_memory_command): Use "struct bfd" and
2107         "struct bfd_section".
2108         * Makefile.in (symfile_mem_h): Delete.
2109         (symfile-mem.o): Update dependencies.
2110
2111 2004-05-25  Nick Roberts  <nickrob@gnu.org>
2112
2113         * gdb-mi.el: New file.
2114
2115 2004-05-25  Andrew Cagney  <cagney@gnu.org>
2116
2117         * inftarg.c: Include "observer.h".
2118         (child_attach, child_create_inferior): Notify inferior_created.
2119         * corelow.c: Include "observer.h".
2120         (core_open): Notify inferior_created.
2121         * Makefile.in (inftarg.o, corelow.o): Update dependencies.
2122
2123 2004-05-25  Andrew Cagney  <cagney@gnu.org>
2124
2125         * target.h (struct target_ops): Add from_tty to
2126         to_create_inferior.
2127         (target_create_inferior, find_default_create_inferior): Update.
2128         * infcmd.c (run_command): Update.
2129         * wince.c (child_create_inferior): Update.
2130         * win32-nat.c (child_create_inferior): Update.
2131         * uw-thread.c (uw_thread_create_inferior): Update.
2132         * thread-db.c (thread_db_create_inferior): Update.
2133         * target.c (debug_to_create_inferior) 
2134         (find_default_create_inferior): Update.
2135         (maybe_kill_then_create_inferior): Update.
2136         * sol-thread.c (sol_thread_create_inferior): Update.
2137         * remote.c (extended_remote_async_create_inferior) 
2138         (extended_remote_create_inferior): Update.
2139         * remote-vx.c (vx_create_inferior): Update.
2140         * remote-st.c (st2000_create_inferior): Update.
2141         * remote-sim.c (gdbsim_create_inferior): Update.
2142         * remote-sds.c (sds_create_inferior): Update.
2143         * remote-rdp.c (remote_rdp_create_inferior): Update.
2144         * remote-rdi.c (arm_rdi_create_inferior): Update.
2145         * remote-m32r-sdi.c (m32r_create_inferior): Update.
2146         * remote-e7000.c (e7000_create_inferior): Update.
2147         * procfs.c (procfs_create_inferior): Update.
2148         * ocd.c (ocd_create_inferior): Update.
2149         * ocd.h (ocd_create_inferior): Update.
2150         * nto-procfs.c (procfs_create_inferior): Update.
2151         * monitor.c (monitor_create_inferior): Update.
2152         * lin-lwp.c (lin_lwp_create_inferior): Update.
2153         * inftarg.c (child_create_inferior): Update.
2154         * hpux-thread.c (hpux_thread_create_inferior): Update.
2155         * gnu-nat.c (gnu_create_inferior): Update.
2156
2157 2004-05-25  Andrew Cagney  <cagney@gnu.com>
2158
2159         * MAINTAINERS: Update e-mail address.
2160
2161 2004-05-24  Randolph Chung  <tausq@debian.org>
2162
2163         * thread.c (info_threads_command, thread_apply_all_command)
2164         (thread_apply_command, thread_command, do_captured_thread_select):
2165         Remove HPUXHPPA-specific code.
2166
2167 2004-05-24  Randolph Chung  <tausq@debian.org>
2168
2169         * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
2170         unused symbols.
2171         * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
2172         references.
2173
2174 2004-05-24  Joel Brobecker  <brobecker@gnat.com>
2175
2176         * infcmd.c (kill_if_already_running): New function, extracted
2177         from run_command().
2178         (run_command): Replace extracted code by call to
2179         kill_if_already_running().
2180         (start_command): New function.
2181         (_initialize_infcmd): Add "start" command.
2182
2183 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
2184
2185         Add OpenBSD/m88k support.
2186         * NEWS (New native configurations): Mention OpenBSD/m88k.
2187         * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
2188         config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
2189         * Makefile.in (m88k_tdep_h): New variable.
2190         (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
2191         (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
2192         * configure.host: Add m88*-*-openbsd*.
2193         * configure.tgt: Add m88*-*-openbsd*.
2194
2195 2004-05-24  Jim Blandy  <jimb@redhat.com>
2196
2197         * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
2198         to approve changes.
2199
2200 2004-05-24  Kevin Buettner  <kevinb@redhat.com>
2201
2202         * symtab.c (fixup_section): Search section table when lookup by
2203         name fails.
2204
2205 2004-05-24  Randolph Chung  <tausq@debian.org>
2206
2207         * hppa-tdep.c: Fix handling of 8-byte structures; they should not 
2208         be "small_struct".
2209
2210 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
2211
2212         * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
2213         register number in regcache_raw_collect call.
2214         (m68kbsd_collect_fpregset): Likewise.
2215         * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
2216
2217         * regset.h (struct regset): Add back `regset' member.
2218
2219 2004-05-23  Mark Kettenis  <kettenis@gnu.org>
2220
2221         * configure.in: Check for td_pcb in `struct thread'.
2222         * configure, config.in: Regenerated.
2223
2224         * dpx2-nat.c: Remove file.
2225         * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
2226         (dpx2-nat.o): Remove dependencies.
2227
2228         * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
2229         <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
2230         (amd64obsd_supply_pcb): New function.
2231         (_initialize_amd64obsd_nat): Enable libkvm interface.
2232         * Makefile.in (amd64obsd-nat.o): Update dependencies.
2233         * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
2234         (LOADLIBES): New variable.
2235
2236         * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
2237         <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
2238         (sparc32nbsd_supply_pcb): New function.
2239         (_initialize_sparcnbsd_nat): Enable libkvm interface.
2240         * Makefile.in (sparcnbsd-nat.o): Update dependencies.
2241         * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2242         (LOADLIBES): New variable.
2243
2244 2004-05-22  Mark Kettenis  <kettenis@gnu.org>
2245
2246         * bsd-kvm.c, bsd-kvm.h: New files.
2247         * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2248         "bsd-kvm.h".
2249         (i386fbsd_supply_pcb): New function.
2250         * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
2251         (i386fbsd-nat.o): Update dependencies.
2252         (bsd_kvm_h): New variable.
2253         (bsd-kvm.o): New dependency.
2254         * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2255         (LOADLIBES): New variable.
2256
2257         * regset.c: Tweak comment.
2258         (regset_alloc): Remove descr argument.  Use GDBARCH_OBSTACK_ZALLOC
2259         macro.
2260         * regset.h: Update copyright year.
2261         (struct regset): Remove `descr' member, add `gdbarch' member.
2262         (regset_alloc): Adjust prototype and comment.
2263         * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
2264         (i386_supply_fpregset): Likewise.
2265         (i386_regset_from_core_section): Update call to regset_alloc.
2266         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
2267         REGSET->arch.
2268         (i386obsd_aout_regset_from_core_section): Update call to
2269         regset_alloc.
2270         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
2271         REGSET->arch.
2272         (i386nbsd_aout_regset_from_core_section): Update call to
2273         regset_alloc.
2274         * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
2275         REGSET->arch.
2276         (amd64_regset_from_core_section): Update call to regset_alloc.
2277         * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
2278         REGSET->arch.
2279         (amd64obsd_regset_from_core_section): Update call to regset_alloc.
2280         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
2281         &sparc32nbsd_gregset in sparc32_supply_gregset call.
2282         (sparc32nbsd_init_abi): Update call to regset_alloc.
2283         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
2284         &sparc64obsd_core_gregset in sparc64_supply_gregset call.
2285         (sparc64obsd_init_abi): Update call to regset_alloc.
2286         * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
2287         &sparc64nbsd_gregset in sparc64_supply_gregset call.
2288         (sparc64nbsd_init_abi): Update call to regset_alloc.
2289         * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
2290         &sparc64fbsd_gregset in sparc64_supply_gregset call.
2291         (sparc64fbsd_init_abi): Update call to regset_alloc.
2292
2293 2004-05-22  Jim Blandy  <jimb@redhat.com>
2294
2295         * ppc-tdep.h (spe_register_p): New declaration.
2296         (struct gdbarch_tdep): New members: ppc_acc_regnum and
2297         ppc_spefscr_regnum.
2298         * rs6000-tdep.c (spe_register_p): New function.
2299         (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
2300         spefscr.
2301         (rs6000_gdbarch_init): Initialize the new members of the tdep
2302         structure.
2303
2304 2004-05-21  Jim Blandy  <jimb@redhat.com>
2305
2306         * ppc-linux-nat.c (fetch_register): Move code back to be next
2307         to the comment that describes it.  (Moved code, instead of
2308         comment, for symmetry with store_register.)
2309
2310         Allocate regset structures in the gdbarch's obstack, not using
2311         xmalloc.
2312         * regset.c (regset_alloc): Renamed from regset_xmalloc.
2313         Add 'arch' argument.  Allocate the regset on arch's obstack, not
2314         using xmalloc.
2315         * regset.h (regset_alloc): Update declaration.
2316         * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
2317         gdbarch argument.
2318         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
2319         * i386-tdep.c (i386_regset_from_core_section): Same.
2320         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
2321         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
2322         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
2323         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
2324         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
2325         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
2326
2327 2004-05-21  Joel Brobecker  <brobecker@gnat.com>
2328
2329         * config/djgpp/fnchange.lst: Undo previous change, was useless.
2330
2331 2004-05-21  Jim Blandy  <jimb@redhat.com>
2332
2333         * dwarf2expr.c (execute_stack_op): Add 'break' statements after
2334         cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
2335
2336 2004-05-20  Jim Blandy  <jimb@redhat.com>
2337
2338         * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
2339
2340 2004-05-20  Mark Kettenis  <kettenis@gnu.org>
2341
2342         * regset.h: Make prototype const-correct.
2343         * regset.c (regset_xmalloc): Make const-correct.
2344
2345 2004-05-20  Paul N. Hilfinger  <hilfinger@gnat.com>
2346
2347         * symtab.h (SYMBOL_SEARCH_NAME): New definition.
2348         (SYMBOL_MATCHES_SEARCH_NAME): New definition.
2349         (symbol_search_name): Declare.
2350         
2351         * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
2352         (iter_name_next_hashed): Ditto.
2353         (iter_name_next_linear): Ditto.
2354         (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
2355
2356         * symtab.c (lookup_partial_symbol): Assume symbols ordered by 
2357         search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
2358         (symbol_search_name): New function.
2359         
2360         * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
2361         
2362         * minsyms.c (build_minimal_symbol_hash_tables): Change
2363         test for adding to demangled hash table to check for difference
2364         between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
2365         
2366 2004-05-19  Jim Blandy  <jimb@redhat.com>
2367
2368         Use a constructor function to create regset structures.
2369         * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
2370         (struct regset): Use supply_regset_ftype.  Add new
2371         'collect_regset' member.
2372         (regset_xmalloc): New declaration.
2373         * regset.c: New file.
2374         * am64-tdep.c (amd64_regset_from_core_section): Use
2375         regset_xmalloc to construct regset structures.
2376         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
2377         * i386-tdep.c (i386_regset_from_core_section): Same.
2378         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
2379         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
2380         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
2381         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
2382         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
2383         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
2384         * Makefile.in (COMMON_OBS): Add regset.o.
2385         (regset.o): New rule.
2386
2387 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
2388
2389         * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
2390         and pthread_cond_wait.c.
2391
2392 2004-05-18  Jim Blandy  <jimb@redhat.com>
2393
2394         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
2395         before the mach-specific switch, and then let the individual cases
2396         override the defaults, rather than leaving them uninitialized
2397         until the switch and then setting them in each case.
2398
2399 2004-05-18  Randolph Chung  <tausq@debian.org>
2400
2401         * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
2402         millicode functions.
2403
2404 2004-05-18  Randolph Chung  <tausq@debian.org>
2405
2406         * somsolib.c (som_solib_remove_inferior_hook): Make all the size
2407         references to dld_flags_buffer consistent.
2408
2409 2004-05-18  Randolph Chung  <tausq@debian.org>
2410
2411         * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
2412         it for unwinding the stack.
2413
2414 2004-05-18  Randolph Chung  <tausq@debian.org>
2415
2416         * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
2417         Undefine these so we can overide them using gdbarch.
2418
2419 2004-05-18  Randolph Chung <tausq@debian.org>
2420
2421         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
2422         handling for 64-bit HPUX (elf).
2423
2424 2004-05-18  Daniel Jacobowitz  <dan@debian.org>
2425
2426         * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
2427         constants.
2428         * amd64-tdep.c (amd64_skip_prologue): Likewise.
2429         * ia64-tdep.c (examine_prologue): Likewise.
2430         * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
2431         * v850-tdep.c (v850_fix_call_dummy): Likewise.
2432
2433 2004-05-18  Mark Kettenis  <kettenis@gnu.org>
2434
2435         * vax-tdep.c (vax_return_value): Implement
2436         RETURN_VALUE_ABI_RETURNS_ADDRESS.
2437
2438 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
2439
2440         * vax-tdep.c (vax_return_value): Fix typo.
2441
2442 2004-05-17  Andrew Cagney  <cagney@redhat.com>
2443
2444         * MAINTAINERS: Mark Salter was also responsible for
2445         testsuite/config/
2446
2447         * NEWS: Mention signal fixes.
2448
2449 2004-05-17  Randolph Chung  <tausq@debian.org>
2450
2451         * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
2452         check to see if we are unwinding an export stub.  Export stubs clobber
2453         the %rp in the call path and stores the original rp in a stack slot.
2454
2455 2004-05-17  Jim Blandy  <jimb@redhat.com>
2456
2457         * MAINTAINERS: Update address for J.T. Conklin.
2458
2459 2004-05-17  Randolph Chung  <tausq@debian.org>
2460
2461         * hppa-tdep.c: Remove superfluous #include's.
2462         * Makefile.in (hppa-tdep.o): Update dependencies.
2463
2464 2004-05-17  Randolph Chung  <tausq@debian.org>
2465
2466         * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
2467         (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
2468         (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
2469         (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
2470         (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
2471         Remove static function declarations.
2472
2473 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
2474
2475         * alphabsd-nat.c: Update copyright year.
2476         (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
2477
2478         * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
2479         and M68K_A2_REGNUM.
2480
2481         * m68k-tdep.c (m68k_svr4_return_value): Implement
2482         RETURN_VALUE_ABI_RETURNS_ADDRESS.
2483
2484 2004-05-16  Mark Kettenis  <kettenis@gnu.org>
2485
2486         * sol-thread.c Update copyright year.  Fix various coding
2487         standards violations.  Tweak a few comments.
2488         (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
2489         Delete prototypes.
2490
2491 2004-05-15  Randolph Chung  <tausq@debian.org>
2492
2493         * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
2494         as pointer instead of array reference since HPUX compiler does
2495         not accept unsized array arguments.
2496         * somsolib.c (dld_flags_buffer): Use constant array size.
2497
2498 2004-05-15  Mark Kettenis  <kettenis@gnu.org>
2499
2500         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
2501         offset with decimal offset.
2502         (amd64obsd_sigcontext_addr): Return correct address for entire
2503         signal trampoline.
2504
2505         * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
2506         instead of get_frame_base.
2507
2508         * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
2509         (fill_gregset): Use regcache_raw_collect.
2510
2511         * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
2512         ppcobsd-tdep.c.
2513
2514         * config/sparc/tm-nbsd64.h: Remove file.
2515         * config/tm-sunos.h: Remove file.
2516
2517 2004-05-15  Joel Brobecker  <brobecker@gnat.com>
2518
2519         * rs6000-tdep.c (store_param_on_stack_p): New function,
2520         an improved version of some code extracted from skip_prologue().
2521         (skip_prologue): Use store_param_on_stack_p() to detect
2522         instructions saving a parameter on the stack. Detect when r0
2523         is used to save a parameter.
2524         Do not mark "li rx, SIMM" instructions as part of the prologue,
2525         unless the following instruction is also part of the prologue.
2526
2527 2004-05-14  Andrew Cagney  <cagney@redhat.com>
2528
2529         * infrun.c (handle_inferior_event): Simplify
2530         STEP_OVER_UNDEBUGGABLE.
2531
2532         * infrun.c (handle_step_into_function): Delete function.
2533         (handle_inferior_event): Inline calls to
2534         handle_step_into_function.
2535
2536 2004-05-14  Jerome Guitton  <guitton@rome.act-europe.fr>
2537
2538         * rs6000-nat.c: Fix a comment.
2539
2540 2004-05-12  David Anderson <davea@sgi.com>
2541
2542         Committed by Jim Blandy <jimb@redhat.com>:
2543         * regcache.c (struct regcache_descr): fix comment spelling.
2544
2545 2004-05-13  J. Brobecker  <brobecker@gnat.com>
2546
2547         * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
2548         Fixes a link link failure.
2549
2550 2004-05-13  J. Brobecker  <brobecker@gnat.com>
2551
2552         * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
2553         error that was causing the build to fail.
2554
2555 2004-05-13  J. Brobecker  <brobecker@gnat.com>
2556
2557         * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
2558         * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
2559
2560 2004-05-13  Andrew Cagney  <cagney@redhat.com>
2561
2562         * infrun.c (handle_inferior_event): Check for
2563         STEP_OVER_UNDEBUGGABLE after signal trampolines and function
2564         calls.  Update comments.
2565
2566 2004-05-13  Jim Blandy  <jimb@redhat.com>
2567
2568         * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
2569         (fetch_regs_user_thread, fetch_regs_kernel_thread)
2570         (store_regs_user_thread, store_regs_kernel_thread): Use
2571         ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
2572         * ppc-linux-nat.c (fill_gregset): Same.
2573         * ppc-linux-tdep.c (ppc_linux_supply_gregset) 
2574         (ppc_linux_sigtramp_cache): Same.
2575         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg) 
2576         (ppcnbsd_sigtramp_cache_init): Same.
2577         * rs6000-nat.c (fetch_core_registers): Same.
2578         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 
2579         (rs6000_frame_cache): Same.
2580
2581         * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
2582         (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
2583         of assuming that the gprs are numbered starting with zero.
2584         * ppc-linux-nat.c (fill_gregset): Same.
2585         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
2586         * ppcnbsd-nat.c (getregs_supplies): Same.
2587         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
2588         * rs6000-nat.c (fetch_core_registers): Same.
2589         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
2590
2591 2004-05-07  Michael Snyder  <msnyder@redhat.com>
2592
2593         * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
2594         LOC_COMPUTED_ARG, and LOC_INDIRECT.
2595
2596 2004-05-13  Andrew Cagney  <cagney@redhat.com>
2597
2598         * infrun.c (handle_inferior_event): Use frame_unwind_id.
2599
2600 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
2601
2602         * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
2603         base_address for shared libraries.
2604
2605 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
2606
2607         * MAINTAINERS (write after approval): Add myself.       
2608
2609 2004-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
2610
2611         * breakpoint.c (bpstat_stop_status): Add new argument
2612         STOPPED_BY_WATCHPOINT.  Use it instead of testing
2613         target_stopped_data_address agaist 0 to check whether
2614         or not we stopped due to a hardware watchpoint.
2615         * breakpoint.h (bpstat_stop_status): Adapt prototype.
2616         * infrun.c (handle_inferior_event): Call bpstat_stop_status
2617         with new argument.
2618
2619 2004-05-12  Jim Blandy  <jimb@redhat.com>
2620
2621         * configure.in: When checking whether we should use the -bbigtoc
2622         option, don't forget to restore the original value of LDFLAGS.
2623         * configure: Regenerated.
2624
2625 2004-05-12  Andrew Cagney  <cagney@redhat.com>
2626
2627         * thread.c (load_infrun_state): Delete step_sp.
2628         * infrun.c (context_switch): Ditto.
2629         * inferior.h (step_sp): Ditto.
2630         * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
2631         * gdbthread.h (struct thread_info, save_infrun_state)
2632         (restore_infrun_state): Ditto.
2633
2634 2004-05-12  Ulrich Weigand  <uweigand@de.ibm.com>
2635
2636         * MAINTAINERS (write after approval): Add myself.
2637
2638 2004-05-12  Andrew Cagney  <cagney@redhat.com>
2639
2640         * infrun.c (adjust_pc_after_break): Rewrite decr logic,
2641         eliminate reference to step_sp.
2642         (struct execution_control_state, init_execution_control_state)
2643         (handle_inferior_event, keep_going): Delete update_step_sp and
2644         step_sp.
2645         * infcmd.c (step_sp): Note that variable is unused.
2646
2647 2004-05-11  Andrew Cagney  <cagney@redhat.com>
2648
2649         * infrun.c (step_over_function): Delete function.
2650         (handle_step_into_function): Use insert_step_resume_breakpoint.
2651         (insert_step_resume_breakpoint): Fix assertion.
2652
2653 2004-05-11  Nick Roberts  <nickrob@gnu.org>
2654
2655         * utils.c (defaulted_query): Just use the normal query input type
2656         when printing the annotations.
2657
2658 2004-05-11  Andrew Cagney  <cagney@redhat.com>
2659
2660         * infrun.c (handle_inferior_event): Simplify code handling
2661         step-into or return-from a signal trampoline.
2662
2663 2004-05-11  Andrew Cagney  <cagney@redhat.com>
2664
2665         * ppcnbsd-tdep.c: Include "gdb_assert.h".
2666         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
2667
2668 2004-05-10  Jim Blandy  <jimb@redhat.com>
2669
2670         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
2671         with a call to internal_error.
2672
2673         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
2674         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
2675         processor variant lacks those registers.
2676         (ppc_floating_point_unit_p): Change description to make it clear
2677         that this returns info about the ISA, not the ABI.
2678         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
2679         return true or false by checking tdep->ppc_fp0_regnum and
2680         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
2681         arch/mach switching done in rs6000_gdbarch_init; it's better to
2682         keep that logic there, and just check the results here.
2683         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
2684         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
2685         floating-point registers.
2686         (ppc_supply_fpregset, ppc_collect_fpregset)
2687         (rs6000_push_dummy_call, rs6000_extract_return_value)
2688         (rs6000_store_return_value): Assert that we have floating-point
2689         registers.
2690         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
2691         (rs6000_frame_cache): Don't note the locations at which
2692         floating-point registers were saved if we have no fprs.
2693         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
2694         registers.
2695         (fetch_regs_user_thread, fetch_regs_kernel_thread)
2696         (store_regs_user_thread, store_regs_kernel_thread): Only call
2697         supply_fprs / fill_fprs if we actually have floating-point
2698         registers.
2699         (special_register_p): Check ppc_fpscr_regnum before matching
2700         against it.
2701         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
2702         supply / collect fpscr if we don't have it.
2703         * ppc-bdm.c: #include "gdb_assert.h".
2704         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
2705         have floating-point registers, since I can't test this code on
2706         FP-free systems to adapt it.
2707         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
2708         fpscr and floating point register numbers if they don't exist.
2709         (fetch_register): Assert that we have floating-point registers
2710         before we reach the code that handles them.
2711         (store_register): Same.  And use tdep instead of calling
2712         gdbarch_tdep again.
2713         (fill_fpregset): Don't try to collect FP registers and fpscr if we
2714         don't have them.
2715         (ppc_linux_sigtramp_cache): Don't record the saved locations of
2716         fprs and fpscr if we don't have them.
2717         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
2718         don't have them.
2719         * ppcnbsd-nat.c: #include "gdb_assert.h".
2720         (getfpregs_supplies): Assert that we have floating-point registers.
2721         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
2722         * ppcobsd-tdep.c: #include "gdb_assert.h".
2723         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
2724         have floating-point registers.
2725         * rs6000-nat.c (regmap): Don't match against the fpscr and
2726         floating point register numbers if they don't exist.
2727         (fetch_inferior_registers, store_inferior_registers,
2728         fetch_core_registers): Only fetch / store / supply the
2729         floating-point registers and the fpscr if we have them.
2730         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
2731         (ppcobsd-tdep.o): Update dependencies.
2732         
2733 2004-05-10  Andrew Cagney  <cagney@redhat.com>
2734
2735         * infrun.c (through_sigtramp_breakpoint): Delete variable.
2736         (context_switch): Do not switch through_sigtramp_breakpoint.
2737         * gdbthread.h (save_infrun_state, load_infrun_state)
2738         (struct thread_info): Delete through_sigtramp_breakpoint parameter
2739         and structure member.
2740         * thread.c (load_infrun_state, save_infrun_state): Update.
2741
2742 2004-05-10  Mark Kettenis  <kettenis@gnu.org>
2743
2744         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
2745
2746 2004-05-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2747
2748         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
2749         throughout.
2750         * aclocal.m4: Regenerate.
2751
2752 2004-05-10  Nathan J. Williams  <nathanw@wasabisystems.com>
2753
2754         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
2755
2756 2004-05-10  Andrew Cagney  <cagney@redhat.com>
2757
2758         * infrun.c (check_sigtramp2): Delete function.
2759         (handle_inferior_event): When single stepping, and taking a
2760         signal, set a breakpoint at the signal return address.  Delete
2761         redundant calls to check_sigtramp2.
2762         (insert_step_resume_breakpoint): New function.
2763         (through_sigtramp_breakpoint, handle_inferior_event)
2764         (follow_exec, wait_for_inferior, fetch_inferior_event)
2765         (currently_stepping, keep_going): Delete most uses of
2766         through_sigtramp_breakpoint, not that it should be deleted.
2767         (delete_breakpoint_current_contents): Delete function.
2768
2769 2004-05-10  Randolph Chung  <tausq@debian.org>
2770
2771         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
2772         target.
2773         * config/pa/tm-linux.h: New file.
2774
2775 2004-05-10  Daniel Jacobowitz  <drow@mvista.com>
2776
2777         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
2778         of prefixes.  Don't print the prefix twice in the CLI.
2779
2780 2004-05-10  Jim Blandy  <jimb@redhat.com>
2781
2782         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
2783         collect all the gprs.
2784
2785         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
2786         loop collecting gprs.
2787
2788 2004-05-09  Andrew Cagney  <cagney@redhat.com>
2789
2790         * remote-vx.c (net_step): Delete step-range code.
2791         * remote.c (remote_resume, init_all_packet_configs)
2792         (set_remote_protocol_E_packet_cmd)
2793         (show_remote_protocol_E_packet_cmd)
2794         (remote_protocol_E, show_remote_cmd, _initialize_remote)
2795         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
2796         (show_remote_protocol_e_packet_cmd): Ditto.
2797
2798 2004-05-09  Mark Kettenis  <kettenis@gnu.org>
2799
2800         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
2801
2802         * hppa-tdep.h: Update copyright year.
2803         (struct trad_frame_saved_reg): Add opaque declaration.
2804
2805         * amd64-tdep.c (amd64_return_value): Implement
2806         RETURN_VALUE_ABI_RETURNS_ADDRESS.
2807
2808         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
2809         (m68k_value_to_register): New functions.
2810         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
2811         value_to_register.
2812
2813         * defs.h (enum return_value_convention): Add
2814         RETURN_VALUE_ABI_RETURNS_ADDRESS and
2815         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
2816         * infcmd.c (legacy_return_value): New function.
2817         (print_return_value): Rwerite to implement
2818         RETURN_VALUE_ABI_RETURNS_ADDRESS.
2819         * values.c (using_struct_return): Check for inequality to
2820         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
2821         RETURN_VALUE_STRUCT_CONVENTION.
2822         * i386-tdep.c (i386_return_value): Implement
2823         RETURN_VALUE_ABI_RETURNS_ADDRESS.
2824
2825         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
2826         include "symtab.h", "opcode/vax.h" and "inferior.h".
2827         (vax_skip_prologue): Replace calls to read_memory_integer by calls
2828         to read_memory_unsigned_integer.
2829         (vax_gdbarch_init): Reorder.
2830         (_initialize_vax_tdep): Spell out prototype.
2831         * Makefile.in (vax-tdep.o): Update dependencies.
2832
2833 2004-05-08  Andrew Cagney  <cagney@redhat.com>
2834
2835         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
2836         * target.c (target_detach, target_disconnect): Ditto.
2837
2838         * infcall.c (call_function_by_hand): When no
2839         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
2840         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
2841         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
2842         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2843         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2844         
2845         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
2846         * gdbarch.h, gdbarch.c: Re-generate.
2847         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
2848         deprecated_fix_call_dummy.
2849         * v850-tdep.c (v850_gdbarch_init): Ditto.
2850         * infcall.c (call_function_by_hand): Do not call
2851         DEPRECATED_FIX_CALL_DUMMY.
2852
2853         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
2854         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
2855         * gdbarch.h, gdbarch.c: Re-generate.
2856         * arm-linux-tdep.c (arm_linux_call_dummy_words)
2857         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
2858         deprecated_sizeof_call_dummy_words.
2859         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
2860         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2861         * v850-tdep.c (v850_gdbarch_init): Ditto.
2862         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2863         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
2864         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2865         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2866         * arch-utils.h (legacy_call_dummy_words)
2867         (legacy_sizeof_call_dummy_words): Delete declarations.
2868         * arch-utils.c (legacy_call_dummy_words)
2869         (legacy_sizeof_call_dummy_words): Delete variables.
2870
2871         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
2872         * gdbarch.h, gdbarch.c: Re-generate.
2873         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
2874         * infcall.c (call_function_by_hand): Eliminate call to
2875         DEPRECATED_PUSH_DUMMY_FRAME.
2876         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
2877         push_dummy_frame.
2878         (ns32k_push_dummy_frame): Delete function.
2879
2880         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
2881         deprecated_call_dummy_breakpoint_offset or
2882         deprecated_call_dummy_start_offset.
2883         * dummy-frame.c, arm-tdep.c: Update comments.
2884         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
2885         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
2886         * gdbarch.h, gdbarch.c: Re-generate.
2887         
2888         * infcall.c (legacy_push_dummy_code): Delete function.
2889         (push_dummy_code): Delete call.
2890
2891         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
2892         * gdbarch.h, gdbarch.c: Re-generate.
2893         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
2894         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
2895         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
2896         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
2897
2898         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
2899         (struct frame_info): Delete opaque declaration.
2900         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
2901         * frame.c (get_frame_type): Delete call.
2902
2903         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
2904         pc_in_call_dummy.
2905         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
2906         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
2907
2908 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
2909
2910         * alphanbsd-tdep.c: Include "gdb_string.h".
2911         * armnbsd-tdep.c: Update copyright year.
2912         Include "gdb_string.h".
2913         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
2914         dependencies.
2915
2916         * delta68-nat.c: Remove file.
2917         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
2918         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
2919         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
2920         (delta68-nat.o): Remove dependency.
2921
2922         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
2923         function.
2924         (m68k_gdbarch_init): Don't set
2925         deprecated_frameless_function_invocation.
2926
2927 2004-05-07  Randolph Chung  <tausq@debian.org>
2928
2929         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
2930         read_memory_nobpt for code reading when doing frame unwinding.
2931         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
2932
2933 2004-05-07  Randolph Chung  <tausq@debian.org>
2934
2935         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
2936         instead of sp, handle sigaltstack case.
2937         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
2938         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
2939         signal handler and not that of the caller.
2940         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
2941         hppa_linux_sigtramp_find_sigcontext.
2942
2943 2004-05-07  Randolph Chung  <tausq@debian.org>
2944
2945         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
2946         hppa-linux-nat.c.
2947         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
2948         * hppa-linux-nat.c (fetch_register, store_register): Define.
2949         (fetch_inferior_registers, store_inferior_registers): Define.
2950         (supply_gregset): Add comment and clean up some unneeded code.
2951         (fill_gregset): Add comment and fix so that it saves registers in
2952         the right place in the gregset.
2953         (fill_fpregset): Fix buffer overrun problem.
2954         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2955
2956 2004-05-07  Randolph Chung  <tausq@debian.org>
2957
2958         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
2959         do common handling of the pcoqt register.
2960         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
2961         to use helper function.
2962         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
2963         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
2964         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
2965         generic fallback unwinder when all else fails.
2966         (hppa_gdbarch_init): Add fallback sniffer.
2967         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
2968         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
2969         to use helper function.
2970
2971 2004-05-08  Joel Brobecker  <brobecker@gnat.com>
2972
2973         * config/djgpp/fnchange.lst: Add translation rules for
2974         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
2975
2976 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
2977
2978         * frame.c (get_prev_frame_1): Work around GCC bug.
2979         * frame.h: Add comment about GCC bug.
2980
2981 2004-05-07  Andrew Cagney  <cagney@redhat.com>
2982
2983         * observer.c: Include "commands.h" and "gdbcmd.h".
2984         (observer_debug, _initialize_observer): Add the
2985         command "set/show debug observer".
2986         * observer.sh: When observer debugging, log notify calls.
2987         * Makefile.in (observer.o): Update dependencies.
2988
2989 2004-05-07  Jason Molenda  (jmolenda@apple.com)
2990
2991         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
2992
2993 2004-05-07  Jim Blandy  <jimb@redhat.com>
2994
2995         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
2996         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
2997         to recognize gpr regnums, instead of assuming that
2998         tdep->ppc_fp0_regnum marks the end of the general-purpose
2999         registers.
3000
3001         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
3002         the given architecture has floating-point registers. 
3003
3004 2004-05-07  Andrew Cagney  <cagney@redhat.com>
3005
3006         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
3007         macro defined to 1.
3008         * gdbarch.h, gdbarch.c: Re-generate.
3009         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
3010         deprecated_use_generic_dummy_frames.
3011
3012 2004-05-07  Brian Ford  <ford@vss.fsi.com>
3013
3014         * NEWS: Mention Cygwin DWARF 2 support.
3015
3016 2004-05-07  Andrew Cagney  <cagney@redhat.com>
3017
3018         * objfiles.h (struct entry_info): Delete unused fields
3019         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
3020         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
3021         * mipsread.c (mipscoff_symfile_read): Update.
3022         * mdebugread.c (parse_partial_symbols): Update.
3023         * dwarfread.c (read_file_scope): Update.
3024         * dwarf2read.c (read_file_scope): Update.
3025         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
3026         * coffread.c (complete_symtab): Update.
3027
3028 2004-05-07  Mark Kettenis  <kettenis@gnu.org>
3029
3030         * infcall.c (_initialize_infcall): Fix typo.
3031
3032 2004-05-07  Andrew Cagney  <cagney@redhat.com>
3033
3034         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
3035         * command.h (add_setshow_zinteger_cmd): Declare.
3036
3037 2004-05-06  Randolph Chung  <tausq@debian.org>
3038
3039         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
3040         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
3041         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
3042         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
3043         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
3044         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
3045         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
3046         definitions ...
3047         * hppa-tdep.h: ... to here, with HPPA_ prefix.
3048         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
3049         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
3050         (hppa64_hpux_frame_find_saved_regs_in_sig)
3051         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
3052         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
3053         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
3054         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
3055         (hppa_linux_sigtramp_frame_prev_register): Likewise.
3056         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
3057         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
3058         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
3059         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
3060         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
3061         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
3062         (hppa32_register_type, hppa_cannot_store_register)
3063         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
3064         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
3065         * hpread.c (hpread_process_one_debug_symbol): Likewise.
3066         * pa64solib.c (pa64_solib_have_load_event)
3067         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
3068         (pa64_solib_unloaded_library_pathname): Likewise.
3069         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
3070         (som_solib_library_pathname): Likewise.
3071
3072 2004-05-05  Jim Ingham  <jingham@apple.com>
3073         
3074         * breakpoint.c (create_breakpoints): Copy the ignore count and
3075         thread id over from the pended breakpoint to the actual
3076         breakpoint.
3077         
3078 2004-05-05  Andrew Cagney  <cagney@redhat.com>
3079
3080         * gdbarch.sh (PARM_BOUNDARY): Delete.
3081         gdbarch.h, gdbarch.c: Re-generate.
3082         * valops.c (PARM_BOUNDARY): Delete macro.
3083         (value_push): Delete PARM_BOUNDARY code.
3084         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
3085
3086 2004-05-04  Jim Blandy  <jimb@redhat.com>
3087
3088         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
3089         Don't assume that the gprs, fprs, and UISA sprs are
3090         contiguous, start at register number zero, and end with fpscr.
3091         Instead, use the numbers from the tdep structure.
3092
3093         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
3094         should no longer be used in code specific to the RS6000 and its
3095         derivatives.
3096         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
3097         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
3098         tdep->ppc_fp0_regnum.
3099         (ppc_supply_fpregset, ppc_collect_fpregset)
3100         (rs6000_push_dummy_call, rs6000_extract_return_value)
3101         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
3102         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
3103         FP0_REGNUM. 
3104         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
3105         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
3106         Same.
3107         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
3108         bdm_ppc_store_registers): Same.
3109         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
3110         (store_register, fill_fpregset): Same.
3111         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
3112         (ppc_linux_supply_fpregset): Same.
3113         * ppcnbsd-nat.c (getfpregs_supplies): Same.
3114         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
3115         Same.
3116         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
3117         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
3118         ppc64_sysv_abi_return_value): Same.
3119         * rs6000-nat.c (regmap, fetch_inferior_registers) 
3120         (store_inferior_registers, fetch_core_registers): Same.
3121
3122 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
3123
3124         * m68knbsd-nat.c: Remove file.
3125         * m68knbsd-tdep.c: Remove file.
3126         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
3127         dependencies.
3128         * configure.host: Add m68k-*-netbsdelf*.
3129         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
3130         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
3131         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
3132         (XM_FILE): Remove.
3133         * config/m68k/nbsdelf.mh: New file.
3134         * config/m68k/nbsd.mt: New file.
3135         * config/m68k/nbsdaout.mt: Remove file.
3136         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
3137         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
3138         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
3139         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
3140         (use_struct_convention): Remove prototype.
3141         (USE_STRUCT_CONVENTION): Remove define.
3142         * config/m68k/xm-nbsd.h: Remove file.
3143
3144 2004-05-04  Michael Snyder  <msnyder@redhat.com>
3145
3146         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
3147         reg_struct_return method (as gcc usually does for cross targets).
3148
3149 2004-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3150
3151         Committed by Andrew Cagney.
3152         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
3153         alignment padding when accessing ucontext struct members.
3154
3155 2004-05-04  Jim Blandy  <jimb@redhat.com>
3156
3157         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
3158         'ppc_gplast_regnum' member.
3159         (ppc_num_gprs): New enum constant.
3160         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
3161         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
3162         * rs6000-nat.c (regmap, fetch_inferior_registers,
3163         store_inferior_registers): Same.
3164         * rs6000-tdep.c (e500_pseudo_register_read)
3165         (e500_pseudo_register_write): Same.
3166         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
3167
3168         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
3169         * ppc-tdep.h (ppc_num_fprs): New enum constant.
3170         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
3171         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
3172         FPLAST_REGNUM.
3173         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3174         Same.
3175         * ppc-linux-nat.c (ppc_register_u_addr): Same.
3176         * rs6000-nat.c (regmap, fetch_inferior_registers) 
3177         (store_inferior_registers): Same.
3178
3179         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
3180         with FPLAST_REGNUM.
3181
3182 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
3183
3184         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
3185         failure detected by recent versions of GCC.
3186         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
3187         to be consistent with the usage in dwarf2_create_include_psymtab.
3188
3189 2004-05-03  Michael Snyder  <msnyder@redhat.com>
3190
3191         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
3192         (heuristic_proc_start): Whitespace cleanup.
3193
3194 2004-05-04  Mark Kettenis  <kettenis@gnu.org>
3195
3196         * sun3-nat.c: Remove file.
3197         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
3198         dependencies.
3199         (ALLDEPFILES): Remove sun3-nat.c.
3200         (sun3-nat.o): Remove dependencies.
3201
3202         * i386-interix-nat.c, i386-interix-tdep.c,
3203         config/i386/nm-interix.h, config/i386/interix.mh,
3204         config/i386/interix.mt: Remove files.
3205         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
3206         dependencies.
3207
3208 2004-05-03  Mark Kettenis  <kettenis@gnu.org>
3209
3210         * m68k-tdep.h (struct gdbarch_tdep): Add member
3211         struct_value_regnum.
3212         (m68k_svr4_init_abi): New prototype.
3213         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
3214         different calling conventions.
3215         (m68k_extract_return_value): Remove code dealing with single-field
3216         structs.
3217         (m68k_store_return_value): Remove code dealing with single-field
3218         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
3219         (m68k_extract_struct_value_address): Remove function.
3220         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
3221         (m68k_reg_struct_return_p, m68k_return_value)
3222         (m68k_svr4_return_value): New functions.
3223         (m68k_use_struct_convention): Remove function.
3224         (m68k_push_dummy_call): Use new struct_value_regnum member of
3225         `struct gdbarch_tdep' instead of hardcoded register number to
3226         store STRUCT_ADDR.
3227         (m68k_svr4_init_abi): New function.
3228         (m68k_gdbarch_init): Don't set extract_return_value,
3229         store_return_values, deprecated_extract_struct_value_address and
3230         use_struct_convention.  Set return_value instead.  Initialize new
3231         struct_value_regnum member of `struct gdbarch_tdep'.
3232         * m68klinux-tdep.c: Update copyright year.
3233         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
3234         (m68k_linux_extract_struct_value_address): Remove function.
3235         (m68k_linux_init_abi): Don't set extract_return_value,
3236         store_return_values, deprecated_extract_struct_value_address and
3237         use_struct_convention.  Call m68k_svr4_init_abi but override the
3238         new struct_value_regnum member of `struct gdbarch_tdep'.
3239         * Makefile.in (m68k-tdep.o): Update dependencies.
3240
3241 2004-05-03  J. Brobecker  <brobecker@gnat.com>
3242
3243         * dwarf2read.c (line_header): Add new included_p field in
3244         field file_names.
3245         (partial_die_info): New field has_stmt_list. New field line_offset.
3246         (dwarf2_create_include_psymtab): New function.
3247         (dwarf2_build_include_psymtabs): New function.
3248         (add_file_name): Add forward declaration. Initialize new field.
3249         (dwarf_decode_lines): Add new parameter. Enhance this procedure
3250         to be able to determine the list of files included by the
3251         given unit, and build their associated psymtabs.
3252         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
3253         files as well.
3254         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
3255         (read_file_scope): Update call to dwarf_decode_lines.
3256         (read_partial_die): Handle DW_AT_stmt_list attributes.
3257
3258 2004-05-02  Michael Chastain  <mec.gnu@mindspring.com>
3259
3260         Unfix PR gdb/1626.
3261         * configure.in: Revert special case for osf5.*.
3262         * configure: Regenerate.
3263
3264 2004-05-02  Jim Blandy  <jimb@redhat.com>
3265
3266         Move the symbol-file-from-memory functions into their own file.
3267         * symfile-mem.c, symfile-mem.h: New files.
3268         * symfile.c (symbol_file_add_from_bfd): New function.
3269         (symbol_file_add): Call symbol_file_add_from_bfd.
3270         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
3271         Moved to symfile-mem.c.
3272         (_initialize_symfile): Move definition of
3273         add-symbol-file-from-memory command to symfile-mem.c.
3274         * symfile.h (symbol_file_add_from_bfd): New declaration.
3275         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
3276         * config/powerpc/linux.mt (TDEPFILES): Same.
3277         * Makefile.in (SFILES): Add symfile-mem.c.
3278         (symfile_mem_h): New variable.
3279         (HFILES_NO_SRCDIR): Add symfile-mem.h.
3280         (symfile-mem.o): New rule.
3281
3282 2004-05-01  Andrew Cagney  <cagney@redhat.com>
3283
3284         * breakpoint.c (insert_bp_location): Use get_frame_id, and
3285         frame_find_by_id instead of frame_relative_level.
3286         (do_enable_breakpoint): Ditto.
3287         * thread.c: Update copyright.
3288         (info_threads_command): Ditto, simplify.
3289
3290         * frame.c (deprecated_generic_get_saved_register): Delete
3291         function, moved to "xstormy16-tdep.c".
3292         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
3293         deprecated_generic_get_saved_register from "frame.c".
3294         (xstormy16_frame_saved_register): Call
3295         xstormy16_get_saved_register.
3296         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
3297         static.
3298         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
3299         * frame.h (deprecated_generic_get_saved_register): Delete.
3300
3301 2004-05-01  Michael Chastain  <mec.gnu@mindspring.com>
3302
3303         * dwarfread.c: Update documentation on the state of dwarf-1.
3304
3305 2004-05-01  Andrew Cagney  <cagney@redhat.com>
3306
3307         * stack.c (select_frame_command): Delete call to
3308         frame_relative_level.
3309         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
3310         Delete #if0 code.
3311         (frame_info): Do not print FRAMELESS.
3312         (print_block_frame_labels): Replace DEPRECATED_STREQ.
3313         (catch_info): Delete #if0 code.
3314
3315         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
3316         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
3317         of frame_relative_level.
3318         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
3319         to SENTINEL_FRAME.
3320         * frame.h (enum frame_type): Add SENTINEL_FRAME.
3321         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
3322         frame_relative_level.
3323
3324         * frame.h (deprecated_set_frame_type): Delete declaration.
3325         * frame.c (deprecated_set_frame_type): Delete function, update
3326         comments.
3327
3328         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
3329         * gdbarch.h, gdbarch.c: Re-generate.
3330         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
3331         (shnbsd_pc_in_sigtramp): Delete.
3332         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
3333         pc_in_sigtramp.
3334         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
3335         pc_in_sigtramp.
3336         * frame.h: Update comments.
3337         * ppc-linux-tdep.c: Update comments.
3338         * breakpoint.c (bpstat_what): Update comments.
3339
3340         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
3341         m68klinux-tdep.o's dependencies, were previously added to
3342         m68klinux-nat.o.
3343
3344         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
3345         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
3346         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
3347         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
3348         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
3349
3350         * Makefile.in (m68klinux-nat.o): Update dependencies.
3351         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
3352         (m68k_linux_sigtramp_frame_cache)
3353         (m68k_linux_sigtramp_frame_this_id)
3354         (m68k_linux_sigtramp_frame_prev_register)
3355         (m68k_linux_sigtramp_frame_unwind)
3356         (m68k_linux_sigtramp_frame_sniffer)
3357         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
3358         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
3359         names, use trad-frame.h.
3360         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
3361         (struct m68k_sigtramp_info): Delete.
3362         * m68k-tdep.c (m68k_sigtramp_frame_cache)
3363         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
3364         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
3365         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
3366         "m68klinux-tdep.c".
3367
3368         * infrun.c (check_sigtramp2): Delete check for
3369         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
3370
3371 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
3372
3373         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
3374
3375 2004-05-01  Andrew Cagney  <cagney@redhat.com>
3376
3377         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
3378         (frv_linux_sigtramp_frame_cache)
3379         (frv_linux_sigtramp_frame_this_id)
3380         (frv_linux_sigtramp_frame_prev_register)
3381         (frv_linux_sigtramp_frame_unwind)
3382         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
3383         include "linux" in function and variable names, directly call
3384         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
3385         the latest trad-frame code.
3386         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
3387         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
3388         * Makefile.in (frv-linux-tdep.o): Update dependencies.
3389         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
3390         * frv-tdep.c (frv_sigtramp_frame_cache)
3391         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
3392         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
3393         frv-linux-tdep.c.
3394         (frv_gdbarch_init): Do not append a sigtramp sniffer.
3395         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
3396         (frv_set_sigcontext_reg_addr): Delete function.
3397
3398         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
3399         (DEPRECATED_SIGTRAMP_END): Delete.
3400         * gdbarch.h, gdbarch.c: Re-generate.
3401         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
3402         * config/vax/tm-vaxbsd.h: Update copyright.
3403         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
3404         (DEPRECATED_IN_SIGTRAMP): Define.
3405         * config/m68k/tm-nbsd.h: Update copyright.
3406         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
3407         (DEPRECATED_IN_SIGTRAMP): Define.
3408
3409 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
3410
3411         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
3412         encondings.  Fixes PR gdb/1628.
3413
3414         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
3415         DW_CFA_restore state without a matching DW_CFA_remember_state
3416         instead of aborting.  Fixes PR backtrace/1589.
3417
3418 2004-04-30  Joel Brobecker  <brobecker@gnat.com>
3419
3420         * MAINTAINERS: Add self as AIX maintainer.
3421         Update my e-mail address in write-after-approval section.
3422
3423 2004-04-30  Andrew Cagney  <cagney@redhat.com>
3424
3425         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
3426         (legacy_get_prev_frame): Ditto.
3427
3428         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
3429         (mips_gdbarch_init): Do not set pc_in_sigtramp.
3430         * mipsread.c (sigtramp_address): Delete extern variable.
3431         (mipscoff_new_init): Delete reference.
3432         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
3433         (fixup_sigtramp): Delete function.
3434         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
3435         (fixup_sigtramp): Delete declarations.
3436
3437         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
3438         deprecated_pc_in_sigtramp.
3439         (ppcnbsd_pc_in_sigtramp): Delete function.
3440
3441 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
3442
3443         * config/m68k/nm-nbsd.h: Tweak comments.
3444         * config/m68k/nm-nbsdaout.h: Likewise.
3445
3446 2004-04-30  Andrew Cagney  <cagney@redhat.com>
3447
3448         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
3449         legacy_pc_in_sigtramp.
3450         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
3451
3452 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
3453
3454         Add OpenBSD/m68k support.
3455         * NEWS (New native configurations): Mention OpenBSD/m68k.
3456         * m68kbsd-tdep.c: New file.
3457         * m68kbsd-nat.c: New file.
3458         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
3459         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
3460         * configure.host: Add m68k-*-openbsd.
3461         * configure.tgt: Add m68k-*-openbsd.
3462         * config/m68k/tm-obsd.h: New file.
3463         * config/m68k/obsd.mt: New file.
3464         * config/m68k/obsd.mh: New file.
3465         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
3466         m68kbsd-tdep.c.
3467
3468 2004-04-30  Andrew Cagney  <cagney@redhat.com>
3469
3470         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
3471         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
3472
3473 2004-04-30  Mark Kettenis  <kettenis@gnu.org>
3474
3475         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
3476         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
3477
3478 2004-04-30  Brian Ford  <ford@vss.fsi.com>
3479
3480         Revert 2004-04-16 change.
3481         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
3482         (i386_coff_init_abi): Remove.
3483         * i386-tdep.h (i386_coff_init_abi): Remove.
3484         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
3485
3486 2004-04-30  Andrew Cagney  <cagney@redhat.com>
3487
3488         * blockframe.c (find_pc_partial_function): Delete use of
3489         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
3490         DEPRECATED_SIGTRAMP_END.
3491
3492         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
3493         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
3494         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
3495         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
3496         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
3497
3498         * defs.h (deprecated_inside_entry_file): Delete declaration.
3499         * blockframe.c (deprecated_inside_entry_file): Delete function.
3500         (legacy_frame_chain_valid): Delete call.
3501         * sh64-tdep.c (sh64_frame_chain): Delete call.
3502         * objfiles.h: Update comments.
3503         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
3504         call.
3505         * frame.c (get_prev_frame): Delete call, update comments.
3506
3507 2004-04-30  Brian Ford  <ford@vss.fsi.com>
3508
3509         * MAINTAINERS (Write After Approval): Add myself.
3510
3511 2004-04-30  Andrew Cagney  <cagney@redhat.com>
3512
3513         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
3514         * gdbarch.h, gdbarch.c: Re-generate.
3515         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
3516         code.
3517
3518 2004-04-30  Andrew Cagney  <cagney@redhat.com>
3519
3520         * gdb-events.sh (selected_thread_changed)
3521         (selected_frame_level_changed, target_changed): Delete.
3522         * gdb-events.h, gdb-events.c: Re-generate.
3523         * valops.c (value_assign): Update.
3524         * stack.c (select_frame_command, up_silently_base)
3525         (down_silently_base): Update.
3526
3527 2004-04-29  Andrew Cagney  <cagney@redhat.com>
3528
3529         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
3530         registers correctly.
3531         (print_gp_register_row, mips32_heuristic_proc_desc)
3532         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
3533         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
3534         references to mips_isa_regsize.
3535
3536 2004-04-29  Andrew Cagney  <cagney@redhat.com>
3537
3538         * mips-tdep.c (struct gdbarch_tdep): Delete
3539         mips_fp_register_double.
3540         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
3541         mips_abi_regsize.
3542         (mips_gdbarch_init): Do not set mips_fp_register_double.
3543         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
3544
3545 2004-04-29  Joel Brobecker  <brobecker@gnat.com>
3546
3547         Committed by Andrew Cagney.
3548         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
3549         function calls.
3550
3551 2004-04-29  Andrew Cagney  <cagney@redhat.com>
3552
3553         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
3554         gdbarch, use mips_abi, update callers.
3555         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
3556         mips_abi_regsize, update callers.
3557         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
3558         mips_default_abi_regsize.
3559         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
3560         mips_default_abi_regsize.
3561
3562 2004-04-29  Andrew Cagney  <cagney@redhat.com>
3563
3564         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
3565         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
3566         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
3567         mips_default_abi_regsize.
3568         (mips_isa_regsize): Rename mips_regisze.
3569         * mipsnbsd-tdep.c: Update.
3570         * mips-linux-tdep.c: Update.
3571         * irix5-nat.c: Update.
3572         * mips-tdep.h (mips_isa_regsize): Update.
3573
3574         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
3575         Delete all disabled code.
3576         * gdb-events.h, gdb-events.c: Re-generate.
3577         
3578 2004-04-19  Jerome Guitton  <guitton@gnat.com>
3579             Mark Kettenis  <kettenis@gnu.org>
3580
3581         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
3582         the function begins with a branch instruction.
3583
3584 2004-04-29  Mark Kettenis  <kettenis@gnu.org>
3585
3586         * i386-tdep.c: Fix spelling mistakes.
3587
3588 2004-04-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3589             Andrew Cagney  <cagney@redhat.com>
3590
3591         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
3592         <sys/proc.h>.
3593         * acconfig.h: Provide default _KMEMUSER value.
3594         * config.in, configure: Re-generate.
3595         * NEWS: Mention fix.
3596
3597 2004-04-24  Randolph Chung  <tausq@debian.org>
3598
3599         * configure.host (hppa*-*-linux*): New target.
3600         * configure.tgt (hppa*-*-linux*): Likewise.
3601         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
3602         gdbarch_init_osabi() call earlier so that osabi-specific frame
3603         unwinders can be registered first.
3604         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
3605         hppa-linux-nat.c.
3606         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
3607         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
3608         * config/pa/linux.mh: New file.
3609         * config/pa/linux.mt: New file.
3610         * config/pa/nm-linux.h: New file.
3611         * config/pa/xm-linux.h: New file.
3612         * hppa-linux-nat.c: New file.
3613         * hppa-linux-tdep.c: New file.
3614
3615 2004-04-28  Randolph Chung  <tausq@debian.org>
3616
3617         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
3618         return values.
3619         (hppa32_push_dummy_call): Fix small struct and floating point argument 
3620         passing, and make sure the stack frame is properly aligned.
3621
3622 2004-04-28  Andrew Cagney  <cagney@redhat.com>
3623
3624         * stack.c (print_stack_frame): Fix description.
3625
3626         * NEWS: Mention gdb/gdbserver/configure execute permission
3627         changed.  PR server/519.
3628
3629 2004-04-28  Andrew Cagney  <cagney@redhat.com>
3630
3631         * stack.c (print_stack_frame_stub): Delete declaration.
3632         (struct print_stack_frame_args, print_stack_frame)
3633         (print_frame_info, print_frame): Replace "source" with print what.
3634         Replace "print" with "print_level".  Replace "args" with
3635         "print_args".
3636         * frame.h (show_and_print_stack_frame, print_stack_frame)
3637         (print_frame_info): Update declarations.
3638         * stack.c (select_and_print_frame, frame_command)
3639         (current_frame_command, up_command, down_command): Update calls -
3640         use get_selected_frame, pass "enum print_what" for source, do not
3641         call frame_relative_level.
3642         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
3643         * remote-rdp.c (remote_rdp_open): Ditto.
3644         * remote-mips.c (common_open): Ditto.
3645         * remote-e7000.c (e7000_start_remote): Ditto.
3646         * ocd.c (ocd_start_remote): Ditto.
3647         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
3648         * infrun.c (normal_stop): Ditto.
3649         * inflow.c (kill_command): Ditto.
3650         * infcmd.c (finish_command): Ditto.
3651         * corelow.c (core_open): Ditto.
3652         * tracepoint.c (finish_tfind_command): Ditto.
3653         * thread.c (info_threads_command, info_threads_command) 
3654         (restore_current_thread, do_captured_thread_select): Ditto.
3655         * ada-tasks.c (task_command): Ditto.
3656
3657 2004-04-26  Orjan Friberg <orjanf@axis.com>
3658
3659         * frame.c: Include "observer.h".
3660         (frame_observer_target_changed): New function.
3661         (_initialize_frame): Attach target_changed observer.
3662         * regcache.c: Include "observer.h".
3663         (regcache_observer_target_changed): New function.
3664         (_initialize_regcache): Attach target_changed observer.
3665         * valops.c: Include "observer.h".
3666         (value_assign): Notify target_changed event when modifying register.
3667         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
3668
3669 2004-04-26  Orjan Friberg <orjanf@axis.com>
3670
3671         From Paul Koning <pkoning@equallogic.com>:
3672         * breakpoint.c (free_valchain): New function.
3673         (insert_bp_location, delete_breakpoint): Use free_valchain.
3674         (remove_breakpoint): Do not remove the valchain.
3675         (bpstat_stop_status): If not stopped by watchpoint, skip
3676         watchpoints when generating stop status list.
3677         * infrun.c (handle_inferior_event): Make
3678         stepped_after_stopped_by_watchpoint a global variable.
3679         * remote.c (remote_stopped_data_address): Return watch data
3680         address rather than zero if stepped_after_stopped_by_watchpoint is
3681         set.
3682
3683 2004-04-25  Michael Chastain  <mec.gnu@mindspring.com>
3684
3685         Fix PR gdb/1626.
3686         * configure.in: Check for curses after termcap.
3687         On osf5.*, do not check for ncurses.
3688         * configure: Regenerate.
3689
3690 2004-04-25  Mark Kettenis  <kettenis@gnu.org>
3691
3692         * ppcobsd-nat.c: Include "ppc-tdep.h".
3693         * Makefile.in (ppcobsd-nat.o): Update dependencies.
3694
3695         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
3696         Fixes PR tdep/1623 and PR tdep/1624.
3697
3698 2004-04-24  Michael Chastain  <mec.gnu@mindspring.com>
3699
3700         * xmodem.h, xmodem.c: Remove files.
3701         * Makefile.in: Remove references to xmodem.h, xmodem.c.
3702
3703 2004-04-23  Randolph Chung  <tausq@debian.org>
3704
3705         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
3706         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
3707         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
3708         for handling stackless frames.
3709         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
3710
3711 2004-04-23  Randolph Chung  <tausq@debian.org>
3712
3713         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
3714         starts at a pc before the frame is created.
3715
3716 2004-04-23  Joel Brobecker  <brobecker@gnat.com>
3717
3718         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
3719
3720 2004-04-23  Jerome Guitton  <guitton@gnat.fr>
3721
3722         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
3723         use convert_typed_floating to get the appropriate format.
3724
3725 2004-04-22  Randolph Chung  <tausq@debian.org>
3726
3727         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
3728         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
3729         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
3730         (hppa_sign_extend): Add prototype.
3731         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
3732         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
3733         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
3734         hppa targets will also use these functions.
3735         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
3736         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
3737         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
3738         (hppa_gdbarch_init): Remove gdbarch setting of 
3739         skip_trampoline_code, in_solib_call_trampoline and
3740         in_solib_return_trampoline.
3741         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3742         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
3743         hppa_in_solib_call_trampoline.
3744         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
3745         Moved from hppa-tdep.c.
3746         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
3747         in_solib_call_trampoline and in_solib_return_trampoline.
3748
3749 2004-04-22  Randolph Chung  <tausq@debian.org>
3750
3751         * hppa-tdep.c (hppa_debug): New variable.
3752         (find_unwind_entry, hppa_frame_cache): Add debug output.
3753         (_initialize_hppa_tdep): Add command to set debug flag.
3754
3755 2004-04-22  Andrew Cagney  <cagney@redhat.com>
3756
3757         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
3758         "trad-frame.h".
3759         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
3760         signal trampoline unwinder.
3761         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
3762
3763 2004-04-22  Mark Kettenis  <kettenis@gnu.org>
3764
3765         Add OpenBSD/powerpc support.
3766         * NEWS (New native configurations): Mention OpenBSD/powerpc.
3767         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
3768         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
3769         (ppc_collect_fpregset): New prototypes.
3770         * ppcobsd-nat.c: New file.
3771         * ppcobsd-tdep.c: New file.
3772         * ppcobsd-tdep.h: New file.
3773         * rs6000-tdep.c: Include "regset.h".
3774         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
3775         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
3776         New functions.
3777         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
3778         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
3779         (rs6000-tdep.o): Update dependencies.
3780         * configure.host: Add powerpc-*-openbsd.
3781         * configure.tgt: Add powerpc-*-openbsd.
3782         * config/powerpc/obsd.mh: New file.
3783         * config/powerpc/nm-obsd.h: New file.
3784         * config/powerpc/obsd.mt: New file.
3785
3786 2004-04-22  Andrew Cagney  <cagney@redhat.com>
3787
3788         * frame.h (show_frame_info): Delete declaration.
3789
3790         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
3791         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
3792         * m32r-tdep.c (m32r_frame_this_id): Ditto.
3793         * frv-tdep.c (frv_frame_this_id): Ditto.
3794         * avr-tdep.c (avr_frame_this_id): Ditto.
3795
3796 2004-04-22  Elena Zannoni  <ezannoni@redhat.com>
3797
3798         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
3799
3800 2004-04-22  Jim Blandy  <jimb@redhat.com>
3801
3802         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
3803         register number zero.
3804
3805 2004-04-21  Michael Snyder  <msnyder@redhat.com>
3806
3807         * mips-tdep.c (heuristic_proc_start): 
3808         Warning() already prefixes "Warning: ".
3809
3810 2004-04-21  Andrew Cagney  <cagney@redhat.com>
3811
3812         * annotate.h (deprecated_annotate_starting_hook)
3813         (deprecated_annotate_stopped_hook)
3814         (deprecated_annotate_exited_hook)
3815         (deprecated_annotate_signal_hook)
3816         (deprecated_annotate_signalled_hook): Deprecate.
3817         * tracepoint.h (deprecated_create_tracepoint_hook)
3818         (deprecated_delete_tracepoint_hook)
3819         (deprecated_modify_tracepoint_hook)
3820         (deprecated_trace_find_hook)
3821         (deprecated_trace_start_stop_hook): Deprecate.
3822         * target.h (deprecated_target_new_objfile_hook): Deprecate.
3823         * remote.h (deprecated_target_resume_hook)
3824         (deprecated_target_wait_loop_hook): Deprecate.
3825         * gdbcore.h (deprecated_exec_file_display_hook)
3826         (deprecated_file_changed_hook): Deprecate.
3827         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
3828         * defs.h (deprecated_modify_breakpoint_hook)
3829         (deprecated_command_loop_hook, deprecated_show_load_progress)
3830         (deprecated_print_frame_info_listing_hook)
3831         (deprecated_query_hook, deprecated_warning_hook)
3832         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
3833         (deprecated_delete_breakpoint_hook)
3834         (deprecated_interactive_hook, deprecated_registers_changed_hook)
3835         (deprecated_readline_begin_hook, deprecated_readline_hook)
3836         (deprecated_readline_end_hook, deprecated_register_changed_hook)
3837         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
3838         (deprecated_context_hook, deprecated_target_wait_hook)
3839         (deprecated_attach_hook, deprecated_detach_hook)
3840         (deprecated_call_command_hook, deprecated_set_hook)
3841         (deprecated_error_hook, deprecated_error_begin_hook)
3842         (deprecated_ui_load_progress_hook): Deprecate.
3843         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
3844         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
3845         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
3846         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
3847         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
3848         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
3849         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
3850         * annotate.c, aix-thread.c: Update.
3851
3852 2004-04-21  Andrew Cagney  <cagney@redhat.com>
3853
3854         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
3855         * vaxnbsd-tdep.c: Include "gdb_string.h".
3856
3857         * symfile.c (symbol_file_add_from_memory): #if 0 function.
3858         (add_symbol_file_from_memory_command): #if 0 function body, call
3859         error instead.
3860
3861 2004-04-21  Andrew Cagney  <cagney@redhat.com>
3862
3863         * gdbcore.h: Update copyright.
3864         (deprecated_add_core_fns): Rename add_core_fns.
3865         * win32-nat.c (_initialize_core_win32): Update.
3866         * sun3-nat.c (_initialize_core_sun3): Update.
3867         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
3868         * rs6000-nat.c (_initialize_core_rs6000): Update.
3869         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
3870         * nto-tdep.c (_initialize_nto_tdep): Update.
3871         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
3872         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
3873         * mips-nat.c (_initialize_core_mips): Update.
3874         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
3875         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
3876         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
3877         * lynx-nat.c (_initialize_core_lynx): Update.
3878         * irix5-nat.c (_initialize_core_irix5): Update.
3879         * i386-interix-nat.c (_initialize_core_interix): Update.
3880         * cris-tdep.c (_initialize_cris_tdep): Update.
3881         * corelow.c (deprecated_add_core_fns): Update.
3882         * core-regset.c (_initialize_core_regset): Update.
3883         * core-aout.c (_initialize_core_aout): Update.
3884         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
3885         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
3886         * alpha-nat.c (_initialize_core_alpha): Update.
3887
3888 2004-04-21  Jim Blandy  <jimb@redhat.com>
3889
3890         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
3891
3892 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
3893
3894         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
3895         Delete.
3896         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
3897         (read_attribute_value): Update calls to dwarf_alloc_block.
3898         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
3899         dwarf2_tmp_obstack.
3900         (psymtab_to_symtab_1): Likewise.  Clean up using
3901         free_stack_comp_unit.
3902         (add_to_cu_func_list): Use the comp_unit_obstack.
3903
3904 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
3905
3906         * dwarf2read.c (dwarf2_flag_true_p): New function.
3907         (die_is_declaration): Use the function above. Add some comments.
3908
3909 2004-04-19  Mark Kettenis  <kettenis@gnu.org>
3910
3911         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
3912         architecture when registering sparcnbsd_core_osabi_sniffer.
3913         Adjust comment.
3914
3915 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
3916
3917         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
3918         return value.
3919
3920         Based on a patch from Brian Ford <ford@vss.fsi.com>:
3921         * i386-tdep.c: Correct register numbering scheme comments
3922         throughout.
3923         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
3924         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
3925         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
3926         (i386_gdb_arch_init): Likewise.
3927
3928         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
3929         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
3930         ppcnbsd-tdep.o.
3931
3932         * m68k-tdep.h: Tweak comments.
3933         * m68k-tdep.c: Tweak comment.
3934
3935 2004-04-17  Randolph Chung  <tausq@debian.org>
3936
3937         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
3938         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
3939         (hppa_hpux_som_init_abi): Set is_elf to 0.
3940         (hppa_hpux_elf_init_abi): Set is_elf to 1.
3941         * hppa-tdep.c (low_text_segment_address): Remove global.
3942         (record_text_segment_lowaddr): Pass in low address as parameter. Use
3943         section offset to calculate segment address.
3944         (internalize_unwinds): Define low_text_segment_address as local and
3945         pass to record_text_segment_lowaddr for ELF targets.
3946         (hppa_gdbarch_init): Zero fill tdep structure.
3947         (hppa_dump_tdep): Print tdep structure.
3948         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
3949
3950 2004-04-17  Randolph Chung  <tausq@debian.org>
3951
3952         * hppa-tdep.c (hppa_pseudo_register_read): Define.
3953         (hppa_gdbarch_init): Set pseudo_register_read.
3954         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
3955         * regcache.c (supply_register): Remove check for
3956         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
3957
3958 2004-04-17  Randolph Chung  <tausq@debian.org>
3959
3960         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
3961         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
3962         (hpread_adjust_stack_address): Move to hpread.c.
3963         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
3964         obj_private_struct): Move from tm-hppa.h.
3965         * hpread.c (hppa-tdep.h): Include.
3966         (hpread_adjust_stack_address): Move from hppa-tdep.c.
3967         (hpread_read_function_type, hpread_read_doc_function_type)
3968         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
3969         directly.
3970         * pa64solib.c (hppa-tdep.h): Include.
3971         * somsolib.c (hppa-tdep.h): Include.
3972         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
3973         inferior_status): Remove unused forward declarations.
3974         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
3975         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
3976         obj_private_struct): Move to hppa-tdep.h.
3977         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
3978
3979 2004-04-17  Randolph Chung  <tausq@debian.org>
3980
3981         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
3982         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
3983         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
3984         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
3985         Remove forward declaration and make static.
3986         (hppa_reg_struct_has_addr): Remove.
3987
3988 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
3989
3990         * observer.sh: Move comments in sed command to first column.
3991
3992 2004-04-16  Jason Molenda  (jmolenda@apple.com)
3993
3994         * frame.c: Minor typeo corrections in comments.
3995
3996 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
3997
3998         * observer.c (observer_test_first_notification_function): Update
3999         function profile.
4000         (observer_test_second_notification_function): Likewise.
4001         (observer_test_third_notification_function): Likewise.
4002
4003 2004-04-16  Mark Kettenis  <kettenis@gnu.org>
4004
4005         From Brian Ford <ford@vss.fsi.com>:
4006         * i386-tdep.c (i386_coff_init_abi): New function.
4007         * i386-tdep.h (i386_coff_init_abi): New prototype.      
4008         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
4009         register number translation functions for DWARF and DWARF 2.
4010
4011 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
4012
4013         * dwarf2read.c: Back out my previous change, it was incorrect.
4014
4015 2004-04-16  Daniel Jacobowitz  <drow@mvista.com>
4016
4017         * dwarf2read.c: Include "hashtab.h".
4018         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
4019         has_namespace_info.
4020         (struct partial_die_info): Add comments.  Use bitfields to reduce
4021         memory footprint.  Add scope, scope_set, has_specification,
4022         spec_offset, die_parent, die_child, and die_sibling.
4023         (peek_die_abbrev): Add prototype.
4024         (partial_read_comp_unit_head): New function, broken out from
4025         dwarf2_build_psymtabs_hard.
4026         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
4027         Use partial_read_comp_unit_head.  Initialize the CU and
4028         comp_unit_obstack.  Update calls to read_partial_die and
4029         scan_partial_symbols.  Use free_stack_comp_unit and
4030         load_partial_dies.
4031         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
4032         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
4033         Update calls to helper functions.  Remove NAMESPACE argument.
4034         Update comments.
4035         (partial_die_parent_scope, partial_die_full_name): New functions.
4036         (add_partial_symbol): Remove namespace argument.  Update call to
4037         pdi_needs_namespace.  Use partial_die_full_name.  Handle
4038         DW_TAG_namespace.  Check has_namespace_info flag.
4039         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
4040         tag.  Handle namespaces.
4041         (add_partial_namespace, add_partial_enumeration): Simplify.
4042         (guess_structure_name): New function, derived from
4043         add_partial_structure.
4044         (add_partial_structure): Remove.
4045         (determine_class_name): Update comment.
4046         (dwarf2_read_abbrevs): Set has_namespace_info flag.
4047         (is_type_tag_for_partial, load_partial_dies): New functions.
4048         (read_partial_die): Pass abbrev and abbrev_len as arguments.
4049         Record specifications instead of following them immediately.
4050         (find_partial_die_in_comp_unit, find_partial_die)
4051         (fixup_partial_die, free_stack_comp_unit)
4052         (hashtab_obstack_allocate, dummy_obstack_deallocate)
4053         (partial_die_hash, partial_die_eq): New functions.
4054         * Makefile.in (hashtab_h): Define.
4055         (dwarf2read.o): Update dependencies.
4056         (observer_inc, observer_h): Move to the correct section.
4057
4058 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
4059
4060         * dwarf2read.c (dwarf2_attribute_true_p): New function.
4061         (die_is_declaration): Use the function above. Add comment.
4062
4063 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
4064
4065         * dwarf2read.c (read_structure_scope): Identify stub types
4066         using die_is_declaration() only.
4067
4068 2004-04-15  Roland McGrath  <roland@redhat.com>
4069
4070         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
4071         argument instead of NAME.
4072         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
4073         in call to symbol_file_add_with_addrs_or_offsets.
4074         (build_addr_info): New function, helper for ...
4075         (symbol_file_add_from_memory): New function.
4076         (add_symbol_file_from_memory_command): New function using that.
4077         (_initialize_symfile): Register it for add-symbol-file-from-memory.
4078         (pre_add_symbol_hook): Add const to argument type.
4079         * symfile.h (symbol_file_add_from_memory): Declare it.
4080
4081 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
4082
4083         * NEWS (New native configurations): Mention OpenBSD/vax.
4084         * configure.host: Add vax-*-openbsd*.
4085         * config/vax/obsd.mh: New file.
4086         * config/vax/nm-obsd.h: New file.
4087
4088         * vax-tdep.c: Include "regset.h".
4089         (vax_supply_gregset): New function.
4090         (vax_gregset): New variable.
4091         (vax_regset_from_core_section): New function.
4092         (vax_gdbarch_init): Set regset_from_core_section.
4093         * Makefile.in (vax-tdep.o): Update dependencies.
4094
4095 2004-04-15  Andrew Cagney  <cagney@redhat.com>
4096
4097         * observer.c (normal_stop_subject, observer_notify_normal_stop)
4098         (observer_normal_stop_notification_stub)
4099         (observer_attach_normal_stop, observer_detach_normal_stop):
4100         Delete, replaced by #include "observer.inc".
4101         * infrun.c (normal_stop): Pass "stop_bpstat" to
4102         observer_notify_normal_stop.
4103         * Makefile.in (observer_inc): Define.
4104         (observer.o): Update dependencies.
4105         (observer.h, observer.inc): New rules.
4106         * observer.h: Delete file.
4107         * observer.sh: New file.
4108
4109 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
4110
4111         * vax-tdep.c (vax_frame_cache): Fix typo.
4112
4113 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
4114
4115         * NEWS (New native configurations): Mention NetBSD/vax.
4116         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
4117         * config/vax/nbsdelf.mh: New file.
4118         * config/vax/nbsdaout.mh: New file.
4119         * config/vax/nm-nbsd.h: New file.
4120         * config/vax/nm-nbsdaout.h: New file.
4121
4122         * vaxnbsd-tdep.c: New file.
4123         * Makefile.in (vaxnbsd-tdep.o): New dependency.
4124         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
4125         * config/vax/nbsd.mt: New file.
4126         * config/vax/tm-nbsd.h: New file.
4127
4128         * Makefile.in (vaxbsd-nat.o): New dependency.
4129
4130         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
4131         * vax-tdep.c (vax_store_arguments): Remove struct_return and
4132         struct_addr arguments.  Don't push return value address.
4133         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
4134         arguments to vax_store_arguments.  Store return value address in
4135         R1.
4136         (vax_store_struct_return, vax_extract_return_value)
4137         (vax_store_return_value): Remove functions.
4138         (vax_return_value): New function.
4139         (vax_gdbarch_init): Set return value.  Don't set
4140         deprecated_store_struct_return, deprecated_extract_struct_return
4141         and deprecated_store_return_value.
4142
4143 2004-04-14  Andreas Schwab  <schwab@suse.de>
4144
4145         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
4146         value buffer.
4147         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
4148
4149 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
4150
4151         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
4152         (vax_unwind_dummy_id): New functions.
4153         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
4154         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
4155         variables.
4156         (vax_fix_call_dummy): Remove function.
4157         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
4158         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
4159         call_dummy_location, deprecated_call_dummy_words,
4160         deprecated_sizeof_call_dummy_words,
4161         deprecated_call_dummy_breakpoint_offset,
4162         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
4163         and deprecated_dummy_write_sp.
4164
4165 2004-04-13  David Carlton  <carlton@kealia.com>
4166
4167         * MAINTAINERS: Move myself to "paper trail" section.
4168
4169 2004-04-12  Mark Kettenis  <kettenis@gnu.org>
4170
4171         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
4172         "trad-frame.h".
4173         (vax_frame_init_saved_regs): Remove function.
4174         (vax_sigtramp_saved_pc): Remove function.
4175         (vax_frame_saved_pc): Remove function.
4176         (vax_frame_args_address): Remove function.
4177         (vax_frame_num_args): Rewrite.
4178         (vax_frame_chain): Remove function.
4179         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
4180         VAX_FP_REGNUM.
4181         (vax_pop_frame): Likewise.
4182         (vax_saved_pc_after_call): Remove function.
4183         (struct vax_frame_cache): New structure.
4184         (vax_frame_cache): New function.
4185         (vax_frame_this_id): New function.
4186         (vax_frame_prev_register): New function.
4187         (vax_frame_unwind): New variable.
4188         (vax_frame_sniffer): New function.
4189         (vax_frame_base_address): New function.
4190         (vax_frame_args_address): New function.
4191         (vax_frame_base): New variable.
4192         (vax_unwind_pc): New function.
4193         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
4194         deprecated_fp_regnum, deprecated_saved_pc_after_call,
4195         deprecated_frame_chain, deprecated_frame_saved_pc,
4196         deprecated_frame_args_address and
4197         deprecated_frame_init_saved_regs.
4198         * Makefile.in (vax-tdep.o): Update dependencies.
4199
4200         * vaxbsd-nat.c: New file.
4201
4202         * vax-tdep.h: Update copyright year.  Adjust comments.
4203         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
4204         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
4205         (vax_regnum): New enum.  Replacing...
4206         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
4207         (VAX_PS_REGNUM): ... these removed macros.
4208         * vax-tdep.c (vax_register_name): Remove prototype.
4209         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
4210         (vax_register_byte, vax_register_raw_size,
4211         vax_register_virtual_size, vax_register_virtual_type): Remove
4212         functions.
4213         (vax_register_type): New function.
4214         (vax_breakpoint_from_pc): Reorganize.
4215         (vax_gdbarch_init): Set register_type.  Don't set
4216         deprecated_register_size, deprecated_register_bytes,
4217         deprecated_register_byte, deprecated_register_raw_size,
4218         deprecated_max_register_raw_size,
4219         deprecated_register_virtual_size,
4220         deprecated_max_register_virtual_size and
4221         deprecated_register_virtual_type.  Add comment on stack direction.
4222
4223 2004-04-11  Mark Kettenis  <kettenis@gnu.org>
4224
4225         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
4226         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
4227         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
4228
4229 2004-04-10  Randolph Chung  <tausq@debian.org>
4230
4231         * MAINTAINERS (write after approval): Add myself.
4232
4233 2004-04-07  Randolph Chung  <tausq@debian.org>
4234
4235         * hppa-tdep.c (hppa_inner_than): Remove.
4236         (is_pa_2): Remove unused static variable.
4237         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
4238
4239 2004-03-10  Paul N. Hilfinger  <Hilfinger@gnat.com>
4240
4241         * language.h (language_defn): Add new la_post_parser field.
4242         * parser-defs.h (null_post_parser): New declaration (default for
4243         la_post_parser).
4244
4245         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
4246         insert call to that function.
4247         (parse_exp_in_context): New function, including code formerly in
4248         parse_exp_1.  Calls language-dependent post-parser after
4249         prefixification.
4250         (parse_expression_in_context): New exported function.
4251         (null_post_parser): New definition.
4252         * expression.h (parse_expression_in_context): Add declaration.
4253
4254         * p-lang.c (pascal_language_defn): Add trivial post-parser.
4255         * c-lang.c (c_language_defn): Ditto.
4256         (cplus_language_defn): Ditto.
4257         (asm_language_defn): Ditto.
4258         (minimal_language_defn): Ditto.
4259         * f-lang.c (f_language_defn): Ditto.
4260         * jv-lang.c (java_language_defn): Ditto.
4261         * language.c (unknown_language_defn): Ditto.
4262         (auto_language_defn): Ditto.
4263         (local_language_defn): Ditto.
4264         * m2-lang.c (m2_language_defn): Ditto.
4265         * scm-lang.c (scm_language_defn): Ditto.
4266         * obj-lang.c (objc_language_defn): Ditto.
4267
4268 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
4269
4270         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
4271         (amd64nbsd_mcontext_addr): New function.
4272         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
4273         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
4274         with amd64nbsd_r_reg_offset, instead of building it on the fly.
4275
4276         * corelow.c (core_xfer_partial): Fix coding standards violation.
4277         Add support for TARGET_OBJECT_WCOOKIE.
4278
4279         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
4280         deprecated_pc_in_sigtramp.
4281         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
4282         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
4283         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
4284         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
4285         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
4286         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
4287         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
4288
4289         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
4290         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
4291         Fix typo.
4292
4293         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
4294         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
4295         (amd64_collect_fxsave): Likewise.
4296
4297         * i386-sol2-tdep.c: Include "gdb_string.h".
4298         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
4299         name.
4300         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
4301
4302 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
4303
4304         * i386-sol2-tdep.c: Include "solib-svr4.h".
4305         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
4306         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
4307         * config/i386/tm-i386sol2.h: Include :solib.h".
4308         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
4309         solib-svr4.o and solib-legacy.o.
4310         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
4311         solib-svr4.o.
4312
4313 2004-04-09  Mark Kettenis  <kettenis@gnu.org>
4314
4315         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
4316         whether a register is supplied by PTRACE_GETFPREGS.
4317         (store_inferior_registers): Likewise.
4318         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
4319         whether a register is supplied by PT_GETFPREGS.
4320         (store_inferior_registers): Likewise.
4321
4322         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
4323         * config/i386/linux64.mt (TDEPFILES): Likewise.
4324
4325         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
4326
4327         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
4328         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
4329         the program counter is in the range specified by `struct
4330         gdbarch_tdep'.
4331         * amd64-linux-tdep.c: Include "symtab.h".
4332         (amd64_linux_pc_in_sigtramp): Remove function.
4333         (amd64_linux_sigtramp_p): New function.
4334         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
4335         deprecated_pc_in_sigtramp.
4336         * amd64nbsd-tdep.c: Include "symtab.h".
4337         (amd64nbsd_sigtramp_p): New function.
4338         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
4339         deprecated_pc_in_sigtramp.
4340         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
4341         few comments.
4342         (amd64obsd_pc_in_sigtramp): Remove function.
4343         (amd64obsd_sigtramp_p): New function.
4344         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
4345         deprecated_pc_in_sigtramp.
4346         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
4347         (i386bsd_pc_ins_sigtramp): Remove prototype.
4348         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
4349         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
4350         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
4351         the program counter is in the range specified by `struct
4352         gdbarch_tdep'.
4353         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
4354         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
4355         (i386_go32_pc_in_sigtramp): Remove function.
4356         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
4357         Initialize TDEP->sigtramp_p.
4358         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
4359         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
4360         deprecated_pc_in_sigtramp.
4361         * i386-linux-tdep.c: Adjust comments.
4362         (i386_linux_pc_in_sigtramp): Remove function.
4363         (i386_linux_sigtramp_p): New function.
4364         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
4365         deprecated_pc_in_sigtramp.
4366         * i386-nto-tdep.c: Update copyright year.
4367         (i386nto_pc_in_sigtramp): Remove function.
4368         (i386nto_sigtramp_p): New function.
4369         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
4370         SP_REGNUM.
4371         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
4372         deprecated_pc_in_sigtramp.
4373         * i386-sol2-tdep.c: Update copyright year.
4374         (i386_sol2_pc_in_sigtramp): Remove function.
4375         (i386_sol2_sigtramp_p): New function.
4376         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
4377         deprecated_pc_in_sigtramp.
4378         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
4379         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
4380         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
4381         deprecated_sigtramp_start and deprecated_sigtramp_end.
4382         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
4383         (i386nbsd_pc_in_sigtramp): Remove function.
4384         (i386nbsd_sigtramp_p): New function.
4385         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
4386         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
4387         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
4388         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
4389         (i386obsd_pc_in_sigtramp): Remove function.
4390         (i386obsd_sigtramp_p): New function.
4391         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
4392         functions.
4393         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
4394         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
4395         TDEP->sigtramp_p.
4396         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
4397         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
4398         dependencies.
4399
4400         * config/i386/i386aout.mt: Remove file.
4401
4402         * configure.tgt: Remove i[34567]86-*-go32*,
4403         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
4404         and i[34567]86-*-isc*.  Set gdb_target to i386 for
4405         i[34567]86-*-netware* and i[34567]86-*-*.
4406         * config/i386/i386.mt: New file.
4407         * config/i386/embed.mt: Remove file.
4408         * config/i386/go32.mt: Remove file.
4409         * config/i386/i386nw.mt: Remove file.
4410         * config/i386/i386v.mt: Remove file.
4411         * config/i386/tm-go32.h: Remove file.
4412
4413         * tui/tui-hooks.c: Include "readline/readline.h" after
4414         "gdb_curses.h" instead of before.
4415         * tui/tui-io.c: Likewise.
4416
4417         * tui/tui.c: Fix typo in comment.
4418
4419         * sparc64-tdep.c (sparc_address_from_register): Remove function.
4420
4421 2004-04-08  Andrew Cagney  <cagney@redhat.com>
4422
4423         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
4424         (deprecated_exception_support_initialized): Declare.
4425         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
4426         (initialize_hp_cxx_exception_support)
4427         (child_enable_exception_callback): Update.
4428         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
4429         (deprecated_exception_support_initialized): Rename
4430         deprecated_exception_catchpoints_are_fragile and
4431         deprecated_exception_support_initialized.
4432         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
4433
4434         * symtab.c (deprecated_hp_som_som_object_present): Rename
4435         hp_som_som_object_present.
4436         * symtab.h (deprecated_hp_som_som_object_present): Declare.
4437         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
4438         Update.  Delete extern declaration.
4439         * valops.c (hp_som_som_object_present): Ditto.
4440         * parse.c (deprecated_hp_som_som_object_present)
4441         (parse_nested_classes_for_hpacc): Ditto.
4442         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
4443         * hppa-hpux-tdep.c (hp_som_som_object_present)
4444         (initialize_hp_cxx_exception_support): Ditto.
4445         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
4446         * cp-valprint.c (hp_som_som_object_present)
4447         (cp_print_class_method): Ditto.
4448         * c-typeprint.c (hp_som_som_object_present):
4449         (c_type_print_base): Ditto.
4450         * c-exp.y (hp_som_som_object_present): Ditto.
4451
4452 2004-04-08  Andrew Cagney  <cagney@redhat.com>
4453
4454         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
4455         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
4456         (frame_unwind_find_by_frame): Re-implement the unwind code so
4457         that it can both prepend and append sniffers.  Replace
4458         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
4459         * tramp-frame.c (tramp_frame_append): Use
4460         frame_unwind_prepend_unwinder.
4461         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
4462         frame_unwind_register_unwinder.
4463         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
4464         tramp_frame_append.
4465         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
4466         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
4467         (mips_linux_init_abi): Update.
4468
4469 2004-04-08  Kevin Buettner  <kevinb@redhat.com>
4470
4471         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
4472         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
4473         file support.
4474
4475 2004-04-07  Kevin Buettner  <kevinb@redhat.com>
4476
4477         * ia64-tdep.c (elf.h): Don't include.
4478         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
4479
4480 2004-04-07  Jason Molenda  (jmolenda@apple.com)
4481
4482         * frame.h: Typeo corrections in comments.
4483
4484 2004-04-07  Jim Blandy  <jimb@redhat.com>
4485
4486         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
4487         %esp and %ebp
4488
4489 2004-04-07  Mark Kettenis  <kettenis@gnu.org>
4490
4491         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
4492         * config/sparc/linux64.mt (TDEPFILES): Likewise.
4493         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4494         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
4495         and solib-legacy.o.
4496         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
4497         solib-svr4.o.
4498         * config/sparc/tm-sol2.h: Update copyright year.  Include
4499         "solib.h".
4500
4501         * sparc-sol2-tdep.c: Update copyright year.  Include
4502         "solib-svr4.h".
4503         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
4504         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
4505         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
4506         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
4507         dependencies.
4508
4509 2004-04-06  Andrew Cagney  <cagney@redhat.com>
4510
4511         * infttrace.c: Include "infttrace.h".
4512         * infttrace.h: Include "target.h".
4513         * Makefile.in (infttrace_h): Update.
4514         (infttrace.o): Update.
4515
4516 2004-04-06  Andrew Cagney  <cagney@redhat.com>
4517
4518         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
4519         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
4520         move extern declarations from here ...
4521         * infttrace.h: ... to here.
4522         * Makefile.in (hppah-nat.o): Update dependencies.
4523
4524         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
4525         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
4526         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
4527         (hppa_breakpoint_from_pc): Delete.
4528
4529         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
4530
4531 2004-04-05  Andrew Cagney  <cagney@redhat.com>
4532
4533         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
4534         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
4535         <sys/file.h>.
4536
4537 2004-04-06  Randolph Chung  <tausq@debian.org>
4538
4539         Committed by Andrew Cagney (mechanical change).
4540         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
4541         exception_catchpoints_are_fragile, find_stub_with_shl_get,
4542         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
4543         child_enable_exception_callback, current_ex_event,
4544         null_symtab_and_line, child_get_current_exception_event,
4545         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
4546         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
4547         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
4548         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
4549         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
4550         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
4551         Move hpux-specific definitions ...
4552         * hppa-hpux-tdep.c: ... to here.
4553
4554 2004-04-05  Andrew Cagney  <cagney@redhat.com>
4555
4556         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
4557         skip_prologue_using_sal.
4558
4559 2004-04-05  Andrew Cagney  <cagney@redhat.com>
4560
4561         * config/i386/tm-i386.h: Delete file.
4562         * config/i386/tm-vxworks.h: Update copyright, do not include
4563         "tm-i386.h".
4564         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
4565         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
4566         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
4567         * config/i386/ncr3000.mt (TM_FILE): Delete.
4568         * config/i386/interix.mt (TM_FILE): Delete.
4569         * config/i386/i386v.mt (TM_FILE): Delete.
4570         * config/i386/i386nw.mt (TM_FILE): Delete.
4571         * config/i386/i386gnu.mt (TM_FILE): Delete.
4572         * config/i386/i386aout.mt (TM_FILE): Delete.
4573         * config/i386/embed.mt (TM_FILE): Delete.
4574
4575 2004-04-05  Kevin Buettner  <kevinb@redhat.com>
4576
4577         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
4578         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
4579         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
4580         (accg7_regnum): New constants.
4581         (last_spr_regnum, last_pseudo_regnum): Update.
4582         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
4583         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
4584         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
4585         for accg registers.
4586         (frv_register_sim_regno): Update spr_map[].
4587
4588 2004-04-04  Andrew Cagney  <cagney@redhat.com>
4589
4590         * config/mips/xm-riscos.h: Delete.
4591         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
4592         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
4593         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
4594         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
4595         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
4596         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
4597         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
4598         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
4599         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
4600         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
4601         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
4602         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
4603         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
4604         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
4605         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
4606         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
4607         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
4608         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
4609         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
4610         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
4611         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
4612         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
4613         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
4614         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
4615         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
4616         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
4617
4618         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
4619         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
4620         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
4621         * configure.host: Remove m680[01]0-sun-sunos3*,
4622         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
4623         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
4624         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
4625         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
4626         mips-*-riscos*.
4627         * NEWS: Mention removed systems.
4628
4629 2004-04-04  Andrew Cagney  <cagney@redhat.com>
4630
4631         GDB 6.1 release created from 6.1 branch.
4632
4633 2004-04-04  Andrew Cagney  <cagney@redhat.com>
4634
4635         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
4636         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4637         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
4638
4639         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
4640         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
4641         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
4642
4643 2004-04-03  Jim Blandy  <jimb@redhat.com>
4644
4645         * MAINTAINERS: Chris Faylor has changed employers; add him to
4646         "paper trail" section, and update his E-mail address.
4647
4648 2004-04-03  Andrew Cagney  <cagney@redhat.com>
4649
4650         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
4651         generic dummy frames.
4652         * dummy-frame.c: Update copyright.
4653         (dummy_frame_sniffer): Delete check for generic dummy frames.
4654
4655         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
4656         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
4657         (REG_PARM_STACK_SPACE): Delete.
4658         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
4659         Inline reference to REG_PARM_STACK_SPACE.
4660
4661         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
4662         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
4663         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4664         (FRAME_BASE_BEFORE_SIGTRAMP)
4665         (hppa32_hpux_frame_base_before_sigtramp)
4666         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
4667         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
4668         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
4669         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
4670         (FRAME_BASE_BEFORE_SIGTRAMP)
4671         (hppa64_hpux_frame_base_before_sigtramp)
4672         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
4673
4674 2004-04-03  Andrew Cagney  <cagney@redhat.com>
4675
4676         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
4677
4678 2004-04-02  Andrew Cagney  <cagney@redhat.com>
4679
4680         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
4681         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
4682         * dummy-frame.h: Delete out-of-date comments.
4683         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
4684         * gdbarch.h, gdbarch.c: Re-generate.
4685
4686 2004-04-02  Joel Brobecker  <brobecker@gnat.com>
4687
4688         Committed by Andrew Cagney <cagney@redhat.com>.
4689         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
4690         into account an instruction saving a register if we have already
4691         seen an earlier instruction saving that same register.
4692
4693 2004-04-02  Andrew Cagney  <cagney@redhat.com>
4694
4695         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
4696         * gdbarch.h, gdbarch.c: Re-generate.
4697         * frame.c (legacy_get_prev_frame): Delete references to
4698         DEPRECATED_INIT_FRAME_PC_FIRST.
4699
4700         * infrun.c (pc_in_sigtramp): Delete function.
4701         (check_sigtramp2): Inline call to pc_in_sigtramp, use
4702         get_frame_type.
4703
4704 2004-04-02  Andrew Cagney  <cagney@redhat.com>
4705
4706         * infrun.c (handle_step_into_function): Delete code conditional on
4707         legacy_frame_p.
4708         (handle_inferior_event, step_over_function): Ditto.
4709
4710 2004-04-02  Andrew Cagney  <cagney@redhat.com>
4711
4712         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
4713         "previous frame inner to this frame" test.
4714
4715 2004-04-02  Andrew Cagney  <cagney@redhat.com>
4716
4717         * frame.c (safe_frame_unwind_memory): New function.
4718         * frame.h (safe_frame_unwind_memory): Declare.  Update description
4719         of /safe_/ methods.
4720         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
4721         "next_frame".  Use safe_frame_unwind_memory.
4722         (tramp_frame_sniffer): Update call to tramp_frame_start.
4723
4724 2004-04-01  Daniel Jacobowitz  <drow@mvista.com>
4725
4726         * dwarf2read.c (dwarf2_objfile_data_key): New.
4727         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
4728         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
4729         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
4730         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
4731         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
4732         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
4733         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
4734         Remove variables.
4735         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
4736         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
4737         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
4738         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
4739         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
4740         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
4741         Remove macros.
4742         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
4743         data.
4744         (dwarf2_locate_sections, dwarf2_build_psymtabs)
4745         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
4746         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
4747         (read_partial_die, read_full_die, read_indirect_string)
4748         (dwarf_decode_line_header, dwarf_decode_macros)
4749         (dwarf2_symbol_mark_computed): Remove use of removed macros.
4750         Update uses of removed variables.
4751         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
4752         of removed macros.
4753         (_initialize_dwarf2_read): New function.
4754         * symfile.h (dwarf2_has_info): Update prototype.
4755         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
4756         * elfread.c (elf_symfile_read): Likewise.
4757
4758 2004-04-01  Jim Blandy  <jimb@redhat.com>
4759
4760         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
4761         function for register numbers on all the rs6000-derived targets.
4762         (rs6000_gdbarch_init): Don't register a separate
4763         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
4764         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
4765         variants.
4766
4767         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
4768         numbering.
4769
4770 2004-04-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
4771
4772         * valarith.c: Update copyright notice.
4773         (value_add): Handle range types.
4774         (value_sub): Ditto.
4775         (value_equal): Ditto.
4776         (value_less): Ditto.
4777         (value_neg): Ditto.
4778         (value_complement): Ditto.
4779         (value_binop): Simplify slightly by using is_integral_type and
4780         eliminiating unnecessary COERCE_ENUMs.
4781
4782 2004-03-31  Andrew Cagney  <cagney@redhat.com>
4783
4784         * frame.h (frame_unwind_id): Declare.
4785         * frame.c (frame_unwind_id): New function.
4786         (get_prev_frame_1): New function.
4787         (frame_debug_got_null_frame): New function.
4788         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
4789         code proper to prev_frame, update description.
4790         * infrun.c (step_over_function): Use frame_unwind_id.
4791
4792 2004-04-31  J. Brobecker  <brobecker@gnat.com>
4793
4794         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
4795         (hppa64_push_dummy_call): Likewise.
4796
4797 2004-03-30  Jim Blandy  <jimb@redhat.com>
4798
4799         From Ulrich Weigand:
4800         * utils.c (query): Do not use a va_list variable multiple times.
4801
4802 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
4803
4804         * Makefile.in (linux_nat_h): Update dependencies.
4805         * configure.in: Check for <gnu/libc-version.h>.
4806         * configure: Regenerate.
4807         * config.in: Regenerate.
4808         * linux-nat.h: Include "target.h".  Add waitstatus field to
4809         struct lwp_info.
4810         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
4811         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
4812         to.
4813         (lin_lwp_handle_extended): New function.  Handle clone events.
4814         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
4815         thread exit events.
4816         (child_wait): Handle clone events.
4817         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
4818         * linux-nat.c (linux_enable_event_reporting): Turn on
4819         PTRACE_O_TRACECLONE.
4820         (linux_handle_extended_wait): Handle clone events.
4821         * thread-db.c: Include <gnu/libc-version.h>.
4822         (struct private_thread_info): Add dying flag.
4823         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
4824         higher.
4825         (attach_thread): Update comments.  Handle dying threads.
4826         (detach_thread): Set the dying flag.
4827         (check_event): Always call attach_thread.
4828
4829 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
4830
4831         * mips-tdep.c (mips_pdr_data): New.
4832         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
4833         (_initialize_mips_tdep): Initialize mips_pdr_data.
4834
4835 2004-03-29  Corinna Vinschen  <vinschen@redhat.com>
4836
4837         * minsyms.c (install_minimal_symbols): Move dropping leading
4838         char from linkage name from here...
4839         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
4840         test for "__gnu_compiled*" symbols.
4841
4842 2004-03-28  Jim Blandy  <jimb@redhat.com>
4843
4844         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
4845         registers to temp register r0 and byte stores as prologue
4846         instructions.
4847
4848 2004-03-28  Andrew Cagney  <cagney@redhat.com>
4849
4850         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
4851         arm*-*-*.
4852
4853 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
4854
4855         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
4856         and switch the layout to force a display of register window.
4857
4858 2004-02-26  J. Brobecker  <brobecker@gnat.com>
4859
4860         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
4861         of the INTEGER class.
4862
4863 2004-03-26  Jim Blandy  <jimb@redhat.com>
4864
4865         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
4866         bytes long on PPC GNU/Linux.
4867
4868 2004-03-26  David Carlton  <carlton@kealia.com>
4869
4870         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
4871
4872 2004-03-25  Andrew Cagney  <cagney@redhat.com>
4873
4874         * PROBLEMS: Add general section titles, remove references to
4875         specific releases.
4876
4877 2004-03-25  Daniel Jacobowitz  <drow@mvista.com>
4878
4879         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
4880         INT_REGISTER_SIZE.
4881         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
4882         FP_REGISTER_VIRTUAL_SIZE.
4883         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
4884         of DEPRECATED_REGISTER_RAW_SIZE.
4885         (arm_register_type): Add gdbarch argument.
4886         (arm_register_raw_size, arm_register_virtual_size): Delete.
4887         (arm_register_byte, arm_extract_return_value)
4888         (arm_store_return_value, arm_get_longjmp_target): Update references
4889         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
4890         (arm_gdbarch_init): Likewise.  Don't set
4891         deprecated_register_raw_size, deprecated_register_virtual_size,
4892         deprecated_max_register_raw_size,
4893         deprecated_max_register_virtual_size, or
4894         deprecated_max_register_virtual_type.  Do set register_type.
4895         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
4896         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
4897         (FP_REGISTER_VIRTUAL_SIZE): Delete.
4898         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
4899         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
4900         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
4901         INT_REGISTER_SIZE.
4902         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
4903         (remote_rdp_store_register): Likewise.
4904
4905 2004-03-24  Daniel Jacobowitz  <drow@mvista.com>
4906
4907         * Makefile.in (mips-linux-tdep.o): Update dependencies.
4908         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
4909         to after osabi initialization.
4910         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
4911         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
4912         functions.
4913         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
4914         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
4915         variables.
4916         (mips_linux_init_abi): Append signal trampoline unwinders.
4917
4918 2004-03-24  Andrew Cagney  <cagney@redhat.com>
4919
4920         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
4921         * tramp-frame.c: Include "gdb_assert.h".
4922         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
4923         correct sizeof.
4924         (tramp_frame_append): Validate the tramp frame's instructions.
4925         * Makefile.in (tramp-frame.o): Update dependencies.
4926
4927 2004-03-23  Andrew Cagney  <cagney@redhat.com>
4928
4929         * trad-frame.h (trad_frame_set_reg_addr): Declare.
4930
4931 2004-03-23  Andrew Cagney  <cagney@redhat.com>
4932
4933         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
4934         Nasser as past testsuite/lib/ (and other) maintainers.
4935
4936 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
4937
4938         * infcmd.c (attach_command): Reread symbols if we already have
4939         an exec file.
4940
4941 2004-03-23  Andrew Cagney  <cagney@redhat.com>
4942
4943         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
4944
4945 2004-03-23  Andrew Cagney  <cagney@redhat.com>
4946
4947         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
4948         * gdbarch.h, gdbarch.c: Re-generate.
4949         * i386obsd-tdep.c (i386obsd_init_abi): Update.
4950         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
4951         * i386bsd-tdep.c (i386bsd_init_abi): Update.
4952         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
4953         (DEPRECATED_SIGTRAMP_START): Update.
4954         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
4955         (DEPRECATED_SIGTRAMP_START): Update.
4956         * blockframe.c (find_pc_sect_partial_function): Update.
4957         * arch-utils.c (legacy_pc_in_sigtramp): Update.
4958
4959 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
4960
4961         * remote.c (remote_open_1): Reopen the exec file and reread symbols
4962         if necessary.
4963
4964 2004-03-23  Andrew Cagney  <cagney@redhat.com>
4965
4966         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
4967         predicate, deprecate.
4968         * gdbarch.h, gdbarch.c: Re-generate.
4969         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4970         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4971         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
4972         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4973         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
4974         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
4975         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
4976         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
4977         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
4978         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
4979         * blockframe.c (find_pc_partial_function): Update.
4980         * breakpoint.c (bpstat_what): Update.
4981         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
4982         * frv-linux-tdep.c (frv_linux_init_abi): Update.
4983         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
4984         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
4985         * i386-interix-tdep.c (i386_interix_init_abi): Update.
4986         * i386-linux-tdep.c (i386_linux_init_abi): Update.
4987         * i386-nto-tdep.c (i386nto_init_abi): Update.
4988         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
4989         * i386-tdep.c (i386_sigtramp_frame_sniffer)
4990         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
4991         * i386bsd-tdep.c (i386bsd_init_abi): Update.
4992         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
4993         * i386obsd-tdep.c (i386obsd_init_abi): Update.
4994         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
4995         * infrun.c (pc_in_sigtramp): Update.
4996         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
4997         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
4998         * mips-tdep.c (mips_gdbarch_init): Update.
4999         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
5000         * ppc-linux-tdep.c: Update comment.
5001         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
5002         * shnbsd-tdep.c (shnbsd_init_abi): Update.
5003         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
5004         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
5005         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
5006         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
5007         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
5008         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
5009         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
5010         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
5011
5012 2004-03-23  Andrew Cagney  <cagney@redhat.com>
5013
5014         * tramp-frame.h, tramp-frame.h: New files.
5015         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
5016         Update rules to include "tramp-frame.h" and "tramp-frame.c".
5017
5018         * Makefile.in: Update all dependencies.
5019
5020 2004-03-23  Andrew Cagney  <cagney@redhat.com>
5021
5022         * Makefile.in (trad_frame_h): Add $(frame_h).
5023         * trad-frame.h: Update copyright.  Include "frame.h".
5024         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
5025         (trad_frame_set_id, trad_frame_get_id): Declare.
5026         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
5027         * trad-frame.c: Update copyright.
5028         (struct trad_frame_cache): Define.
5029         (trad_frame_cache_zalloc): New function.
5030         (trad_frame_set_id, trad_frame_get_id): New functions.
5031         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
5032
5033 2004-03-22  Andrew Cagney  <cagney@redhat.com>
5034
5035         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
5036         s390_pltstub_unwind_cache.
5037         (s390_stub_frame_unwind_cache): Rename
5038         s390_pltstub_frame_unwind_cache.
5039         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
5040         (s390_stub_frame_prev_register): Rename
5041         s390_pltstub_frame_prev_register.
5042         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
5043         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
5044
5045         From Ulrich Weigand:
5046         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
5047         pointer calls like PLT calls.
5048
5049 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
5050
5051         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
5052         PC rather than the partial function start address.  Use the start
5053         address to sanity check the found PDR.
5054
5055 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
5056
5057         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
5058         linux_handle_extended_wait.
5059
5060 2004-03-22  Andrew Cagney  <cagney@redhat.com>
5061
5062         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
5063         function.
5064
5065         * frame.h (generic_pop_current_frame): Delete declaration.
5066         (deprecate_pop_dummy_frame): Deprecate
5067         generic_pop_dummy_frame.
5068         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
5069         (generic_pop_current_frame): Delete function.
5070         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
5071         generic_pop_current_frame.
5072         * v850-tdep.c (v850_pop_frame): Update.
5073         * mcore-tdep.c (mcore_pop_frame): Update.
5074         * sh64-tdep.c (sh64_pop_frame): Update.
5075         * h8300-tdep.c (h8300_pop_frame): Update.
5076
5077 2004-03-22  Andrew Cagney  <cagney@redhat.com>
5078
5079         * frame.h (deprecated_pc_in_call_dummy): Rename
5080         generic_pc_in_call_dummy.
5081         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
5082         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
5083         generic_pc_in_call_dummy.
5084         (pc_in_dummy_frame): Make static.
5085         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
5086         * gdbarch.h, gdbarch.c: Re-generate.
5087         * dummy-frame.c (dummy_frame_sniffer): Simplify.
5088         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
5089         (legacy_get_prev_frame): Ditto.
5090         * inferior.h: Delete reference to generic_pc_in_call_dummy in
5091         comment.
5092
5093 2004-03-21  Andrew Cagney  <cagney@redhat.com>
5094
5095         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
5096         declaration and out-of-date comment.
5097         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5098         Delete function.
5099         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
5100         deprecated_pc_in_call_dummy.
5101
5102         * infrun.c (handle_inferior_event): For non legacy frames, use the
5103         frame ID and frame type to identify a signal trampoline.  Update
5104         comments.
5105
5106 2004-03-21  Nathan J. Williams  <nathanw@wasabisystems.com>
5107
5108         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
5109         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
5110
5111 2004-03-21  Andrew Cagney  <cagney@redhat.com>
5112
5113         * frame-unwind.h: Update copyright.
5114         (struct frame_data): Add opaque declaration.
5115         (frame_sniffer_ftype): Declare.
5116         (struct frame_unwind): Add "unwind_data" and "sniffer".
5117         (frame_unwind_register_unwinder): Declare.
5118         (frame_unwind_find_by_frame): Add parameter "this_cache".
5119         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
5120         (legacy_get_prev_frame, legacy_get_prev_frame)
5121         (get_frame_type): Pass the prologue_cache to
5122         frame_unwind_find_by_frame.
5123         * frame-unwind.c (struct frame_unwind_table_entry): Add field
5124         "unwinder".
5125         (frame_unwind_register_unwinder): New function.
5126         (frame_unwind_find_by_frame): Handle an unwind sniffer.
5127
5128 2004-03-20  Paul Hilfinger  <hilfingr@nile.gnat.com>
5129
5130         * bcache.c (print_percentage): Use floating point to avoid
5131         incorrect results when portion*100 overflows.
5132
5133 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
5134
5135         * ppc_tdep.h (ppc_linux_frame_saved_pc)
5136         (ppc_linux_init_extra_frame_info)
5137         (ppc_linux_frameless_function_invocation)
5138         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
5139         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
5140         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
5141         (rs6000_frame_chain): Delete declarations.
5142         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
5143         (ppc_linux_init_extra_frame_info)
5144         (ppc_linux_frameless_function_invocation)
5145         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
5146         (ppc_linux_init_abi): Remove registration of above deleted functions.
5147         * rs6000-tdep.c (rs6000_init_extra_frame_info)
5148         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
5149         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
5150         (rs6000_pop_frame, rs6000_frameless_function_invocation)
5151         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
5152         (rs6000_gdbarch_init): Remove registration of above deleted functions.
5153         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
5154         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
5155         frame management for all OSABIs.
5156
5157 2004-03-19  Andrew Cagney  <cagney@redhat.com>
5158
5159         Committed by Kevin Buettner <kevinb@redhat.com>.
5160
5161         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
5162         Update copyright.
5163         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
5164         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
5165         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
5166         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
5167         unwinders.  #ifdef legacy frame code.
5168         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
5169         "frame-base.h".
5170         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
5171         (struct rs6000_frame_cache, rs6000_frame_cache)
5172         (rs6000_frame_this_id, rs6000_frame_prev_register)
5173         (rs6000_frame_sniffer, rs6000_frame_unwind)
5174         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
5175         (rs6000_frame_base): Implement a traditional frame unwinder.
5176         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
5177         frame unwinder.
5178
5179 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
5180
5181         * breakpoint.c (adjust_breakpoint_address): Don't adjust
5182         breakpoint address for watchpoints or the catch eventpoints.
5183         Add new paramter ``bptype''.  Adjust all callers.
5184
5185 2004-03-19  Andrew Cagney  <cagney@redhat.com>
5186
5187         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
5188
5189         * PROBLEMS: Delete note that ARM does not use frame code, problem
5190         fixed.
5191
5192 2004-03-18  Andrew Cagney  <cagney@redhat.com>
5193
5194         * stack.c (return_command): Delete code wrapped in #ifdef
5195         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
5196
5197         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
5198
5199 2004-03-18  Andrew Cagney  <cagney@redhat.com>
5200
5201         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
5202         DEPRECATED_IN_SIGTRAMP.
5203         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5204         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
5205         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5206         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5207         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5208         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5209         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5210         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
5211         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
5212         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
5213
5214 2004-03-18  Andrew Cagney  <cagney@redhat.com>
5215
5216         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
5217         (struct frame_base_table_entry): Define.
5218         (struct frame_base_table): Re-implement as a linked list.
5219         (frame_base_init): Re-implement.
5220         (frame_base_table): Delete function.
5221         (append_predicate): Delete function.
5222         (frame_base_append_sniffer): Update.
5223         (frame_base_set_default): Update.
5224         (frame_base_find_by_frame): Update.
5225         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
5226         * Makefile.in (frame-base.o): Update dependencies.
5227
5228 2004-03-17  Andrew Cagney  <cagney@redhat.com>
5229
5230         * frame.c (legacy_get_prev_frame): Pass correct frame to
5231         frame_unwind_find_by_frame.
5232
5233 2004-03-17  David Carlton  <carlton@kealia.com>
5234
5235         * NEWS: Mention C++ nested types and namespaces
5236
5237 2004-03-16  Michael Chastain  <mec.gnu@mindspring.com>
5238
5239         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
5240         and "Regressions since gdb 5.3.".  Add known regressions since
5241         gdb 6.0.
5242
5243 2004-03-16  David Carlton  <carlton@kealia.com>
5244
5245         * dwarf2read.c (process_structure_scope): Process children even
5246         when we're a declaration.
5247
5248 2004-03-16  Andrew Cagney  <cagney@redhat.com>
5249
5250         * symtab.h (find_pc_sect_partial_function): Delete declaration.
5251         * blockframe.c (find_pc_partial_function)
5252         (find_pc_sect_partial_function): Merge into a single
5253         find_pc_partial_function.
5254
5255 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
5256
5257         * i386bsd-nat.c: s/regno/regnum/g.
5258         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
5259         FP0_REGNUM.
5260         (store_inferior_registers): Likewise.
5261
5262 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
5263
5264         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
5265         of i387_fill_fsave.
5266         (store_inferior_registers): Call i387_collect_fsave and
5267         i387_collect_fxsave instead of i387_fill_fsave and
5268         i387_fill_fxsave.
5269
5270 2004-03-15  Andrew Cagney  <cagney@redhat.com>
5271
5272         * Makefile.in (frame-unwind.o): Update dependencies.
5273         * frame-unwind.c: Include "gdb_obstack.h".
5274         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
5275         parameter.
5276         (append_predicate): Delete function.
5277         (struct frame_unwind_table_entry): New structure.
5278         (struct frame_unwind_table): Replace "sniffer" with "head" and
5279         "tail".
5280         (frame_unwind_append_sniffer): Update.
5281         (frame_unwind_find_by_frame): Update.
5282         (_initialize_frame_unwind): Registe frame_unwind_init using
5283         gdbarch_data_register_pre_init.
5284
5285 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
5286
5287         * i386bsd-nat.c: Update copyright year.
5288         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
5289         define unconditionally.
5290
5291 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
5292
5293         * i387-tdep.h (i387_collect_fsave): New prototype.
5294         * i387-tdep.c (i387_collect_fsave): New function containing most
5295         of the code from i387_fill_fsave.
5296         (i387_fill_fsave): Call i387_collect_fsave.
5297
5298 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
5299
5300         * i386-linux-tdep.c: Update copyright year.
5301         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
5302         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
5303         svr4_ilp32_link_map_offsets instead of
5304         i386_linux_svr4_fetch_link_map_offsets.
5305
5306 2004-03-15  David Carlton  <carlton@kealia.com>
5307
5308         Fix for PR c++/1553:
5309         * dwarf2read.c (read_structure_type): Determine type name by
5310         calling determine_class_name.
5311         (determine_class_name): New.
5312         (determine_prefix): Look at TYPE_TAG_NAME and call
5313         determine_class_name when appropriate.
5314         (determine_prefix_aux, class_name): Delete.
5315         (read_namespace): Set die->type.
5316
5317 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
5318
5319         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
5320         unused macro definition.  The definition in target.h (or perhaps
5321         elsewhere) takes precedence.
5322
5323 2004-03-15  Andrew Cagney  <cagney@redhat.com>
5324
5325         * ppc-tdep.h: Update copyright.
5326         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
5327         function signatures to match "regsets.h".
5328         * ppc-linux-tdep.c: Include "regset.h".
5329         (ELF_GREGSET_SIZE): Delete.
5330         (right_supply_register): New function.
5331         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
5332         using right_supply_register.
5333         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
5334         functions.
5335         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
5336         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
5337         (_initialize_ppc_linux_tdep): Do not register
5338         ppc_linux_regset_core_fns.
5339         (ppc_linux_regset_from_core_section): Replace
5340         fetch_core_registers.
5341         (ppc_linux_regset_core_fns): Delete.
5342         * ppc-linux-nat.c: (right_fill_reg): New function.
5343         (supply_gregset): Update call to ppc_linux_supply_gregset.
5344         (fill_gregset): Clear the register set, use right_fill_reg.
5345         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
5346         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
5347
5348         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
5349         unsigned.
5350
5351 2004-03-15  Andrew Cagney  <cagney@redhat.com>
5352
5353         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
5354         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
5355         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
5356         and register_gdbarch_data.
5357         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
5358         (struct gdbarch_data): Replace "init" by "pre_init" and
5359         "post_init".
5360         * gdbarch.h, gdbarch.c: Re-generate.
5361         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
5362         with"obstack", use OBSTACK_ZALLOC.
5363         (dwarf2_frame_ops): Delete.
5364         (dwarf2_frame_set_init_reg): Use gdbarch_data.
5365         (dwarf2_frame_init_reg): Use gdbarch_data.
5366         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
5367         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
5368         (_initialize_svr4_solib): Update.
5369         * user-regs.c (_initialize_user_regs): Update.
5370         * reggroups.c (_initialize_reggroup): Update.
5371         * regcache.c (_initialize_regcache): Update.
5372         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5373         * libunwind-frame.c (_initialize_libunwind_frame): Update.
5374         * gnu-v3-abi.c (init_gnuv3_ops): Update.
5375         * frame-unwind.c (_initialize_frame_unwind): Update.
5376         * frame-base.c (_initialize_frame_base): Update.
5377         * user-regs.c (user_reg_add): Update.
5378         * reggroups.c (reggroup_add): Update.
5379         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
5380         * libunwind-frame.c (libunwind_frame_set_descr): Update.
5381         * frame-unwind.c (frame_unwind_append_sniffer): Update.
5382         * frame-base.c (frame_base_table): Update.
5383         * remote.c (_initialize_remote): Update.
5384         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
5385
5386 2004-03-15  Andrew Cagney  <cagney@redhat.com>
5387
5388         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
5389
5390 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
5391
5392         * Makefile.in (frv-linux-tdep.o): Add dependencies.
5393         * frv-linux-tdep.c: New file.
5394         * frv-tdep.c (struct gdbarch_tdep): Add new field
5395         ``sigcontext_reg_addr''.
5396         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
5397         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5398         (frv_sigramp_frame_sniffer): New functions.
5399         (frv_sigtramp_frame_unwind): New static global.
5400         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
5401         sniffers.
5402         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
5403         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
5404
5405 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
5406
5407         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
5408         but not via a call to error(), when unable to read memory.
5409
5410 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
5411
5412         * frv-tdep.c (frv_call_dummy_words): Delete.
5413         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
5414
5415 2004-03-15  Andrew Cagney  <cagney@redhat.com>
5416
5417         * infrun.c (handle_step_into_function, step_over_function): Only
5418         update and use STEP_FRAME_ID when the system is using legacy
5419         frames.  Update comments.
5420
5421 2004-03-14  Mark Kettenis  <kettenis@gnu.org>
5422
5423         * amd64-linux-tdep.h: Remove file.
5424         * amd64-linux-tdep.c: Don't include "inferior.h" and
5425         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
5426         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
5427         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
5428         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
5429         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
5430         macros.
5431         (user_to_gdb_regmap): Remove variable.
5432         (amd64_linux_gregset_reg_offset): New variable.
5433         (amd64_core_fns): Remove variable.
5434         (fetch_core_registers): Remove function.
5435         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
5436         functions.
5437         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
5438         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
5439         * Makefile.in (amd64_linux_tdep_h): Remove.
5440         (amd64-linux-nat.o): Update dependencies.
5441         (amd64-linux-tdep.o): Update dependencies.
5442
5443         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
5444         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
5445         functions.
5446         (fetch_inferior_registers, store_inferior_registers): Rewrite.
5447
5448         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
5449         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
5450
5451 2004-03-14  Daniel Jacobowitz  <drow@mvista.com>
5452
5453         * dwarf2read.c (read_structure_type): Rename from
5454         read_structure_scope.  Don't create a symbol or call process_die.
5455         Return immediately if die->type is set.  Call read_type_die before
5456         dwarf2_add_member_fn.
5457         (process_structure_scope): New function.
5458         (read_enumeration_type, process_enumeration_scope): New functions,
5459         broken out from read_enumeration.  Don't create the enumeration
5460         type if it has already been created.
5461         (read_enumeration): Removed.
5462         (process_die): Call read_structure_type, process_structure_scope,
5463         read_enumeration_type, and process_enumeration_scope.  Just call
5464         new_symbol for base and subrange types.  Add a comment about other
5465         type dies.
5466         (read_type_die): Call read_enumeration_type.
5467         (add_partial_structure, new_symbol): Update comments.
5468
5469 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
5470
5471         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
5472
5473 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
5474
5475         * tui/tui-win.h (tui_get_cmd_list): Declare.
5476         * tui/tui-win.c (tui_command): New function.
5477         (tui_get_cmd_list): New function.
5478         (_initialize_tui_win): Moved initialization of tui command in
5479         tui_get_cmd_list.
5480
5481         * tui/tui-data.c (init_content_element): Setup new data members.
5482         (init_win_info): Likewise.
5483         (free_content_elements): Free it.
5484         * tui/tui-data.h (struct tui_data_element): Store the register
5485         content to print.
5486         (struct tui_data_info): Keep the current register group.
5487
5488         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
5489
5490         * tui/tui-regs.h (tui_show_registers): Update prototype.
5491         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
5492         (tui_resize_all): No need to calculate anything for register window.
5493         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
5494         (tui_set_register_element, tui_set_general_regs_content): Remove.
5495         (tui_set_special_regs_content): Remove.
5496         (tui_set_general_and_special_regs_content): Remove.
5497         (tui_set_float_regs_content): Remove.
5498         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
5499         (tui_set_regs_content): Remove.
5500         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
5501         (tui_v_show_registers_command_support): Remove.
5502         (tui_show_registers): Use a reggroup to specify the registers to show.
5503         (tui_show_register_group): New function.
5504         (tui_display_registers_from): Compute the layout of register window
5505         and refresh with new API; be sure to delete old register windows.
5506         (tui_check_register_values): Update to use tui_get_register and
5507         tui_display_data.
5508         (tui_display_register): Just refresh the register window part.
5509         (tui_register_format): Format registers and save in tui_data_element.
5510         (tui_get_register): New to combine tui_reg_value_has_changed and
5511         tui_get_register_raw_value; fix to use the new gdb API.
5512         (tui_show_float_command): Renamed tui_reg_float_command.
5513         (tui_show_general_command): Renamed tui_reg_general_command.
5514         (tui_show_special_command): Renamed tui_reg_system_command.
5515         (_initialize_tui_regs): Remove unused commands.
5516
5517 2004-03-13  Mark Kettenis  <kettenis@gnu.org>
5518
5519         * NEWS (New native configurations): Mention OpenBSD/amd64.
5520
5521         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
5522         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
5523         Remove defines.
5524         * config/i386/nm-fbsd64.h: Likewise.
5525         * config/i386/nm-obsd.h: Likewise.
5526         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
5527         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
5528
5529 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
5530
5531         * frv-tdep.c (set_variant_scratch_registers): New function.
5532         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
5533         New constants.
5534
5535         From Richard Sandiford  <rsandifo@redhat.com>:
5536         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
5537
5538 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
5539
5540         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
5541         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
5542         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
5543         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
5544         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
5545         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
5546         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
5547         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
5548         definitions from frv-tdep.c to frv-tdep.h.
5549
5550 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
5551
5552         Add shared library support for FR-V FDPIC ABI:
5553         * Makefile.in (solib-frv.o): Add dependencies.
5554         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
5555         New functions.
5556         (frv_push_dummy_call): Add support for FDPIC ABI.
5557         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
5558         for FDPIC ABI.
5559         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
5560         (frv_fdpic_find_canonical_descriptor): Declare.
5561         * solib-frv.c: New file.
5562         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
5563         * config/frv/tm-frv.h (solib.h): Include.
5564
5565 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
5566
5567         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
5568         (frv-tdep.o): Update dependencies.
5569         * frv-tdep.h: New file.
5570         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
5571         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
5572         constants.
5573         (struct gdbarch_tdep): Add new member ``frv_abi''.
5574         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
5575         functions.
5576         (new_variant): Set ``frv_abi'' field.
5577         (gdb_arch_init): Detect FDPIC executables.
5578
5579 2004-03-12  Mark Kettenis  <kettenis@gnu.org>
5580
5581         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
5582         wrapper.
5583
5584 2004-03-11  Andrew Cagney  <cagney@redhat.com>
5585
5586         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
5587
5588 2004-03-11  Kevin Buettner  <kevinb@redhat.com>
5589
5590         * solist.h (master_so_list): New function.
5591         * solib.c (master_so_list): Likewise.
5592         * solib-svr4.c (enable_break): Iterate over so_list entries
5593         obtained from master list instead of entries obtained directly
5594         via svr4_current_sos().
5595
5596 2004-03-10  Ben Elliston  <bje@gnu.org>
5597
5598         * MAINTAINERS: Update my mail address.
5599
5600 2004-03-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
5601
5602         * remote-m32r-sdi.c: Support hardware watchpoint.
5603
5604 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
5605
5606         * user-regs.c: Update copyright years.
5607         (struct user_regs): Rename to gdb_user_regs.
5608         (append_user_reg, builtin_user_regs, user_regs_init)
5609         (user_reg_add, user_reg_map_name_to_regnum)
5610         (usernum_to_user_reg): Update.
5611
5612 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
5613
5614         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
5615         (skip_children): New functions.
5616         (locate_pdi_sibling): Call skip_children.
5617
5618 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
5619
5620         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
5621         * gdbtypes.c (check_typedef): Update comments.
5622
5623 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
5624
5625         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
5626         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
5627         pointer.  Update comment about comp_unit_head.
5628         (struct abbrev_info): Shorten two int flags.
5629         (dwarf_alloc_abbrev): Take a CU argument.
5630         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
5631         each time through the loop.  Update cleanup argument.
5632         (psymtab_to_symtab_1): Update cleanup call.
5633         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
5634         abbrev_obstack.
5635         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
5636         Just call obstack_free and clear the pointer.
5637
5638 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
5639
5640         * infrun.c (handle_inferior_event): Remove short-circuit code for
5641         events in a different thread.
5642
5643 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
5644
5645         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
5646         print the whole transfer.
5647         (initialize_targets): Update description of "set debug target".
5648
5649 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
5650
5651         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
5652
5653 2004-03-08  Nathan J. Williams  <nathanw@wasabisystems.com>
5654
5655         * MAINTAINERS (write after approval): Add myself.
5656
5657 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
5658
5659         * sh-tdep.c (sh_print_registers_info): Use for loop.
5660         Don't skip multiple registers when a float register is encountered.
5661
5662 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
5663
5664         Fix PR tdep/1291.
5665         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
5666         to official SH documentation.
5667
5668 2004-03-07  Andrew Cagney  <cagney@redhat.com>
5669
5670         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
5671         unused function.
5672
5673 2004-03-07  Daniel Jacobowitz  <drow@mvista.com>
5674
5675         * arm-tdep.c (thumb_get_next_pc): Handle BX.
5676         (arm_get_next_pc): Handle BX and BLX.
5677
5678 2004-03-07  Andrew Cagney  <cagney@redhat.com>
5679
5680         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
5681         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
5682         HPPA_SP_REGNUM.
5683         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
5684         (hppa_target_read_fp): Delete.
5685         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
5686         register_virtual_size, max_register_raw_size,
5687         max_register_virtual_size, register_byte, register_size,
5688         target_read_fp, fp_regnum, and register_bytes.  Set register_type
5689         instead of register_virtual_type.
5690         (hppa32_register_type, hppa64_register_type): Replace
5691         hppa32_register_virtual_type and hppa64_register_virtual_type.
5692         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
5693         (HPPA_FP_REGNUM): Define.
5694
5695         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
5696
5697         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
5698         (pa_do_registers_info): Delete.
5699         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
5700         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
5701         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
5702
5703         * infcall.c (legacy_push_dummy_code): Delete #ifdef
5704         GDB_TARGET_IS_HPPA code.
5705         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
5706         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
5707         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
5708         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
5709         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
5710         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
5711         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
5712         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
5713         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
5714         (hppa_frameless_function_invocation, hppa64_store_return_value)
5715         (hppa_store_struct_return, hppa64_extract_return_value)
5716         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
5717         (hppa32_call_dummy_length, hppa64_call_dummy_length)
5718         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
5719         (find_proc_framesize, deposit_21, restore_pc_queue)
5720         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
5721         (rp_saved, pc_in_linker_stub): Delete.
5722
5723         Unconditionally enable 64-bit frame and ABI code.
5724         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
5725         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
5726         push_dummy_frame, fix_call_dummy, push_arguments,
5727         call_dummy_location, extract_return_value, use_struct_convention,
5728         store_return_value, store_struct_return, saved_pc_after_call,
5729         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
5730         frame_chain, frame_chain_valid, frameless_function_invocation,
5731         frame_saved_pc, and pop_frame.
5732
5733         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
5734         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
5735         (hppa_gdbarch_init): Do not set PC_REGNUM.
5736
5737 2004-03-06  Mark Kettenis  <kettenis@gnu.org>
5738
5739         * config/alpha/tm-fbsd.h: Remove file.
5740         * config/alpha/fbsd.mt: Tweak comment.
5741         (TM_FILE): Set to tm-alpha.h.
5742
5743 2004-03-05  Andrew Cagney  <cagney@redhat.com>
5744
5745         * infrun.c (step_over_function): When non-legacy code, and no
5746         step_frame_id, use the unwinder to get the caller's frame ID.
5747
5748 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
5749
5750         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
5751         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
5752         bfd_arch_unknown.  Adjust comment.
5753
5754         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
5755         * i386obsd-tdep.c: Correct spelling in comment.
5756         * i386nbsd-tdep.c: Correct spelling in comment.
5757         * sparc-tdep.c: Correct spelling in comments.
5758
5759 2004-03-05  David Carlton  <carlton@kealia.com>
5760
5761         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
5762         bug.
5763
5764 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
5765
5766         * sparc-tdep.c: Fix typo in comment.
5767
5768 2004-03-04  J. Brobecker  <brobecker@gnat.com>
5769
5770         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
5771
5772 2004-03-04  Daniel Jacobowitz  <drow@mvista.com>
5773
5774         * dwarf2read.c: Add comment describing memory lifetimes.
5775         (struct dwarf2_pinfo): Update comment.
5776         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
5777         (read_enumeration, new_symbol): Don't use obsavestring.
5778
5779 2004-03-04  Mark Kettenis  <kettenis@gnu.org>
5780
5781         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
5782         instead of amd64_fill_fxsave.
5783         * amd64bsd-nat.c (store_inferior_registers): Likewise.
5784         * amd64fbsd-nat.c (fill_fpregset): Likewise.
5785
5786         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
5787         Reorganize code a bit.
5788
5789 2004-03-04  Orjan Friberg  <orjanf@axis.com>
5790
5791         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
5792         when the frame pointer is pushed.  Don't set the frame pointer's
5793         address on the stack unless it's actually located there.
5794         Set the SRP's address on the stack correctly when the PC is still in
5795         the prologue.
5796         (cris_return_value): New function.
5797         (cris_gdbarch_init): Clear deprecated store_return_value,
5798         extract_return_value.
5799
5800 2004-03-02  Jim Blandy  <jimb@redhat.com>
5801
5802         * stabsread.c (reg_value_complaint): The maximum register number
5803         is one less than the number of registers.
5804
5805 2004-03-02  Andrew Cagney  <cagney@redhat.com>
5806
5807         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
5808         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
5809         trailing comma and redundant assignment of I386_ST0_REGNUM.
5810         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
5811         32-bit segment registers.
5812
5813 2004-03-01  Andrew Cagney  <cagney@redhat.com>
5814
5815         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
5816         use frame_relative_level and get_next_frame.
5817
5818 2004-02-29  Andrew Cagney  <cagney@redhat.com>
5819
5820         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
5821         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
5822         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
5823         Delete macro.
5824
5825 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
5826
5827         * inflow.c (terminal_inferior): Don't give up the terminal if we
5828         previously couldn't get the inferior's terminal state.
5829
5830 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
5831
5832         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
5833         PC_REGNUM.
5834
5835 2004-02-28  Andrew Cagney  <cagney@redhat.com>
5836
5837         * NEWS: Refer to GDB 6.1.
5838         * README: Refer to GDB 6.1.
5839         * PROBLEMS: Refer to GDB 6.1.
5840
5841 2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
5842
5843         * thread-db.c (disable_thread_signals): Remove unused function.
5844
5845 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
5846
5847         * amd64-nat.c: Include "gdb_string.h".
5848         (amd64_collect_native_gregset): Zero-extend the 32-bit
5849         general-purpose registers and %eip.
5850
5851         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
5852         * amd64-tdep.c (amd64_collect_fxsave): New function.
5853         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
5854
5855         * i387-tdep.h: Update copyright year.
5856         (i387_collect_fxsave): New prototype.
5857         * i387-tdep.c: Update copyright year.
5858         (i387_collect_fxsave): New function containing most of the code
5859         from i387_fill_fxsave.
5860         (i387_fill_fxsave): Call i387_collect_fxsave.
5861
5862 2004-02-28  Andrew Cagney  <cagney@redhat.com>
5863
5864         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
5865         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
5866
5867 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
5868
5869         * amd64-tdep.c (amd64_frame_cache): Fix comment.
5870
5871 2004-02-28  Andrew Cagney  <cagney@redhat.com>
5872
5873         * utils.c: Use "", instead of <>, to include readline.
5874         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
5875         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
5876         * source.c, solib.c, exec.c, event-top.c: Ditto.
5877         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
5878         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
5879         * Makefile.in: Update all dependencies.
5880         (readline_tilde_h, readline_history_h): Define.
5881         (readline_headers): Delete.
5882
5883 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
5884
5885         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
5886         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
5887         "config/i386/tm-lx64.h".
5888
5889         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
5890         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
5891         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
5892
5893 2004-02-28  Andrew Cagney  <cagney@redhat.com>
5894
5895         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
5896
5897         * breakpoint.c (_initialize_breakpoint): Use
5898         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
5899         Add help to show command.
5900
5901 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
5902
5903         * i386-nat.c: Reformat to be closer to coding standards.
5904         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
5905         `retval'.  Make variables `align' and `size' local to while-loop.
5906         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
5907         (_initialize_i386_nat): New prototype.
5908
5909         * tui/tui.c: Include <readline/readline.h> instead of
5910         "readline/readline.h".  Include it after <term.h> and
5911         "gdb_curses.h".
5912
5913 2004-02-27  Andrew Cagney  <cagney@redhat.com>
5914
5915         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
5916         the new frame unwind code.
5917         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
5918         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
5919         PCOQ_HEAD_REGNUM.
5920
5921         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
5922         "return_value" and "push_dummy_call".
5923         (hppa32_use_struct_convention): Delete unused function.
5924         (hppa32_store_return_value): Delete unused function.
5925         (hppa32_extract_return_value): Delete unused function.
5926         (hppa32_stack_align): Delete function.
5927
5928 2004-02-27  Eli Zaretskii  <eliz@elta.co.il>
5929
5930         * coffread.c (enter_linenos): Don't let rawptr reference memory
5931         outside linetab[]'s limits.
5932
5933 2004-02-27  Andrew Cagney  <cagney@redhat.com>
5934
5935         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
5936         inferior stack space - the stack needs to grow upwards.
5937         (hppa32_frame_align): New function.
5938         (hppa64_frame_align): Replace hppa_frame_align.
5939         (hppa_gdbarch_init): Update.
5940
5941 2004-02-26  Orjan Friberg  <orjanf@axis.com>
5942
5943         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
5944         (dwarf2-frame.h): Include.
5945         (enum cris_regnums): New enum CRIS_FP_REGNUM.
5946         Remove static variables related to ABI setting.
5947         (struct gdbarch_tdep): Remove cris_abi member.
5948         (struct frame_extra_info): Remove.
5949         (cris_unwind_cache, stack_item): New structs.
5950         (cris_frame_unwind, cris_frame_base): New variables.
5951         (push_stack_item, pop_stack_item)
5952         (cris_frame_unwind_cache, cris_frame_this_id)
5953         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
5954         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
5955         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
5956         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
5957         (cris_reg_struct_has_addr): New functions.
5958         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
5959         (cris_frame_saved_pc, cris_saved_pc_after_call,
5960         (cris_store_struct_return, cris_frameless_function_invocation)
5961         (cris_pop_frame, cris_skip_prologue_main)
5962         (cris_abi_original_store_return_value)
5963         (cris_abi_v2_store_return_value)
5964         (cris_abi_original_extract_return_value)
5965         (cris_abi_v2_extract_return_value)
5966         (cris_abi_original_reg_struct_has_addr)
5967         (cris_abi_v2_reg_struct_has_addr)
5968         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
5969         (cris_push_return_address, cris_abi_update): Remove.
5970         (_initialize_cris_tdep): Remove ABI command.
5971         (cris_dump_tdep): Ditto.
5972         (cris_gdbarch_init): Remove ABI command.
5973         Set store_return_value, extract_return_value, push_dummy_code,
5974         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
5975         frame_unwind_append_sniffer, frame_base_set_default.
5976         Clear deprecated init_frame_pc, push_arguments, store_return_value,
5977         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
5978         sizeof_call_dummy_words, get_saved_register, push_return_address,
5979         pop_frame, store_struct_return, frame_init_saved_regs,
5980         init_extra_frame_info, frameless_function_invocation, frame_chain,
5981         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
5982         dummy_write_sp.
5983
5984 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
5985
5986         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
5987         * valprint.c (print_hex_chars): Change from static to external.
5988         (print_char_chars): New function.
5989         * printcmd.c (print_scalar_formatted): For integer and enum types
5990         that are longer than LONGEST, perform processing via appropriate
5991         print_*_chars routines.
5992
5993 2004-02-26  Andrew Cagney  <cagney@redhat.com>
5994
5995         * Makefile.in: Update dependencies.
5996         Changes from Ulrich Weigand,
5997         * s390-tdep.c: Include "dwarf2-frame.h".
5998         (s390_dwarf2_frame_init_reg): New function.
5999         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
6000         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
6001
6002 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
6003
6004         * breakpoint.c (pending_break_support): New setting variable.
6005         (break_command_1): Account for pending_break_support setting
6006         when creating pending breakpoints.
6007         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
6008         (_initialize_breakpoint): Add "set breakpoint pending" and
6009         "show breakpoint pending" commands.
6010
6011 2004-02-26  Andrew Cagney  <cagney@redhat.com>
6012
6013         Fix PR i18n/1570.
6014         * charset.c (backslashable, backslashed, represented): Remove 'e'
6015         from list of escaped characters, not part of ISO-C.
6016
6017 2004-02-25  J. Brobecker  <brobecker@gnat.com>
6018
6019         From Peter Schauer <schauer@pdf.de>:
6020         * tui/tui.c: Move system header includes after local includes.
6021         Fixes a build failure on solaris systems.
6022
6023 2004-02-25  J. Brobecker  <brobecker@gnat.com>
6024
6025         * configure.in: Refine the previous change.
6026         * configure: Regenerate.
6027
6028 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
6029
6030         * amd64-tdep.h: Renamed from x86-64-tdep.h.
6031         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
6032         "amd64-tdep.h" instead of "x86-64-tdep.h".
6033         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
6034         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
6035         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
6036         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
6037         and "x86-64-tdep.c".
6038         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
6039         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
6040         and "x86-64-tdep.c".
6041         * amd64bsd-nat.c: Update copyright year.
6042         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
6043         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
6044         "x86-64-tdep.h".
6045         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
6046         "x86-64-tdep.h".
6047         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
6048         "x86-64-tdep.h".
6049         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
6050         "x86-64-tdep.h".
6051         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
6052         "x86-64-tdep.h".
6053         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
6054         "x86-64-tdep.h".
6055         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
6056         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
6057         * Makefile.in (amd64_linux_tdep_h): Renamed from
6058         x86_64_linux_tdep_h.
6059         (amd64_tdep_h): Renamed from x86_64_tdep_h.
6060         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
6061         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
6062         (amd64obsd-tdep.o): Update dependencies.
6063         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
6064         dependencies.
6065         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
6066         dependencies.
6067         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
6068         amd64-linux-nat.c amd64-linux-tdep.c.
6069         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
6070         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
6071         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
6072         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
6073         amd64-tdep.o and amd64-linux-tdep.o.
6074         (TM_FILE): Set to tm-linux64.h.
6075         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
6076         (NAT_FILE): Set to nm-linux64.h.
6077         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
6078         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6079         amd64-tdep.o.
6080         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6081         amd64-tdep.o.
6082         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
6083         amd64-tdep.o.
6084
6085 2004-02-25  Roland McGrath  <roland@redhat.com>
6086
6087         * remote.c (remote_protocol_qPart_auxv): New variable.
6088         (init_all_packet_configs): Initialize it.
6089         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
6090         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
6091         (show_remote_cmd): Call it.
6092         (_initialize_remote): Initialize commands.
6093         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
6094         service TARGET_OBJECT_AUXV requests.
6095
6096 2004-02-25  J. Brobecker  <brobecker@gnat.com>
6097
6098         * configure.in: Make sure that the wborder function is available.
6099         Otherwise, search for it in the cur_colr library.
6100         * configure: Regenerate.
6101
6102 2004-02-25  Andrew Cagney  <cagney@redhat.com>
6103
6104         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
6105
6106 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
6107
6108         * config/i386/tm-x86-64linux.h: Tweak comments.
6109
6110 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
6111
6112         * MAINTAINERS: Add self to write-after-approval list.
6113
6114 2004-02-25  Andrew Cagney  <cagney@redhat.com>
6115
6116         PR cli/1566.  Problem found, and fix suggested by David Allan.
6117         * cli/cli-script.c (execute_control_command): Unconditionally
6118         install a cleanup.  Default "ret" to "invalid_control".  Use
6119         "break" instead of "return" to escape from the switch.
6120
6121 2004-02-24  J. Brobecker  <brobecker@gnat.com>
6122
6123         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
6124         with the lines macro defined in term.h on AiX.
6125         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
6126         a collision with the label_width macro defined in term.h on AiX.
6127
6128 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
6129
6130         Committed by Kevin Buettner <kevinb@redhat.com>.
6131
6132         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
6133         * ia64-tdep.c (ia64_write_pc): Make it a global function.
6134         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
6135         instead of ia64_write_pc().
6136         * ia64-linux-tdep.c (regcache.h): Include.
6137         (ia64_linux_write_pc): New function.
6138
6139 2004-02-23  Roland McGrath  <roland@redhat.com>
6140
6141         * auxv.c (info_auxv_command): Fix typos in error messages.
6142
6143 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
6144
6145         * x86-64-tdep.h: Tweak comment.
6146         (enum amd64_regnum): New.
6147         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
6148         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
6149         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
6150         (X86_64_XMM1_REGNUM): Removed.
6151         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
6152         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
6153         prototypes for renamed functions.
6154         * x86-64-tdep.c: Fix typo.
6155         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
6156         register numbers.
6157         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
6158         Use constants from `enum amd64_regnum' for register numbers.
6159         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
6160         (amd64_analyze_prologue, amd64_frame_cache,
6161         amd64_sigtramp_frame_cache): Use constants from `enum
6162         amd64_regnum' for register numbers.
6163         (amd64_supply_fpregset): Adjust for renamed functions.
6164         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
6165         `enum amd64_regnum' for register numbers.
6166         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
6167         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
6168         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
6169         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
6170         (amd64_linux_fill_gregset): Adjust for renamed macros.
6171         (fetch_core_registers): Adjust for renamed functions.
6172         (amd64_linux_init_abi): Adjust for renamed functions.
6173         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
6174         renamed functions.
6175         * amd64-nat.c: Adjust for renamed macros.
6176         * amd64bsd-nat.c (fetch_inferior_registers)
6177         (store_inferior_registers): Use constants from `enum amd64_regnum'
6178         for register numbers.  Adjust for renamed variables.
6179         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
6180         renamed variables.
6181         (_initialize_amd64fbsd_nat): Use constants from `enum
6182         amd64_regnum' for register numbers.
6183         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
6184         `enum amd64_regnum' for register numbers.
6185         (amd64fbsd_init_abi): Adjust for renamed functions.
6186         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
6187         `enum amd64_regnum' for register numbers.
6188         (amd64nbsd_init_abi): Adjust for renamed functions.
6189         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
6190         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
6191         `enum amd64_regnum' for register numbers.
6192         (amd64obsd_init_abi): Adjust for renamed functions.
6193         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
6194
6195 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
6196
6197         * breakpoint.c (print_one_breakpoint): Do not output spaces
6198         after printing <PENDING> for a pending breakpoint.
6199
6200 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
6201
6202         * printcmd.c (print_scalar_formatted): Initialize val_long
6203         to remove compiler warning message.
6204
6205 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
6206
6207         * defs.h (nquery, yquery): New prototypes.
6208         * breakpoint.c (break_command_1): Use new nquery interface.
6209         * utils.c (defaulted_query, nquery, yquery): New functions.
6210
6211 2004-02-23  Andrew Cagney  <cagney@redhat.com>
6212
6213         * hppa-tdep.c (hppa_frame_align): New function.
6214         (hppa32_push_dummy_call): New function.
6215         (hppa64_push_dummy_call): New function.
6216         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
6217         disabled.
6218
6219         * infcall.c (legacy_push_dummy_code): Don't call deprecated
6220         FIX_CALL_DUMMY when push_dummy_call is available.
6221         (call_function_by_hand, push_dummy_code): Ditto.
6222
6223 2004-02-22  Andrew Cagney  <cagney@redhat.com>
6224
6225         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
6226         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
6227         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
6228         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
6229         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
6230         call_dummy_location to ON_STACK.
6231
6232 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
6233
6234         * x86-64-linux-tdep.c: Tweak comment.
6235         (amd64_linux_supply_gregset): Renamed from
6236         x86_64_linux_supply_gresget.
6237         (amd64_linux_fill_gregset): Renamed from
6238         x86_64_linux_fill_gregset.
6239         (fetch_core_registers): Adjust for renamed functions.
6240         (amd64_core_fns): Renamed from x86_64_core_fns.
6241         (amd64_linux_sigtramp_start): Renamed from
6242         x86_64_linux_sigtramp_start.
6243         (amd64_linux_pc_in_sigtramp): Renamed from
6244         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
6245         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
6246         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
6247         (amd64_linux_sigcontext_addr): Renamed from
6248         x86_64_linux_sigcontext_addr.
6249         (amd64_linux_sc_reg_offset): Renamed from
6250         x86_64_linux_sc_reg_offset.
6251         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
6252         Adjust for renamed functions and variables.
6253         (_initialize_amd64_linux_tdep): Renamed from
6254         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
6255         variables.
6256         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
6257         Adjust for renamed functions.
6258
6259         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
6260         from x86_64_linux_gregset64_reg_offset.
6261         (amd64_linux_gregset32_reg_offset): Rename from
6262         x86_64_linux_gregset64_reg_offset.
6263         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
6264         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
6265         (amd64_linux_dr_set_control): Renamed from
6266         x86_64_linux_dr_set_control.  Adjust for renamed functions.
6267         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
6268         Adjust for renamed functions.
6269         (amd64_linux_dr_reset_addr): Renamed from
6270         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
6271         (amd64_linux_dr_get_status): Renamed from
6272         x86_64_linux_dr_get_status.  Adjust for renamed functions.
6273         (_initialize_amd64_linux_nat): Renamed from
6274         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
6275         functions.
6276         * config/i386/nm-x86-64linux.h: Update copyright year.
6277         Adjust for renamed functions.
6278
6279         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
6280         amd64fbsd_sigtramp_start.
6281         (amd64fbsd_sigtramp_end_addr): Renamed from
6282         amd64fbsd_sigtramp_end.
6283         (amd64fbsd_init_abi): Adjust for renamed variables.
6284         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
6285         variables.
6286         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
6287         amd64fbsd_sigtramp_start.
6288         (amd64fbsd_sigtramp_end_addr): Renamed from
6289         amd64fbsd_sigtramp_end.
6290
6291 2004-02-22  Andrew Cagney  <cagney@redhat.com>
6292
6293         * hppa-tdep.c (hppa32_return_value): New function.
6294         (hppa64_return_value): New function.
6295         (hppa_gdbarch_init): Set return_value; keep disabled.
6296
6297         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
6298         struct-return and inferior function call methods.
6299
6300         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6301         "frame-base.h".
6302         (struct hppa_frame_cache): Define.
6303         (hppa_frame_cache, hppa_frame_this_id): New functions.
6304         (hppa_frame_prev_register): New function.
6305         (hppa_frame_unwind, hppa_frame_base): New variables.
6306         (hppa_frame_unwind_sniffer): New function.
6307         (hppa_frame_base_address, hppa_unwind_pc): New function.
6308         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
6309         sniffer, and frame base sniffer; keep disabled.
6310         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
6311         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
6312
6313         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
6314         to predicates for "seriously old code".
6315
6316         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
6317         runtime if(0).
6318
6319         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
6320         unsigned.
6321         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
6322
6323         * config/pa/tm-hppa.h: Update copyright.
6324         (DEPRECATED_INIT_FRAME_PC): Delete macro.
6325         (deprecated_init_frame_pc_default): Delete declaration.
6326         (hppa_frame_init_saved_regs): Delete declaration.
6327         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6328         * hppa-tdep.c: Include "arch-utils.h".
6329         (hppa_gdbarch_init): Set deprecated init_frame_pc
6330         and deprecated frame_init_saved_regs.
6331         (hppa_frame_init_saved_regs): Make static.
6332
6333 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
6334
6335         Remove old 386BSD support.
6336         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
6337         * configure.host: Remove i[34567]86-*-bsd*.
6338         * configure.tgt: Remove i[34567]86-*-bsd*.
6339         * i386b-nat.c: Removed.
6340         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
6341         (i386b-nat.o): Remove dependencies.
6342
6343         * config/i386/i386bsd.mh: Removed.
6344         * config/i386/i386bsd.mt: Removed.
6345         * config/i386/nm-i386bsd.h: Removed.
6346         * config/i386/tm-i386bsd.h: Removed.
6347         * config/i386/xm-i386bsd.h: Removed.
6348
6349         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
6350
6351         * amd64fbsd-tdep.c: Include "solib-svr4.h".
6352         (amd64fbsd_init_abi): Set link map offsets.
6353         * amd64nbsd-tdep.c: Include "slib-svr4.h".
6354         (amd64nbsd_init_abi): Set link map offsets.
6355         * amd64obsd-tdep.c: Include "solib-svr4.h".
6356         (amd64obsd_init_abi): Set link map offsets.
6357         * i386fbsd-tdep.c: Include "solib-svr4.h".
6358         (i386fbsd_init_abi): Set link map offsets.
6359         * i386nbsd-tdep.c: Include "solib-svr4.h".
6360         (i386nbsdelf_init_abi): Set link map offsets.
6361         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
6362         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
6363         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
6364         solib-legacy.o and core-aout.o. Reformat.
6365         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
6366         solib-svr4.o, solib-legacy.o.  Reformat.
6367         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
6368         * config/i386/nbsdelf.mh: Reformat.
6369         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
6370         solib-svr4.o, solib-legacy.o and corelow.o.
6371         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
6372         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
6373         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
6374         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
6375         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
6376         (TM_FILE): Set to tm-fbsd.h.
6377         * config/i386/nbsd.mt (TDEPFILES): Reformat.
6378         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
6379         solib-svr4.o.
6380         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
6381         solib-svr4.o.
6382         (TM_FILE): Set to nm-nbsd.h.
6383         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
6384         Simplify shared library support.  Don't include "elf/common.h".
6385         (SVR4_SHARED_LIBS): Don't define.
6386         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
6387         "solib.h".
6388         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
6389         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
6390         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
6391         Don't include "i386/tm-i386.h".  Include "solib.h".
6392         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
6393         Don't include "i386/tm-i386.h".
6394         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
6395         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
6396         Include "i386/xm-i386.h".
6397         (HOST_LONG_DOUBLE_FORMAT): Remove.
6398
6399         Fix OpenBSD/i386 sigtramp recognition.
6400         * i386-tdep.h: Update copyright year.
6401         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
6402         (i386bsd_sigtramp_end): New prototypes.
6403         (i386fbsd_sigtramp_start_addr): Renamed from
6404         i386fbsd_sigtramp_start.
6405         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
6406         (i386obsd_sigtramp_start_addr): Renamed from
6407         i386obsd_sigtramp_start.
6408         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
6409         * i386bsd-tdep.c: Update copyright year.
6410         (i386bsd_pc_in_sigtramp): Make public.
6411         * i386fbsd-nat.c: Update copyright year.
6412         (_initialize_i386fbsd_nat): Adjust for renamed variables.
6413         * i386fbsd-tdep.c: Update copyright year.
6414         (i386fbsd_sigtramp_start_addr): Renamed from
6415         i386fbsd_sigtramp_start.
6416         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
6417         (i386fbsdaout_init_abi): Adjust for renamed variables.
6418         * i386obsd-nat.c: Update copyright year.
6419         (_initialize_i386obsd_nat): Adjust for renamed variables.
6420         * i386obsd-tdep.c: Include "target.h".
6421         (i386obsd_page_size): New variable.
6422         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
6423         (i386obsd_sigtramp_end): New functions.
6424         (i386obsd_sigtramp_start_addr): Renamed from
6425         i386obsd_sigtramp_start.
6426         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
6427         (i386obsd_init_abi): Adjust for renamed variables.  Set
6428         pc_in_sigtramp, sigtramp_start and sigtramp_end.
6429         * Makefile.in (i386obsd-tdep.o): Update dependencies.
6430
6431         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
6432         trampoline change in OpenBSD kernel.
6433
6434         * amd64-nat.c: Update copyright year.
6435         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
6436         architecture from REGCACHE.
6437
6438         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
6439         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
6440
6441 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
6442
6443         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
6444         i[34567]86-*-openbsd3.[0-3].
6445         * config/i386/obsdaout.mh: New file.
6446
6447         * config/i386/obsd.mh (MH_FLAGS): Remove.
6448
6449         Fix PR build/1549.
6450         * i386obsd-tdep.c: Update copyright years.  Include
6451         "solib-svr4.h".
6452         (i386obsd_init_abi): Don't set regset_from_core_section here.
6453         (i386obsd_aout_init_abi): New function.  Set
6454         regset_from_core_section here.
6455         (i386obsd_elf_init_abi): New function.
6456         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
6457         * Makefile.in (i386obsd-tdep.o): Update dependecies.
6458         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6459         (TM_FILE): Set to tm-nbsd.h.
6460
6461         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
6462         solib-sunos.o.
6463
6464         * solib-svr4.h: Update copyright year.
6465         (svr4_ilp32_fetch_link_map_offsets)
6466         (svr4_lp64_fetch_link_map_offsets): New prototype.
6467         * solib-svr4.c: Update copyright year.
6468         (svr4_ilp32_fetch_link_map_offsets)
6469         (svr4_lp64_fetch_link_map_offsets): New function.
6470
6471 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
6472
6473         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
6474         to the partial symbol table.
6475
6476 2004-02-20  J. brobecker  <brobecker@gnat.com>
6477
6478         * PROBLEMS: Add description of problem documented under gdb/1560.
6479
6480 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
6481
6482         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
6483         comments.
6484         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
6485         functions.
6486         (amd64obsd_init_abi): Reorder initializations.  Use
6487         amd64obsd_r_reg_offset to initialize the general-purpose register
6488         set details.  Set regset_from_core_section.
6489         (_initialize_amd64obsd_tdep): Rename from
6490         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
6491         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
6492         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
6493
6494         * NEWS (New native configurations): Mention OpenBSD/alpha.
6495         * configure.tgt: Add alpha*-*-openbsd*.
6496         * configure.host: Add alpha*-*-openbsd*.
6497         * alphanbsd-tdep.c: Update copyright year.
6498         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
6499
6500 2004-02-20  Andrew Cagney  <cagney@redhat.com>
6501
6502         Fix PR tdep/1372.
6503         * configure.tgt: Delete target "none-*-*".
6504         * configure.host: Delete host "none-*-*".
6505         * config/none/none.mh: Delete file.
6506         * config/none/none.mt: Delete file.
6507         * config/none/xm-none.h: Delete file.
6508         * config/none/tm-none.h: Delete file.
6509         * config/none/nm-none.h: Delete file.
6510
6511 2004-02-19  Fred Fish  <fnf@redhat.com>
6512
6513         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
6514         cache->uses_fp prior to setting it.
6515
6516 2004-02-19  Fred Fish  <fnf@redhat.com>
6517
6518         Fix for PR breakpoint/1558.
6519         * sh-tdep.c (IS_JSR): New macro.
6520         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
6521
6522 2004-02-19  Jim Blandy  <jimb@redhat.com>
6523
6524         * findvar.c (value_from_register): Doc fix.
6525
6526 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
6527
6528         * printcmd.c (print_scalar_formatted): Do not check for sizeof
6529         type being greater than sizeof of host's LONGEST.  Always use
6530         unpack_long() unless format 'f' chosen.
6531
6532 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
6533
6534         Committed by Elena Zannoni  <ezannoni@redhat.com>
6535
6536         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
6537         contains a symbol wich is the best, non-exact match for the given
6538         pc.  Update comments.
6539
6540 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
6541
6542         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
6543         macro, which was part of the now removed Mach 3 port.
6544         * utils.c (request_quit): Ditto.
6545
6546 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
6547
6548         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
6549         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
6550
6551 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6552
6553         Committed by Mark Kettenis  <kettenis@gnu.org>.
6554
6555         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
6556         Define.
6557
6558 2004-02-18  Andrew Cagney  <cagney@redhat.com>
6559
6560         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
6561         CONFIG_INSTALL and CONFIG_UNINSTALL.
6562         * configure: Re-generate.
6563         * interps.h (INTERP_TUI): Define.
6564         * Makefile.in: Update dependencies.
6565         (TUI): New macro.
6566         (tui-main.o): Specify dependencies.
6567         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
6568         * tui/tui-main.c: New file.
6569
6570 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
6571
6572         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
6573         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
6574         dependencies.
6575         * configure.host: Add x86_64-*-openbsd*.
6576         * configure.tgt: Add x86_64-*-openbsd*.
6577         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
6578
6579         * tui/tui.c: Don't include <malloc.h>.
6580
6581         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
6582         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
6583         amd64nbsd-tdep.c.
6584
6585         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
6586         static.  Remove extraneous whitespace.
6587         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
6588         static.
6589
6590 2004-02-17  Jim Blandy  <jimb@redhat.com>
6591
6592         * findvar.c (value_from_register): Doc fix.
6593
6594 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6595
6596         Committed by Jim Blandy  <jimb@redhat.com>.
6597
6598         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
6599         CORE_ADDR as type for selectors.  Correct types for GNU run time
6600         message lookup function to use double indirection.
6601         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
6602         * objc-lang.h (lookup_child_selector): Adapt prototype.
6603
6604         * s390-nat.c (SUBOFF): New macro.
6605         (supply_gregset, fill_gregset): Use it to handle debugging
6606         of 32-bit exectuables running under a 64-bit kernel.
6607         * s390-tdep.c: Include "solib-svr4.h".
6608         (s390_svr4_fetch_link_map_offset): New function.
6609         (s390x_svr_fetch_link_map_offset): Likewise.
6610         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
6611         * Makefile.in (s390-tdep.o): Update dependencies.
6612
6613         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
6614         "frame-unwind.h".
6615         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
6616         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
6617         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
6618         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
6619         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
6620         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
6621         S390_SIGNAL_FRAMESIZE,
6622         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
6623         (struct frame_extra_info): Remove.
6624         (s390_memset_extra_info): Remove.
6625         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
6626         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
6627         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
6628         (is_rse): Renamed to ...
6629         (is_rsy): ... this.  Support long displacements.
6630         (is_rxe): Renamed to ...
6631         (is_rxy): ... this.  Support long displacements.
6632         (compute_x_addr): Support long displacements.
6633         (struct s390_prologue_data): New data type.
6634         (s390_on_stack): Change API to use struct s390_prologue_data.
6635         (s390_store): Reimplement.
6636         (s390_load): New function.
6637         (s390_get_signal_frame_info): Remove.
6638         (s390_get_frame_info): Remove, replace by ...
6639         (s390_analyze_prolog): ... this new function.
6640         (s390_check_function_end): Remove.
6641         (s390_function_start): Remove.
6642         (s390_frameless_function_invokation): Remove.
6643         (s390_is_sigreturn): Remove.
6644         (s390_init_frame_pc_first): Remove.
6645         (s390_init_frame_extra_info): Remove.
6646         (s390_frame_init_saved_regs): Remove.
6647         (s390_frame_saved_pc_nofix): Remove.
6648         (s390_frame_saved_pc): Remove.
6649         (s390_frame_chain): Remove.
6650         (s390_fp_regnum, s390_read_fp): Remove.
6651         (s390_pop_frame_regular, s390_pop_frame): Remove.
6652         (s390_saved_pc_after_call): Remove.
6653         (s390_skip_prologue): Reimplement.
6654         (s390_in_function_epilogue_p): Support long displacements.
6655         (struct s390_unwind_cache): New data structure.
6656         (s390_frame_unwind_cache): New function.
6657         (s390_prologue_frame_unwind_cache): Likewise.
6658         (s390_backchain_frame_unwind_cache): Likewise.
6659         (s390_frame_this_id, s390_frame_prev_register): Likewise.
6660         (s390_frame_unwind): Define.
6661         (s390_frame_sniffer): New function.
6662         (struct s390_pltstub_unwind_cache): New data structure.
6663         (s390_pltstub_frame_unwind_cache): New function.
6664         (s390_pltstub_frame_this_id): Likewise.
6665         (s390_pltstub_frame_prev_register): Likewise.
6666         (s390_pltstub_frame_unwind): Define.
6667         (s390_pltstub_frame_sniffer): New function.
6668         (struct s390_sigtramp_unwind_cache): New data structure.
6669         (s390_sigtramp_frame_unwind_cache): New function.
6670         (s390_sigtramp_frame_this_id): Likewise.
6671         (s390_sigtramp_frame_prev_register): Likewise.
6672         (s390_sigtramp_frame_unwind): Define.
6673         (s390_sigtramp_frame_sniffer): New function.
6674         (s390_frame_base_address, s390_local_base_address): New functions.
6675         (s390_frame_base): Define.
6676         (s390_unwind_pc, s390_unwind_sp): New function.
6677         (s390_push_dummy_call): Use new frame base location.
6678         (s390_unwind_dummy_id): Likewise.
6679         (s390_gdbarch_init): Remove calls to:
6680         set_gdbarch_frameless_function_invocation,
6681         set_gdbarch_deprecated_init_frame_pc,
6682         set_gdbarch_deprecated_frame_chain,
6683         set_gdbarch_deprecated_frame_init_saved_regs,
6684         set_gdbarch_deprecated_pop_frame,
6685         set_gdbarch_deprecated_init_extra_frame_info,
6686         set_gdbarch_deprecated_init_frame_pc_first,
6687         set_gdbarch_deprecated_target_read_fp,
6688         set_gdbarch_deprecated_frame_saved_pc,
6689         set_gdbarch_deprecated_saved_pc_after_call,
6690         set_gdbarch_deprecated_fp_regnum.
6691         Add calls to:
6692         set_gdbarch_in_solib_call_trampoline,
6693         frame_unwind_append_sniffer,
6694         frame_base_set_default,
6695         set_gdbarch_unwind_pc,
6696         set_gdbarch_unwind_sp.
6697         * Makefile.in (s390-tdep.o): Update dependencies.
6698
6699         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
6700         (S390_STACK_FRAME_OVERHEAD): Remove.
6701         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
6702         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
6703         (s390_promote_integer_argument): Remove.
6704         (s390_cannot_extract_struct_value_address): Remove.
6705         (s390_use_struct_convention, s390_store_struct_return): Remove.
6706         (s390_extract_return_value, s390_store_return_value): Remove.
6707         (s390_return_value_convention, s390_return_value): New functions.
6708         (is_float_singleton): Handle typedefs.
6709         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
6710         Remove, replace by ...
6711         (s390_function_arg_pass_by_reference, s390_function_arg_float,
6712         s390_function_arg_integer): ... these new functions.
6713         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
6714         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
6715         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
6716         Fill in tdep->abi.
6717         Remove calls to:
6718         set_gdbarch_deprecated_store_struct_return,
6719         set_gdbarch_deprecated_extract_return_value,
6720         set_gdbarch_deprecated_store_return_value,
6721         set_gdbarch_use_struct_convention,
6722         set_gdbarch_extract_struct_value_address,
6723         set_gdbarch_deprecated_pc_in_call_dummy,
6724         set_gdbarch_deprecated_push_arguments,
6725         set_gdbarch_deprecated_save_dummy_frame_tos,
6726         set_gdbarch_deprecated_push_return_address,
6727         set_gdbarch_deprecated_sizeof_call_dummy_words,
6728         set_gdbarch_deprecated_call_dummy_words,
6729         set_gdbarch_deprecated_dummy_write_sp.
6730         Add calls to:
6731         set_gdbarch_push_dummy_call,
6732         set_gdbarch_unwind_dummy_id,
6733         set_gdbarch_return_value.
6734
6735         * config/s390/nm-linux.h: Update comments.
6736         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
6737         (STOPPED_BY_WATCHPOINT): Redefine.
6738         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
6739         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
6740         (s390_stopped_by_watchpoint): Likewise.
6741         (watch_area_cnt): Remove.
6742         * s390-nat.c: Update comments.
6743         (watch_area): Remove typedef.
6744         Global replace watch_area by struct watch_area.
6745         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
6746         (s390_stopped_by_watchpoint): Remove pid argument,
6747         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
6748         (s390_fix_watch_points): Remove pid argument,
6749         use s390_inferior_tid.  Recompute area spanned by watchpoints.
6750         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
6751         argument.  Reimplement.
6752
6753         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
6754         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
6755         (FETCH_INFERIOR_REGISTERS): Define.
6756         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
6757         core-regset.o.
6758         * config/s390/s390x.mt: Remove.
6759         * config/s390/tm-s390.h: Remove.
6760         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
6761         (TARGET_ELF64): Remove.
6762         (SKIP_TRAMPOLINE_CODE): Do not undefine.
6763         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
6764         s390*-*-* case; always set gdb_target to s390.
6765         * regformats/reg-s390.dat: Remove control registers.
6766         * regformats/reg-s390x.dat: Likewise.
6767         * s390-tdep.h: New file.
6768         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
6769         Include "inferior.h" and "s390-tdep.h".
6770         Remove private definition of offsetof.
6771         (s390_register_u_addr): Remove.
6772         (regmap_gregset, regmap_fpregset): Define.
6773         (supply_gregset, fill_gregset): Reimplement.
6774         (supply_fpregset, fill_fpregset): Likewise.
6775         (s390_inferior_tid): New function.
6776         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
6777         (fetch_inferior_registers, store_inferior_registers): Likewise.
6778         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
6779         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
6780         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
6781         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
6782         (struct gdbarch_tdep): Define.
6783         (struct s390_register_info): Define.
6784         (s390_register_info): New variable.
6785         (s390_register_name): Reimplement.
6786         (s390_register_type): New function.
6787         (s390_register_raw_size, s390x_register_raw_size): Remove.
6788         (s390_cannot_fetch_register): Remove.
6789         (s390_register_byte): Remove.
6790         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
6791         (s390_dwarf_regmap): New variable.
6792         (s390_dwarf_reg_to_regnum): New function.
6793         (s390_stab_reg_to_regnum): Remove.
6794         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
6795         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
6796         (s390_convert_register_p): Likewise.
6797         (s390_register_to_value, s390_value_to_register): Likewise.
6798         (s390_register_reggroup_p): Likewise.
6799         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
6800         s390_gregset, s390x_gregset, s390_fpregset): New variables.
6801         (s390_supply_regset, s390_regset_from_core_section): New functions.
6802         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
6803         (S390_FPR_SIZE): Likewise.
6804         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
6805         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
6806         (S390_NUM_GPRS): Move here from tm-s390.h.
6807         (S390_NUM_FPRS): Likewise.
6808         (s390_in_function_epilogue_p): New function.
6809         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
6810         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
6811         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
6812         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
6813         Replace S390_FP_REGNUM by S390_SP_REGNUM.
6814         Remove calls to:
6815         set_gdbarch_deprecated_max_register_raw_size,
6816         set_gdbarch_deprecated_max_register_virtual_size,
6817         set_gdbarch_deprecated_register_byte,
6818         set_gdbarch_cannot_fetch_register,
6819         set_gdbarch_cannot_store_register,
6820         set_gdbarch_deprecated_register_size,
6821         set_gdbarch_deprecated_register_raw_size,
6822         set_gdbarch_deprecated_register_virtual_size,
6823         set_gdbarch_deprecated_register_virtual_type,
6824         set_gdbarch_deprecated_register_bytes.
6825         Add calls to:
6826         set_gdbarch_num_pseudo_regs,
6827         set_gdbarch_register_type,
6828         set_gdbarch_convert_register_p,
6829         set_gdbarch_register_to_value,
6830         set_gdbarch_value_to_register,
6831         set_gdbarch_register_reggroup_p,
6832         set_gdbarch_regset_from_core_section,
6833         set_gdbarch_pseudo_register_read,
6834         set_gdbarch_pseudo_register_write,
6835         set_gdbarch_in_function_epilogue_p.
6836         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
6837         (s390_tdep_h): New variable.
6838
6839 2004-02-17  Jim Blandy  <jimb@redhat.com>
6840
6841         * findvar.c (value_from_register): If the type has no length, just
6842         return an acceptable value --- don't report an internal error.
6843
6844         * stabsread.c (read_type): If we find any type numbers that are
6845         forward references, complain if the references aren't resolved by
6846         the time we're finished reading.
6847         (cleanup_undefined_types): Make error message more appropriate for
6848         a complaint.
6849
6850 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
6851
6852         * Makefile.in (defs_h): Remove dependency on progress_h.
6853         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
6854         progress.h.
6855         * main.c (captured_main): Delete use of START_PROGRESS and
6856         END_PROGRESS.
6857
6858 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
6859
6860         * objfiles.c (terminate_minimal_symbol_table): Add back
6861         initialization of MSYMBOL_TYPE.
6862
6863 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
6864
6865         Committed by Andrew Cagney.
6866         * Makefile.in (ia64_tdep_h): New macro.
6867         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
6868         (ia64-tdep.o): Likewise.
6869         * ia64-tdep.h: New file.
6870         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
6871         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
6872         (ia64_aix_sigcontext_register_address): Likewise.
6873         (ia64_linux_getunwind_table): Delete declaration.
6874         * ia64-linux-tdep.c: Likewise.
6875
6876 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
6877
6878         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
6879         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
6880         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
6881
6882 2004-02-17  Andrew Cagney  <cagney@redhat.com>
6883
6884         * symtab.c (skip_prologue_using_sal): New function.
6885         * symtab.h (skip_prologue_using_sal): Declare.
6886         * frv-tdep.c: Include "symtab.h".
6887         (skip_prologue_using_sal): Delete function.
6888         * mips-tdep.c (skip_prologue_using_sal): Delete function.
6889         * rs6000-tdep.c (refine_prologue_limit): Mention
6890         skip_prologue_using_sal.
6891         * ia64-tdep.c (refine_prologue_limit): Ditto.
6892         * Makefile.in: Update dependencies.
6893
6894 2004-02-16  Andrew Cagney  <cagney@redhat.com>
6895
6896         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
6897         START_INFERIOR_TRAPS_EXPECTED.
6898         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
6899         START_INFERIOR_TRAPS_EXPECTED.
6900         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
6901         Delete macro.
6902         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
6903         macro, moved to "nm-osf.h".  Update copyright.
6904         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
6905         update copyright.
6906
6907         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
6908         and function replacing FRAMELESS_FUNCTION_INVOCATION.
6909         * blockframe.c (legacy_frameless_look_for_prologue): Rename
6910         frameless_look_for_prologue.
6911         * frame.h (legacy_frameless_look_for_prologue): Rename
6912         frameless_look_for_prologue.
6913         * gdbarch.h, gdbarch.c: Re-generate.
6914         * sh64-tdep.c (sh64_gdbarch_init): Update.
6915         * sh-tdep.c (sh_gdbarch_init): Update.
6916         * s390-tdep.c (s390_gdbarch_init): Update.
6917         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6918         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6919         * m68k-tdep.c (m68k_gdbarch_init): Update.
6920         (delta68_frame_args_address): Update.
6921         * m32r-tdep.c (m32r_gdbarch_init): Update.
6922         * hppa-tdep.c (hppa_gdbarch_init): Update.
6923         * h8300-tdep.c (h8300_gdbarch_init): Update.
6924         * frv-tdep.c (frv_gdbarch_init): Update.
6925         (frv_frameless_function_invocation): Update.
6926         * cris-tdep.c (cris_gdbarch_init): Update.
6927         (cris_frameless_function_invocation): Update.
6928         * avr-tdep.c (avr_gdbarch_init): Update.
6929         * arm-tdep.c (arm_gdbarch_init): Update.
6930         * stack.c (frame_info): Update, call predicate.
6931         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
6932         * frame.c (legacy_get_prev_frame): Update, call predicate..
6933         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
6934         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
6935         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
6936         invocation.
6937         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6938         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6939         * vax-tdep.c (vax_gdbarch_init): Ditto.
6940
6941         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
6942         function.
6943
6944 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
6945
6946         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
6947         initializations.
6948
6949 2004-02-16  Andrew Cagney  <cagney@redhat.com>
6950
6951         * tui/tui-windata.c: Include "gdb_string.h".
6952         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
6953         * tui/tui-layout.c, tui/tui-command.c: Ditto.
6954         * Makefile.in: Update dependencies.
6955
6956 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
6957
6958         * Makefile.in (infrun.o): Add $(gdb_assert_h).
6959         * infrun.c: Include "gdb_assert.h".
6960         (singlestep_ptid, saved_singlestep_ptid)
6961         (stepping_past_singlestep_breakpoint): New variables.
6962         (resume): Set singlestep_ptid.  Check for singlestep thread
6963         hop.
6964         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
6965         (handle_inferior_event): Handle singlestep thread hop.
6966
6967 2004-02-16  Andrew Cagney  <cagney@redhat.com>
6968
6969         * dwarf2-frame.c (dwarf2_frame_ops): New function.
6970         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
6971         (dwarf2_frame_init_reg): Ditto.
6972
6973         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
6974         suggested by Joshua Neuheisel
6975
6976         * configure.in: Always check for curses, including pdcurses.
6977         Warn, instead of error, when no curses are found.  Enable TUI when
6978         curses is available.
6979         * configure: Re-generate.
6980
6981 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
6982
6983         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
6984         sh_sh4_register_convert_to_virtual.
6985         (sh_register_convert_to_raw): Rename from
6986         sh_sh4_register_convert_to_raw.
6987         (sh_pseudo_register_read): Accomodate above name change.
6988         (sh_pseudo_register_write): Ditto.
6989
6990 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
6991
6992         * sh-tdep.c (sh_generic_register_name): Remove.
6993         (sh_gdbarch_init): Use sh_sh_register_name in default case.
6994
6995 2004-02-15  Andrew Cagney  <cagney@redhat.com>
6996
6997         * configure.in (build_warnings): Add -Wunused-function.
6998         * configure: Re-generate.
6999
7000         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
7001         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
7002
7003         * procfs.c (procfs_init_inferior): Assume that
7004         START_INFERIOR_TRAPS_EXPECTED is defined.
7005         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
7006         * config/ns32k/tm-nbsd.h: Delete file,
7007         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
7008
7009         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
7010         * config/vax/tm-vax.h: Delete file.
7011
7012         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7013         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7014         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7015         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7016         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
7017         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
7018         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
7019
7020 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
7021
7022         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
7023         * dwarf2-frame.c (dwarf2_frame_data): New variable.
7024         (struct dwarf2_frame_ops): New.
7025         (dwarf2_frame_default_init_reg): New function, based on
7026         dwarf2_frame_init_reg.
7027         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
7028         (dwarf2_frame_init_reg): Call architecture-specific function.
7029         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
7030         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
7031         instead of dwarf2_frame_data.
7032         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
7033         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
7034
7035 2004-02-15  Andrew Cagney  <cagney@redhat.com>
7036
7037         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
7038         register_gdbarch_swap.
7039         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
7040         * f-lang.c (_initialize_f_language): Update, use
7041         DEPRECATED_REGISTER_GDBARCH_SWAP.
7042         * remote.c (_initialize_remote): Ditto.
7043         * regcache.c (_initialize_regcache): Ditto.
7044         * parse.c (_initialize_parse): Ditto.
7045         * infrun.c (_initialize_infrun): Ditto.
7046         * mi/mi-main.c (_initialize_mi_main): Ditto.
7047         * gdbtypes.c (_initialize_gdbtypes): Ditto.
7048
7049         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
7050         poking .cacheable directly.
7051         * symfile.c (symfile_bfd_open): Ditto.
7052
7053         * Makefile.in: Update all dependencies.
7054
7055         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
7056         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
7057         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
7058         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
7059         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
7060
7061 2004-02-14  Andrew Cagney  <cagney@redhat.com>
7062
7063         * arch-utils.c (legacy_convert_register_p): Check
7064         DEPRECATED_REGISTER_CONVERTIBLE_P.
7065         * findvar.c (value_of_register): Ditto.
7066
7067         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
7068         * gdbarch.h, gdbarch.c: Re-generate.
7069         * arch-utils.c (deprecated_register_convertible_not): Delete.
7070         * arch-utils.h (deprecated_register_convertible_not): Delete.
7071         * mi/mi-main.c (get_register): Update.  Update copyright.
7072         * infcmd.c (default_print_registers_info): Update.
7073
7074         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7075         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
7076         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
7077         * gdbarch.h, gdbarch.c: Re-generate.
7078         * frame.c (deprecated_get_next_frame_hack): Delete function.
7079         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
7080         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7081         Update.
7082         * infcall.c (call_function_by_hand): Update.
7083
7084 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
7085
7086         * symfile.c (init_entry_point_info, entry_point_address): Move
7087         from here...
7088         * objfiles.c (init_entry_point_info, entry_point_address):..to
7089         here.
7090         * symfile.h (init_entry_point_info, entry_point_address): Remove
7091         prototypes.
7092         * objfiles.h (init_entry_point_info, entry_point_address):Add
7093         prototypes.
7094         * cris-tdep.c: Remove include of symfile.h. Add include of
7095         objfiles.h.
7096         * infcall.c: Ditto.
7097         * mcore-tdep.c: Ditto.
7098         * mn10300-tdep.c: Ditto.
7099         * sh64-tdep.c: Ditto.
7100         * v850-tdep.c: Ditto.
7101         * arm-tdep.c: Remove include of symfile.h.
7102         * blockframe.c: Ditto.
7103         * coffread.c: Ditto.
7104         * dbxread.c: Ditto.
7105         * dwarf2read.c: Ditto.
7106         * dwarfread.c: Ditto.
7107         * frv-tdep.c: Ditto.
7108         * ia64-tdep.c: Ditto.
7109         * mdebugread.c: Ditto.
7110         * mipsread.c: Ditto.
7111         * rs6000-tdep.c: Ditto.
7112         * s390-tdep.c: Ditto.
7113         * sh-tdep.c: Ditto.
7114         * xstormy16-tdep.c: Ditto.
7115         * gdbarch.sh: Remove include of symfile.h.
7116         * gdbarch.c: Regenerate.
7117         * solib-irix.c (enable_break): Use entry_point_address().
7118         Add comment about include file.
7119         * xcoffread.c: Add comment about include file.
7120         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
7121         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
7122         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
7123         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
7124         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
7125
7126 2004-02-13  Andrew Cagney  <cagney@redhat.com>
7127
7128         * corelow.c (core_xfer_partial): Use "struct bfd_section".
7129         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
7130         copyright.
7131         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
7132
7133 2004-02-12  Fred Fish  <fnf@redhat.com>
7134
7135         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
7136          set_gdbarch_store_return_value.
7137
7138 2004-02-12  Andrew Cagney  <cagney@redhat.com>
7139
7140         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
7141         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
7142         (interrupt_query): Ditto.
7143         (ofunc): Delete unused variable.
7144         * cris-tdep.c (cris_abi): Delete unused function.
7145         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
7146         (cris_get_wide_opcode, cris_get_short_size): Ditto.
7147         (cris_get_asr_quick_shift_steps): Ditto.
7148         (cris_skip_prologue_frameless_p): Ditto.
7149         * arm-tdep.c (arm_push_return_address): Delete unused function.
7150         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
7151         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
7152         * s390-tdep.c (s390_function_start): Delete unused function.
7153
7154 2004-02-12  Andrew Cagney  <cagney@redhat.com>
7155
7156         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
7157         gdbarch.h, gdbarch.c: Re-generate.
7158         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
7159         to generic_prologue_frameless_p.
7160         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
7161         * arch-utils.c (generic_prologue_frameless_p): Delete function.
7162
7163 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
7164
7165         * mips-linux-tdep.c: Include "frame.h".
7166         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
7167         (mips_linux_skip_resolver): New functions.
7168         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
7169         and set_gdbarch_in_solib_call_trampoline.
7170         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
7171         to after set_gdbarch_in_solib_return_trampoline.  Only set the
7172         solib hooks to mips16 functions if the OS ABI is unknown.
7173         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
7174         including "config/tm-linux.h".
7175         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
7176         * Makefile.in (mips-linux-tdep.o): Update.
7177
7178 2004-02-11  David Carlton  <carlton@kealia.com>
7179
7180         * linespec.c (decode_compound): Only look for a class symbol when
7181         considering all but the rightmost component.
7182
7183 2004-02-11  Andrew Cagney  <cagney@redhat.com>
7184
7185         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
7186         abi code are are separatly grouped.
7187
7188 2004-02-11  Andrew Cagney  <cagney@redhat.com>
7189
7190         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
7191         * gdbarch.h, gdbarch.c: Re-generate.
7192         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7193         * v850-tdep.c (v850_gdbarch_init): Update.
7194         * sh64-tdep.c (sh64_gdbarch_init): Update.
7195         * sh-tdep.c (sh_gdbarch_init): Update.
7196         * s390-tdep.c (s390_gdbarch_init): Update.
7197         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7198         * mips-tdep.c (mips_gdbarch_init): Update.
7199         * mcore-tdep.c (mcore_gdbarch_init): Update.
7200         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7201         * m32r-tdep.c (m32r_gdbarch_init): Update.
7202         * ia64-tdep.c (ia64_gdbarch_init): Update.
7203         * hppa-tdep.c (hppa_gdbarch_init): Update.
7204         * h8300-tdep.c (h8300_gdbarch_init): Update.
7205         * frv-tdep.c (frv_gdbarch_init): Update.
7206         * d10v-tdep.c (d10v_gdbarch_init): Update.
7207         * cris-tdep.c (cris_gdbarch_init): Update.
7208         * avr-tdep.c (avr_gdbarch_init): Update.
7209         * arm-tdep.c (arm_gdbarch_init): Update.
7210         * alpha-tdep.c (alpha_gdbarch_init): Update.
7211
7212 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
7213
7214         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
7215         comma.
7216         (sh_sh4al_dsp_register_name): Ditto.
7217
7218 2004-02-10  Andrew Cagney  <cagney@redhat.com>
7219
7220         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
7221         (mips_init_frame_pc_first): Delete function.
7222         (mips_frame_saved_pc): Delete function.
7223         (mips_frame_chain): Delete function.
7224         (mips_init_extra_frame_info): Delete function.
7225         (mips_xfer_register): Delete unused variable "reg".
7226         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
7227         (mips_n32n64_return_value): Delete unused variable "reg".
7228         (mips_n32n64_return_value): Delete unused variable "pos".
7229         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
7230         (mips_o32_return_value): Delete unused variable "pos".
7231         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
7232         (mips_print_fp_register): Delete unused variable "namelen"
7233         (mips_print_fp_register): Delete unused variable "flt2"
7234         (get_frame_pointer): Delete function.
7235         (cached_proc_desc): Delete static variable.
7236         (mips_pop_frame): Delete function.
7237         (mips_find_saved_regs): Delete function.
7238         (mips_get_saved_register): Delete function.
7239         (mips_saved_pc_after_call): Delete function.
7240         (SIGFRAME_BASE): Delete macro.
7241         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
7242         (SIGFRAME_PC_OFF): Delete macro.
7243         (SIGFRAME_REGSAVE_OFF): Delete macro.
7244         (mips_dump_tdep): Do not print deleted macro definitions.
7245
7246 2004-02-10  Andrew Cagney  <cagney@redhat.com>
7247
7248         * Makefile.in (SFILES): Remove explictly listed tui files.
7249         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
7250
7251 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
7252
7253         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
7254         to use paddr functions to format ia64 addresses and long values.
7255         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
7256         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
7257         (get_kernel_table, ia64_find_proc_info_x): Ditto.
7258         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
7259         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
7260
7261 2004-02-10  Andrew Cagney  <cagney@redhat.com>
7262
7263         * defs.h: Do not include "tui.h".
7264         * gdb_curses.h: New file.
7265         * tui/tui-hooks.h: New file.
7266         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
7267         (tui_install_hooks, tui_remove_hooks): Delete declarations.
7268         (tui_initialize_io): Delete declaration.
7269         (tui_initialize_readline: Delete redundant declaration.
7270         (struct tui_point): Delete definition.
7271         * tui/tui-data.h (struct tui_point): Define.
7272         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
7273         * utils.c: Include "tui/tui.h".
7274         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
7275         * printcmd.c [TUI]: Include "tui/tui.h".
7276         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
7277         * tui/tui-command.c: Include "gdb_curses.h".
7278         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
7279         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
7280         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
7281         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
7282         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
7283         * Makefile.in: Update all dependencies.
7284         (tui_hooks_h, gdb_curses_h): Define.
7285         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
7286
7287 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
7288
7289         * objfiles.h (struct objfile): Remove unused fields auxf1 and
7290         auxf2. Add comments about some other rarely used fields.
7291
7292 2004-02-10  Andrew Cagney  <cagney@redhat.com>
7293
7294         * Makefile.in (init.c): Fix script removing duplicates. Problem
7295         reported by Peter Schauer.
7296
7297 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
7298
7299         * bcache.c (bcache_xmalloc): Use obstack_init instead of
7300         obstack_specify_allocation.
7301         * objfiles.c (allocate_objfile): Ditto.
7302         * solib-sunos.c (solib_add_common_symbols)
7303         (allocate_rt_common_objfile): Ditto.
7304         * symfile.c (reread_symbols): Ditto.
7305         * gdb_obstack.h: Add comment.
7306
7307 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
7308
7309         * linespec.c (decode_line_1, locate_first_half)
7310         (decode_compound, lookup_prefix_sym): Update comments. Delete old
7311         commented out code.
7312
7313 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
7314
7315         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
7316         obstack_free.
7317
7318 2004-02-09  Andrew Cagney  <cagney@redhat.com>
7319
7320         * blockframe.c (find_pc_partial_function): If find_pc_overlay
7321         fails, try find_pc_section.  Fix PR c++/1267.
7322         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
7323         instead of find_pc_mapped_section.
7324         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
7325         not default to the section containing PC.  Fix PR symtab/1519.
7326
7327 2004-02-09  Andrew Cagney  <cagney@redhat.com>
7328
7329         * Makefile.in (mips-tdep.o): Update dependencies.
7330         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
7331         "trad-frame.h".
7332         (mips_unwind_pc): Return the pseudo PC register.
7333         (mips_unwind_dummy_id): New function.
7334         (mips16_fetch_instruction): New function.
7335         (mips32_fetch_instruction): New function.
7336         (struct mips_frame_cache): Define.
7337         (mips_mdebug_frame_cache): New function.
7338         (mips_mdebug_frame_this_id): New function.
7339         (mips_mdebug_frame_prev_register): New function.
7340         (mips_mdebug_frame_unwind): Define.
7341         (mips_mdebug_frame_sniffer): New function.
7342         (mips_mdebug_frame_base_address): New function.
7343         (mips_mdebug_frame_base): Define.
7344         (mips_mdebug_frame_base_sniffer): New function.
7345         (mips_gdbarch_init): Append unwind and base sniffers.  Set
7346         unwind_dummy_id.
7347
7348 2004-02-08  Andrew Cagney  <cagney@redhat.com>
7349
7350         * frame.c: Print both the register number and name.
7351
7352         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
7353         and a sed into a single sed.  Make .c and .o patterns more robust.
7354         (OBS): Delete.
7355         (INIT_FILES): Replace OBS with COMMON_OBS.
7356         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
7357
7358 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
7359
7360         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
7361         the PT_WCOOKIE request.
7362
7363 2004-02-08  Andrew Cagney  <cagney@redhat.com>
7364
7365         * mips-tdep.c (mips_unwind_pc): New function.
7366         (mips_gdbarch_init): Set mips_unwind_pc.
7367
7368         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
7369         (get_frame_id): Allow the UNKNOWN_FRAME.
7370         (frame_register_unwind, get_frame_type): Ditto.
7371
7372         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
7373         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
7374         unwind_dummy_id indicates a legacy frame.
7375
7376         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
7377         * configure: Re-generate.
7378
7379         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
7380         methods.
7381
7382 2004-02-08  Andrew Cagney  <cagney@redhat.com>
7383
7384         * configure.in (CONFIG_ALL): Set to Makefile target, and not
7385         makefile macro.
7386         * configure: Re-generate.
7387         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
7388         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
7389         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
7390         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
7391         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
7392         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
7393         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
7394         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
7395         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
7396         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
7397
7398 2004-02-07  Andrew Cagney  <cagney@redhat.com>
7399
7400         * Makefile.in: Update all dependencies.
7401
7402         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
7403         * configure: Re-generate.
7404         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
7405         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
7406         (COMMON_OBS): Add "main.o" and "annotate.o".
7407         (ANNOTATE_OBS): Delete.
7408         (OBS): Remove ANNOTATE_OBS.
7409         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
7410         CONFIG_INITS.
7411         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
7412         against CONFIG_OBS and "main.o".
7413         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
7414         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
7415
7416         * tui/tui-command.c: Include "gdb_string.h", delete register
7417         attribute, use ISO-C function signatures.
7418         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
7419         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
7420         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
7421         * tui/tui.c: Ditto.
7422
7423         * tui/tui-command.c: Change variable and function names to lower
7424         case.
7425         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
7426         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
7427         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
7428         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
7429         * tui/tui-winsource.c, tui/tui.c: Ditto.
7430
7431 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
7432
7433         * buildsym.c (free_pending_blocks, finish_block)
7434         (record_pending_block, make_blockvector, end_symtab): Replace
7435         symbol_obstack with objfile_obstack.
7436         * coffread.c (process_coff_symbol, coff_read_struct_type)
7437         (coff_read_enum_type): Ditto.
7438         * cp-namespace.c (initialize_namespace_symtab)
7439         (check_one_possible_namespace_symbol): Ditto.
7440         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
7441         (dwarf2_symbol_mark_computed): Ditto.
7442         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
7443         * elfread.c (elf_symtab_read): Ditto.
7444         * hpread.c (hpread_symfile_init, hpread_symfile_init)
7445         (hpread_read_enum_type, hpread_read_function_type)
7446         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
7447         Ditto.
7448         * jv-lang.c (get_java_class_symtab, add_class_symbol)
7449         (java_link_class_type): Ditto.
7450         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
7451         (new_symbol): Ditto.
7452         * minsyms.c (install_minimal_symbols): Ditto.
7453         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
7454         (terminate_minimal_symbol_table): Replace symbol_obstack with
7455         objfile_obstack.
7456         (free_objfile): Remove freeing of symbol_obstack.
7457         * objfiles.h: Remove symbol_obstack field.
7458         * pa64solib.c (add_to_solist): Replace symbol_obstack with
7459         objfile_obstack.
7460         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
7461         symbol_obstack.
7462         (solib_add_common_symbols): Replace symbol_obstack with
7463         objfile_obstack.
7464         * somsolib.c (som_solib_add): Ditto.
7465         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7466         (common_block_start, common_block_end): Ditto.
7467         * symfile.c (reread_symbols): Remove freeing and init of
7468         symbol_obstack.
7469         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
7470         * symfile.h: Update comment.
7471         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
7472         stats printing.
7473         * symtab.c (symbol_set_names): Replace symbol_obstack with
7474         objfile_obstack.
7475         * symtab.h (struct general_symbol_info, struct minimal_symbol):
7476         Update comments.
7477         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
7478         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
7479         objfile_obstack.
7480
7481 2004-02-07  Andrew Cagney  <cagney@redhat.com>
7482
7483         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
7484         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
7485         fields and variables.
7486         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
7487         (m_beInvisible): Delete macro.
7488         * tui/tui-data.h: Fix case case fields and variables.
7489         (m_genWinPtrIsNull): Delete macro.
7490         (tui_win_list): Rename winList.
7491         (TUI_SRC_WIN): Rename srcWin.
7492         (TUI_DISASM_WIN): Rename disassemWin.
7493         (TUI_DATA_WIN): Rename dataWin.
7494         (TUI_CMD_WIN): Rename cmdWin.
7495         (m_genWinPtrNotNull): Delete macro.
7496         (m_winPtrIsNull): Delete macro.
7497         (m_winPtrNotNull): Delete macro.
7498         (tui_win_is_source_type): Replace m_winIsSourceType
7499         (tui_win_is_auxillary): Replace m_winIsAuzillary.
7500         (tui_win_has_locator): Replace m_hasLocator.
7501         (tui_set_win_highlight): Replace m_setWinHighlightOn and
7502         m_setWinHighlightOff.
7503         * tui/tui-data.c: Update references.
7504         (tui_win_is_source_type, tui_set_win_highlight): New functions.
7505         (tui_win_has_locator, tui_win_is_auxillary): New functions.
7506         * tui/tui-command.c, tui/tui-disasm.c: Update references.
7507         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
7508         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
7509         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
7510         * tui/tui-winsource.c, tui/tui.c: Ditto.
7511
7512 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
7513
7514         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
7515         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
7516         StackGhost.
7517
7518         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
7519         variable `i6' to `i7'.
7520         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
7521
7522 2004-02-07  Andrew Cagney  <cagney@redhat.com>
7523
7524         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
7525         (TuiPoint, TuiPointPtr): Ditto.
7526         (TuiStatus, TuiStatusPtr): Ditto.
7527         (TuiWinType, TuiWinTypePtr): Ditto.
7528         (struct tui_point): Rename _TuiPoint.
7529         (tui_get_low_disassembly_address): Rename
7530         tuiGetLowDisassemblyAddress.
7531         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
7532         (tuiFree): Delete declaration.
7533         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
7534         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
7535         * tui/tui.c (tuiFree): Delete function.
7536         * cli/cli-cmds.c (disassemble_command): Update references.
7537         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
7538         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
7539         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
7540         * tui/tui-winsource.c: Ditto.
7541
7542 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
7543
7544         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
7545         coffstab_build_psymtabs, elfstab_build_psymtabs)
7546         (stabsect_build_psymtabs): Replace psymbol_obstack with
7547         objfile_obstack.
7548         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
7549         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
7550         Ditto.
7551         * dwarfread.c (scan_compilation_units): Ditto.
7552         * elfread.c (elfstab_offset_sections): Ditto.
7553         * hppa-tdep.c (read_unwind_info): Ditto.
7554         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
7555         (hpread_end_psymtab): Ditto.
7556         * mdebugread.c (mdebug_build_psymtabs, add_pending)
7557         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
7558         Ditto.
7559         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
7560         * objfiles.c (add_to_objfile_sections)
7561         (build_objfile_section_table): Ditto.
7562         (allocate_objfile): Remove init of psymbol_obstack.
7563         (free_objfile): Remove freeing of psymbol_obstack.
7564         * objfiles.h (struct objfile): Remove field
7565         psymbol_obstack. Update comments.
7566         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
7567         psymbol_obstack with objfile_obstack.
7568         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
7569         psymbol_obstack.
7570         * somread.c (som_symfile_offsets, init_import_symbols)
7571         (init_export_symbols): Replace psymbol_obstack with
7572         objfile_obstack.
7573         * somsolib.c (som_solib_add_solib_objfile): Ditto.
7574         * symfile.c (default_symfile_offsets, syms_from_objfile)
7575         (reread_symbols): Remove freeing and init of psymbol_obstack.
7576         (cashier_psymtab): Update comment.
7577         * symmisc.c (print_objfile_statistics): Don't report stats for
7578         psymbol obstack.
7579         * symtab.h (struct general_symbol_info, struct partial_symtab):
7580         Update comments.
7581         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
7582         (xcoff_symfile_offsets): Replace psymbol_obstack with
7583         objfile_obstack.
7584
7585 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
7586
7587         * objfiles.h (struct objfile): Add objfile_obstack field.
7588         Remove type_obstack field.
7589
7590         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
7591         read_structure_scope read_enumeration, new_symbol): Replace
7592         type_obstack with objfile_obstack.
7593         * dwarfread.c (struct_type, enum_type): Ditto.
7594         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
7595         (lookup_fundamental_type): Ditto.
7596         * gdbtypes.h (TYPE_ALLOC): Ditto.
7597         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
7598         (hpread_read_doc_function_type, hpread_read_struct_type)
7599         (fix_static_member_physnames, hpread_read_array_type)
7600         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
7601         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
7602         (java_link_class_type): Ditto.
7603         * mdebugread.c (parse_type): Ditto.
7604         * objfiles.c (allocate_objfile, free_objfile): Ditto.
7605         * solib-sunos.c (solib_add_common_symbols): Ditto.
7606         * stabsread.c (define_symbol, read_type, read_member_functions,
7607         read_cpp_abbrev, read_one_struct_field): Ditto.
7608         * symfile.c (reread_symbols): Ditto.
7609         * symmisc.c (print_objfile_statistics): Ditto.
7610
7611 2004-02-07  Andrew Cagney  <cagney@redhat.com>
7612
7613         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
7614         (tui_exec_info_content): Rename TuiExecInfoContent.
7615         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
7616         (TuiWinInfo, TuiWinInfoPtr): Ditto.
7617         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
7618         (TuiList, TuiListPtr): Ditto.
7619         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
7620         (TuiDataType, TuiDataTypePtr): Ditto.
7621         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
7622         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
7623         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
7624         (TuiSourceElement, TuiSourceElementPtr): Ditto.
7625         (TuiDataElement, TuiDataElementPtr): Ditto.
7626         (TuiWinElement, TuiWinElementPtr): Ditto.
7627         (TuiDataInfo, TuiDataInfoPtr): Ditto.
7628         (TuiCommandElement, TuiCommandElementPtr): Ditto.
7629         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
7630         (TuiWhichElement, TuiWhichElementPtr): Ditto.
7631         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
7632         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
7633         * tui/tui-command.c, tui/tui-data.c: Update references.
7634         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
7635         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
7636         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
7637         * tui/tui-winsource.c, tui/tui.c: Ditto.
7638
7639 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
7640
7641         * dwarf2-frame.h: Update copyright.
7642         (enum dwarf2_frame_reg_rule): New.
7643         (struct dwarf2_frame_state_reg): New.
7644         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
7645         * dwarf2-frame.c: Update copyright.
7646         (enum dwarf2_reg_rule): Remove.
7647         (struct dwarf2_frame_state): Remove defenition of `struct
7648         dwarf2_frame_state_reg'.
7649         (read_reg): Call get_frame_arch to get the architecture instead of
7650         using CURRENT_GDBARCH.
7651         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
7652         DWARF2_FRAME_.
7653         (dwarf2_frame_init_reg): New function.
7654         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
7655         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
7656         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
7657         tags with DWARF2_FRAME_.
7658         (dwarf2_frame_prev_register): Call get_frame_arch to get the
7659         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
7660         dwarf2_reg_rule' tags with DWARF2_FRAME_.
7661
7662 2004-02-06  Andrew Cagney  <cagney@redhat.com>
7663
7664         * tui/tui-data.h (struct tui_list): Rename _TuiList.
7665         (enum tui_data_type): Rename _TuiDataType.
7666         (struct tui_layout_def): Rename _TuiLayoutDef.
7667         (struct tui_source_element): Rename _TuiSourceElement.
7668         (struct tui_data_element): Rename _TuiDataElement.
7669         (struct tui_command_element): Rename _TuiCommandElement.
7670         (struct tui_locator_element): Rename _TuiLocatorElement.
7671         (union tui_which_element): Define.
7672         (struct tui_win_element): Rename _TuiWinElement.
7673         (struct tui_data_info): Rename _TuiDataInfo.
7674         (struct tui_source_info): Rename _TuiSourceInfo.
7675         (struct tui_command_info): Rename _TuiCommandInfo.
7676         (tui_initialize_static_data): Rename initializeStaticData.
7677         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
7678         (tui_alloc_win_info): Rename allocWinInfo.
7679         (tui_init_generic_part): Rename initGenericPart.
7680         (tui_init_win_info): Rename initWinInfo.
7681         (tui_alloc_content): Rename allocContent.
7682         (tui_add_content_elements): Rename addContentElements.
7683         (tui_init_content_element): Rename initContentElement.
7684         (tui_free_window): Rename freeWindow.
7685         (tui_free_win_content): Rename freeWinContent.
7686         (tui_free_data_content): Rename freeDataContent.
7687         (tui_free_all_source_wins_content): Rename
7688         freeAllSourceWinsContent.
7689         (tui_del_window): Rename tuiDelWindow.
7690         (tui_del_data_windows): Rename tuiDelDataWindows.
7691         (tui_partial_win_by_name): Rename partialWinByName.
7692         (tui_win_name): Rename winName.
7693         (tui_current_layout): Rename currentLayout.
7694         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
7695         (tui_term_height): Rename termHeight.
7696         (tui_set_term_height_to): Rename setTermHeightTo.
7697         (tui_term_width): Rename termWidth.
7698         (tui_set_term_width_to): Rename setTermWidthTo.
7699         (tui_set_gen_win_origin): Rename setGenWinOrigin.
7700         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
7701         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
7702         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
7703         (tui_source_windows): Rename sourceWindows.
7704         (tui_clear_source_windows): Rename clearSourceWindows.
7705         (tui_clear_source_windows_detail): Rename
7706         clearSourceWindowsDetail.
7707         (tui_clear_win_detail): Rename clearWinDetail.
7708         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
7709         (tui_default_tab_len): Rename tuiDefaultTabLen.
7710         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
7711         (tui_win_with_focus): Rename tuiWinWithFocus.
7712         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
7713         (tui_layout_def): Rename tuiLayoutDef.
7714         (tui_win_resized): Rename tuiWinResized.
7715         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
7716         (tui_next_win): Rename tuiNextWin.
7717         (tui_prev_win): Rename tuiPrevWin.
7718         (tui_add_to_source_windows): Rename addToSourceWindows.
7719         * tui/tui-winsource.c, tui/tui-win.c: Update references.
7720         * tui/tui-layout.c, tui/tui-source.c: Ditto.
7721         * tui/tui-stack.c, tui/tui-io.c: Ditto.
7722         * tui/tui.c, tui/tui-data.c: Ditto.
7723         * tui/tui-interp.c, tui/tui-data.c: Ditto.
7724         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
7725
7726         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
7727         (struct symtab): Declare.
7728         (tui_set_source_content): Rename tuiSetSourceContent.
7729         (tui_show_symtab_source): Rename tuiShowSource.
7730         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
7731         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
7732         * tui/tui-source.c: Update copyright.  Update references.
7733         * tui/tui-win.c, tui/tui-winsource.c: Update references.
7734         * tui/tui-stack.c: Update references.
7735
7736         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
7737         (struct tui_win_info): Declare.
7738         (tui_scroll_forward): Rename tuiScrollForward.
7739         (tui_scroll_backward): Rename tuiScrollBackward.
7740         (tui_scroll_left): Rename tuiScrollLeft.
7741         (tui_scroll_right): Rename tuiScrollRight.
7742         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
7743         (tui_resize_all): Rename tuiResizeAll.
7744         (tui_refresh_all_win): Rename tuiRefreshAll.
7745         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
7746         * tui/tui-layout.c, * tui/tui-io.c: Update references.
7747         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
7748         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
7749
7750         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
7751         (tui_erase_data_content): Rename tuiEraseDataContent.
7752         (tui_display_all_data): Rename tuiDisplayAllData.
7753         (tui_check_data_values): Rename tuiCheckDataValues.
7754         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
7755         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
7756         (tui_first_data_element_no_in_line): Rename
7757         tuiFirstDataElementNoInLine.
7758         (tui_delete_data_content_windows): Rename
7759         tuiDeleteDataContentWindows.
7760         (tui_refresh_data_win): Rename tuiRefreshDataWin.
7761         (tui_display_data_from): Rename tuiDisplayDataFrom.
7762         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
7763         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
7764         * tui/tui-win.c, tui/tui-regs.c: Update references.
7765         * tui/tui-layout.c, tui/tui.c: Update references.
7766
7767         * tui/tui-wingeneral.h: Update copyright.
7768         (m_allBeVisible): Delete macro.
7769         (m_allBeInvisible): Delete macro.
7770         (struct tui_gen_win_info): Declare.
7771         (struct tui_win_info): Declare.
7772         (tui_unhighlight_win): Rename unhighlightWin.
7773         (tui_make_visible, tui_make_invisible): Replace makeVisible.
7774         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
7775         (tui_make_window): Rename makeWindow.
7776         (tui_copy_win): Rename copyWin.
7777         (tui_box_win): Rename boxWin.
7778         (tui_highlight_win): Rename highlightWin.
7779         (tui_check_and_display_highlight_if_needed): Rename
7780         checkAndDisplayHighlightIfNeeded.
7781         (tui_refresh_all): Rename refreshAll.
7782         (tui_delete_win): Rename tuiDelwin.
7783         (tui_refresh_win): Rename tuiRefreshWin.
7784         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
7785         (tui_make_visible, tui_make_invisible): New functions.
7786         (tui_make_all_visible, tui_make_all_invisible): New functions.
7787         (make_all_visible): Rename makeAllVisible.
7788         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
7789         * tui/tui-data.c, tui/tui-winsource.c: Update references.
7790         * tui/tui-windata.c, tui/tui-win.c: Update references.
7791         * tui/tui-regs.c, tui/tui-layout.c: Update references.
7792         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
7793
7794 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
7795
7796         * proc-api.c (write_with_trace): Initialize local variable to
7797         silence compiler warning.
7798
7799 2004-02-06  Andrew Cagney  <cagney@redhat.com>
7800
7801         * tui/tui-source.h: Do not include "defs.h".
7802         (struct tui_win_info): Declare.
7803         (tui_set_source_content_nil): Declare.
7804         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
7805         (union tui_line_or_address): Rename _TuiLineOrAddress.
7806         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
7807         (tui_update_source_window): Rename tuiUpdateSourceWindow.
7808         (tui_update_source_window_as_is): Rename
7809         tuiUpdateSourceWindowAsIs.
7810         (tui_update_source_windows_with_addr): Rename
7811         tuiUpdateSourceWindowsWithAddr.
7812         (tui_update_source_windows_with_line): Rename
7813         tuiUpdateSourceWindowsWithLine.
7814         (tui_clear_source_content): Rename tuiClearSourceContent.
7815         (tui_erase_source_content): Rename tuiEraseSourceContent.
7816         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
7817         (tui_show_source_content): Rename tuiShowSourceContent.
7818         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
7819         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
7820         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
7821         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
7822         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
7823         (tui_update_exec_info): Rename tuiUpdateExecInfo.
7824         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
7825         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
7826         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
7827         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
7828         (struct tui_win_info): Declare.
7829         * tui/tui-stack.c: Update references.
7830         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
7831         * tui/tui-win.c, tui/tui-source.c: Ditto.
7832         * tui/tui.c, tui/tui-disasm.c: Ditto.
7833
7834 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
7835
7836         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
7837         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
7838
7839 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
7840
7841         * infrun.c (handle_inferior_event): Allow for breakpoint
7842         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
7843         and SIGEMT.  Update comments.
7844         * NEWS (Revised SPARC target): Mention support for non-executable
7845         stack.
7846
7847 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
7848
7849         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
7850         * inftarg.c: Update copyright year.
7851         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
7852         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
7853         (sparc_xfer_wcookie): New function.
7854         * sparc-tdep.c (sparc_fetch_wcookie): New function.
7855         * Makefile.in (sparc-nat.o): Update dependencies.
7856         * config/sparc/nm-nbsd.h: Include "target.h".
7857         (NATIVE_XFER_WCOOKIE): New define.
7858         (sparc_xfer_wcookie): New prototype.
7859
7860 2004-02-04  Andrew Cagney  <cagney@redhat.com>
7861
7862         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
7863         SYSCALL_TRAP function.
7864         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
7865
7866 2004-02-04  Andrew Cagney  <cagney@redhat.com>
7867             Daniel Jacobowitz  <drow@mvista.com>
7868
7869         * objfiles.h: Delete comments refering to inside_entry_func and
7870         DEPRECATED_FRAME_CHAIN_VALID.
7871         * defs.h (inside_entry_func): Update prototype..
7872         * blockframe.c (inside_entry_func): Rename to
7873         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
7874         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
7875
7876 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
7877
7878         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
7879         outside of #ifdef SOLIB_ADD region.
7880         (do_restore_lang_radix_cleanup): Ditto.
7881         (resolve_pending_breakpoint): Ditto.
7882
7883 2004-02-03  Andrew Cagney  <cagney@redhat.com>
7884
7885         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
7886         (process_note_abi_tag_sections): Delete unused function.
7887         (ia64_read_fp): Delete unused function.
7888         (gdbarch_extract_struct_value_address): Delete declaration.
7889
7890 2004-02-02  Andrew Cagney  <cagney@redhat.com>
7891
7892         * vax-tdep.c (vax_frame_chain): Delete call to
7893         deprecated_inside_entry_file.
7894         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
7895
7896 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
7897
7898         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
7899         column that's "empty" or "same value" when eliminating REG_RA
7900         rules.
7901
7902 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
7903
7904         * NEWS: Add information about new pending breakpoint support.
7905
7906 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
7907
7908         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
7909         and pending fields for pending breakpoint support.
7910         * breakpoint.c (breakpoint_enabled): Add check for not pending.
7911         (condition_command): Only parse condition if not a pending
7912         breakpoint.
7913         (print_one_breakpoint): Add support for pending breakpoints.
7914         (describe_other_breakpoints): Add checks to verify we are not
7915         dealing with pending breakpoints.
7916         (check_duplicates): Don't check pending breakpoints.
7917         (set_raw_breakpoint): Initialize pending flag.
7918         (do_restore_lang_radix_cleanup): New cleanup routine.
7919         (resolve_pending_breakpoint): New function.
7920         (re_enable_breakpoints_in_shlibs): Try and resolve any
7921         pending breakpoints via resolve_pending_breakpoint.
7922         (mention): Add pending breakpoint support.
7923         (parse_breakpoint_sals): Add new parameter to pass to
7924         decode_line_1 to indicate silent errors when files or functions
7925         are not found.  Change all callers.
7926         (do_captured_parse_breakpoint): New function.
7927         (break_command_1): Change prototype to return an rc value and to
7928         take an optional pending breakpoint pointer.  Support creating
7929         a pending breakpoint if a "not found" form of error occurs when
7930         parsing the breakpoint.  Also support resolving an existing pending
7931         breakpoint and be silent if the resolution fails.
7932         (create_breakpoints): Change prototype to take pending breakpoint
7933         pointer.  When resolving a pending breakpoint, use the new pointer
7934         to provide a conditional or commands added by the end-user.
7935         (delete_breakpoint): Add appropriate check for pending.
7936         (breakpoint_re_set_one): Ditto.
7937         (do_enable_breakpoint): Ditto.
7938
7939 2004-02-02  David Carlton  <carlton@kealia.com>
7940
7941         * valops.c (enum oload_classification): New.
7942         (find_overload_match): Break implementation into separate
7943         functions; delete #if 0'd code; look for symbols within
7944         namespaces.
7945         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
7946         (find_oload_champ,oload_method_static,classify_oload_match): New.
7947         * cp-support.h: Add declaration for cp_func_name; update
7948         declaration for make_symbol_overload_list.
7949         * cp-support.c (cp_func_name): New.
7950         (overload_list_add_symbol): Fix comment, use
7951         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
7952         (make_symbol_overload_list): Take a function name and a namespace
7953         instead of a symbol; change implementation.
7954         (make_symbol_overload_list_using): New.
7955         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
7956
7957 2004-02-02  Fred Fish  <fnf@redhat.com>
7958
7959         * main.c (gdb_stdtarg): Move definition to group with other
7960         gdb_stdtarg definitions and update copyright years.
7961         * remote-sim.c (gdb_os_write_stderr): Write output to
7962         gdb_stdtargerr stream instead of gdb_stdtarg stream.
7963         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
7964         gdb_stderr stream and update copyright years.
7965
7966 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
7967
7968         * Makefile.in (mips-linux-nat.o): Update dependencies.
7969         * mips-linux-nat.c: Include mips-tdep.h.
7970
7971 2004-02-01  Roland McGrath  <roland@redhat.com>
7972
7973         * sol-thread.c (sol_thread_xfer_partial): New function.
7974         (init_sol_thread_ops): Use that for to_xfer_partial hook.
7975         (init_sol_core_ops): Likewise.
7976
7977         * procfs.c (procfs_xfer_partial): New function.
7978         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
7979         * Makefile.in (procfs.o): Add $(auxv_h) dep.
7980
7981         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
7982         procfs_xfer_auxv function.
7983
7984         * procfs.c (procfs_make_note_section): If we can read
7985         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
7986         * linux-proc.c (linux_make_note_section): Likewise.
7987
7988         * auxv.h: New file.
7989         * auxv.c: New file.
7990         * Makefile.in (auxv_h): New variable.
7991         (COMMON_OBS): Add auxv.o here.
7992         (auxv.o): New target.
7993
7994         * corelow.c (core_xfer_partial): New function.
7995         (init_core_ops): Use it for core_ops.to_xfer_partial.
7996
7997         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
7998         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
7999         macro if that is defined.
8000
8001 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
8002
8003         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
8004         and check the specified thread for each breakpoint.
8005         * breakpoint.h (bpstat_stop_status): Update prototype.
8006         * infrun.c (handle_inferior_event): Update calls to
8007         bpstat_stop_status.
8008
8009 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
8010
8011         * Makefile.in (cli-cmds.o): Add $(readline_h).
8012
8013 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
8014
8015         * cli/cli-cmds.c: Include readline.h.
8016         (complete_command): Pass the start of the last word to
8017         complete_line.
8018
8019 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
8020
8021         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
8022         argument, and change first argument to a CORE_ADDR.
8023         * breakpoint.h (bpstat_stop_status): Update prototype.
8024         * infrun.c (adjust_pc_after_break): Add a new comment.
8025         (handle_inferior_event): Update calls to bpstat_stop_status.
8026
8027 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
8028
8029         * breakpoint.h: Update copyright years.
8030
8031 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
8032
8033         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
8034         (bpstat_stop_status): Don't decrement PC.
8035         * breakpoint.h (software_breakpoint_inserted_here_p): Add
8036         prototype.
8037         * infrun.c (adjust_pc_after_break): New function.
8038         (handle_inferior_event): Call it, early.  Remove later references
8039         to DECR_PC_AFTER_BREAK.
8040         (normal_stop): Add commentary.
8041
8042 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
8043
8044         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
8045         2004-01-27 double-free fix.
8046
8047 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
8048
8049         * sparc-tdep.c (sparc_fetch_wcookie): New function.
8050         (sparc32_frame_prev_register): Handle StackGhost.
8051         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8052
8053 2004-01-29  Roland McGrath  <roland@redhat.com>
8054
8055         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
8056         * configure: Regenerated.
8057
8058         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
8059         * Makefile.in (procfs.o): Add dep.
8060
8061 2004-01-28  Andrew Cagney  <cagney@redhat.com>
8062
8063         * tui/tui-stack.h: Update copyright.
8064         (struct frame_info): Add opaque declaration.
8065         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
8066         (tui_show_locator_content): Rename tuiShowLocatorContent.
8067         (tui_show_frame_info): Rename tuiShowFrameInfo.
8068         * tui/tui-stack.c: Update copyright.  Update references.
8069         * tui/tui-winsource.c: Update references.
8070         * tui/tui-win.c: Update references.
8071         * tui/tui-layout.c: Update references.
8072         * tui/tui-hooks.c: Update copyright, update references.
8073         * tui/tui.c: Update copyright, update references.
8074         * tui/tui-disasm.c: Update references.
8075
8076 2004-01-28  David Carlton  <carlton@kealia.com>
8077
8078         * dwarf2read.c (add_partial_structure): Use demangled name if
8079         namespace equals "".
8080
8081 2004-01-27  Jim Blandy  <jimb@redhat.com>
8082
8083         Clean up misapplied patch:
8084         * dwarf2read.c (determine_prefix): Change one of the two forward
8085         declarations for 'determine_prefix_aux' to a declaration for this.
8086         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
8087         argument to 'die_specification'.
8088
8089         * dwarf2read.c (read_func_scope): Re-indent comment.
8090
8091 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
8092
8093         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
8094         b->exp to NULL after freeing so that error during re-parsing or
8095         evaluation of expressions associated with breakpoint don't
8096         eventually lead to re-freeing of storage.
8097         Committed by Andrew Cagney.
8098
8099 2004-01-27  Andrew Cagney  <cagney@redhat.com>
8100
8101         * source.c (ambiguous_line_spec): Delete undefined declaration.
8102         * m32r-rom.c (m32r_set_board_address): Delete unused function.
8103         (m32r_set_server_address, m32r_set_download_path): Ditto.
8104         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
8105
8106 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
8107
8108         * dwarf2read.c: Update calls to changed and renamed functions, and
8109         references to moved variables.
8110
8111         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
8112         language, language_defn, list_in_scope, and ftypes members.
8113         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
8114         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
8115         (baseaddr): Remove globals.
8116
8117         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
8118         (set_cu_language, die_is_declaration, die_specification)
8119         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
8120         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
8121         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
8122         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
8123
8124         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
8125         cu.list_in_scope.  Don't initialize cu_header_offset.
8126         (add_partial_symbol): Add local baseaddr.
8127         (psymtab_to_symtab_1): Add local baseaddr.  Use
8128         objfile->section_offsets for consistency.  Don't initialize
8129         cu_header_offset; do initialize cu.header.offset and
8130         cu.list_in_scope.
8131         (read_file_scope, read_func_scope, read_lexical_block_scope)
8132         (dwarf_decode_lines, new_symbol): Add local baseaddr.
8133
8134 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
8135
8136         * PROBLEMS: Add gdb/1516.
8137
8138 2003-12-29  Robert Millan  <robertmh@gnu.org>
8139
8140         Patch committed by Andrw Cagney.
8141         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
8142         * configure.tgt: Match knetbsd*-gnu.
8143
8144 2004-01-26  Andrew Cagney  <cagney@redhat.com>
8145
8146         * breakpoint.c (catch_command_1): Delete #ifdef code.
8147         (catch_fork_command_1): Delete #ifdef wrapper.
8148         (catch_exec_command_1): Ditto.
8149         (catch_load_command_1): Ditto.
8150         (catch_unload_command_1): Ditto.
8151
8152         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
8153         (catch_breakpoint): Delete #if0ed function.
8154         (disable_catch_breakpoint): Ditto.
8155         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
8156         (disable_catch, enable_catch, delete_catch): Ditto.
8157
8158 2004-01-26  Andrew Cagney  <cagney@redhat.com>
8159
8160         * remote.c (echo_check, quit_flag): Delete variables.
8161         (cisco_kernel_mode): Delete variable.
8162         (minitelnet_return, tty_input, escape_count): Delete variables.
8163         (remote_cisco_mode): Delete variable.
8164         (remote_cisco_open, remote_cisco_close): Delete function.
8165         (remote_cisco_mourn, remote_cisco_wait): Delete function.
8166         (init_remote_cisco_ops): Delete function.
8167         (_initialize_remote): Do not install "remote cisco" code.
8168         (read_frame): Delete cisco specific code.
8169         (remote_info_process): Delete function.
8170         (remote_wait): Delete cisco specific code.
8171         (remote_cisco_section_offsets): Delete function.
8172         (remote_cisco_objfile_relocate): Delete function.
8173         (remote_async_wait): Delete cisco specific code.
8174         (minitelnet, readtty, readsocket): Delete function.
8175
8176 2004-01-26  Andrew Cagney  <cagney@redhat.com>
8177
8178         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
8179         comments mentioning extract_returned_value_address.
8180         * infcmd.c (print_return_value): Update.  Add comments on
8181         extract_returned_value_address.
8182         * stack.c (return_command): Add comments on
8183         extract_returned_value_address.
8184         * values.c: Update comment.
8185         * m32r-tdep.c: Update comment.
8186         * sparc-tdep.c: Update comment.
8187         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
8188         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8189         * sh64-tdep.c (sh64_gdbarch_init): Update.
8190         * sh-tdep.c (sh_gdbarch_init): Update.
8191         * s390-tdep.c (s390_gdbarch_init): Update.
8192         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8193         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8194         * m68k-tdep.c (m68k_gdbarch_init): Update.
8195         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8196         * m32r-tdep.c (m32r_gdbarch_init): Update.
8197         * ia64-tdep.c (ia64_gdbarch_init): Update.
8198         * h8300-tdep.c (h8300_gdbarch_init): Update.
8199         * frv-tdep.c (frv_gdbarch_init): Update.
8200         * arm-tdep.c (arm_gdbarch_init): Update.
8201         * alpha-tdep.c (alpha_gdbarch_init): Update.
8202
8203 2004-01-26  Andrew Cagney  <cagney@redhat.com>
8204
8205         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
8206         SYMBOL_LOCATION_FUNCS
8207         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
8208         "struct symbol_ops".
8209         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
8210         type to "struct symbol_ops".
8211         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
8212         (struct symbol): Replace ".aux_value.loc.funcs" and
8213         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
8214         (SYMBOL_OBJFILE): Delete macro.
8215         (SYMBOL_LOCATION_FUNCS): Delete macro.
8216         (SYMBOL_LOCATION_BATON): Update.
8217         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
8218         intead of SYMBOL_LOCATION_FUNCS.
8219         * ax-gdb.c (gen_var_ref): Ditto.
8220         * printcmd.c (address_info): Ditto.
8221         * findvar.c (read_var_value): Ditto.
8222         (symbol_read_needs_frame): Ditto.
8223
8224 2004-01-26  Andrew Cagney  <cagney@redhat.com>
8225
8226         * dwarf2read.c (read_func_scope): Document frame-base hack.
8227
8228 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
8229
8230         * infcmd.c (print_return_value): Plug memory leak; delete
8231         ui_stream object.  Rename argument `structure_return' to
8232         `struct_return'.
8233
8234 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
8235
8236         * infcmd.c (print_return_value): Wrap long lines.
8237         (finish_command_continuation, finish_command): Remove unused
8238         variable `funcaddr'.  Fix some coding-standards problems.
8239
8240         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
8241         SECT_SIZE is large enough, not whether it's exactly the right size.
8242         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
8243         TDEP->fpregset to zero.
8244
8245         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
8246         floating-point registers for traditional NetBSD core files.
8247         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
8248         TDEP->sizeof_fpregset here.
8249
8250 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
8251
8252         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
8253         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
8254         function with code split out from
8255         sparc32nbsd_sigcontext_frame_cache.
8256         (sparc32nbsd_sigcontext_frame_cache): Use
8257         sparc32nbsd_sigcontext_saved_regs.
8258         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
8259         OpenBSD.
8260         * sparcobsd-tdep.c: New file.
8261         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
8262         (sparcobsd-tdep.o): New dependency.
8263         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
8264         * config/sparc/obsd.mt: New file.
8265
8266         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
8267         TDEP->fpregset to be initialized to enable core file register
8268         sets.
8269
8270 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
8271
8272         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
8273         Add opaque declarations.
8274         (sparc64nbsd_sigcontext_saved_regs): New prototype.
8275         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
8276         function with code split out from
8277         sparc64nbsd_sigcontext_frame_cache.
8278         (sparc64nbsd_sigcontext_frame_cache): Use
8279         sparc64nbsd_sigcontext_saved_regs.
8280         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
8281         OpenBSD.
8282         * sparc64obsd-tdep.c: New file.
8283         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
8284         (sparc64obsd-tdep.o): New dependency.
8285         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
8286         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
8287         * config/sparc/obsd64.mt: New file.
8288
8289         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
8290         read the instruction at PC.
8291
8292         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
8293         value of GDB_OSABI_DEFAULT.
8294         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
8295         instead of GDB_OSABI_NETBSD_AOUT.
8296
8297 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
8298
8299         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
8300         copyright.
8301
8302 2004-01-23  Andrew Cagney  <cagney@redhat.com>
8303
8304         * printcmd.c (display_command): Replace tui_set_display call with
8305         tui_set_layout_for_display_command.
8306         * tui/tui.h (enum tui_win_type): Define.
8307         (tui_set_layout): Delete declaration.
8308         (tui_set_layout_for_display_command): Rename set_tui_layout.
8309         * tui/tui-data.h (enum tui_layout_type): Define.
8310         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
8311         "tui.h".
8312         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
8313         (tui_default_win_height): Rename tuiDefaultWinHeight.
8314         (tui_default_win_viewport_height): Rename
8315         tuiDefaultWinViewportHeight.
8316         (tui_set_layout): RenametuiSetLayout.
8317         * tui/tui-layout.c: Update references.
8318         * tui/tui.c: Update references.
8319         * tui/tui-disasm.c: Update references.
8320
8321 2004-01-23  David Carlton  <carlton@kealia.com>
8322
8323         Partial workaround for PR c++/1511:
8324         * cp-namespace.c: Include frame.h.
8325         (cp_lookup_transparent_type): New
8326         (cp_lookup_transparent_type_loop): New.
8327         * cp-support.h: Declare cp_lookup_transparent_type.
8328         * symtab.c (basic_lookup_transparent_type): Renamed from
8329         lookup_transparent_type.
8330         (lookup_transparent_type): Replace old body by a call to
8331         current_language->la_lookup_transparent_type.
8332         * symtab.h: Update copyright.  Declare
8333         basic_lookup_transparent_type.
8334         * language.h: Update copyright.
8335         (struct language_defn): Add la_lookup_transparent_type.
8336         * language.c: Update copyright.
8337         (unknown_language_defn): Add basic_lookup_transparent_type.
8338         (auto_language_defn): Add basic_lookup_transparent_type.
8339         (local_language_defn): Add basic_lookup_transparent_type.
8340         * ada-lang.c: Update copyright.
8341         (ada_language_defn): Add basic_lookup_transparent_type.
8342         * c-lang.c: Update copyright.
8343         (c_language_defn): Add basic_lookup_transparent_type.
8344         (cplus_language_defn): Add basic_lookup_transparent_type.
8345         (asm_language_defn): Add basic_lookup_transparent_type.
8346         (minimal_language_defn): Add basic_lookup_transparent_type.
8347         * f-lang.c: Update copyright.
8348         (f_language_defn): Add basic_lookup_transparent_type.
8349         * jv-lang.c: Update copyright.
8350         (java_language_defn): Add basic_lookup_transparent_type.
8351         * m2-lang.c: Update copyright.
8352         (m2_language_defn): Add basic_lookup_transparent_type.
8353         * objc-lang.c: Update copyright.
8354         (objc_language_defn): Add basic_lookup_transparent_type.
8355         * p-lang.c: Update copyright.
8356         (p_language_defn): Add basic_lookup_transparent_type.
8357         * scm-lang.c: Update copyright.
8358         (scm_language_defn): Add basic_lookup_transparent_type.
8359         * Makefile.in (cp-namespace.o): Depend on frame.h.
8360
8361 2004-01-23  David Carlton  <carlton@kealia.com>
8362
8363         Patch for PR c++/1520:
8364         * dwarf2read.c (read_func_scope): Set processing_current_prefix
8365         properly if we have a specification die.
8366         (determine_prefix_aux): Rename from determine_prefix.
8367         (determine_prefix): Like the old determine_prefix, but never
8368         returns NULL.
8369
8370 2004-01-23  Theodore A. Roth  <troth@openavr.org>
8371
8372         * avr-tdep.c: Update copyright.
8373         (avr_iaddr_p): Delete unused function.
8374         (avr_saddr_p): Delete unused function.
8375
8376 2004-01-23  David Carlton  <carlton@kealia.com>
8377
8378         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
8379         Fix for PR symtab/1534.
8380
8381 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
8382
8383         * NEWS (New native configurations): Mention OpenBSD/sparc and
8384         OpenBSD/sparc64.
8385         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
8386         * configure.host: Likewise.
8387         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
8388         handler for OpenBSD.
8389         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
8390
8391 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
8392
8393         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
8394         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
8395
8396         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
8397         * cli/cli-cmds.c (shell_escape): Likewise.
8398
8399         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
8400         OpenBSD .note.openbsd.ident sections.
8401
8402 2004-01-22  David Carlton  <carlton@kealia.com>
8403
8404         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
8405         get_scope_pc_bounds.
8406         (read_file_scope): Ditto.
8407         (get_scope_pc_bounds): New function, produced by extracting code
8408         from the above two functions, consolidating it, and adding support
8409         for DW_TAG_namespace.
8410
8411 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
8412
8413         * osabi.c (MAX_NOTESZ): New define.
8414         (check_note): New function.
8415         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
8416         check_note.
8417
8418 2004-01-21  Roland McGrath  <roland@redhat.com>
8419
8420         * MAINTAINERS (write after approval): Add myself.
8421
8422 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
8423
8424         * utils.c (init_page_info): Move declarations of `rows' and
8425         `cols' before the __GO32__-specific code.  Move the closing brace
8426         outside the #ifdef __GO32__..#endif block.
8427         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
8428
8429 2004-01-21  Paul Brook  <paul@codesourcery.com>
8430
8431         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
8432         BPSTAT_WHAT_CHECK_SHLIBS.
8433
8434 2004-01-21  Paul Brook  <paul@codesourcery.com>
8435
8436         * MAINTAINERS: Add myself to write-after-approval.
8437
8438 2004-01-20  Andrew Cagney  <cagney@redhat.com>
8439
8440         * ax-gdb.c (print_axs_value): Delete unused function.
8441         * jv-lang.c (java_lookup_type): Delete unused function.
8442         * cli/cli-dump.c (dump_filetype): Delete unused function.
8443         * remote-mips.c (remote_mips_insert_hw_breakpoint)
8444         (remote_mips_remove_hw_breakpoint): Delete unused functions.
8445         (mips_getstring): Delete unused function.
8446         (pmon_insert_breakpoint): Delete #if0ed function.
8447         (PMON_MAX_BP): Delete #if0ed MACRO.
8448         (mips_pmon_bp_info): Delete #if0ed variable.
8449         (pmon_remove_breakpoint): Delete #if0ed function.
8450         * monitor.c (monitor_write_even_block): Delete unused function.
8451         (monitor_write_memory_block): Delete #if0ed code.
8452         * dink32-rom.c (dink32_load): Delete unused function.
8453         (_initialize_dink32_rom): Delete #if0ed code.
8454         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
8455
8456         * tui/tui-command.c: Update references.
8457         * tui/tui-io.c: Update references.
8458         * tui/tui-command.h: Update copyright.
8459         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
8460
8461         * source.c (ambiguous_line_spec): Delete never-defined function.
8462         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
8463         * gdbtypes.c (add_name, add_mangled_type): Ditto.
8464         * cli/cli-cmds.c (validate_comname): Ditto.
8465
8466         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
8467         "tui-data.h".
8468         (tui_set_disassem_content): Rename tuiSetDisassemContent.
8469         (tui_show_disassem): Rename tuiShowDisassem.
8470         (tui_show_disassem_and_update_source): Rename
8471         tuiVerticalDisassemScroll.
8472         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
8473         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
8474         * tui/tui.h: Update copyright.
8475         (enum tui_status): Define.
8476         * tui/tui-data.h (enum tui_scroll_direction): Define.
8477         * tui/tui-disasm.c: Update copyright.  Update references.
8478         * tui/tui-winsource.c:  Update copyright.  Update references.
8479         * tui/tui-win.c: Update references.
8480         * tui/tui-layout.c: Update references.
8481
8482 2004-01-20  Andrew Cagney  <cagney@redhat.com>
8483
8484         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
8485         sym2 to start of block.
8486
8487 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
8488
8489         * MAINTAINERS: Delete mmalloc.
8490         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
8491         * NEWS: Mention removal of --with-malloc.
8492         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
8493         * config.in: Regenerate.
8494         * configure: Regenerate.
8495         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
8496         USE_MMALLOC, MMCHECK_FORCE.
8497         * gdbinit.in: Remove mmalloc.
8498         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
8499         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
8500         * config/i386/go32.mh: Likewise.
8501         * config/i386/interix.mh: Likewise.
8502         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
8503
8504 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
8505
8506         * linespec.c (decode_variable, symtab_from_filename):  Call
8507         error_silent with error message instead of throwing an exception
8508         directly.
8509         * defs.h (error_silent, error_output_message): Add prototypes.
8510         (catch_exceptions_with_msg): Ditto.
8511         * utils.c (error_silent, error_output_message): New functions.
8512         * top.c (catch_exceptions_with_msg): New function.
8513
8514 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
8515
8516         * mi/mi-cmds.h (enum print_values): Add definition.
8517
8518         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
8519         type and value for simple data types and just the name and type
8520         for complex ones, if required.
8521
8522         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
8523         children, if required.
8524
8525 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
8526
8527         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
8528         unused declarations.
8529
8530 2004-01-19  Andrew Cagney  <cagney@redhat.com>
8531
8532         * top.h (mapped_symbol_files): Delete declaration.
8533         * main.c (captured_main): Delete option "m" and "mapped".
8534         * objfiles.c (mapped_symbol_files): Delete variable.
8535         * symfile.c (symbol_file_command): Delete mmap code.
8536         (symbol_file_add_with_addrs_or_offsets): Ditto.
8537         (add_symbol_file_command, reread_separate_symbols): Ditto.
8538         * objfiles.h (OBJF_MAPPED): Delete.
8539         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
8540         (free_objfile) [USE_MMALLOC]: Ditto.
8541         (open_existing_mapped_file): Delete function.
8542         (open_mapped_file): Delete function.
8543         (map_to_file): Delete function.
8544
8545 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
8546
8547         * infrun.c (step_into_function): Account for possible breakpoint
8548         adjustment when computing ``stop_func_start''.
8549
8550 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
8551
8552         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
8553         the region size against the size of a pointer, not the size of
8554         a register as given by DEPRECATED_REGISTER_SIZE.
8555
8556 2004-01-19  Andrew Cagney  <cagney@redhat.com>
8557
8558         * tui/tui-regs.h: Include "tui-data.h".
8559         (tuiFirstRegElementNoInLine): Delete declaration.
8560         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
8561         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
8562         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
8563         (tui_calculate_regs_column_count): Rename
8564         tuiCalculateRegsColumnCount.
8565         (tui_check_register_values): Rename tuiCheckRegisterValues.
8566         (tui_show_registers): Rename tuiShowRegisters.
8567         (tui_display_registers_from_line): Rename
8568         tuiDisplayRegistersFromLine.
8569         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
8570         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
8571         (tui_first_reg_element_no_inline): Rename
8572         tuiFirstRegElementNoInLine.
8573         * tui/tui-data.h: Update copyright.
8574         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
8575         * tui/tui-windata.c: Update copyright, update references.
8576         * tui/tui-regs.c: Update copyright, update references.
8577         * tui/tui-win.c: Update copyright, update references.
8578         * tui/tui-layout.c: Update copyright, update references.
8579
8580 2004-01-18  Andrew Cagney  <cagney@redhat.com>
8581
8582         * tui/tui-io.c: Update copyright.
8583         (key_is_end_sequence, key_is_backspace): New functions.
8584         (key_is_command_char, key_is_start_sequence): New function.
8585         (tui_getc): Update references.
8586         * tui/tui-io.h: Update copyright.
8587         (m_tuiStartNewLine): Delete macro.
8588         (m_isBackspace, m_isDeleteChar): Delete macros.
8589         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
8590         (m_isNextPage, m_isPrevPage): Delete macros.
8591         (m_isLeftArrow, m_isRightArrow): Delete macros.
8592         (m_isXdbStyleCommandChar): Delete macro.
8593         (key_is_start_sequence): Declare, replace m_isStartSequence.
8594         (key_is_end_sequence): Declare, replace m_isEndSequence.
8595         (key_is_backspace): Declare ,replace m_isBackspace.
8596         (key_is_command_char): Declare, replace m_isCommandChar.
8597         * tui/tui-command.c: Update copyright.
8598         (tuiDispatchCtrlChar): Update references.
8599
8600         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
8601         tuiSourceWin.h.
8602
8603         * tui/tui-command.c: Rename tui/tuiCommand.c.
8604         * tui/tui-command.h: Rename tui/tuiCommand.h.
8605         * tui/tui-data.c: Rename tui/tuiData.c.
8606         * tui/tui-data.h: Rename tui/tuiData.h.
8607         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
8608         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
8609         * tui/tui-io.c: Rename tui/tuiIO.c.
8610         * tui/tui-io.h: Rename tui/tuiIO.h.
8611         * tui/tui-layout.c: Rename tui/tuiLayout.c.
8612         * tui/tui-layout.h: Rename tui/tuiLayout.h.
8613         * tui/tui-regs.c: Rename tui/tuiRegs.c.
8614         * tui/tui-regs.h: Rename tui/tuiRegs.h.
8615         * tui/tui-source.c: Rename tui/tuiSource.c.
8616         * tui/tui-source.h: Rename tui/tuiSource.h.
8617         * tui/tui-stack.c: Rename tui/tuiStack.c.
8618         * tui/tui-stack.h: Rename tui/tuiStack.h.
8619         * tui/tui-win.c: Rename tui/tuiWin.c.
8620         * tui/tui-win.h: Rename tui/tuiWin.h.
8621         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
8622         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
8623         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
8624         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
8625         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
8626         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
8627         * tui/tui-file.c: Update includes.
8628         * tui/tui-hooks.c: Update includes.
8629         * tui/tui-interp.c: Update includes.
8630         * tui/tui.c: Update includes.
8631         * Makefile.in: Update all tui/ dependencies.
8632         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
8633
8634         * Makefile.in: Update copyright.  Update dependencies.
8635
8636         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
8637         problem.
8638
8639 2004-01-18  Andrew Cagney  <cagney@redhat.com>
8640
8641         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
8642         instead of register_gdbarch_init.
8643
8644         * remote-sds.c (tohex): Delete unused function.  Update copyright.
8645         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
8646         * v850-tdep.c (v850_register_virtual_size): Ditto.
8647         * target.c (normal_target_post_startup_inferior): Ditto.
8648         * source.c (ambiguous_line_spec): Ditto.
8649         * remote.c (adapt_remote_get_threadinfo): Ditto.
8650         * mi/mi-out.c (out_field_fmt): Ditto.
8651         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
8652         (output_control_change_notification): Ditto.
8653         * m68k-tdep.c (m68k_register_byte): Ditto.
8654         (m68k_remote_breakpoint_from_pc): Ditto.
8655         * ui-out.c (init_ui_out_state): Delete unused declaration.
8656         * stabsread.c (search_value): Ditto.
8657         * mi/mi-cmd-env.c (env_cli_command): Ditto.
8658         * maint.c (print_section_table): Ditto.
8659         * infrun.c (set_follow_fork_mode_command): Ditto.
8660
8661 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
8662
8663         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
8664         DW_CFA_def_cfa_exporession.  Add support for
8665         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
8666         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
8667
8668 2004-01-18  Andrew Cagney  <cagney@redhat.com>
8669
8670         * ocd.c: Update copyright.
8671         (bdm_read_register_command): Delete unused function.
8672         (_initialize_remote_ocd): Delete commented out reference.
8673         (get_quoted_char, reset_packet): Delete #if0ed function.
8674         (output_packet, put_quoted_char): Delete #if0ed function.
8675         (stu_put_packet, stu_get_packet): Delete #if0ed function.
8676         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
8677         (BDM_BREAKPOINT): Delete #if0ed macro.
8678         (remote_timeout): Delete #if0ed variable.
8679
8680 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
8681
8682         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
8683         (core-sol2.o): Remove dependency.
8684         * core-sol2.c: Remove file.
8685
8686 2004-01-17  Andrew Cagney  <cagney@redhat.com>
8687
8688         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
8689         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
8690         enums.
8691
8692 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
8693
8694         * remote.c: Update copyright years.
8695
8696 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
8697
8698         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
8699
8700 2004-01-17  Andrew Cagney  <cagney@redhat.com>
8701
8702         * mdebugread.c: Update copyright.
8703         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
8704         (parse_type, parse_procedure): Ditto.
8705         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
8706
8707         * cris-tdep.c (cris_store_struct_return): Put back accidently
8708         deleted function.
8709
8710         * gdbarch.sh: Update copyright year.
8711         * gdbarch.h, gdbarch.c: Re-generate.
8712
8713 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
8714
8715         Suggested by George Anzinger.
8716         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
8717         correct stack offset.  Include unknown opcode numbers in the error
8718         message.
8719
8720 2004-01-17  Andrew Cagney  <cagney@redhat.com>
8721
8722         * x86-64-tdep.c (x86_64_init_abi): No need to clear
8723         extract_struct_value_address, i386 does not set it.
8724         * sparc64-tdep.c (sparc64_init_abi): Do not set
8725         extract_struct_value_address, never called.
8726         (sparc64_extract_struct_value_address): Delete function.
8727         * m68hc11-tdep.c: Update copyright.
8728         (m68hc11_gdbarch_init): Delete redundant assignment of
8729         extract_struct_value_address.
8730         * i386-tdep.c: Update copyright.
8731         (i386_gdbarch_init): Do not set extract_struct_value_address,
8732         never called.
8733         (i386_extract_struct_value_address): Delete function.
8734         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
8735         extract_struct_value_address, never called.
8736         (sparc32_extract_struct_value_address): #if 0 function.  Add
8737         comments explaining its future.
8738
8739 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
8740
8741         * arm-tdep.c (arm_write_pc): New function.
8742         (arm_gdbarch_init): Call set_gdbarch_write_pc.
8743
8744 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
8745
8746         * breakpoint.c (must_shift_inst_regs): Delete.
8747         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
8748         and SHIFT_INST_REGS.
8749         * infcmd.c (step_1, step_1_continuation): Delete references to
8750         SHIFT_INST_REGS.
8751         * infrun.c (keep_going): Likewise.
8752         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
8753         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
8754
8755 2004-01-17  Andrew Cagney  <cagney@redhat.com>
8756
8757         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8758         * gdbarch.h, gdbarch.c: Re-generate.
8759         * infcmd.c (print_return_value): Delete reference to
8760         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8761
8762         * cris-tdep.c (cris_gdbarch_init): Do not set
8763         deprecated_extract_struct_value_address.
8764
8765         * xstormy16-tdep.c: Update copyright.
8766         (xstormy16_extract_struct_value_address): Update to current
8767         extract struct value address interface.
8768         (xstormy16_gdbarch_init): Set extract_struct_value_address.
8769         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
8770         current extract struct value address interface.
8771         (sh64_gdbarch_init): Set extract_struct_value_address.
8772
8773         * cris-tdep.c: Update copyright.
8774         (cris_extract_struct_value_address): Delete function.
8775         (struct_return_address): Delete variable.
8776         (cris_store_struct_return): Do not set struct_return_address.
8777
8778         * mcore-tdep.c: Update copyright.
8779         (mcore_extract_struct_value_address): Delete function.  Update
8780         comments.
8781         (mcore_gdbarch_init): Update.
8782         * mn10300-tdep.c: Update copyright.
8783         (mn10300_extract_struct_value_address): Delete function.
8784         (mn10300_gdbarch_init): Update.
8785         * v850-tdep.c: Update copyright.
8786         (v850_extract_struct_value_address): Delete.
8787         (v850_gdbarch_init): Update.
8788         * ns32k-tdep.c: Update copyright.
8789         (ns32k_extract_struct_value_address): Delete.
8790         (ns32k_gdbarch_init): Update.
8791         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
8792         (hppa_gdbarch_init): Update.
8793         * vax-tdep.c: Update copyright.
8794         (vax_extract_struct_value_address): Delete.
8795         (vax_gdbarch_init): Update.
8796
8797         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
8798         * gdbarch.h, gdbarch.c: Re-generate.
8799         * procfs.c (procfs_fetch_registers): Delete reference to
8800         DEPRECATED_NPC_REGNUM.
8801         (procfs_store_registers): Ditto.
8802         * regcache.c (generic_target_write_pc): Simplify.
8803         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
8804
8805         * core-sol2.c (fetch_core_registers): Replace
8806         DEPRECATED_NPC_REGNUM with equivalent tdep value.
8807
8808         * hppa-tdep.c: Update copyright year.
8809         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
8810         NPC_REGNUM.
8811         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
8812
8813         * mips-tdep.c (mips_write_pc): New function.
8814         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
8815         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
8816         (mips_find_saved_regs, mips_software_single_step: Ditto.
8817         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
8818         mips_init_extra_frame_info, mips_pop_frame): Ditto.
8819
8820 2004-01-17  Andrew Cagney  <cagney@redhat.com>
8821
8822         * mips-tdep.c: Re-indent.  Group functions by ABI.
8823
8824 2004-01-17  Andrew Cagney  <cagney@redhat.com>
8825
8826         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
8827         * gdbarch.c: Re-generate.
8828         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8829         DECR_PC_AFTER_BREAK to zero.
8830         * vax-tdep.c (vax_gdbarch_init): Ditto.
8831         * v850-tdep.c (v850_gdbarch_init): Ditto.
8832         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
8833         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8834         * sh-tdep.c (sh_gdbarch_init): Ditto.
8835         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8836         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8837         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8838         * mips-tdep.c (mips_gdbarch_init): Ditto.
8839         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8840         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8841         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
8842         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8843         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8844         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8845         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8846         * frv-tdep.c (frv_gdbarch_init): Ditto.
8847         * cris-tdep.c (cris_gdbarch_init): Ditto.
8848         * avr-tdep.c (avr_gdbarch_init): Ditto.
8849         * arm-tdep.c (arm_gdbarch_init): Ditto.
8850         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
8851
8852 2004-01-17  J. Brobecker  <brobecker@gnat.com>
8853
8854         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
8855         Delete, no longer used.
8856         (read_subrange_type): New function, mostly extracted from
8857         read_array_type().
8858         (read_array_type): Replace extracted code by call to
8859         read_subrange_type().
8860         (dwarf2_get_attr_constant_value): New function.
8861         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
8862         (add_partial_symbol): Likewise.
8863         (process_die): Likewise.
8864         (new_symbol): Likewise.
8865         (read_type_die): Likewise.
8866
8867 2004-01-16  Andrew Cagney  <cagney@redhat.com>
8868
8869         * symfile.c: Update copyright year.
8870         (compare_symbols): Delete unused function.
8871         * stabsread.c: Update copyright year.
8872         (lrs_general_complaint): Delete unused function.
8873         (ref_search_value): Ditto.
8874         (get_substring): Delete declaration.
8875         * sh64-tdep.c: Update copyright year.
8876         (sh64_get_gdb_regnum): Delete unused function.
8877         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
8878         Delete unused function.
8879
8880 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
8881
8882         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
8883         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
8884
8885 2004-01-16  Andrew Cagney  <cagney@redhat.com>
8886
8887         Changes from Peter Schauer.
8888         * rs6000-tdep.c: Update copyright year.
8889         (rs6000_push_dummy_call): Update the stack pointer before
8890         accessing the corresponding stack region.
8891         * rs6000-nat.c: Update copyright year.
8892         (set_host_arch): Set "info.abfd" to "exec_bfd".
8893
8894 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
8895
8896         * blockframe.c: Update copyright year.
8897         (inside_entry_func): Don't treat a zero PC specially.
8898
8899 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
8900
8901         * gcore.c (gcore_copy_callback): Use paddr_d to print size
8902         variable.
8903         (gcore_create_callback): Ditto.  Skip any memory segment that has
8904         no permissions set.
8905
8906 2004-01-14  David Carlton  <carlton@kealia.com>
8907
8908         Change symbols for C++ nested types to contain the fully qualified
8909         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
8910         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
8911         c++/895.
8912         * c-exp.y (qualified_type): Handle types nested within classes.
8913         * cp-namespace.c: Update comments.
8914         (cp_set_block_scope): Delete #if 0.
8915         (cp_lookup_nested_type): Handle types nested within classes.
8916         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
8917         when appropriate.
8918         (add_partial_symbol): Add the name of the enclosing namespace to
8919         types.
8920         (pdi_needs_namespace): New.
8921         (add_partial_namespace): Tweak comment.
8922         (add_partial_structure): New.
8923         (psymtab_to_symtab_1): Initialize processing_current_prefix
8924         here...
8925         (process_die): instead of here.
8926         (read_structure_scope): Try to figure out the name of the class or
8927         namespace that the structure might be defined within.
8928         (read_enumeration): Generate fully-qualified names, if possible.
8929         (read_namespace): Don't set name to NULL.
8930         (die_specification): New.
8931         (new_symbol): Generate fully-qualified names for types.
8932         (read_type_die): Determine appropriate prefix.
8933         (determine_prefix): New.
8934         (typename_concat): New.
8935         (class_name): New.
8936         * valops.c (value_aggregate_elt): Pass NOSIDE to
8937         value_struct_elt_for_reference.
8938         (value_struct_elt_for_reference): Make static, add NOSIDE
8939         parameter, call value_maybe_namespace_elt as a last resort.
8940         (value_namespace_elt): Break out code into
8941         value_maybe_namespace_elt.
8942         (value_maybe_namespace_elt): New.
8943
8944 2004-01-12  Andrew Cagney  <cagney@redhat.com>
8945
8946         * mips-tdep.c (mips_convert_register_p): Handle both raw and
8947         cooked floating-point registers.
8948         (mips_gdbarch_init): Set convert_register_p, register_to_value,
8949         and value_to_register.
8950
8951 2004-01-13  Andrew Cagney  <cagney@redhat.com>
8952
8953         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
8954         * gdbarch.c: Re-generate.
8955         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8956         FUNCTION_START_OFFSET.
8957         * v850-tdep.c (v850_gdbarch_init): Ditto.
8958         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
8959         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8960         * sh-tdep.c (sh_gdbarch_init): Ditto.
8961         * s390-tdep.c (s390_gdbarch_init): Ditto.
8962         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8963         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8964         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8965         * mips-tdep.c (mips_gdbarch_init): Ditto.
8966         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8967         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8968         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8969         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
8970         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8971         * i386-tdep.c (i386_gdbarch_init): Ditto.
8972         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8973         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8974         * frv-tdep.c (frv_gdbarch_init): Ditto.
8975         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8976         * cris-tdep.c (cris_gdbarch_init): Ditto.
8977         * avr-tdep.c (avr_gdbarch_init): Ditto.
8978         * arm-tdep.c (arm_gdbarch_init): Ditto.
8979         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8980
8981 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
8982
8983         * infrun.c (follow_fork_mode_ask): Remove.
8984         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
8985         (follow_fork): Simplify and remove internal error for
8986         follow_fork_mode_ask.
8987         (_initialize_infrun): Update "set follow-fork-mode" help text.
8988
8989 2004-01-13  Andrew Cagney  <cagney@redhat.com>
8990
8991         * configure.in: Update copyright year.
8992         (build_warnings): Add -Wunused-label.
8993         * configure: Re-generate.
8994
8995 2004-01-12  Andrew Cagney  <cagney@redhat.com>
8996
8997         * exec.h (exec_ops): Make "extern".
8998
8999         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
9000         the function is void.
9001         (mips_pseudo_register_write): Ditto.
9002
9003 2004-01-12  Andrew Cagney  <cagney@redhat.com>
9004
9005         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
9006         call.  Never defined.
9007         * sparc-tdep.h (struct frame_info): Add opaque declaration.
9008         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
9009         (struct sparc_gregset, struct regcache): Ditto.
9010         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
9011
9012 2004-01-12  Andrew Cagney  <cagney@redhat.com>
9013
9014         * mi/ChangeLog: Delete file.  Renamed to ...
9015         * mi/ChangeLog-1999-2003: New file.
9016         * tui/ChangeLog: Delete file.  Renamed to ...
9017         * tui/ChangeLog-1998-2003: New file.
9018
9019 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
9020
9021         * sparc64nbsd-tdep.c: Include "regset.h".
9022         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
9023         Remove variables.
9024         (fetch_core_registers): Remove function.
9025         (sparc64nbsd_core_fns): Remove variable.
9026         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
9027         functions.
9028         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
9029         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
9030         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
9031
9032         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
9033         sparc_extract_struct_value_address.
9034         (sparc32_gdbarch_init): Set extract_struct_value_address.
9035         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
9036         function.
9037         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
9038         return_value_on_stack.
9039
9040         * NEWS: Mention that %cs and %ss have been added to the AMD64
9041         configurations
9042
9043         * frame.c: Update copyright year.
9044         (get_prev_frame): Improve comment.
9045
9046         * sparc64fbsd-tdep.c: Include "regset.h".
9047         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
9048         Remove variables.
9049         (fetch_core_registers): Remove function.
9050         (sparc64fbsd_core_fns): Remove variable.
9051         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
9052         functions.
9053         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
9054         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
9055         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
9056
9057         * sparcnbsd-tdep.c: Include "regset.h".
9058         (fetch_core_registers): Remove function.
9059         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
9060         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
9061         functions.
9062         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
9063         TDEP->fpregset.
9064         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
9065
9066         * sparc-tdep.h (struct regset): Provide opaque declaration.
9067         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
9068         fpregset and sizeof_fpregset members.
9069         * sparc-tdep.c (struct regset): Provide opaque declaration.
9070         (sparc_regset_from_core_section): New function.
9071         (sparc32_gdbarch_init): Initialize TDEP->gregset,
9072         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
9073         Set regset_from_core_section when appropriate.
9074
9075 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
9076
9077         * x86-64-tdep.c (amd64_non_pod_p): New function.
9078         (amd64_classify_aggregate): Return class memory for non-POD
9079         C++ structure types.
9080
9081         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
9082         argument.  Use it to reserve a register if necessary.
9083         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
9084         amd64_push_arguments.
9085
9086         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
9087
9088         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
9089         register numbers in comments.
9090         * x86-64-tdep.h: Update copyright year.
9091         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
9092         Adjust for addition of %cs and %ss.
9093         * amd64fbsd-nat.c: Update copyright year.
9094         (reg_offset): Add register offsets for %cs and %ss.
9095         * amd64fbsd-tdep.c: Update copyright year.
9096         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
9097         (amd64fbsd_sc_reg_offset): Likewise.
9098         * x86-64-linux-nat.c: Update copyright year.
9099         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
9100         and %ss.
9101         * amd64nbsd-nat.c: Update copyright year.
9102         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
9103         * amd64nbsd-tdep.c: Update copyright year.
9104         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
9105         * x86-64-linux-tdep.c: Update copyright year.
9106         (user_to_gdb_regmap): Add mapping for %cs and %ss.
9107         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
9108         * regformats/reg-x86-64.dat: Add %cs and %ss.
9109
9110         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
9111         variables to prevent long lines.  Update comments to reflect
9112         reality.
9113
9114 2004-01-09  David Carlton  <carlton@kealia.com>
9115
9116         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
9117         * dwarf2read.c (read_namespace): Pull out name-generating code
9118         into namespace_name. Rename previous_namespace to previous_prefix
9119         and processing_current_namespace to processing_current_prefix..
9120         (namespace_name): New function.
9121         (add_partial_symbol): Substitute uses of pdi->name with
9122         actual_name.
9123         * cp-support.h: Rename processing_current_namespace to
9124         processing_current_prefix.
9125         Update copyright year.
9126         * cp-namespace.c: Rename processing_current_namespace to
9127         processing_current_prefix.
9128         Update copyright year.
9129
9130 2004-01-09  Andrew Cagney  <cagney@redhat.com>
9131
9132         * jv-valprint.c, ser-unix.c: Add missing copyright years.
9133
9134 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
9135
9136         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
9137         complaining.
9138         (process_one_symbol): Deal with N_PATCH stabs.
9139
9140 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
9141
9142         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
9143         ifdeffed code.
9144         Update copyright year.
9145
9146 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
9147
9148         * config/pa/tm-hppa.h: Update extern declarations for
9149         hppa32_hpux_frame_saved_pc_in_sigtramp,
9150         hppa32_hpux_frame_base_before_sigtramp, and
9151         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
9152
9153 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
9154
9155         * config/pa/tm-hppah.h: Update copyright years.
9156
9157 2004-01-08  Andrew Cagney  <cagney@redhat.com>
9158
9159         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
9160         (mips_o32_reg_struct_has_addr): Delete function.
9161         (mips_gdbarch_init): Update.
9162         (mips_extract_struct_value_address): Delete function.
9163
9164 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
9165
9166         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
9167         reality.
9168
9169 2004-01-07  Andrew Cagney  <cagney@redhat.com>
9170
9171         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
9172         architecture's elf flags (when available).
9173
9174         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
9175         FPU to the start, check the MIPS FPU when looking for an old
9176         architecture.
9177         (set_mipsfpu_single_command): Update the architecture.
9178         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
9179
9180         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
9181         (mips_mask_address_p): Add "tdep" parameter.
9182         (show_mask_address, mips_addr_bits_remove): Update.
9183         (mips_dump_tdep): Update.
9184         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
9185         (MIPS_STACK_ARGSIZE): Delete macro.
9186         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
9187         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
9188         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
9189         (mips_dump_tdep): Update.
9190         (MIPS_SAVED_REGSIZE): Delete macro.
9191         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
9192         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
9193         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
9194         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
9195         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
9196         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
9197         (mips_pop_frame, return_value_location): Update.
9198         (mips_n32n64_return_value, mips_dump_tdep): Update.
9199
9200         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
9201         MIPS ABI.
9202
9203         * mips-tdep.c: Update copyright.
9204         (mips_gdbarch_init): Merge two code blocks handling the register
9205         name and number layout.
9206
9207 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
9208
9209         * tracepoint.c (validate_actionline): Fix segv at EOF
9210
9211 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
9212
9213         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
9214         properly for static fields.
9215
9216 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
9217             Jason Molenda  <jmolenda@apple.com>
9218
9219         * disasm.c: Update copyright to include 2004.
9220         (do_mixed_source_and_assembly): For uiout asm list
9221         and tuple cleanups, initialize to null_cleanup instead of
9222         NULL and do so prior to loop.  Only reset when we close off
9223         the tuple/list.  Move check for whether to close off the
9224         asm tuple/list to after dump_insns call where it will be run
9225         on each loop iteration.
9226
9227 2004-01-05  Andrew Cagney  <cagney@redhat.com>
9228
9229         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
9230         should be a switch case and not a label.
9231         * mips-tdep.c (mips32_next_pc): Delete unused labels
9232         "greater_equal_branch" and "less_zero_branch".
9233         * jv-valprint.c (java_print_value_fields): Delete unused label
9234         "flush_it".
9235
9236         * target.c (unpush_target): Only close a target that is in the
9237         target stack.
9238
9239 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
9240
9241         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
9242         address from [sp + 64] instead of %o2.
9243
9244         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
9245         fixes PR backtrace/1476.
9246
9247 2004-01-05  Andrew Cagney  <cagney@redhat.com>
9248
9249         * libunwind-frame.h (struct frame_id): Add opaque declaration,
9250         move to start of file.
9251         * i386-tdep.h (struct regcache): Add opaque declaration.
9252         * config/ia64/nm-linux.h (struct target_ops): Add opaque
9253         declaration.
9254         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
9255         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
9256         * win32-nat.c (fake_create_process): Use ISO C style definition.
9257         * stabsread.c (define_symbol): Delete #ifndef
9258         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
9259         stabs_argument_has_addr call, macro never defined.
9260
9261 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
9262
9263         * op50-rom.c: Delete.
9264         * w89k-rom.c: Delete.
9265         * Makefile.in: Remove references.
9266
9267 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
9268
9269         * x86-64-tdep.c: Update copyright year.
9270         (struct amd64_register_info): Rename from x86_64_register_info.
9271         (amd64_register_info): Rename from x86_64_register_info.
9272         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
9273         (amd64_register_name): Rename from x86_64_register_name.
9274         (amd64_register_type): Rename from x86_64_register_type.
9275         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
9276         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
9277         (amd64_dwarf_reg_to_regnum): Rename from
9278         x86_64_dwarf_reg_to_regnum.
9279         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
9280         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
9281         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
9282         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
9283         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
9284         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
9285         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
9286         (amd64_frame_cache): Rename from x86_64_frame_cache.
9287         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
9288         (amd64_frame_prev_register): Rename from
9289         x86_64_frame_prev_register.
9290         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
9291         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
9292         (amd64_sigtramp_frame_cache): Rename from
9293         x86_64_sigtramp_frame_cache.
9294         (amd64_sigtramp_frame_prev_register): Rename from
9295         x86_64_sigtramp_frame_prev_register.
9296         (amd64_sigtramp_frame_unwind): Rename from
9297         x86_64_sigtramp_frame_unwind.
9298         (amd64_sigtramp_frame_sniffer): Rename from
9299         x86_64_sigtramp_frame_sniffer.
9300         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
9301         (amd64_frame_base): Rename from x86_64_frame_base.
9302         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
9303         (amd64_frame_align): Rename from x86_64_frame_align.
9304         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
9305         (amd64_regset_from_core_section): Rename from
9306         x86_64_regset_from_core_section.
9307         (x86_64_init_abi): Update comments.
9308
9309 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
9310
9311         * MAINTAINERS (write after approval): Add myself.
9312
9313 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
9314
9315         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9316         `float' arguments.
9317
9318 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
9319
9320         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
9321         such that it mentions a specific version of GCC that exhibits this
9322         bug.
9323
9324 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
9325
9326         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
9327         structure that has a single `float' member, store it in %f1 in
9328         addition to %f0.
9329
9330         * sparc-sol2-nat.c: Add missing '\'.
9331
9332         * sparc-tdep.c (sparc32_return_value): New function.
9333          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
9334         Remove functions.
9335         (sparc32_gdbarch_init): Set return_value, don't set
9336         extract_return_value, store_return_value, use_struct_convention
9337         and return_value_on_stack.
9338
9339         * sparc-sol2-nat.c: Add missing ')'.
9340
9341 2004-01-03  J. Brobecker  <brobecker@gnat.com>
9342
9343         * infrun.c (handle_step_into_function): New function.
9344         (handle_inferior_event): Extract out some code into the new
9345         function above.
9346
9347 2004-01-03  J. Brobecker  <brobecker@gnat.com>
9348
9349         * infrun.c (handle_inferior_event): Move the declaration of
9350         real_stop_pc inside the if blocks where it is used.
9351
9352 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
9353
9354         * sparc64-tdep.c (sparc64_16_byte_align_p)
9355         (sparc64_store_floating_fields, sparc64_store_floating_fields):
9356         Use check_typedef to get subtypes of structures and unions.
9357         (sparc64_store_return_value): Fix calculation of the appropriate
9358         offset into VALBUF when storing a structure or union.
9359         (sparc64_return_value): New function.
9360         (sparc64_use_struct_convention): Remove function.
9361         (sparc64_init_abi): Set return_value, don't set
9362         extract_return_value, store_return_value and
9363         use_struct_convention.
9364
9365 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
9366
9367         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
9368         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
9369         gdb/config/alpha/xm-alphaosf.h,
9370         gdb/config/powerpc/tm-ppcle-eabi.h,
9371         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
9372         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
9373         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
9374         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
9375         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
9376         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
9377         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
9378         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
9379         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
9380         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
9381         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
9382         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
9383         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
9384         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
9385         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
9386         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
9387         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
9388         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
9389         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
9390         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
9391         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
9392         Remove lines for .cvsignore files.
9393
9394 2004-01-03  J. Brobecker  <brobecker@gnat.com>
9395
9396         * infrun.c: Back out the previous change.
9397
9398 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
9399
9400         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
9401         sparc-*-sunos4* to the list of REMOVED configurations.
9402
9403         * configure.tgt: Add back sparc-*-vxworks*.
9404         * remote-vxsparc.c: Remove all includes except for "defs.h",
9405         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
9406         Include "sparc-tdep.h".
9407         (SPARC_R_G1): New define.
9408         (vxsparc_gregset): New variable.
9409         (ext_format_sparc): Remove extern declaration.
9410         (vx_read_register): Rewrite to use sparc32_supply_gregset and
9411         sparc32_supply_fpregset.
9412         (vx_write_register): Rewrite to use sparc32_collect_gregset,
9413         sparc_collect_rwindow and sparc32_collect_fpregset.
9414         * config/sparc/tm-vxworks.h: New file, based on recently removed
9415         tm-vxsparc.h.
9416         * config/sparc/vxworks.mt: New file, based on recently removed
9417         vxworks.mt.
9418
9419 2004-01-03  J. Brobecker  <brobecker@gnat.com>
9420
9421         * infrun.c (handle_step_into_function): New function.
9422         (handle_inferior_event): Extract out some code into the new
9423         function above.
9424
9425 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
9426
9427         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
9428         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
9429         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
9430         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
9431         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
9432         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
9433         (sparc_nat_h): New variable.
9434         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
9435         (tm-sun4os4.h): Remove dependency.
9436         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
9437         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
9438         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
9439         sparc-tdep.o): Update dependencies.
9440         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
9441         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
9442         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
9443         dependencies.
9444         * configure.host: Remove existing sparc-*-lynxos*,
9445         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
9446         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
9447         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
9448         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
9449         triplets.
9450         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
9451         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
9452         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
9453         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
9454         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
9455         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
9456         sparc64-*-solaris2* and sparc64-*-* triplets.
9457         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
9458         "symtab.h" and "objfiles.h".
9459         (BIAS): Remove define.
9460         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
9461         (X_DISP19): Remove macros.
9462         (sparc_fetch_instruction): Remove function.
9463         (struct gdbarch_tdep): Remove definition.
9464         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
9465         (sparc_breakpoint_from_pc): Remove function.
9466         (struct sparc64_frame_cache): Remove definition.
9467         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
9468         sparc64_unwind_pc): Remove functions.
9469         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
9470         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
9471         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
9472         (sparc64_frame_cache): Change return type to `struct
9473         sparc_frame_cache *'.  Simply call sparc_frame_cache.
9474         (sparc64_frame_this_id, sparc64_frame_prev_register,
9475         sparc64_frame_base_address): Use `struct sparc_frame_cache'
9476         instead of `struct sparc64_frame_cache.
9477         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
9478         sparc_analyze_control_transfer, sparc_software_single_step,
9479         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
9480         _initialize_sparc64_tdep): Remove functions.
9481         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
9482         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
9483         macros.
9484         (sparc64_supply_gregset, sparc64_collect_gregset,
9485         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
9486         (sparc64_init_abi): New function.
9487         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
9488         inclusion guard.  Include "sparc-tdep.h".
9489         (BIAS): Define.
9490         (r_tstate_offset, r_fprs_offset): New defines.
9491         (enum sparc_regnum): Remove defenition.
9492         (enum sparc64_regnum): Reformat.
9493         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
9494         (sparc64_init_abi, sparc64_supply_gregset,
9495         sparc64_collect_gregset, sparc64_supply_fpregset,
9496         sparc64_collect_fpregset): New prototypes.
9497         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
9498         Add extern declarations.
9499         (sparc64_sol2_init_abi): New prototype.
9500         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
9501         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
9502         prototypes.
9503         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
9504         "sparnbsd-nat.h".
9505         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
9506         functions.
9507         (_initialize_sparc64fbsd_nat): Remove initialization of
9508         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
9509         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
9510         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
9511         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
9512         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
9513         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
9514         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
9515         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
9516         (sparc64fbsd_r_y_offset): Remove variables.
9517         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
9518         Make static and const.
9519         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
9520         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
9521         functions.
9522         (sparc64fbsd_gregset): New variable.
9523         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
9524         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
9525         and sparc64_supply_fpregset.
9526         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
9527         (sparc64fbsd_sigtramp_frame_this_id)
9528         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
9529         (sparc64fbsd_sigtramp_frame_unwind): New variable.
9530         (sparc64fbsd_sigtramp_frame_sniffer): New function.
9531         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
9532         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
9533         * sparcnbsd-tdep.c: Update copyright year.  Include
9534         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
9535         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
9536         "value.h" and "sparcnbsd-tdep.h".
9537         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
9538         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
9539         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
9540         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
9541         defines.
9542         (sparcnbsd_gregset): New variable.
9543         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
9544         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
9545         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
9546         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
9547         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
9548         variables.
9549         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
9550         (sparc32nbsd_sigcontext_frame_this_id)
9551         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
9552         (sparc32nbsd_sigcontext_frame_unwind): New variable.
9553         (sparc32nbsd_sigtramp_frame_sniffer): New function.
9554         (sparcnbsd_get_longjmp_target_32,
9555         sparcnbsd_get_longjmp_target_64): Remove functions.
9556         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
9557         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
9558         sparcnbsd_init_elf): Remove.
9559         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
9560         (sparcnbsd_elf_init_abi): New functions.
9561         (_initialize_sparcnbsd_tdep): New prototype.
9562         (_initialize_sparnbsd_tdep): Update.
9563         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
9564         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
9565         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
9566         * config/sparc/linux.mh: Update comment.
9567         (XM_FILE, HOST_IPC): Remove variables.
9568         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
9569         sparc-linux-nat.o.
9570         * config/sparc/linux.mt: Update comment.
9571         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
9572         * config/sparc/nbsd.mt: Reformat.
9573         * config/sparc/nbsd64.mh: Update comment.
9574         (NATDEPFILES): Add sparc-nat.o.
9575         * config/sparc/nbsd64.mt: Update comment.
9576         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
9577         (TM_FILE): Set to tm-nbsd.h.
9578         * config/sparc/nbsdelf.mh: Update comment.
9579         (NATDEPFILES): Add sparc-nat.o.
9580         (XM_FILE): Delete.
9581         * config/sparc/nbsdaout.mh: Update comment.
9582         (NATDEPFILES): Add sparc-nat.o
9583         (XM_FILE): Delete.
9584         * config/sparc/nm-linux.h: Update copyright year.  Don't include
9585         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
9586         inclusion.
9587         (KERNEL_U_SIZE): Remove define.
9588         (kernel_u_size): Remove prototype.
9589         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
9590         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
9591         "regcache.h".
9592         (CHILD_PREPARE_TO_STORE): Remove define.
9593         * config/sparc/nm-nbsdaout.h: Tweak some comments.
9594         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
9595         sparcnbsd-nat.c: Rewrite files.
9596         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
9597         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
9598         sparcnbsd-tdep.h: Remove files.
9599         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
9600         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
9601         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
9602         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
9603         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
9604         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
9605         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
9606         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
9607         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
9608         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
9609         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
9610         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
9611         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
9612         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
9613         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
9614         * config/sparc/linux64.mh, config/sparc/linux64.mt,
9615         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
9616         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
9617         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
9618
9619 2004-01-02  Andrew Cagney  <cagney@redhat.com>
9620
9621         From 2003-12-18 Kazuhiro Inaoka:
9622         * configure.host: Add m32r-linux target.
9623
9624 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
9625
9626         * top.c (print_gdb_version): Update year to 2004.
9627
9628 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
9629
9630         * MAINTAINERS: Add myself to the write-after-approval category.
9631
9632 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
9633
9634         From Bernardo Innocenti <bernie@develer.com>:
9635         * configure.tgt: Add uClinux target.
9636
9637 2004-01-02  Andrew Cagney  <cagney@redhat.com>
9638
9639         * utils.c (do_my_cleanups): Make static, add forward declaration.
9640         * defs.h (do_my_cleanups): Delete declaration.
9641
9642 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
9643
9644         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
9645         bfd/ChangeLog-0203.
9646
9647 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
9648
9649         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
9650         in <machine/reg.h>.
9651         * configure, config.in: Regenerate.
9652
9653 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
9654 tui/ChangeLog-1998-2003.
9655 \f
9656 Local Variables:
9657 mode: change-log
9658 left-margin: 8
9659 fill-column: 74
9660 version-control: never
9661 End: