2004-02-22 Andrew Cagney <cagney@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2004-02-22  Andrew Cagney  <cagney@redhat.com>
2
3         * config/pa/tm-hppa.h: Update copyright.
4         (DEPRECATED_INIT_FRAME_PC): Delete macro.
5         (deprecated_init_frame_pc_default): Delete declaration.
6         (hppa_frame_init_saved_regs): Delete declaration.
7         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8         * hppa-tdep.c: Include "arch-utils.h".
9         (hppa_gdbarch_init): Set deprecated init_frame_pc
10         and deprecated frame_init_saved_regs.
11         (hppa_frame_init_saved_regs): Make static.
12
13 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
14
15         Remove old 386BSD support.
16         * configure.host: Remove i[34567]86-*-bsd*.
17         * configure.tgt: Remove i[34567]86-*-bsd*.
18         * i386b-nat.c: Removed.
19         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
20         * config/i386/i386bsd.mh: Removed.
21         * config/i386/i386bsd.mt: Removed.
22         * config/i386/nm-i386bsd.h: Removed.
23         * config/i386/tm-i386bsd.h: Removed.
24         * config/i386/xm-i386bsd.h: Removed.
25
26         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
27
28         * amd64fbsd-tdep.c: Include "solib-svr4.h".
29         (amd64fbsd_init_abi): Set link map offsets.
30         * amd64nbsd-tdep.c: Include "slib-svr4.h".
31         (amd64nbsd_init_abi): Set link map offsets.
32         * amd64obsd-tdep.c: Include "solib-svr4.h".
33         (amd64obsd_init_abi): Set link map offsets.
34         * i386fbsd-tdep.c: Include "solib-svr4.h".
35         (i386fbsd_init_abi): Set link map offsets.
36         * i386nbsd-tdep.c: Include "solib-svr4.h".
37         (i386nbsdelf_init_abi): Set link map offsets.
38         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
39         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
40         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
41         solib-legacy.o and core-aout.o. Reformat.
42         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
43         solib-svr4.o, solib-legacy.o.  Reformat.
44         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
45         * config/i386/nbsdelf.mh: Reformat.
46         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
47         solib-svr4.o, solib-legacy.o and corelow.o.
48         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
49         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
50         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
51         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
52         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
53         (TM_FILE): Set to tm-fbsd.h.
54         * config/i386/nbsd.mt (TDEPFILES): Reformat.
55         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
56         solib-svr4.o.
57         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
58         solib-svr4.o.
59         (TM_FILE): Set to nm-nbsd.h.
60         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
61         Simplify shared library support.  Don't include "elf/common.h".
62         (SVR4_SHARED_LIBS): Don't define.
63         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
64         "solib.h".
65         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
66         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
67         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
68         Don't include "i386/tm-i386.h".  Include "solib.h".
69         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
70         Don't include "i386/tm-i386.h".
71         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
72         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
73         Include "i386/xm-i386.h".
74         (HOST_LONG_DOUBLE_FORMAT): Remove.
75
76         Fix OpenBSD/i386 sigtramp recognition.
77         * i386-tdep.h: Update copyright year.
78         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
79         (i386bsd_sigtramp_end): New prototypes.
80         (i386fbsd_sigtramp_start_addr): Renamed from
81         i386fbsd_sigtramp_start.
82         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
83         (i386obsd_sigtramp_start_addr): Renamed from
84         i386obsd_sigtramp_start.
85         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
86         * i386bsd-tdep.c: Update copyright year.
87         (i386bsd_pc_in_sigtramp): Make public.
88         * i386fbsd-nat.c: Update copyright year.
89         (_initialize_i386fbsd_nat): Adjust for renamed variables.
90         * i386fbsd-tdep.c: Update copyright year.
91         (i386fbsd_sigtramp_start_addr): Renamed from
92         i386fbsd_sigtramp_start.
93         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
94         (i386fbsdaout_init_abi): Adjust for renamed variables.
95         * i386obsd-nat.c: Update copyright year.
96         (_initialize_i386obsd_nat): Adjust for renamed variables.
97         * i386obsd-tdep.c: Include "target.h".
98         (i386obsd_page_size): New variable.
99         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
100         (i386obsd_sigtramp_end): New functions.
101         (i386obsd_sigtramp_start_addr): Renamed from
102         i386obsd_sigtramp_start.
103         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
104         (i386obsd_init_abi): Adjust for renamed variables.  Set
105         pc_in_sigtramp, sigtramp_start and sigtramp_end.
106         * Makefile.in (i386obsd-tdep.o): Update dependencies.
107
108         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
109         trampoline change in OpenBSD kernel.
110
111         * amd64-nat.c: Update copyright year.
112         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
113         architecture from REGCACHE.
114
115         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
116         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
117
118 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
119
120         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
121         i[34567]86-*-openbsd3.[0-3].
122         * config/i386/obsdaout.mh: New file.
123
124         * config/i386/obsd.mh (MH_FLAGS): Remove.
125
126         Fix PR build/1549.
127         * i386obsd-tdep.c: Update copyright years.  Include
128         "solib-svr4.h".
129         (i386obsd_init_abi): Don't set regset_from_core_section here.
130         (i386obsd_aout_init_abi): New function.  Set
131         regset_from_core_section here.
132         (i386obsd_elf_init_abi): New function.
133         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
134         * Makefile.in (i386obsd-tdep.o): Update dependecies.
135         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
136         (TM_FILE): Set to tm-nbsd.h.
137
138         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
139         solib-sunos.o.
140
141         * solib-svr4.h: Update copyright year.
142         (svr4_ilp32_fetch_link_map_offsets)
143         (svr4_lp64_fetch_link_map_offsets): New prototype.
144         * solib-svr4.c: Update copyright year.
145         (svr4_ilp32_fetch_link_map_offsets)
146         (svr4_lp64_fetch_link_map_offsets): New function.
147
148 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
149
150         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
151         to the partial symbol table.
152
153 2004-02-20  J. brobecker  <brobecker@gnat.com>
154
155         * PROBLEMS: Add description of problem documented under gdb/1560.
156
157 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
158
159         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
160         comments.
161         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
162         functions.
163         (amd64obsd_init_abi): Reorder initializations.  Use
164         amd64obsd_r_reg_offset to initialize the general-purpose register
165         set details.  Set regset_from_core_section.
166         (_initialize_amd64obsd_tdep): Rename from
167         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
168         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
169         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
170
171         * NEWS (New native configurations): Mention OpenBSD/alpha.
172         * configure.tgt: Add alpha*-*-openbsd*.
173         * configure.host: Add alpha*-*-openbsd*.
174         * alphanbsd-tdep.c: Update copyright year.
175         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
176
177 2004-02-20  Andrew Cagney  <cagney@redhat.com>
178
179         Fix PR tdep/1372.
180         * configure.tgt: Delete target "none-*-*".
181         * configure.host: Delete host "none-*-*".
182         * config/none/none.mh: Delete file.
183         * config/none/none.mt: Delete file.
184         * config/none/xm-none.h: Delete file.
185         * config/none/tm-none.h: Delete file.
186         * config/none/nm-none.h: Delete file.
187
188 2004-02-19  Fred Fish  <fnf@redhat.com>
189
190         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
191         cache->uses_fp prior to setting it.
192
193 2004-02-19  Fred Fish  <fnf@redhat.com>
194
195         Fix for PR breakpoint/1558.
196         * sh-tdep.c (IS_JSR): New macro.
197         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
198
199 2004-02-19  Jim Blandy  <jimb@redhat.com>
200
201         * findvar.c (value_from_register): Doc fix.
202
203 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
204
205         * printcmd.c (print_scalar_formatted): Do not check for sizeof
206         type being greater than sizeof of host's LONGEST.  Always use
207         unpack_long() unless format 'f' chosen.
208
209 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
210
211         Committed by Elena Zannoni  <ezannoni@redhat.com>
212
213         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
214         contains a symbol wich is the best, non-exact match for the given
215         pc.  Update comments.
216
217 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
218         
219         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
220         macro, which was part of the now removed Mach 3 port.
221         * utils.c (request_quit): Ditto.
222
223 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
224
225         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
226         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
227
228 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
229
230         Committed by Mark Kettenis  <kettenis@gnu.org>.
231
232         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
233         Define.
234
235 2004-02-18  Andrew Cagney  <cagney@redhat.com>
236
237         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
238         CONFIG_INSTALL and CONFIG_UNINSTALL.
239         * configure: Re-generate.
240         * interps.h (INTERP_TUI): Define.
241         * Makefile.in: Update dependencies.
242         (TUI): New macro.
243         (tui-main.o): Specify dependencies.
244         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
245         * tui/tui-main.c: New file.
246
247 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
248
249         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
250         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
251         dependencies.
252         * configure.host: Add x86_64-*-openbsd*.
253         * configure.tgt: Add x86_64-*-openbsd*.
254         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
255
256         * tui/tui.c: Don't include <malloc.h>.
257
258         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
259         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
260         amd64nbsd-tdep.c.
261
262         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
263         static.  Remove extraneous whitespace.  
264         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
265         static.
266
267 2004-02-17  Jim Blandy  <jimb@redhat.com>
268
269         * findvar.c (value_from_register): Doc fix.
270
271 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
272
273         Committed by Jim Blandy  <jimb@redhat.com>.
274
275         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use 
276         CORE_ADDR as type for selectors.  Correct types for GNU run time
277         message lookup function to use double indirection.
278         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
279         * objc-lang.h (lookup_child_selector): Adapt prototype.
280
281         * s390-nat.c (SUBOFF): New macro.
282         (supply_gregset, fill_gregset): Use it to handle debugging
283         of 32-bit exectuables running under a 64-bit kernel.
284         * s390-tdep.c: Include "solib-svr4.h".
285         (s390_svr4_fetch_link_map_offset): New function.
286         (s390x_svr_fetch_link_map_offset): Likewise.
287         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
288         * Makefile.in (s390-tdep.o): Update dependencies.
289
290         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
291         "frame-unwind.h".
292         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
293         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
294         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
295         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
296         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
297         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
298         S390_SIGNAL_FRAMESIZE, 
299         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
300         (struct frame_extra_info): Remove.
301         (s390_memset_extra_info): Remove.
302         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
303         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
304         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
305         (is_rse): Renamed to ...
306         (is_rsy): ... this.  Support long displacements.
307         (is_rxe): Renamed to ...
308         (is_rxy): ... this.  Support long displacements.
309         (compute_x_addr): Support long displacements.
310         (struct s390_prologue_data): New data type.
311         (s390_on_stack): Change API to use struct s390_prologue_data.
312         (s390_store): Reimplement.
313         (s390_load): New function.
314         (s390_get_signal_frame_info): Remove.
315         (s390_get_frame_info): Remove, replace by ...
316         (s390_analyze_prolog): ... this new function.
317         (s390_check_function_end): Remove.
318         (s390_function_start): Remove.
319         (s390_frameless_function_invokation): Remove.
320         (s390_is_sigreturn): Remove.
321         (s390_init_frame_pc_first): Remove.
322         (s390_init_frame_extra_info): Remove.
323         (s390_frame_init_saved_regs): Remove.
324         (s390_frame_saved_pc_nofix): Remove.
325         (s390_frame_saved_pc): Remove.
326         (s390_frame_chain): Remove.
327         (s390_fp_regnum, s390_read_fp): Remove.
328         (s390_pop_frame_regular, s390_pop_frame): Remove.
329         (s390_saved_pc_after_call): Remove.
330         (s390_skip_prologue): Reimplement.
331         (s390_in_function_epilogue_p): Support long displacements.
332         (struct s390_unwind_cache): New data structure.
333         (s390_frame_unwind_cache): New function.
334         (s390_prologue_frame_unwind_cache): Likewise.
335         (s390_backchain_frame_unwind_cache): Likewise.
336         (s390_frame_this_id, s390_frame_prev_register): Likewise.
337         (s390_frame_unwind): Define.
338         (s390_frame_sniffer): New function.
339         (struct s390_pltstub_unwind_cache): New data structure.
340         (s390_pltstub_frame_unwind_cache): New function.
341         (s390_pltstub_frame_this_id): Likewise.
342         (s390_pltstub_frame_prev_register): Likewise.
343         (s390_pltstub_frame_unwind): Define.
344         (s390_pltstub_frame_sniffer): New function.
345         (struct s390_sigtramp_unwind_cache): New data structure.
346         (s390_sigtramp_frame_unwind_cache): New function.
347         (s390_sigtramp_frame_this_id): Likewise.
348         (s390_sigtramp_frame_prev_register): Likewise.
349         (s390_sigtramp_frame_unwind): Define.
350         (s390_sigtramp_frame_sniffer): New function.
351         (s390_frame_base_address, s390_local_base_address): New functions.
352         (s390_frame_base): Define.
353         (s390_unwind_pc, s390_unwind_sp): New function.
354         (s390_push_dummy_call): Use new frame base location.
355         (s390_unwind_dummy_id): Likewise.
356         (s390_gdbarch_init): Remove calls to:
357         set_gdbarch_frameless_function_invocation,
358         set_gdbarch_deprecated_init_frame_pc,
359         set_gdbarch_deprecated_frame_chain,
360         set_gdbarch_deprecated_frame_init_saved_regs,
361         set_gdbarch_deprecated_pop_frame,
362         set_gdbarch_deprecated_init_extra_frame_info,
363         set_gdbarch_deprecated_init_frame_pc_first,
364         set_gdbarch_deprecated_target_read_fp,
365         set_gdbarch_deprecated_frame_saved_pc,
366         set_gdbarch_deprecated_saved_pc_after_call,
367         set_gdbarch_deprecated_fp_regnum.
368         Add calls to:
369         set_gdbarch_in_solib_call_trampoline,
370         frame_unwind_append_sniffer,
371         frame_base_set_default,
372         set_gdbarch_unwind_pc,
373         set_gdbarch_unwind_sp.
374         * Makefile.in (s390-tdep.o): Update dependencies.
375
376         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
377         (S390_STACK_FRAME_OVERHEAD): Remove.
378         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
379         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
380         (s390_promote_integer_argument): Remove.
381         (s390_cannot_extract_struct_value_address): Remove.
382         (s390_use_struct_convention, s390_store_struct_return): Remove.
383         (s390_extract_return_value, s390_store_return_value): Remove.
384         (s390_return_value_convention, s390_return_value): New functions.
385         (is_float_singleton): Handle typedefs.
386         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref): 
387         Remove, replace by ...
388         (s390_function_arg_pass_by_reference, s390_function_arg_float,
389         s390_function_arg_integer): ... these new functions.
390         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
391         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
392         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
393         Fill in tdep->abi.
394         Remove calls to:
395         set_gdbarch_deprecated_store_struct_return,
396         set_gdbarch_deprecated_extract_return_value,
397         set_gdbarch_deprecated_store_return_value,
398         set_gdbarch_use_struct_convention,
399         set_gdbarch_extract_struct_value_address,
400         set_gdbarch_deprecated_pc_in_call_dummy,
401         set_gdbarch_deprecated_push_arguments,
402         set_gdbarch_deprecated_save_dummy_frame_tos,
403         set_gdbarch_deprecated_push_return_address,
404         set_gdbarch_deprecated_sizeof_call_dummy_words,
405         set_gdbarch_deprecated_call_dummy_words,
406         set_gdbarch_deprecated_dummy_write_sp.
407         Add calls to:
408         set_gdbarch_push_dummy_call,
409         set_gdbarch_unwind_dummy_id,
410         set_gdbarch_return_value.
411         
412         * config/s390/nm-linux.h: Update comments.
413         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
414         (STOPPED_BY_WATCHPOINT): Redefine.
415         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
416         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
417         (s390_stopped_by_watchpoint): Likewise.
418         (watch_area_cnt): Remove.
419         * s390-nat.c: Update comments.
420         (watch_area): Remove typedef.
421         Global replace watch_area by struct watch_area.
422         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
423         (s390_stopped_by_watchpoint): Remove pid argument, 
424         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
425         (s390_fix_watch_points): Remove pid argument,
426         use s390_inferior_tid.  Recompute area spanned by watchpoints.
427         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
428         argument.  Reimplement.
429
430         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
431         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
432         (FETCH_INFERIOR_REGISTERS): Define.
433         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and 
434         core-regset.o.
435         * config/s390/s390x.mt: Remove.
436         * config/s390/tm-s390.h: Remove.
437         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
438         (TARGET_ELF64): Remove.
439         (SKIP_TRAMPOLINE_CODE): Do not undefine.
440         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
441         s390*-*-* case; always set gdb_target to s390.
442         * regformats/reg-s390.dat: Remove control registers.
443         * regformats/reg-s390x.dat: Likewise.
444         * s390-tdep.h: New file.
445         * s390-nat.c: Do not include <asm/processor.h> or <value.h>. 
446         Include "inferior.h" and "s390-tdep.h".
447         Remove private definition of offsetof.
448         (s390_register_u_addr): Remove.
449         (regmap_gregset, regmap_fpregset): Define.
450         (supply_gregset, fill_gregset): Reimplement.
451         (supply_fpregset, fill_fpregset): Likewise.
452         (s390_inferior_tid): New function.
453         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
454         (fetch_inferior_registers, store_inferior_registers): Likewise.
455         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
456         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
457         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
458         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
459         (struct gdbarch_tdep): Define.
460         (struct s390_register_info): Define.
461         (s390_register_info): New variable.
462         (s390_register_name): Reimplement.
463         (s390_register_type): New function.
464         (s390_register_raw_size, s390x_register_raw_size): Remove.
465         (s390_cannot_fetch_register): Remove.
466         (s390_register_byte): Remove.
467         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
468         (s390_dwarf_regmap): New variable.
469         (s390_dwarf_reg_to_regnum): New function.
470         (s390_stab_reg_to_regnum): Remove.
471         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
472         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
473         (s390_convert_register_p): Likewise.
474         (s390_register_to_value, s390_value_to_register): Likewise.
475         (s390_register_reggroup_p): Likewise.
476         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
477         s390_gregset, s390x_gregset, s390_fpregset): New variables.
478         (s390_supply_regset, s390_regset_from_core_section): New functions.
479         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
480         (S390_FPR_SIZE): Likewise.
481         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
482         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
483         (S390_NUM_GPRS): Move here from tm-s390.h.
484         (S390_NUM_FPRS): Likewise.
485         (s390_in_function_epilogue_p): New function.
486         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
487         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
488         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
489         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
490         Replace S390_FP_REGNUM by S390_SP_REGNUM.
491         Remove calls to:
492         set_gdbarch_deprecated_max_register_raw_size,
493         set_gdbarch_deprecated_max_register_virtual_size, 
494         set_gdbarch_deprecated_register_byte, 
495         set_gdbarch_cannot_fetch_register,
496         set_gdbarch_cannot_store_register, 
497         set_gdbarch_deprecated_register_size,
498         set_gdbarch_deprecated_register_raw_size,
499         set_gdbarch_deprecated_register_virtual_size,
500         set_gdbarch_deprecated_register_virtual_type,
501         set_gdbarch_deprecated_register_bytes.
502         Add calls to:
503         set_gdbarch_num_pseudo_regs,
504         set_gdbarch_register_type,
505         set_gdbarch_convert_register_p,
506         set_gdbarch_register_to_value,
507         set_gdbarch_value_to_register,
508         set_gdbarch_register_reggroup_p,
509         set_gdbarch_regset_from_core_section,
510         set_gdbarch_pseudo_register_read,
511         set_gdbarch_pseudo_register_write,
512         set_gdbarch_in_function_epilogue_p.
513         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
514         (s390_tdep_h): New variable.
515
516 2004-02-17  Jim Blandy  <jimb@redhat.com>
517
518         * findvar.c (value_from_register): If the type has no length, just
519         return an acceptable value --- don't report an internal error.
520
521         * stabsread.c (read_type): If we find any type numbers that are
522         forward references, complain if the references aren't resolved by
523         the time we're finished reading.
524         (cleanup_undefined_types): Make error message more appropriate for
525         a complaint.
526
527 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
528
529         * Makefile.in (defs_h): Remove dependency on progress_h.
530         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
531         progress.h.
532         * main.c (captured_main): Delete use of START_PROGRESS and
533         END_PROGRESS.
534
535 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
536         
537         * objfiles.c (terminate_minimal_symbol_table): Add back
538         initialization of MSYMBOL_TYPE.
539
540 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
541
542         Committed by Andrew Cagney.
543         * Makefile.in (ia64_tdep_h): New macro.
544         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
545         (ia64-tdep.o): Likewise.
546         * ia64-tdep.h: New file.
547         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
548         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
549         (ia64_aix_sigcontext_register_address): Likewise.
550         (ia64_linux_getunwind_table): Delete declaration.
551         * ia64-linux-tdep.c: Likewise.
552
553 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
554
555         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
556         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
557         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
558
559 2004-02-17  Andrew Cagney  <cagney@redhat.com>
560
561         * symtab.c (skip_prologue_using_sal): New function.
562         * symtab.h (skip_prologue_using_sal): Declare.
563         * frv-tdep.c: Include "symtab.h".
564         (skip_prologue_using_sal): Delete function.
565         * mips-tdep.c (skip_prologue_using_sal): Delete function.
566         * rs6000-tdep.c (refine_prologue_limit): Mention
567         skip_prologue_using_sal.
568         * ia64-tdep.c (refine_prologue_limit): Ditto.
569         * Makefile.in: Update dependencies.
570
571 2004-02-16  Andrew Cagney  <cagney@redhat.com>
572
573         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
574         START_INFERIOR_TRAPS_EXPECTED.
575         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
576         START_INFERIOR_TRAPS_EXPECTED.
577         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
578         Delete macro.
579         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
580         macro, moved to "nm-osf.h".  Update copyright.
581         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
582         update copyright.
583
584         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
585         and function replacing FRAMELESS_FUNCTION_INVOCATION.
586         * blockframe.c (legacy_frameless_look_for_prologue): Rename
587         frameless_look_for_prologue.
588         * frame.h (legacy_frameless_look_for_prologue): Rename
589         frameless_look_for_prologue.
590         * gdbarch.h, gdbarch.c: Re-generate.
591         * sh64-tdep.c (sh64_gdbarch_init): Update.
592         * sh-tdep.c (sh_gdbarch_init): Update.
593         * s390-tdep.c (s390_gdbarch_init): Update.
594         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
595         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
596         * m68k-tdep.c (m68k_gdbarch_init): Update.
597         (delta68_frame_args_address): Update.
598         * m32r-tdep.c (m32r_gdbarch_init): Update.
599         * hppa-tdep.c (hppa_gdbarch_init): Update.
600         * h8300-tdep.c (h8300_gdbarch_init): Update.
601         * frv-tdep.c (frv_gdbarch_init): Update.
602         (frv_frameless_function_invocation): Update.
603         * cris-tdep.c (cris_gdbarch_init): Update.
604         (cris_frameless_function_invocation): Update.
605         * avr-tdep.c (avr_gdbarch_init): Update.
606         * arm-tdep.c (arm_gdbarch_init): Update.
607         * stack.c (frame_info): Update, call predicate.
608         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
609         * frame.c (legacy_get_prev_frame): Update, call predicate..
610         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
611         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
612         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
613         invocation.
614         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
615         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
616         * vax-tdep.c (vax_gdbarch_init): Ditto.
617
618         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
619         function.
620
621 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
622
623         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
624         initializations.
625
626 2004-02-16  Andrew Cagney  <cagney@redhat.com>
627
628         * tui/tui-windata.c: Include "gdb_string.h".
629         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
630         * tui/tui-layout.c, tui/tui-command.c: Ditto.
631         * Makefile.in: Update dependencies.
632
633 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
634
635         * Makefile.in (infrun.o): Add $(gdb_assert_h).
636         * infrun.c: Include "gdb_assert.h".
637         (singlestep_ptid, saved_singlestep_ptid)
638         (stepping_past_singlestep_breakpoint): New variables.
639         (resume): Set singlestep_ptid.  Check for singlestep thread
640         hop.
641         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
642         (handle_inferior_event): Handle singlestep thread hop.
643
644 2004-02-16  Andrew Cagney  <cagney@redhat.com>
645
646         * dwarf2-frame.c (dwarf2_frame_ops): New function.
647         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
648         (dwarf2_frame_init_reg): Ditto.
649
650         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
651         suggested by Joshua Neuheisel
652
653         * configure.in: Always check for curses, including pdcurses.
654         Warn, instead of error, when no curses are found.  Enable TUI when
655         curses is available.
656         * configure: Re-generate.
657
658 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
659
660         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
661         sh_sh4_register_convert_to_virtual.
662         (sh_register_convert_to_raw): Rename from
663         sh_sh4_register_convert_to_raw.
664         (sh_pseudo_register_read): Accomodate above name change.
665         (sh_pseudo_register_write): Ditto.
666
667 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
668
669         * sh-tdep.c (sh_generic_register_name): Remove.
670         (sh_gdbarch_init): Use sh_sh_register_name in default case.
671
672 2004-02-15  Andrew Cagney  <cagney@redhat.com>
673
674         * configure.in (build_warnings): Add -Wunused-function.
675         * configure: Re-generate.
676
677         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
678         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
679
680         * procfs.c (procfs_init_inferior): Assume that
681         START_INFERIOR_TRAPS_EXPECTED is defined.
682         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
683         * config/ns32k/tm-nbsd.h: Delete file,
684         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
685
686         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
687         * config/vax/tm-vax.h: Delete file.
688
689         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
690         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
691         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
692         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
693         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
694         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
695         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
696
697 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
698
699         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
700         * dwarf2-frame.c (dwarf2_frame_data): New variable.
701         (struct dwarf2_frame_ops): New.
702         (dwarf2_frame_default_init_reg): New function, based on
703         dwarf2_frame_init_reg.
704         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
705         (dwarf2_frame_init_reg): Call architecture-specific function.
706         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
707         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
708         instead of dwarf2_frame_data.
709         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
710         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
711
712 2004-02-15  Andrew Cagney  <cagney@redhat.com>
713
714         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
715         register_gdbarch_swap.
716         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
717         * f-lang.c (_initialize_f_language): Update, use
718         DEPRECATED_REGISTER_GDBARCH_SWAP.
719         * remote.c (_initialize_remote): Ditto.
720         * regcache.c (_initialize_regcache): Ditto.
721         * parse.c (_initialize_parse): Ditto.
722         * infrun.c (_initialize_infrun): Ditto.
723         * mi/mi-main.c (_initialize_mi_main): Ditto.
724         * gdbtypes.c (_initialize_gdbtypes): Ditto.
725         
726         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
727         poking .cacheable directly.
728         * symfile.c (symfile_bfd_open): Ditto.
729
730         * Makefile.in: Update all dependencies.
731
732         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
733         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
734         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
735         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
736         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
737
738 2004-02-14  Andrew Cagney  <cagney@redhat.com>
739
740         * arch-utils.c (legacy_convert_register_p): Check
741         DEPRECATED_REGISTER_CONVERTIBLE_P.
742         * findvar.c (value_of_register): Ditto.
743
744         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
745         * gdbarch.h, gdbarch.c: Re-generate.
746         * arch-utils.c (deprecated_register_convertible_not): Delete.
747         * arch-utils.h (deprecated_register_convertible_not): Delete.
748         * mi/mi-main.c (get_register): Update.  Update copyright.
749         * infcmd.c (default_print_registers_info): Update.
750
751         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
752         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
753         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
754         * gdbarch.h, gdbarch.c: Re-generate.    
755         * frame.c (deprecated_get_next_frame_hack): Delete function.
756         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
757         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
758         Update.
759         * infcall.c (call_function_by_hand): Update.
760
761 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
762
763         * symfile.c (init_entry_point_info, entry_point_address): Move
764         from here...  
765         * objfiles.c (init_entry_point_info, entry_point_address):..to
766         here.
767         * symfile.h (init_entry_point_info, entry_point_address): Remove
768         prototypes.
769         * objfiles.h (init_entry_point_info, entry_point_address):Add
770         prototypes.  
771         * cris-tdep.c: Remove include of symfile.h. Add include of
772         objfiles.h.
773         * infcall.c: Ditto.
774         * mcore-tdep.c: Ditto.
775         * mn10300-tdep.c: Ditto.
776         * sh64-tdep.c: Ditto.
777         * v850-tdep.c: Ditto.
778         * arm-tdep.c: Remove include of symfile.h.
779         * blockframe.c: Ditto.
780         * coffread.c: Ditto.
781         * dbxread.c: Ditto.
782         * dwarf2read.c: Ditto.
783         * dwarfread.c: Ditto.
784         * frv-tdep.c: Ditto.    
785         * ia64-tdep.c: Ditto.
786         * mdebugread.c: Ditto.
787         * mipsread.c: Ditto.
788         * rs6000-tdep.c: Ditto. 
789         * s390-tdep.c: Ditto.
790         * sh-tdep.c: Ditto.
791         * xstormy16-tdep.c: Ditto. 
792         * gdbarch.sh: Remove include of symfile.h.
793         * gdbarch.c: Regenerate.
794         * solib-irix.c (enable_break): Use entry_point_address().
795         Add comment about include file.
796         * xcoffread.c: Add comment about include file.
797         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o) 
798         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o) 
799         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o) 
800         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o) 
801         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
802
803 2004-02-13  Andrew Cagney  <cagney@redhat.com>
804
805         * corelow.c (core_xfer_partial): Use "struct bfd_section".
806         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
807         copyright.
808         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
809
810 2004-02-12  Fred Fish  <fnf@redhat.com>
811
812         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
813          set_gdbarch_store_return_value.
814
815 2004-02-12  Andrew Cagney  <cagney@redhat.com>
816
817         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
818         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
819         (interrupt_query): Ditto.
820         (ofunc): Delete unused variable.
821         * cris-tdep.c (cris_abi): Delete unused function.
822         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
823         (cris_get_wide_opcode, cris_get_short_size): Ditto.
824         (cris_get_asr_quick_shift_steps): Ditto.
825         (cris_skip_prologue_frameless_p): Ditto.
826         * arm-tdep.c (arm_push_return_address): Delete unused function.
827         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
828         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
829         * s390-tdep.c (s390_function_start): Delete unused function.
830
831 2004-02-12  Andrew Cagney  <cagney@redhat.com>
832
833         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
834         gdbarch.h, gdbarch.c: Re-generate.
835         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
836         to generic_prologue_frameless_p.
837         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
838         * arch-utils.c (generic_prologue_frameless_p): Delete function.
839
840 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
841
842         * mips-linux-tdep.c: Include "frame.h".
843         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
844         (mips_linux_skip_resolver): New functions.
845         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
846         and set_gdbarch_in_solib_call_trampoline.
847         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
848         to after set_gdbarch_in_solib_return_trampoline.  Only set the
849         solib hooks to mips16 functions if the OS ABI is unknown.
850         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
851         including "config/tm-linux.h".
852         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
853         * Makefile.in (mips-linux-tdep.o): Update.
854
855 2004-02-11  David Carlton  <carlton@kealia.com>
856
857         * linespec.c (decode_compound): Only look for a class symbol when
858         considering all but the rightmost component.
859
860 2004-02-11  Andrew Cagney  <cagney@redhat.com>
861
862         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
863         abi code are are separatly grouped.
864
865 2004-02-11  Andrew Cagney  <cagney@redhat.com>
866
867         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
868         * gdbarch.h, gdbarch.c: Re-generate.
869         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
870         * v850-tdep.c (v850_gdbarch_init): Update.
871         * sh64-tdep.c (sh64_gdbarch_init): Update.
872         * sh-tdep.c (sh_gdbarch_init): Update.
873         * s390-tdep.c (s390_gdbarch_init): Update.
874         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
875         * mips-tdep.c (mips_gdbarch_init): Update.
876         * mcore-tdep.c (mcore_gdbarch_init): Update.
877         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
878         * m32r-tdep.c (m32r_gdbarch_init): Update.
879         * ia64-tdep.c (ia64_gdbarch_init): Update.
880         * hppa-tdep.c (hppa_gdbarch_init): Update.
881         * h8300-tdep.c (h8300_gdbarch_init): Update.
882         * frv-tdep.c (frv_gdbarch_init): Update.
883         * d10v-tdep.c (d10v_gdbarch_init): Update.
884         * cris-tdep.c (cris_gdbarch_init): Update.
885         * avr-tdep.c (avr_gdbarch_init): Update.
886         * arm-tdep.c (arm_gdbarch_init): Update.
887         * alpha-tdep.c (alpha_gdbarch_init): Update.
888
889 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
890
891         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
892         comma.
893         (sh_sh4al_dsp_register_name): Ditto.
894
895 2004-02-10  Andrew Cagney  <cagney@redhat.com>
896
897         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
898         (mips_init_frame_pc_first): Delete function.
899         (mips_frame_saved_pc): Delete function.
900         (mips_frame_chain): Delete function.
901         (mips_init_extra_frame_info): Delete function.
902         (mips_xfer_register): Delete unused variable "reg".
903         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
904         (mips_n32n64_return_value): Delete unused variable "reg".
905         (mips_n32n64_return_value): Delete unused variable "pos".
906         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
907         (mips_o32_return_value): Delete unused variable "pos".
908         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
909         (mips_print_fp_register): Delete unused variable "namelen"
910         (mips_print_fp_register): Delete unused variable "flt2"
911         (get_frame_pointer): Delete function.
912         (cached_proc_desc): Delete static variable.
913         (mips_pop_frame): Delete function.
914         (mips_find_saved_regs): Delete function.
915         (mips_get_saved_register): Delete function.
916         (mips_saved_pc_after_call): Delete function.
917         (SIGFRAME_BASE): Delete macro.
918         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
919         (SIGFRAME_PC_OFF): Delete macro.
920         (SIGFRAME_REGSAVE_OFF): Delete macro.
921         (mips_dump_tdep): Do not print deleted macro definitions.
922
923 2004-02-10  Andrew Cagney  <cagney@redhat.com>
924
925         * Makefile.in (SFILES): Remove explictly listed tui files.
926         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
927
928 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
929         
930         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
931         to use paddr functions to format ia64 addresses and long values.
932         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
933         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
934         (get_kernel_table, ia64_find_proc_info_x): Ditto.
935         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
936         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
937
938 2004-02-10  Andrew Cagney  <cagney@redhat.com>
939
940         * defs.h: Do not include "tui.h".
941         * gdb_curses.h: New file.
942         * tui/tui-hooks.h: New file.
943         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
944         (tui_install_hooks, tui_remove_hooks): Delete declarations.
945         (tui_initialize_io): Delete declaration.
946         (tui_initialize_readline: Delete redundant declaration.
947         (struct tui_point): Delete definition.
948         * tui/tui-data.h (struct tui_point): Define.
949         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
950         * utils.c: Include "tui/tui.h".
951         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
952         * printcmd.c [TUI]: Include "tui/tui.h".
953         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
954         * tui/tui-command.c: Include "gdb_curses.h".
955         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
956         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
957         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
958         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
959         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
960         * Makefile.in: Update all dependencies.
961         (tui_hooks_h, gdb_curses_h): Define.
962         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
963
964 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
965
966         * objfiles.h (struct objfile): Remove unused fields auxf1 and
967         auxf2. Add comments about some other rarely used fields.
968
969 2004-02-10  Andrew Cagney  <cagney@redhat.com>
970
971         * Makefile.in (init.c): Fix script removing duplicates. Problem
972         reported by Peter Schauer.
973
974 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
975
976         * bcache.c (bcache_xmalloc): Use obstack_init instead of
977         obstack_specify_allocation.
978         * objfiles.c (allocate_objfile): Ditto.
979         * solib-sunos.c (solib_add_common_symbols) 
980         (allocate_rt_common_objfile): Ditto.
981         * symfile.c (reread_symbols): Ditto.
982         * gdb_obstack.h: Add comment.
983
984 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
985
986         * linespec.c (decode_line_1, locate_first_half)
987         (decode_compound, lookup_prefix_sym): Update comments. Delete old
988         commented out code.
989
990 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
991
992         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
993         obstack_free.
994
995 2004-02-09  Andrew Cagney  <cagney@redhat.com>
996
997         * blockframe.c (find_pc_partial_function): If find_pc_overlay
998         fails, try find_pc_section.  Fix PR c++/1267.
999         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
1000         instead of find_pc_mapped_section.
1001         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
1002         not default to the section containing PC.  Fix PR symtab/1519.
1003
1004 2004-02-09  Andrew Cagney  <cagney@redhat.com>
1005
1006         * Makefile.in (mips-tdep.o): Update dependencies.
1007         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
1008         "trad-frame.h".
1009         (mips_unwind_pc): Return the pseudo PC register.
1010         (mips_unwind_dummy_id): New function.
1011         (mips16_fetch_instruction): New function.
1012         (mips32_fetch_instruction): New function.
1013         (struct mips_frame_cache): Define.
1014         (mips_mdebug_frame_cache): New function.
1015         (mips_mdebug_frame_this_id): New function.
1016         (mips_mdebug_frame_prev_register): New function.
1017         (mips_mdebug_frame_unwind): Define.
1018         (mips_mdebug_frame_sniffer): New function.
1019         (mips_mdebug_frame_base_address): New function.
1020         (mips_mdebug_frame_base): Define.
1021         (mips_mdebug_frame_base_sniffer): New function.
1022         (mips_gdbarch_init): Append unwind and base sniffers.  Set
1023         unwind_dummy_id.
1024
1025 2004-02-08  Andrew Cagney  <cagney@redhat.com>
1026
1027         * frame.c: Print both the register number and name.
1028
1029         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
1030         and a sed into a single sed.  Make .c and .o patterns more robust.
1031         (OBS): Delete.
1032         (INIT_FILES): Replace OBS with COMMON_OBS.
1033         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
1034
1035 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
1036
1037         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
1038         the PT_WCOOKIE request.
1039
1040 2004-02-08  Andrew Cagney  <cagney@redhat.com>
1041
1042         * mips-tdep.c (mips_unwind_pc): New function.
1043         (mips_gdbarch_init): Set mips_unwind_pc.
1044
1045         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
1046         (get_frame_id): Allow the UNKNOWN_FRAME.
1047         (frame_register_unwind, get_frame_type): Ditto.
1048
1049         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
1050         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
1051         unwind_dummy_id indicates a legacy frame.
1052
1053         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
1054         * configure: Re-generate.
1055
1056         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
1057         methods.
1058
1059 2004-02-08  Andrew Cagney  <cagney@redhat.com>
1060
1061         * configure.in (CONFIG_ALL): Set to Makefile target, and not
1062         makefile macro.
1063         * configure: Re-generate.
1064         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
1065         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
1066         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
1067         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
1068         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
1069         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
1070         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
1071         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
1072         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
1073         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
1074
1075 2004-02-07  Andrew Cagney  <cagney@redhat.com>
1076
1077         * Makefile.in: Update all dependencies.
1078
1079         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
1080         * configure: Re-generate.
1081         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
1082         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
1083         (COMMON_OBS): Add "main.o" and "annotate.o".
1084         (ANNOTATE_OBS): Delete.
1085         (OBS): Remove ANNOTATE_OBS.
1086         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
1087         CONFIG_INITS.
1088         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
1089         against CONFIG_OBS and "main.o".
1090         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
1091         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
1092
1093         * tui/tui-command.c: Include "gdb_string.h", delete register
1094         attribute, use ISO-C function signatures.
1095         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
1096         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
1097         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
1098         * tui/tui.c: Ditto.
1099
1100         * tui/tui-command.c: Change variable and function names to lower
1101         case.
1102         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
1103         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
1104         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
1105         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
1106         * tui/tui-winsource.c, tui/tui.c: Ditto.
1107
1108 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
1109
1110         * buildsym.c (free_pending_blocks, finish_block)
1111         (record_pending_block, make_blockvector, end_symtab): Replace
1112         symbol_obstack with objfile_obstack.
1113         * coffread.c (process_coff_symbol, coff_read_struct_type) 
1114         (coff_read_enum_type): Ditto.
1115         * cp-namespace.c (initialize_namespace_symtab) 
1116         (check_one_possible_namespace_symbol): Ditto.
1117         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file) 
1118         (dwarf2_symbol_mark_computed): Ditto.
1119         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
1120         * elfread.c (elf_symtab_read): Ditto.
1121         * hpread.c (hpread_symfile_init, hpread_symfile_init)
1122         (hpread_read_enum_type, hpread_read_function_type)
1123         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
1124         Ditto.
1125         * jv-lang.c (get_java_class_symtab, add_class_symbol) 
1126         (java_link_class_type): Ditto.
1127         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab) 
1128         (new_symbol): Ditto.
1129         * minsyms.c (install_minimal_symbols): Ditto.
1130         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
1131         (terminate_minimal_symbol_table): Replace symbol_obstack with
1132         objfile_obstack.
1133         (free_objfile): Remove freeing of symbol_obstack.
1134         * objfiles.h: Remove symbol_obstack field.
1135         * pa64solib.c (add_to_solist): Replace symbol_obstack with
1136         objfile_obstack.
1137         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
1138         symbol_obstack.
1139         (solib_add_common_symbols): Replace symbol_obstack with
1140         objfile_obstack.
1141         * somsolib.c (som_solib_add): Ditto.
1142         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
1143         (common_block_start, common_block_end): Ditto.
1144         * symfile.c (reread_symbols): Remove freeing and init of
1145         symbol_obstack.
1146         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
1147         * symfile.h: Update comment.
1148         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
1149         stats printing.
1150         * symtab.c (symbol_set_names): Replace symbol_obstack with
1151         objfile_obstack.
1152         * symtab.h (struct general_symbol_info, struct minimal_symbol):
1153         Update comments.
1154         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
1155         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
1156         objfile_obstack.
1157
1158 2004-02-07  Andrew Cagney  <cagney@redhat.com>
1159
1160         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
1161         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
1162         fields and variables.
1163         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
1164         (m_beInvisible): Delete macro.
1165         * tui/tui-data.h: Fix case case fields and variables.
1166         (m_genWinPtrIsNull): Delete macro.
1167         (tui_win_list): Rename winList.
1168         (TUI_SRC_WIN): Rename srcWin.
1169         (TUI_DISASM_WIN): Rename disassemWin.
1170         (TUI_DATA_WIN): Rename dataWin.
1171         (TUI_CMD_WIN): Rename cmdWin.
1172         (m_genWinPtrNotNull): Delete macro.
1173         (m_winPtrIsNull): Delete macro.
1174         (m_winPtrNotNull): Delete macro.
1175         (tui_win_is_source_type): Replace m_winIsSourceType
1176         (tui_win_is_auxillary): Replace m_winIsAuzillary.
1177         (tui_win_has_locator): Replace m_hasLocator.
1178         (tui_set_win_highlight): Replace m_setWinHighlightOn and
1179         m_setWinHighlightOff.
1180         * tui/tui-data.c: Update references.
1181         (tui_win_is_source_type, tui_set_win_highlight): New functions.
1182         (tui_win_has_locator, tui_win_is_auxillary): New functions.
1183         * tui/tui-command.c, tui/tui-disasm.c: Update references.
1184         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
1185         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
1186         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
1187         * tui/tui-winsource.c, tui/tui.c: Ditto.
1188
1189 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
1190
1191         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
1192         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
1193         StackGhost.
1194
1195         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
1196         variable `i6' to `i7'.
1197         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
1198
1199 2004-02-07  Andrew Cagney  <cagney@redhat.com>
1200
1201         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
1202         (TuiPoint, TuiPointPtr): Ditto.
1203         (TuiStatus, TuiStatusPtr): Ditto.
1204         (TuiWinType, TuiWinTypePtr): Ditto.
1205         (struct tui_point): Rename _TuiPoint.
1206         (tui_get_low_disassembly_address): Rename
1207         tuiGetLowDisassemblyAddress.
1208         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
1209         (tuiFree): Delete declaration.
1210         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
1211         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
1212         * tui/tui.c (tuiFree): Delete function.
1213         * cli/cli-cmds.c (disassemble_command): Update references.
1214         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
1215         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
1216         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
1217         * tui/tui-winsource.c: Ditto.
1218
1219 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
1220
1221         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
1222         coffstab_build_psymtabs, elfstab_build_psymtabs)
1223         (stabsect_build_psymtabs): Replace psymbol_obstack with
1224         objfile_obstack.
1225         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
1226         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
1227         Ditto.
1228         * dwarfread.c (scan_compilation_units): Ditto.
1229         * elfread.c (elfstab_offset_sections): Ditto.
1230         * hppa-tdep.c (read_unwind_info): Ditto.
1231         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
1232         (hpread_end_psymtab): Ditto.
1233         * mdebugread.c (mdebug_build_psymtabs, add_pending)
1234         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
1235         Ditto.
1236         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
1237         * objfiles.c (add_to_objfile_sections) 
1238         (build_objfile_section_table): Ditto.
1239         (allocate_objfile): Remove init of psymbol_obstack.
1240         (free_objfile): Remove freeing of psymbol_obstack.
1241         * objfiles.h (struct objfile): Remove field
1242         psymbol_obstack. Update comments.
1243         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
1244         psymbol_obstack with objfile_obstack.
1245         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
1246         psymbol_obstack.
1247         * somread.c (som_symfile_offsets, init_import_symbols)
1248         (init_export_symbols): Replace psymbol_obstack with
1249         objfile_obstack.
1250         * somsolib.c (som_solib_add_solib_objfile): Ditto.
1251         * symfile.c (default_symfile_offsets, syms_from_objfile)
1252         (reread_symbols): Remove freeing and init of psymbol_obstack.
1253         (cashier_psymtab): Update comment.
1254         * symmisc.c (print_objfile_statistics): Don't report stats for
1255         psymbol obstack.
1256         * symtab.h (struct general_symbol_info, struct partial_symtab):
1257         Update comments.
1258         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
1259         (xcoff_symfile_offsets): Replace psymbol_obstack with
1260         objfile_obstack.
1261
1262 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
1263
1264         * objfiles.h (struct objfile): Add objfile_obstack field.
1265         Remove type_obstack field.
1266
1267         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
1268         read_structure_scope read_enumeration, new_symbol): Replace
1269         type_obstack with objfile_obstack.
1270         * dwarfread.c (struct_type, enum_type): Ditto.
1271         * gdbtypes.c (alloc_type, alloc_type_instance, init_type) 
1272         (lookup_fundamental_type): Ditto.
1273         * gdbtypes.h (TYPE_ALLOC): Ditto.
1274         * hpread.c (hpread_read_enum_type, hpread_read_function_type) 
1275         (hpread_read_doc_function_type, hpread_read_struct_type) 
1276         (fix_static_member_physnames, hpread_read_array_type) 
1277         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
1278         * jv-lang.c (java_lookup_class, type_from_class, type_from_class) 
1279         (java_link_class_type): Ditto.
1280         * mdebugread.c (parse_type): Ditto.
1281         * objfiles.c (allocate_objfile, free_objfile): Ditto.
1282         * solib-sunos.c (solib_add_common_symbols): Ditto.
1283         * stabsread.c (define_symbol, read_type, read_member_functions,
1284         read_cpp_abbrev, read_one_struct_field): Ditto.
1285         * symfile.c (reread_symbols): Ditto.
1286         * symmisc.c (print_objfile_statistics): Ditto.
1287         
1288 2004-02-07  Andrew Cagney  <cagney@redhat.com>
1289
1290         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
1291         (tui_exec_info_content): Rename TuiExecInfoContent.
1292         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
1293         (TuiWinInfo, TuiWinInfoPtr): Ditto.
1294         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
1295         (TuiList, TuiListPtr): Ditto.
1296         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
1297         (TuiDataType, TuiDataTypePtr): Ditto.
1298         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
1299         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
1300         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
1301         (TuiSourceElement, TuiSourceElementPtr): Ditto.
1302         (TuiDataElement, TuiDataElementPtr): Ditto.
1303         (TuiWinElement, TuiWinElementPtr): Ditto.
1304         (TuiDataInfo, TuiDataInfoPtr): Ditto.
1305         (TuiCommandElement, TuiCommandElementPtr): Ditto.
1306         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
1307         (TuiWhichElement, TuiWhichElementPtr): Ditto.
1308         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
1309         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
1310         * tui/tui-command.c, tui/tui-data.c: Update references.
1311         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
1312         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
1313         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
1314         * tui/tui-winsource.c, tui/tui.c: Ditto.
1315         
1316 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
1317
1318         * dwarf2-frame.h: Update copyright.
1319         (enum dwarf2_frame_reg_rule): New.
1320         (struct dwarf2_frame_state_reg): New.
1321         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
1322         * dwarf2-frame.c: Update copyright.
1323         (enum dwarf2_reg_rule): Remove.
1324         (struct dwarf2_frame_state): Remove defenition of `struct
1325         dwarf2_frame_state_reg'.
1326         (read_reg): Call get_frame_arch to get the architecture instead of
1327         using CURRENT_GDBARCH.
1328         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
1329         DWARF2_FRAME_.
1330         (dwarf2_frame_init_reg): New function.
1331         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
1332         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
1333         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
1334         tags with DWARF2_FRAME_.
1335         (dwarf2_frame_prev_register): Call get_frame_arch to get the
1336         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
1337         dwarf2_reg_rule' tags with DWARF2_FRAME_.
1338
1339 2004-02-06  Andrew Cagney  <cagney@redhat.com>
1340
1341         * tui/tui-data.h (struct tui_list): Rename _TuiList.
1342         (enum tui_data_type): Rename _TuiDataType.
1343         (struct tui_layout_def): Rename _TuiLayoutDef.
1344         (struct tui_source_element): Rename _TuiSourceElement.
1345         (struct tui_data_element): Rename _TuiDataElement.
1346         (struct tui_command_element): Rename _TuiCommandElement.
1347         (struct tui_locator_element): Rename _TuiLocatorElement.
1348         (union tui_which_element): Define.
1349         (struct tui_win_element): Rename _TuiWinElement.
1350         (struct tui_data_info): Rename _TuiDataInfo.
1351         (struct tui_source_info): Rename _TuiSourceInfo.
1352         (struct tui_command_info): Rename _TuiCommandInfo.
1353         (tui_initialize_static_data): Rename initializeStaticData.
1354         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
1355         (tui_alloc_win_info): Rename allocWinInfo.
1356         (tui_init_generic_part): Rename initGenericPart.
1357         (tui_init_win_info): Rename initWinInfo.
1358         (tui_alloc_content): Rename allocContent.
1359         (tui_add_content_elements): Rename addContentElements.
1360         (tui_init_content_element): Rename initContentElement.
1361         (tui_free_window): Rename freeWindow.
1362         (tui_free_win_content): Rename freeWinContent.
1363         (tui_free_data_content): Rename freeDataContent.
1364         (tui_free_all_source_wins_content): Rename
1365         freeAllSourceWinsContent.
1366         (tui_del_window): Rename tuiDelWindow.
1367         (tui_del_data_windows): Rename tuiDelDataWindows.
1368         (tui_partial_win_by_name): Rename partialWinByName.
1369         (tui_win_name): Rename winName.
1370         (tui_current_layout): Rename currentLayout.
1371         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
1372         (tui_term_height): Rename termHeight.
1373         (tui_set_term_height_to): Rename setTermHeightTo.
1374         (tui_term_width): Rename termWidth.
1375         (tui_set_term_width_to): Rename setTermWidthTo.
1376         (tui_set_gen_win_origin): Rename setGenWinOrigin.
1377         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
1378         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
1379         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
1380         (tui_source_windows): Rename sourceWindows.
1381         (tui_clear_source_windows): Rename clearSourceWindows.
1382         (tui_clear_source_windows_detail): Rename
1383         clearSourceWindowsDetail.
1384         (tui_clear_win_detail): Rename clearWinDetail.
1385         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
1386         (tui_default_tab_len): Rename tuiDefaultTabLen.
1387         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
1388         (tui_win_with_focus): Rename tuiWinWithFocus.
1389         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
1390         (tui_layout_def): Rename tuiLayoutDef.
1391         (tui_win_resized): Rename tuiWinResized.
1392         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
1393         (tui_next_win): Rename tuiNextWin.
1394         (tui_prev_win): Rename tuiPrevWin.
1395         (tui_add_to_source_windows): Rename addToSourceWindows.
1396         * tui/tui-winsource.c, tui/tui-win.c: Update references.
1397         * tui/tui-layout.c, tui/tui-source.c: Ditto.
1398         * tui/tui-stack.c, tui/tui-io.c: Ditto.
1399         * tui/tui.c, tui/tui-data.c: Ditto.
1400         * tui/tui-interp.c, tui/tui-data.c: Ditto.
1401         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
1402
1403         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
1404         (struct symtab): Declare.
1405         (tui_set_source_content): Rename tuiSetSourceContent.
1406         (tui_show_symtab_source): Rename tuiShowSource.
1407         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
1408         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
1409         * tui/tui-source.c: Update copyright.  Update references.
1410         * tui/tui-win.c, tui/tui-winsource.c: Update references.
1411         * tui/tui-stack.c: Update references.
1412
1413         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
1414         (struct tui_win_info): Declare.
1415         (tui_scroll_forward): Rename tuiScrollForward.
1416         (tui_scroll_backward): Rename tuiScrollBackward.
1417         (tui_scroll_left): Rename tuiScrollLeft.
1418         (tui_scroll_right): Rename tuiScrollRight.
1419         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
1420         (tui_resize_all): Rename tuiResizeAll.
1421         (tui_refresh_all_win): Rename tuiRefreshAll.
1422         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
1423         * tui/tui-layout.c, * tui/tui-io.c: Update references.
1424         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
1425         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
1426
1427         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
1428         (tui_erase_data_content): Rename tuiEraseDataContent.
1429         (tui_display_all_data): Rename tuiDisplayAllData.
1430         (tui_check_data_values): Rename tuiCheckDataValues.
1431         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
1432         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
1433         (tui_first_data_element_no_in_line): Rename
1434         tuiFirstDataElementNoInLine.
1435         (tui_delete_data_content_windows): Rename
1436         tuiDeleteDataContentWindows.
1437         (tui_refresh_data_win): Rename tuiRefreshDataWin.
1438         (tui_display_data_from): Rename tuiDisplayDataFrom.
1439         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
1440         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
1441         * tui/tui-win.c, tui/tui-regs.c: Update references.
1442         * tui/tui-layout.c, tui/tui.c: Update references.
1443
1444         * tui/tui-wingeneral.h: Update copyright.
1445         (m_allBeVisible): Delete macro.
1446         (m_allBeInvisible): Delete macro.       
1447         (struct tui_gen_win_info): Declare.
1448         (struct tui_win_info): Declare.
1449         (tui_unhighlight_win): Rename unhighlightWin.
1450         (tui_make_visible, tui_make_invisible): Replace makeVisible.
1451         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
1452         (tui_make_window): Rename makeWindow.
1453         (tui_copy_win): Rename copyWin.
1454         (tui_box_win): Rename boxWin.
1455         (tui_highlight_win): Rename highlightWin.
1456         (tui_check_and_display_highlight_if_needed): Rename
1457         checkAndDisplayHighlightIfNeeded.
1458         (tui_refresh_all): Rename refreshAll.
1459         (tui_delete_win): Rename tuiDelwin.
1460         (tui_refresh_win): Rename tuiRefreshWin.
1461         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
1462         (tui_make_visible, tui_make_invisible): New functions.
1463         (tui_make_all_visible, tui_make_all_invisible): New functions.
1464         (make_all_visible): Rename makeAllVisible.
1465         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
1466         * tui/tui-data.c, tui/tui-winsource.c: Update references.
1467         * tui/tui-windata.c, tui/tui-win.c: Update references.
1468         * tui/tui-regs.c, tui/tui-layout.c: Update references.
1469         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
1470
1471 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
1472
1473         * proc-api.c (write_with_trace): Initialize local variable to
1474         silence compiler warning.
1475
1476 2004-02-06  Andrew Cagney  <cagney@redhat.com>
1477
1478         * tui/tui-source.h: Do not include "defs.h".
1479         (struct tui_win_info): Declare.
1480         (tui_set_source_content_nil): Declare.
1481         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
1482         (union tui_line_or_address): Rename _TuiLineOrAddress.
1483         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
1484         (tui_update_source_window): Rename tuiUpdateSourceWindow.
1485         (tui_update_source_window_as_is): Rename
1486         tuiUpdateSourceWindowAsIs.
1487         (tui_update_source_windows_with_addr): Rename
1488         tuiUpdateSourceWindowsWithAddr.
1489         (tui_update_source_windows_with_line): Rename
1490         tuiUpdateSourceWindowsWithLine.
1491         (tui_clear_source_content): Rename tuiClearSourceContent.
1492         (tui_erase_source_content): Rename tuiEraseSourceContent.
1493         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
1494         (tui_show_source_content): Rename tuiShowSourceContent.
1495         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
1496         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
1497         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
1498         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
1499         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
1500         (tui_update_exec_info): Rename tuiUpdateExecInfo.
1501         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
1502         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
1503         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
1504         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
1505         (struct tui_win_info): Declare.
1506         * tui/tui-stack.c: Update references.
1507         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
1508         * tui/tui-win.c, tui/tui-source.c: Ditto.
1509         * tui/tui.c, tui/tui-disasm.c: Ditto.
1510
1511 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
1512
1513         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
1514         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
1515
1516 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
1517
1518         * infrun.c (handle_inferior_event): Allow for breakpoint
1519         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
1520         and SIGEMT.  Update comments.
1521         * NEWS (Revised SPARC target): Mention support for non-executable
1522         stack.
1523
1524 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
1525
1526         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
1527         * inftarg.c: Update copyright year.
1528         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
1529         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
1530         (sparc_xfer_wcookie): New function.
1531         * sparc-tdep.c (sparc_fetch_wcookie): New function.
1532         * Makefile.in (sparc-nat.o): Update dependencies.
1533         * config/sparc/nm-nbsd.h: Include "target.h".
1534         (NATIVE_XFER_WCOOKIE): New define.
1535         (sparc_xfer_wcookie): New prototype.
1536
1537 2004-02-04  Andrew Cagney  <cagney@redhat.com>
1538
1539         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
1540         SYSCALL_TRAP function.
1541         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
1542
1543 2004-02-04  Andrew Cagney  <cagney@redhat.com>
1544             Daniel Jacobowitz  <drow@mvista.com>
1545
1546         * objfiles.h: Delete comments refering to inside_entry_func and
1547         DEPRECATED_FRAME_CHAIN_VALID.
1548         * defs.h (inside_entry_func): Update prototype..
1549         * blockframe.c (inside_entry_func): Rename to
1550         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
1551         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
1552
1553 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
1554
1555         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
1556         outside of #ifdef SOLIB_ADD region.
1557         (do_restore_lang_radix_cleanup): Ditto.
1558         (resolve_pending_breakpoint): Ditto.
1559
1560 2004-02-03  Andrew Cagney  <cagney@redhat.com>
1561
1562         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
1563         (process_note_abi_tag_sections): Delete unused function.
1564         (ia64_read_fp): Delete unused function.
1565         (gdbarch_extract_struct_value_address): Delete declaration.
1566
1567 2004-02-02  Andrew Cagney  <cagney@redhat.com>
1568
1569         * vax-tdep.c (vax_frame_chain): Delete call to
1570         deprecated_inside_entry_file.
1571         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
1572
1573 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
1574
1575         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
1576         column that's "empty" or "same value" when eliminating REG_RA
1577         rules.
1578
1579 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
1580
1581         * NEWS: Add information about new pending breakpoint support.
1582
1583 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
1584
1585         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
1586         and pending fields for pending breakpoint support.
1587         * breakpoint.c (breakpoint_enabled): Add check for not pending.
1588         (condition_command): Only parse condition if not a pending
1589         breakpoint.
1590         (print_one_breakpoint): Add support for pending breakpoints.
1591         (describe_other_breakpoints): Add checks to verify we are not
1592         dealing with pending breakpoints.
1593         (check_duplicates): Don't check pending breakpoints.
1594         (set_raw_breakpoint): Initialize pending flag.
1595         (do_restore_lang_radix_cleanup): New cleanup routine.
1596         (resolve_pending_breakpoint): New function.
1597         (re_enable_breakpoints_in_shlibs): Try and resolve any
1598         pending breakpoints via resolve_pending_breakpoint.
1599         (mention): Add pending breakpoint support.
1600         (parse_breakpoint_sals): Add new parameter to pass to
1601         decode_line_1 to indicate silent errors when files or functions
1602         are not found.  Change all callers.
1603         (do_captured_parse_breakpoint): New function.
1604         (break_command_1): Change prototype to return an rc value and to
1605         take an optional pending breakpoint pointer.  Support creating
1606         a pending breakpoint if a "not found" form of error occurs when
1607         parsing the breakpoint.  Also support resolving an existing pending
1608         breakpoint and be silent if the resolution fails.
1609         (create_breakpoints): Change prototype to take pending breakpoint
1610         pointer.  When resolving a pending breakpoint, use the new pointer
1611         to provide a conditional or commands added by the end-user.
1612         (delete_breakpoint): Add appropriate check for pending.
1613         (breakpoint_re_set_one): Ditto.
1614         (do_enable_breakpoint): Ditto.
1615
1616 2004-02-02  David Carlton  <carlton@kealia.com>
1617
1618         * valops.c (enum oload_classification): New.
1619         (find_overload_match): Break implementation into separate
1620         functions; delete #if 0'd code; look for symbols within
1621         namespaces.
1622         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
1623         (find_oload_champ,oload_method_static,classify_oload_match): New.
1624         * cp-support.h: Add declaration for cp_func_name; update
1625         declaration for make_symbol_overload_list.
1626         * cp-support.c (cp_func_name): New.
1627         (overload_list_add_symbol): Fix comment, use
1628         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
1629         (make_symbol_overload_list): Take a function name and a namespace
1630         instead of a symbol; change implementation.
1631         (make_symbol_overload_list_using): New.
1632         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
1633
1634 2004-02-02  Fred Fish  <fnf@redhat.com>
1635
1636         * main.c (gdb_stdtarg): Move definition to group with other
1637         gdb_stdtarg definitions and update copyright years.
1638         * remote-sim.c (gdb_os_write_stderr): Write output to
1639         gdb_stdtargerr stream instead of gdb_stdtarg stream.
1640         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
1641         gdb_stderr stream and update copyright years.
1642
1643 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
1644
1645         * Makefile.in (mips-linux-nat.o): Update dependencies.
1646         * mips-linux-nat.c: Include mips-tdep.h.
1647
1648 2004-02-01  Roland McGrath  <roland@redhat.com>
1649
1650         * sol-thread.c (sol_thread_xfer_partial): New function.
1651         (init_sol_thread_ops): Use that for to_xfer_partial hook.
1652         (init_sol_core_ops): Likewise.
1653
1654         * procfs.c (procfs_xfer_partial): New function.
1655         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
1656         * Makefile.in (procfs.o): Add $(auxv_h) dep.
1657
1658         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
1659         procfs_xfer_auxv function.
1660
1661         * procfs.c (procfs_make_note_section): If we can read
1662         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
1663         * linux-proc.c (linux_make_note_section): Likewise.
1664
1665         * auxv.h: New file.
1666         * auxv.c: New file.
1667         * Makefile.in (auxv_h): New variable.
1668         (COMMON_OBS): Add auxv.o here.
1669         (auxv.o): New target.
1670
1671         * corelow.c (core_xfer_partial): New function.
1672         (init_core_ops): Use it for core_ops.to_xfer_partial.
1673
1674         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
1675         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
1676         macro if that is defined.
1677
1678 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
1679
1680         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
1681         and check the specified thread for each breakpoint.
1682         * breakpoint.h (bpstat_stop_status): Update prototype.
1683         * infrun.c (handle_inferior_event): Update calls to
1684         bpstat_stop_status.
1685
1686 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
1687
1688         * Makefile.in (cli-cmds.o): Add $(readline_h).
1689
1690 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
1691
1692         * cli/cli-cmds.c: Include readline.h.
1693         (complete_command): Pass the start of the last word to
1694         complete_line.
1695
1696 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
1697
1698         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
1699         argument, and change first argument to a CORE_ADDR.
1700         * breakpoint.h (bpstat_stop_status): Update prototype.
1701         * infrun.c (adjust_pc_after_break): Add a new comment.
1702         (handle_inferior_event): Update calls to bpstat_stop_status.
1703
1704 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
1705
1706         * breakpoint.h: Update copyright years.
1707
1708 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
1709
1710         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
1711         (bpstat_stop_status): Don't decrement PC.
1712         * breakpoint.h (software_breakpoint_inserted_here_p): Add
1713         prototype.
1714         * infrun.c (adjust_pc_after_break): New function.
1715         (handle_inferior_event): Call it, early.  Remove later references
1716         to DECR_PC_AFTER_BREAK.
1717         (normal_stop): Add commentary.
1718
1719 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
1720
1721         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
1722         2004-01-27 double-free fix.
1723
1724 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
1725
1726         * sparc-tdep.c (sparc_fetch_wcookie): New function.
1727         (sparc32_frame_prev_register): Handle StackGhost.
1728         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
1729
1730 2004-01-29  Roland McGrath  <roland@redhat.com>
1731
1732         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
1733         * configure: Regenerated.
1734
1735         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
1736         * Makefile.in (procfs.o): Add dep.
1737
1738 2004-01-28  Andrew Cagney  <cagney@redhat.com>
1739
1740         * tui/tui-stack.h: Update copyright.
1741         (struct frame_info): Add opaque declaration.
1742         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
1743         (tui_show_locator_content): Rename tuiShowLocatorContent.
1744         (tui_show_frame_info): Rename tuiShowFrameInfo.
1745         * tui/tui-stack.c: Update copyright.  Update references.
1746         * tui/tui-winsource.c: Update references.
1747         * tui/tui-win.c: Update references.
1748         * tui/tui-layout.c: Update references.
1749         * tui/tui-hooks.c: Update copyright, update references.
1750         * tui/tui.c: Update copyright, update references.
1751         * tui/tui-disasm.c: Update references.
1752
1753 2004-01-28  David Carlton  <carlton@kealia.com>
1754
1755         * dwarf2read.c (add_partial_structure): Use demangled name if
1756         namespace equals "".
1757
1758 2004-01-27  Jim Blandy  <jimb@redhat.com>
1759
1760         Clean up misapplied patch:
1761         * dwarf2read.c (determine_prefix): Change one of the two forward
1762         declarations for 'determine_prefix_aux' to a declaration for this.
1763         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
1764         argument to 'die_specification'.
1765
1766         * dwarf2read.c (read_func_scope): Re-indent comment.
1767
1768 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
1769
1770         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
1771         b->exp to NULL after freeing so that error during re-parsing or
1772         evaluation of expressions associated with breakpoint don't
1773         eventually lead to re-freeing of storage.
1774         Committed by Andrew Cagney.
1775
1776 2004-01-27  Andrew Cagney  <cagney@redhat.com>
1777
1778         * source.c (ambiguous_line_spec): Delete undefined declaration.
1779         * m32r-rom.c (m32r_set_board_address): Delete unused function.
1780         (m32r_set_server_address, m32r_set_download_path): Ditto.
1781         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
1782
1783 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
1784
1785         * dwarf2read.c: Update calls to changed and renamed functions, and
1786         references to moved variables.
1787
1788         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
1789         language, language_defn, list_in_scope, and ftypes members.
1790         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
1791         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
1792         (baseaddr): Remove globals.
1793
1794         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
1795         (set_cu_language, die_is_declaration, die_specification)
1796         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
1797         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
1798         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
1799         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
1800
1801         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
1802         cu.list_in_scope.  Don't initialize cu_header_offset.
1803         (add_partial_symbol): Add local baseaddr.
1804         (psymtab_to_symtab_1): Add local baseaddr.  Use
1805         objfile->section_offsets for consistency.  Don't initialize
1806         cu_header_offset; do initialize cu.header.offset and
1807         cu.list_in_scope.
1808         (read_file_scope, read_func_scope, read_lexical_block_scope)
1809         (dwarf_decode_lines, new_symbol): Add local baseaddr.
1810
1811 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
1812
1813         * PROBLEMS: Add gdb/1516.
1814
1815 2003-12-29  Robert Millan  <robertmh@gnu.org>
1816
1817         Patch committed by Andrw Cagney.
1818         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
1819         * configure.tgt: Match knetbsd*-gnu.
1820
1821 2004-01-26  Andrew Cagney  <cagney@redhat.com>
1822
1823         * breakpoint.c (catch_command_1): Delete #ifdef code.
1824         (catch_fork_command_1): Delete #ifdef wrapper.
1825         (catch_exec_command_1): Ditto.
1826         (catch_load_command_1): Ditto.
1827         (catch_unload_command_1): Ditto.
1828
1829         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
1830         (catch_breakpoint): Delete #if0ed function.
1831         (disable_catch_breakpoint): Ditto.
1832         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
1833         (disable_catch, enable_catch, delete_catch): Ditto.
1834
1835 2004-01-26  Andrew Cagney  <cagney@redhat.com>
1836
1837         * remote.c (echo_check, quit_flag): Delete variables.
1838         (cisco_kernel_mode): Delete variable.
1839         (minitelnet_return, tty_input, escape_count): Delete variables.
1840         (remote_cisco_mode): Delete variable.
1841         (remote_cisco_open, remote_cisco_close): Delete function.
1842         (remote_cisco_mourn, remote_cisco_wait): Delete function.
1843         (init_remote_cisco_ops): Delete function.
1844         (_initialize_remote): Do not install "remote cisco" code.
1845         (read_frame): Delete cisco specific code.
1846         (remote_info_process): Delete function.
1847         (remote_wait): Delete cisco specific code.
1848         (remote_cisco_section_offsets): Delete function.
1849         (remote_cisco_objfile_relocate): Delete function.
1850         (remote_async_wait): Delete cisco specific code.
1851         (minitelnet, readtty, readsocket): Delete function.
1852
1853 2004-01-26  Andrew Cagney  <cagney@redhat.com>
1854
1855         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
1856         comments mentioning extract_returned_value_address.
1857         * infcmd.c (print_return_value): Update.  Add comments on
1858         extract_returned_value_address.
1859         * stack.c (return_command): Add comments on
1860         extract_returned_value_address.
1861         * values.c: Update comment.
1862         * m32r-tdep.c: Update comment.
1863         * sparc-tdep.c: Update comment.
1864         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
1865         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1866         * sh64-tdep.c (sh64_gdbarch_init): Update.
1867         * sh-tdep.c (sh_gdbarch_init): Update.
1868         * s390-tdep.c (s390_gdbarch_init): Update.
1869         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1870         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
1871         * m68k-tdep.c (m68k_gdbarch_init): Update.
1872         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1873         * m32r-tdep.c (m32r_gdbarch_init): Update.
1874         * ia64-tdep.c (ia64_gdbarch_init): Update.
1875         * h8300-tdep.c (h8300_gdbarch_init): Update.
1876         * frv-tdep.c (frv_gdbarch_init): Update.
1877         * arm-tdep.c (arm_gdbarch_init): Update.
1878         * alpha-tdep.c (alpha_gdbarch_init): Update.
1879
1880 2004-01-26  Andrew Cagney  <cagney@redhat.com>
1881
1882         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
1883         SYMBOL_LOCATION_FUNCS
1884         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
1885         "struct symbol_ops".
1886         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
1887         type to "struct symbol_ops".
1888         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
1889         (struct symbol): Replace ".aux_value.loc.funcs" and
1890         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
1891         (SYMBOL_OBJFILE): Delete macro.
1892         (SYMBOL_LOCATION_FUNCS): Delete macro.
1893         (SYMBOL_LOCATION_BATON): Update.
1894         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
1895         intead of SYMBOL_LOCATION_FUNCS.
1896         * ax-gdb.c (gen_var_ref): Ditto.
1897         * printcmd.c (address_info): Ditto.
1898         * findvar.c (read_var_value): Ditto.
1899         (symbol_read_needs_frame): Ditto.
1900
1901 2004-01-26  Andrew Cagney  <cagney@redhat.com>
1902
1903         * dwarf2read.c (read_func_scope): Document frame-base hack.
1904
1905 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
1906
1907         * infcmd.c (print_return_value): Plug memory leak; delete
1908         ui_stream object.  Rename argument `structure_return' to
1909         `struct_return'.
1910
1911 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
1912
1913         * infcmd.c (print_return_value): Wrap long lines.
1914         (finish_command_continuation, finish_command): Remove unused
1915         variable `funcaddr'.  Fix some coding-standards problems.
1916
1917         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
1918         SECT_SIZE is large enough, not wheter it's exactly the right size.
1919         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
1920         TDEP->fpregset to zero.
1921
1922         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
1923         floating-point registers for traditional NetBSD core files.
1924         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
1925         TDEP->sizeof_fpregset here.
1926
1927 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
1928
1929         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
1930         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
1931         function with code split out from
1932         sparc32nbsd_sigcontext_frame_cache.
1933         (sparc32nbsd_sigcontext_frame_cache): Use
1934         sparc32nbsd_sigcontext_saved_regs.
1935         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
1936         OpenBSD.
1937         * sparcobsd-tdep.c: New file.
1938         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
1939         (sparcobsd-tdep.o): New dependency.
1940         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
1941         * config/sparc/obsd.mt: New file.
1942
1943         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
1944         TDEP->fpregset to be initialized to enable core file register
1945         sets.
1946
1947 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
1948
1949         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1950         Add opaque declarations.
1951         (sparc64nbsd_sigcontext_saved_regs): New prototype.
1952         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
1953         function with code split out from
1954         sparc64nbsd_sigcontext_frame_cache.
1955         (sparc64nbsd_sigcontext_frame_cache): Use
1956         sparc64nbsd_sigcontext_saved_regs.
1957         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
1958         OpenBSD.
1959         * sparc64obsd-tdep.c: New file.
1960         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
1961         (sparc64obsd-tdep.o): New dependency.
1962         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
1963         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
1964         * config/sparc/obsd64.mt: New file.
1965
1966         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
1967         read the instruction at PC.
1968
1969         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
1970         value of GDB_OSABI_DEFAULT.
1971         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
1972         instead of GDB_OSABI_NETBSD_AOUT.
1973
1974 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
1975
1976         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
1977         copyright.
1978
1979 2004-01-23  Andrew Cagney  <cagney@redhat.com>
1980
1981         * printcmd.c (display_command): Replace tui_set_display call with
1982         tui_set_layout_for_display_command.
1983         * tui/tui.h (enum tui_win_type): Define.
1984         (tui_set_layout): Delete declaration.
1985         (tui_set_layout_for_display_command): Rename set_tui_layout.
1986         * tui/tui-data.h (enum tui_layout_type): Define.
1987         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
1988         "tui.h".
1989         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
1990         (tui_default_win_height): Rename tuiDefaultWinHeight.
1991         (tui_default_win_viewport_height): Rename
1992         tuiDefaultWinViewportHeight.
1993         (tui_set_layout): RenametuiSetLayout.
1994         * tui/tui-layout.c: Update references.
1995         * tui/tui.c: Update references.
1996         * tui/tui-disasm.c: Update references.
1997
1998 2004-01-23  David Carlton  <carlton@kealia.com>
1999
2000         Partial workaround for PR c++/1511:
2001         * cp-namespace.c: Include frame.h.
2002         (cp_lookup_transparent_type): New
2003         (cp_lookup_transparent_type_loop): New.
2004         * cp-support.h: Declare cp_lookup_transparent_type.
2005         * symtab.c (basic_lookup_transparent_type): Renamed from
2006         lookup_transparent_type.
2007         (lookup_transparent_type): Replace old body by a call to
2008         current_language->la_lookup_transparent_type.
2009         * symtab.h: Update copyright.  Declare
2010         basic_lookup_transparent_type.
2011         * language.h: Update copyright.
2012         (struct language_defn): Add la_lookup_transparent_type.
2013         * language.c: Update copyright.
2014         (unknown_language_defn): Add basic_lookup_transparent_type.
2015         (auto_language_defn): Add basic_lookup_transparent_type.
2016         (local_language_defn): Add basic_lookup_transparent_type.
2017         * ada-lang.c: Update copyright.
2018         (ada_language_defn): Add basic_lookup_transparent_type.
2019         * c-lang.c: Update copyright.
2020         (c_language_defn): Add basic_lookup_transparent_type.
2021         (cplus_language_defn): Add basic_lookup_transparent_type.
2022         (asm_language_defn): Add basic_lookup_transparent_type.
2023         (minimal_language_defn): Add basic_lookup_transparent_type.
2024         * f-lang.c: Update copyright.
2025         (f_language_defn): Add basic_lookup_transparent_type.
2026         * jv-lang.c: Update copyright.
2027         (java_language_defn): Add basic_lookup_transparent_type.
2028         * m2-lang.c: Update copyright.
2029         (m2_language_defn): Add basic_lookup_transparent_type.
2030         * objc-lang.c: Update copyright.
2031         (objc_language_defn): Add basic_lookup_transparent_type.
2032         * p-lang.c: Update copyright.
2033         (p_language_defn): Add basic_lookup_transparent_type.
2034         * scm-lang.c: Update copyright.
2035         (scm_language_defn): Add basic_lookup_transparent_type.
2036         * Makefile.in (cp-namespace.o): Depend on frame.h.
2037
2038 2004-01-23  David Carlton  <carlton@kealia.com>
2039
2040         Patch for PR c++/1520:
2041         * dwarf2read.c (read_func_scope): Set processing_current_prefix
2042         properly if we have a specification die.
2043         (determine_prefix_aux): Rename from determine_prefix.
2044         (determine_prefix): Like the old determine_prefix, but never
2045         returns NULL.
2046
2047 2004-01-23  Theodore A. Roth  <troth@openavr.org>
2048
2049         * avr-tdep.c: Update copyright.
2050         (avr_iaddr_p): Delete unused function.
2051         (avr_saddr_p): Delete unused function.
2052
2053 2004-01-23  David Carlton  <carlton@kealia.com>
2054
2055         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
2056         Fix for PR symtab/1534.
2057
2058 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
2059
2060         * NEWS (New native configurations): Mention OpenBSD/sparc and
2061         OpenBSD/sparc64.
2062         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
2063         * configure.host: Likewise.
2064         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
2065         handler for OpenBSD.
2066         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
2067
2068 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
2069
2070         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
2071         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
2072
2073         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
2074         * cli/cli-cmds.c (shell_escape): Likewise.
2075
2076         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
2077         OpenBSD .note.openbsd.ident sections.
2078
2079 2004-01-22  David Carlton  <carlton@kealia.com>
2080
2081         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
2082         get_scope_pc_bounds.
2083         (read_file_scope): Ditto.
2084         (get_scope_pc_bounds): New function, produced by extracting code
2085         from the above two functions, consolidating it, and adding support
2086         for DW_TAG_namespace.
2087
2088 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
2089
2090         * osabi.c (MAX_NOTESZ): New define.
2091         (check_note): New function.
2092         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
2093         check_note.
2094
2095 2004-01-21  Roland McGrath  <roland@redhat.com>
2096
2097         * MAINTAINERS (write after approval): Add myself.
2098
2099 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
2100
2101         * utils.c (init_page_info): Move declarations of `rows' and
2102         `cols' before the __GO32__-specific code.  Move the closing brace
2103         outside the #ifdef __GO32__..#endif block.
2104         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
2105
2106 2004-01-21  Paul Brook  <paul@codesourcery.com>
2107
2108         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
2109         BPSTAT_WHAT_CHECK_SHLIBS.
2110
2111 2004-01-21  Paul Brook  <paul@codesourcery.com>
2112
2113         * MAINTAINERS: Add myself to write-after-approval.
2114
2115 2004-01-20  Andrew Cagney  <cagney@redhat.com>
2116
2117         * ax-gdb.c (print_axs_value): Delete unused function.
2118         * jv-lang.c (java_lookup_type): Delete unused function.
2119         * cli/cli-dump.c (dump_filetype): Delete unused function.
2120         * remote-mips.c (remote_mips_insert_hw_breakpoint)
2121         (remote_mips_remove_hw_breakpoint): Delete unused functions.
2122         (mips_getstring): Delete unused function.
2123         (pmon_insert_breakpoint): Delete #if0ed function.
2124         (PMON_MAX_BP): Delete #if0ed MACRO.
2125         (mips_pmon_bp_info): Delete #if0ed variable.
2126         (pmon_remove_breakpoint): Delete #if0ed function.
2127         * monitor.c (monitor_write_even_block): Delete unused function.
2128         (monitor_write_memory_block): Delete #if0ed code.
2129         * dink32-rom.c (dink32_load): Delete unused function.
2130         (_initialize_dink32_rom): Delete #if0ed code.
2131         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
2132
2133         * tui/tui-command.c: Update references.
2134         * tui/tui-io.c: Update references.
2135         * tui/tui-command.h: Update copyright.
2136         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
2137
2138         * source.c (ambiguous_line_spec): Delete never-defined function.
2139         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
2140         * gdbtypes.c (add_name, add_mangled_type): Ditto.
2141         * cli/cli-cmds.c (validate_comname): Ditto.
2142
2143         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
2144         "tui-data.h".
2145         (tui_set_disassem_content): Rename tuiSetDisassemContent.
2146         (tui_show_disassem): Rename tuiShowDisassem.
2147         (tui_show_disassem_and_update_source): Rename
2148         tuiVerticalDisassemScroll.
2149         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
2150         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
2151         * tui/tui.h: Update copyright.
2152         (enum tui_status): Define.
2153         * tui/tui-data.h (enum tui_scroll_direction): Define.
2154         * tui/tui-disasm.c: Update copyright.  Update references.
2155         * tui/tui-winsource.c:  Update copyright.  Update references.
2156         * tui/tui-win.c: Update references.
2157         * tui/tui-layout.c: Update references.
2158
2159 2004-01-20  Andrew Cagney  <cagney@redhat.com>
2160
2161         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
2162         sym2 to start of block.
2163
2164 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
2165
2166         * MAINTAINERS: Delete mmalloc.
2167         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
2168         * NEWS: Mention removal of --with-malloc.
2169         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
2170         * config.in: Regenerate.
2171         * configure: Regenerate.
2172         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
2173         USE_MMALLOC, MMCHECK_FORCE.
2174         * gdbinit.in: Remove mmalloc.
2175         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
2176         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
2177         * config/i386/go32.mh: Likewise.
2178         * config/i386/interix.mh: Likewise.
2179         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
2180
2181 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
2182
2183         * linespec.c (decode_variable, symtab_from_filename):  Call
2184         error_silent with error message instead of throwing an exception
2185         directly.
2186         * defs.h (error_silent, error_output_message): Add prototypes.
2187         (catch_exceptions_with_msg): Ditto.
2188         * utils.c (error_silent, error_output_message): New functions.
2189         * top.c (catch_exceptions_with_msg): New function.
2190
2191 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
2192
2193         * mi/mi-cmds.h (enum print_values): Add definition.
2194
2195         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
2196         type and value for simple data types and just the name and type
2197         for complex ones, if required.
2198
2199         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
2200         children, if required.
2201
2202 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
2203
2204         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
2205         unused declarations.
2206
2207 2004-01-19  Andrew Cagney  <cagney@redhat.com>
2208
2209         * top.h (mapped_symbol_files): Delete declaration.
2210         * main.c (captured_main): Delete option "m" and "mapped".
2211         * objfiles.c (mapped_symbol_files): Delete variable.
2212         * symfile.c (symbol_file_command): Delete mmap code.
2213         (symbol_file_add_with_addrs_or_offsets): Ditto.
2214         (add_symbol_file_command, reread_separate_symbols): Ditto.
2215         * objfiles.h (OBJF_MAPPED): Delete.
2216         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
2217         (free_objfile) [USE_MMALLOC]: Ditto.
2218         (open_existing_mapped_file): Delete function.
2219         (open_mapped_file): Delete function.
2220         (map_to_file): Delete function.
2221
2222 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
2223
2224         * infrun.c (step_into_function): Account for possible breakpoint
2225         adjustment when computing ``stop_func_start''.
2226
2227 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
2228
2229         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
2230         the region size against the size of a pointer, not the size of
2231         a register as given by DEPRECATED_REGISTER_SIZE.
2232
2233 2004-01-19  Andrew Cagney  <cagney@redhat.com>
2234
2235         * tui/tui-regs.h: Include "tui-data.h".
2236         (tuiFirstRegElementNoInLine): Delete declaration.
2237         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
2238         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
2239         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
2240         (tui_calculate_regs_column_count): Rename
2241         tuiCalculateRegsColumnCount.
2242         (tui_check_register_values): Rename tuiCheckRegisterValues.
2243         (tui_show_registers): Rename tuiShowRegisters.
2244         (tui_display_registers_from_line): Rename
2245         tuiDisplayRegistersFromLine.
2246         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
2247         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
2248         (tui_first_reg_element_no_inline): Rename
2249         tuiFirstRegElementNoInLine.
2250         * tui/tui-data.h: Update copyright.
2251         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
2252         * tui/tui-windata.c: Update copyright, update references.
2253         * tui/tui-regs.c: Update copyright, update references.
2254         * tui/tui-win.c: Update copyright, update references.
2255         * tui/tui-layout.c: Update copyright, update references.
2256
2257 2004-01-18  Andrew Cagney  <cagney@redhat.com>
2258
2259         * tui/tui-io.c: Update copyright.
2260         (key_is_end_sequence, key_is_backspace): New functions.
2261         (key_is_command_char, key_is_start_sequence): New function.
2262         (tui_getc): Update references.
2263         * tui/tui-io.h: Update copyright.
2264         (m_tuiStartNewLine): Delete macro.
2265         (m_isBackspace, m_isDeleteChar): Delete macros.
2266         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
2267         (m_isNextPage, m_isPrevPage): Delete macros.
2268         (m_isLeftArrow, m_isRightArrow): Delete macros.
2269         (m_isXdbStyleCommandChar): Delete macro.
2270         (key_is_start_sequence): Declare, replace m_isStartSequence.
2271         (key_is_end_sequence): Declare, replace m_isEndSequence.
2272         (key_is_backspace): Declare ,replace m_isBackspace.
2273         (key_is_command_char): Declare, replace m_isCommandChar.
2274         * tui/tui-command.c: Update copyright.
2275         (tuiDispatchCtrlChar): Update references.
2276
2277         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
2278         tuiSourceWin.h.
2279
2280         * tui/tui-command.c: Rename tui/tuiCommand.c.
2281         * tui/tui-command.h: Rename tui/tuiCommand.h.
2282         * tui/tui-data.c: Rename tui/tuiData.c.
2283         * tui/tui-data.h: Rename tui/tuiData.h.
2284         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
2285         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
2286         * tui/tui-io.c: Rename tui/tuiIO.c.
2287         * tui/tui-io.h: Rename tui/tuiIO.h.
2288         * tui/tui-layout.c: Rename tui/tuiLayout.c.
2289         * tui/tui-layout.h: Rename tui/tuiLayout.h.
2290         * tui/tui-regs.c: Rename tui/tuiRegs.c.
2291         * tui/tui-regs.h: Rename tui/tuiRegs.h.
2292         * tui/tui-source.c: Rename tui/tuiSource.c.
2293         * tui/tui-source.h: Rename tui/tuiSource.h.
2294         * tui/tui-stack.c: Rename tui/tuiStack.c.
2295         * tui/tui-stack.h: Rename tui/tuiStack.h.
2296         * tui/tui-win.c: Rename tui/tuiWin.c.
2297         * tui/tui-win.h: Rename tui/tuiWin.h.
2298         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
2299         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
2300         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
2301         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
2302         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
2303         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
2304         * tui/tui-file.c: Update includes.
2305         * tui/tui-hooks.c: Update includes.
2306         * tui/tui-interp.c: Update includes.
2307         * tui/tui.c: Update includes.
2308         * Makefile.in: Update all tui/ dependencies.
2309         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
2310
2311         * Makefile.in: Update copyright.  Update dependencies.
2312
2313         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
2314         problem.
2315
2316 2004-01-18  Andrew Cagney  <cagney@redhat.com>
2317
2318         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
2319         instead of register_gdbarch_init.
2320
2321         * remote-sds.c (tohex): Delete unused function.  Update copyright.
2322         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
2323         * v850-tdep.c (v850_register_virtual_size): Ditto.
2324         * target.c (normal_target_post_startup_inferior): Ditto.
2325         * source.c (ambiguous_line_spec): Ditto.
2326         * remote.c (adapt_remote_get_threadinfo): Ditto.
2327         * mi/mi-out.c (out_field_fmt): Ditto.
2328         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
2329         (output_control_change_notification): Ditto.
2330         * m68k-tdep.c (m68k_register_byte): Ditto.
2331         (m68k_remote_breakpoint_from_pc): Ditto.
2332         * ui-out.c (init_ui_out_state): Delete unused declaration.
2333         * stabsread.c (search_value): Ditto.
2334         * mi/mi-cmd-env.c (env_cli_command): Ditto.
2335         * maint.c (print_section_table): Ditto.
2336         * infrun.c (set_follow_fork_mode_command): Ditto.
2337
2338 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
2339
2340         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
2341         DW_CFA_def_cfa_exporession.  Add support for
2342         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
2343         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
2344
2345 2004-01-18  Andrew Cagney  <cagney@redhat.com>
2346
2347         * ocd.c: Update copyright.
2348         (bdm_read_register_command): Delete unused function.
2349         (_initialize_remote_ocd): Delete commented out reference.
2350         (get_quoted_char, reset_packet): Delete #if0ed function.
2351         (output_packet, put_quoted_char): Delete #if0ed function.
2352         (stu_put_packet, stu_get_packet): Delete #if0ed function.
2353         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
2354         (BDM_BREAKPOINT): Delete #if0ed macro.
2355         (remote_timeout): Delete #if0ed variable.
2356
2357 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
2358
2359         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
2360         (core-sol2.o): Remove dependency.
2361         * core-sol2.c: Remove file.
2362
2363 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2364
2365         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
2366         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
2367         enums.
2368
2369 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2370
2371         * remote.c: Update copyright years.
2372
2373 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2374
2375         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
2376
2377 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2378
2379         * mdebugread.c: Update copyright.
2380         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
2381         (parse_type, parse_procedure): Ditto.
2382         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
2383
2384         * cris-tdep.c (cris_store_struct_return): Put back accidently
2385         deleted function.
2386
2387         * gdbarch.sh: Update copyright year.
2388         * gdbarch.h, gdbarch.c: Re-generate.
2389
2390 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2391
2392         Suggested by George Anzinger.
2393         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
2394         correct stack offset.  Include unknown opcode numbers in the error
2395         message.
2396
2397 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2398
2399         * x86-64-tdep.c (x86_64_init_abi): No need to clear
2400         extract_struct_value_address, i386 does not set it.
2401         * sparc64-tdep.c (sparc64_init_abi): Do not set
2402         extract_struct_value_address, never called.
2403         (sparc64_extract_struct_value_address): Delete function.
2404         * m68hc11-tdep.c: Update copyright.
2405         (m68hc11_gdbarch_init): Delete redundant assignment of
2406         extract_struct_value_address.
2407         * i386-tdep.c: Update copyright.
2408         (i386_gdbarch_init): Do not set extract_struct_value_address,
2409         never called.
2410         (i386_extract_struct_value_address): Delete function.
2411         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
2412         extract_struct_value_address, never called.
2413         (sparc32_extract_struct_value_address): #if 0 function.  Add
2414         comments explaining its future.
2415
2416 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2417
2418         * arm-tdep.c (arm_write_pc): New function.
2419         (arm_gdbarch_init): Call set_gdbarch_write_pc.
2420
2421 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
2422
2423         * breakpoint.c (must_shift_inst_regs): Delete.
2424         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
2425         and SHIFT_INST_REGS.
2426         * infcmd.c (step_1, step_1_continuation): Delete references to
2427         SHIFT_INST_REGS.
2428         * infrun.c (keep_going): Likewise.
2429         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
2430         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
2431
2432 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2433
2434         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2435         * gdbarch.h, gdbarch.c: Re-generate.
2436         * infcmd.c (print_return_value): Delete reference to
2437         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2438
2439         * cris-tdep.c (cris_gdbarch_init): Do not set
2440         deprecated_extract_struct_value_address.
2441
2442         * xstormy16-tdep.c: Update copyright.
2443         (xstormy16_extract_struct_value_address): Update to current
2444         extract struct value address interface.
2445         (xstormy16_gdbarch_init): Set extract_struct_value_address.
2446         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
2447         current extract struct value address interface.
2448         (sh64_gdbarch_init): Set extract_struct_value_address.
2449
2450         * cris-tdep.c: Update copyright.
2451         (cris_extract_struct_value_address): Delete function.
2452         (struct_return_address): Delete variable.
2453         (cris_store_struct_return): Do not set struct_return_address.
2454
2455         * mcore-tdep.c: Update copyright.
2456         (mcore_extract_struct_value_address): Delete function.  Update
2457         comments.
2458         (mcore_gdbarch_init): Update.
2459         * mn10300-tdep.c: Update copyright.
2460         (mn10300_extract_struct_value_address): Delete function.
2461         (mn10300_gdbarch_init): Update.
2462         * v850-tdep.c: Update copyright.
2463         (v850_extract_struct_value_address): Delete.
2464         (v850_gdbarch_init): Update.
2465         * ns32k-tdep.c: Update copyright.
2466         (ns32k_extract_struct_value_address): Delete.
2467         (ns32k_gdbarch_init): Update.
2468         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
2469         (hppa_gdbarch_init): Update.
2470         * vax-tdep.c: Update copyright.
2471         (vax_extract_struct_value_address): Delete.
2472         (vax_gdbarch_init): Update.
2473
2474         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
2475         * gdbarch.h, gdbarch.c: Re-generate.
2476         * procfs.c (procfs_fetch_registers): Delete reference to
2477         DEPRECATED_NPC_REGNUM.
2478         (procfs_store_registers): Ditto.
2479         * regcache.c (generic_target_write_pc): Simplify.
2480         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
2481
2482         * core-sol2.c (fetch_core_registers): Replace
2483         DEPRECATED_NPC_REGNUM with equivalent tdep value.
2484
2485         * hppa-tdep.c: Update copyright year.
2486         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
2487         NPC_REGNUM.
2488         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
2489
2490         * mips-tdep.c (mips_write_pc): New function.
2491         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
2492         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
2493         (mips_find_saved_regs, mips_software_single_step: Ditto.
2494         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
2495         mips_init_extra_frame_info, mips_pop_frame): Ditto.
2496
2497 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2498
2499         * mips-tdep.c: Re-indent.  Group functions by ABI.
2500
2501 2004-01-17  Andrew Cagney  <cagney@redhat.com>
2502
2503         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
2504         * gdbarch.c: Re-generate.
2505         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2506         DECR_PC_AFTER_BREAK to zero.
2507         * vax-tdep.c (vax_gdbarch_init): Ditto.
2508         * v850-tdep.c (v850_gdbarch_init): Ditto.
2509         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
2510         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2511         * sh-tdep.c (sh_gdbarch_init): Ditto.
2512         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2513         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2514         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2515         * mips-tdep.c (mips_gdbarch_init): Ditto.
2516         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2517         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2518         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2519         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2520         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2521         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2522         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2523         * frv-tdep.c (frv_gdbarch_init): Ditto.
2524         * cris-tdep.c (cris_gdbarch_init): Ditto.
2525         * avr-tdep.c (avr_gdbarch_init): Ditto.
2526         * arm-tdep.c (arm_gdbarch_init): Ditto.
2527         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
2528
2529 2004-01-17  J. Brobecker  <brobecker@gnat.com>
2530
2531         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
2532         Delete, no longer used.
2533         (read_subrange_type): New function, mostly extracted from
2534         read_array_type().
2535         (read_array_type): Replace extracted code by call to
2536         read_subrange_type().
2537         (dwarf2_get_attr_constant_value): New function.
2538         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
2539         (add_partial_symbol): Likewise.
2540         (process_die): Likewise.
2541         (new_symbol): Likewise.
2542         (read_type_die): Likewise.
2543
2544 2004-01-16  Andrew Cagney  <cagney@redhat.com>
2545
2546         * symfile.c: Update copyright year.
2547         (compare_symbols): Delete unused function.
2548         * stabsread.c: Update copyright year.
2549         (lrs_general_complaint): Delete unused function.
2550         (ref_search_value): Ditto.
2551         (get_substring): Delete declaration.
2552         * sh64-tdep.c: Update copyright year.
2553         (sh64_get_gdb_regnum): Delete unused function.
2554         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
2555         Delete unused function.
2556
2557 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
2558
2559         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
2560         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
2561
2562 2004-01-16  Andrew Cagney  <cagney@redhat.com>
2563
2564         Changes from Peter Schauer.
2565         * rs6000-tdep.c: Update copyright year.
2566         (rs6000_push_dummy_call): Update the stack pointer before
2567         accessing the corresponding stack region.
2568         * rs6000-nat.c: Update copyright year.
2569         (set_host_arch): Set "info.abfd" to "exec_bfd".
2570
2571 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
2572
2573         * blockframe.c: Update copyright year.
2574         (inside_entry_func): Don't treat a zero PC specially.
2575
2576 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
2577
2578         * gcore.c (gcore_copy_callback): Use paddr_d to print size
2579         variable.
2580         (gcore_create_callback): Ditto.  Skip any memory segment that has
2581         no permissions set.
2582
2583 2004-01-14  David Carlton  <carlton@kealia.com>
2584
2585         Change symbols for C++ nested types to contain the fully qualified
2586         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
2587         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
2588         c++/895.
2589         * c-exp.y (qualified_type): Handle types nested within classes.
2590         * cp-namespace.c: Update comments.
2591         (cp_set_block_scope): Delete #if 0.
2592         (cp_lookup_nested_type): Handle types nested within classes.
2593         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
2594         when appropriate.
2595         (add_partial_symbol): Add the name of the enclosing namespace to
2596         types.
2597         (pdi_needs_namespace): New.
2598         (add_partial_namespace): Tweak comment.
2599         (add_partial_structure): New.
2600         (psymtab_to_symtab_1): Initialize processing_current_prefix
2601         here...
2602         (process_die): instead of here.
2603         (read_structure_scope): Try to figure out the name of the class or
2604         namespace that the structure might be defined within.
2605         (read_enumeration): Generate fully-qualified names, if possible.
2606         (read_namespace): Don't set name to NULL.
2607         (die_specification): New.
2608         (new_symbol): Generate fully-qualified names for types.
2609         (read_type_die): Determine appropriate prefix.
2610         (determine_prefix): New.
2611         (typename_concat): New.
2612         (class_name): New.
2613         * valops.c (value_aggregate_elt): Pass NOSIDE to
2614         value_struct_elt_for_reference.
2615         (value_struct_elt_for_reference): Make static, add NOSIDE
2616         parameter, call value_maybe_namespace_elt as a last resort.
2617         (value_namespace_elt): Break out code into
2618         value_maybe_namespace_elt.
2619         (value_maybe_namespace_elt): New.
2620
2621 2004-01-12  Andrew Cagney  <cagney@redhat.com>
2622
2623         * mips-tdep.c (mips_convert_register_p): Handle both raw and
2624         cooked floating-point registers.
2625         (mips_gdbarch_init): Set convert_register_p, register_to_value,
2626         and value_to_register.
2627
2628 2004-01-13  Andrew Cagney  <cagney@redhat.com>
2629
2630         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
2631         * gdbarch.c: Re-generate.
2632         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2633         FUNCTION_START_OFFSET.
2634         * v850-tdep.c (v850_gdbarch_init): Ditto.
2635         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
2636         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2637         * sh-tdep.c (sh_gdbarch_init): Ditto.
2638         * s390-tdep.c (s390_gdbarch_init): Ditto.
2639         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2640         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2641         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2642         * mips-tdep.c (mips_gdbarch_init): Ditto.
2643         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2644         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2645         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2646         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2647         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2648         * i386-tdep.c (i386_gdbarch_init): Ditto.
2649         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2650         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2651         * frv-tdep.c (frv_gdbarch_init): Ditto.
2652         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2653         * cris-tdep.c (cris_gdbarch_init): Ditto.
2654         * avr-tdep.c (avr_gdbarch_init): Ditto.
2655         * arm-tdep.c (arm_gdbarch_init): Ditto.
2656         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2657
2658 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
2659
2660         * infrun.c (follow_fork_mode_ask): Remove.
2661         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
2662         (follow_fork): Simplify and remove internal error for
2663         follow_fork_mode_ask.
2664         (_initialize_infrun): Update "set follow-fork-mode" help text.
2665
2666 2004-01-13  Andrew Cagney  <cagney@redhat.com>
2667
2668         * configure.in: Update copyright year.
2669         (build_warnings): Add -Wunused-label.
2670         * configure: Re-generate.
2671
2672 2004-01-12  Andrew Cagney  <cagney@redhat.com>
2673
2674         * exec.h (exec_ops): Make "extern".
2675
2676         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
2677         the function is void.
2678         (mips_pseudo_register_write): Ditto.
2679
2680 2004-01-12  Andrew Cagney  <cagney@redhat.com>
2681
2682         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
2683         call.  Never defined.
2684         * sparc-tdep.h (struct frame_info): Add opaque declaration.
2685         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
2686         (struct sparc_gregset, struct regcache): Ditto.
2687         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
2688
2689 2004-01-12  Andrew Cagney  <cagney@redhat.com>
2690
2691         * mi/ChangeLog: Delete file.  Renamed to ...
2692         * mi/ChangeLog-1999-2003: New file.
2693         * tui/ChangeLog: Delete file.  Renamed to ...
2694         * tui/ChangeLog-1998-2003: New file.
2695
2696 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
2697
2698         * sparc64nbsd-tdep.c: Include "regset.h".
2699         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
2700         Remove variables.
2701         (fetch_core_registers): Remove function.
2702         (sparc64nbsd_core_fns): Remove variable.
2703         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
2704         functions.
2705         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
2706         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
2707         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
2708
2709         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
2710         sparc_extract_struct_value_address.
2711         (sparc32_gdbarch_init): Set extract_struct_value_address.
2712         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
2713         function.
2714         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
2715         return_value_on_stack.
2716
2717         * NEWS: Mention that %cs and %ss have been added to the AMD64
2718         configurations
2719
2720         * frame.c: Update copyright year.
2721         (get_prev_frame): Improve comment.
2722
2723         * sparc64fbsd-tdep.c: Include "regset.h".
2724         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
2725         Remove variables.
2726         (fetch_core_registers): Remove function.
2727         (sparc64fbsd_core_fns): Remove variable.
2728         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
2729         functions.
2730         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
2731         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
2732         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
2733
2734         * sparcnbsd-tdep.c: Include "regset.h".
2735         (fetch_core_registers): Remove function.
2736         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
2737         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
2738         functions.
2739         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
2740         TDEP->fpregset.
2741         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
2742
2743         * sparc-tdep.h (struct regset): Provide opaque declaration.
2744         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
2745         fpregset and sizeof_fpregset members.
2746         * sparc-tdep.c (struct regset): Provide opaque declaration.
2747         (sparc_regset_from_core_section): New function.
2748         (sparc32_gdbarch_init): Initialize TDEP->gregset,
2749         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
2750         Set regset_from_core_section when appropriate.
2751
2752 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
2753
2754         * x86-64-tdep.c (amd64_non_pod_p): New function.
2755         (amd64_classify_aggregate): Return class memory for non-POD
2756         C++ structure types.
2757
2758         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
2759         argument.  Use it to reserve a register if necessary.
2760         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
2761         amd64_push_arguments.
2762
2763         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
2764
2765         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
2766         register numbers in comments.
2767         * x86-64-tdep.h: Update copyright year.
2768         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
2769         Adjust for addition of %cs and %ss.
2770         * amd64fbsd-nat.c: Update copyright year.
2771         (reg_offset): Add register offsets for %cs and %ss.
2772         * amd64fbsd-tdep.c: Update copyright year.
2773         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
2774         (amd64fbsd_sc_reg_offset): Likewise.
2775         * x86-64-linux-nat.c: Update copyright year.
2776         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
2777         and %ss.
2778         * amd64nbsd-nat.c: Update copyright year.
2779         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
2780         * amd64nbsd-tdep.c: Update copyright year.
2781         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
2782         * x86-64-linux-tdep.c: Update copyright year.
2783         (user_to_gdb_regmap): Add mapping for %cs and %ss.
2784         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
2785         * regformats/reg-x86-64.dat: Add %cs and %ss.
2786
2787         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
2788         variables to prevent long lines.  Update comments to reflect
2789         reality.
2790
2791 2004-01-09  David Carlton  <carlton@kealia.com>
2792
2793         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
2794         * dwarf2read.c (read_namespace): Pull out name-generating code
2795         into namespace_name. Rename previous_namespace to previous_prefix
2796         and processing_current_namespace to processing_current_prefix..
2797         (namespace_name): New function.
2798         (add_partial_symbol): Substitute uses of pdi->name with
2799         actual_name.
2800         * cp-support.h: Rename processing_current_namespace to
2801         processing_current_prefix.
2802         Update copyright year.
2803         * cp-namespace.c: Rename processing_current_namespace to
2804         processing_current_prefix.
2805         Update copyright year.
2806
2807 2004-01-09  Andrew Cagney  <cagney@redhat.com>
2808
2809         * jv-valprint.c, ser-unix.c: Add missing copyright years.
2810
2811 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
2812
2813         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
2814         complaining.
2815         (process_one_symbol): Deal with N_PATCH stabs.
2816
2817 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
2818
2819         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
2820         ifdeffed code.
2821         Update copyright year.
2822
2823 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
2824
2825         * config/pa/tm-hppa.h: Update extern declarations for
2826         hppa32_hpux_frame_saved_pc_in_sigtramp,
2827         hppa32_hpux_frame_base_before_sigtramp, and
2828         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
2829
2830 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
2831
2832         * config/pa/tm-hppah.h: Update copyright years.
2833
2834 2004-01-08  Andrew Cagney  <cagney@redhat.com>
2835
2836         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
2837         (mips_o32_reg_struct_has_addr): Delete function.
2838         (mips_gdbarch_init): Update.
2839         (mips_extract_struct_value_address): Delete function.
2840
2841 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
2842
2843         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
2844         reality.
2845
2846 2004-01-07  Andrew Cagney  <cagney@redhat.com>
2847
2848         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
2849         architecture's elf flags (when available).
2850
2851         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
2852         FPU to the start, check the MIPS FPU when looking for an old
2853         architecture.
2854         (set_mipsfpu_single_command): Update the architecture.
2855         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
2856
2857         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
2858         (mips_mask_address_p): Add "tdep" parameter.
2859         (show_mask_address, mips_addr_bits_remove): Update.
2860         (mips_dump_tdep): Update.
2861         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
2862         (MIPS_STACK_ARGSIZE): Delete macro.
2863         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
2864         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
2865         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
2866         (mips_dump_tdep): Update.
2867         (MIPS_SAVED_REGSIZE): Delete macro.
2868         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
2869         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
2870         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
2871         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
2872         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
2873         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
2874         (mips_pop_frame, return_value_location): Update.
2875         (mips_n32n64_return_value, mips_dump_tdep): Update.
2876
2877         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
2878         MIPS ABI.
2879
2880         * mips-tdep.c: Update copyright.
2881         (mips_gdbarch_init): Merge two code blocks handling the register
2882         name and number layout.
2883
2884 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
2885
2886         * tracepoint.c (validate_actionline): Fix segv at EOF
2887
2888 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
2889
2890         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
2891         properly for static fields.
2892
2893 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
2894             Jason Molenda  <jmolenda@apple.com>
2895
2896         * disasm.c: Update copyright to include 2004.
2897         (do_mixed_source_and_assembly): For uiout asm list
2898         and tuple cleanups, initialize to null_cleanup instead of
2899         NULL and do so prior to loop.  Only reset when we close off
2900         the tuple/list.  Move check for whether to close off the
2901         asm tuple/list to after dump_insns call where it will be run
2902         on each loop iteration.
2903
2904 2004-01-05  Andrew Cagney  <cagney@redhat.com>
2905
2906         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
2907         should be a switch case and not a label.
2908         * mips-tdep.c (mips32_next_pc): Delete unused labels
2909         "greater_equal_branch" and "less_zero_branch".
2910         * jv-valprint.c (java_print_value_fields): Delete unused label
2911         "flush_it".
2912
2913         * target.c (unpush_target): Only close a target that is in the
2914         target stack.
2915
2916 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
2917
2918         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
2919         address from [sp + 64] instead of %o2.
2920
2921         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
2922         fixes PR backtrace/1476.
2923
2924 2004-01-05  Andrew Cagney  <cagney@redhat.com>
2925
2926         * libunwind-frame.h (struct frame_id): Add opaque declaration,
2927         move to start of file.
2928         * i386-tdep.h (struct regcache): Add opaque declaration.
2929         * config/ia64/nm-linux.h (struct target_ops): Add opaque
2930         declaration.
2931         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
2932         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
2933         * win32-nat.c (fake_create_process): Use ISO C style definition.
2934         * stabsread.c (define_symbol): Delete #ifndef
2935         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
2936         stabs_argument_has_addr call, macro never defined.
2937
2938 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
2939
2940         * op50-rom.c: Delete.
2941         * w89k-rom.c: Delete.
2942         * Makefile.in: Remove references.
2943
2944 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
2945
2946         * x86-64-tdep.c: Update copyright year.
2947         (struct amd64_register_info): Rename from x86_64_register_info.
2948         (amd64_register_info): Rename from x86_64_register_info.
2949         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
2950         (amd64_register_name): Rename from x86_64_register_name.
2951         (amd64_register_type): Rename from x86_64_register_type.
2952         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
2953         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
2954         (amd64_dwarf_reg_to_regnum): Rename from
2955         x86_64_dwarf_reg_to_regnum.
2956         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
2957         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
2958         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
2959         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
2960         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
2961         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
2962         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
2963         (amd64_frame_cache): Rename from x86_64_frame_cache.
2964         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
2965         (amd64_frame_prev_register): Rename from
2966         x86_64_frame_prev_register.
2967         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
2968         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
2969         (amd64_sigtramp_frame_cache): Rename from
2970         x86_64_sigtramp_frame_cache.
2971         (amd64_sigtramp_frame_prev_register): Rename from
2972         x86_64_sigtramp_frame_prev_register.
2973         (amd64_sigtramp_frame_unwind): Rename from
2974         x86_64_sigtramp_frame_unwind.
2975         (amd64_sigtramp_frame_sniffer): Rename from
2976         x86_64_sigtramp_frame_sniffer.
2977         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
2978         (amd64_frame_base): Rename from x86_64_frame_base.
2979         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
2980         (amd64_frame_align): Rename from x86_64_frame_align.
2981         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
2982         (amd64_regset_from_core_section): Rename from
2983         x86_64_regset_from_core_section.
2984         (x86_64_init_abi): Update comments.
2985
2986 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
2987
2988         * MAINTAINERS (write after approval): Add myself.
2989
2990 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
2991
2992         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
2993         `float' arguments.
2994
2995 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
2996
2997         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
2998         such that it mentions a specific version of GCC that exhibits this
2999         bug.
3000
3001 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
3002
3003         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
3004         structure that has a single `float' member, store it in %f1 in
3005         addition to %f0.
3006
3007         * sparc-sol2-nat.c: Add missing '\'.
3008
3009         * sparc-tdep.c (sparc32_return_value): New function.
3010          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
3011         Remove functions.
3012         (sparc32_gdbarch_init): Set return_value, don't set
3013         extract_return_value, store_return_value, use_struct_convention
3014         and return_value_on_stack.
3015
3016         * sparc-sol2-nat.c: Add missing ')'.
3017
3018 2004-01-03  J. Brobecker  <brobecker@gnat.com>
3019
3020         * infrun.c (handle_step_into_function): New function.
3021         (handle_inferior_event): Extract out some code into the new
3022         function above.
3023
3024 2004-01-03  J. Brobecker  <brobecker@gnat.com>
3025
3026         * infrun.c (handle_inferior_event): Move the declaration of
3027         real_stop_pc inside the if blocks where it is used.
3028
3029 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
3030
3031         * sparc64-tdep.c (sparc64_16_byte_align_p)
3032         (sparc64_store_floating_fields, sparc64_store_floating_fields):
3033         Use check_typedef to get subtypes of structures and unions.
3034         (sparc64_store_return_value): Fix calculation of the appropriate
3035         offset into VALBUF when storing a structure or union.
3036         (sparc64_return_value): New function.
3037         (sparc64_use_struct_convention): Remove function.
3038         (sparc64_init_abi): Set return_value, don't set
3039         extract_return_value, store_return_value and
3040         use_struct_convention.
3041
3042 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
3043
3044         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
3045         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
3046         gdb/config/alpha/xm-alphaosf.h,
3047         gdb/config/powerpc/tm-ppcle-eabi.h,
3048         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
3049         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
3050         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
3051         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
3052         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
3053         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
3054         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
3055         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
3056         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
3057         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
3058         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
3059         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
3060         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
3061         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
3062         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
3063         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
3064         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
3065         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
3066         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
3067         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
3068         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
3069         Remove lines for .cvsignore files.
3070
3071 2004-01-03  J. Brobecker  <brobecker@gnat.com>
3072
3073         * infrun.c: Back out the previous change.
3074
3075 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
3076
3077         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
3078         sparc-*-sunos4* to the list of REMOVED configurations.
3079
3080         * configure.tgt: Add back sparc-*-vxworks*.
3081         * remote-vxsparc.c: Remove all includes except for "defs.h",
3082         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
3083         Include "sparc-tdep.h".
3084         (SPARC_R_G1): New define.
3085         (vxsparc_gregset): New variable.
3086         (ext_format_sparc): Remove extern declaration.
3087         (vx_read_register): Rewrite to use sparc32_supply_gregset and
3088         sparc32_supply_fpregset.
3089         (vx_write_register): Rewrite to use sparc32_collect_gregset,
3090         sparc_collect_rwindow and sparc32_collect_fpregset.
3091         * config/sparc/tm-vxworks.h: New file, based on recently removed
3092         tm-vxsparc.h.
3093         * config/sparc/vxworks.mt: New file, based on recently removed
3094         vxworks.mt.
3095
3096 2004-01-03  J. Brobecker  <brobecker@gnat.com>
3097
3098         * infrun.c (handle_step_into_function): New function.
3099         (handle_inferior_event): Extract out some code into the new
3100         function above.
3101
3102 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
3103
3104         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
3105         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
3106         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
3107         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
3108         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
3109         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
3110         (sparc_nat_h): New variable.
3111         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
3112         (tm-sun4os4.h): Remove dependency.
3113         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
3114         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
3115         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
3116         sparc-tdep.o): Update dependencies.
3117         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
3118         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
3119         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
3120         dependencies.
3121         * configure.host: Remove existing sparc-*-lynxos*,
3122         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
3123         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
3124         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
3125         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
3126         triplets.
3127         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
3128         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
3129         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
3130         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
3131         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
3132         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
3133         sparc64-*-solaris2* and sparc64-*-* triplets.
3134         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
3135         "symtab.h" and "objfiles.h".
3136         (BIAS): Remove define.
3137         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
3138         (X_DISP19): Remove macros.
3139         (sparc_fetch_instruction): Remove function.
3140         (struct gdbarch_tdep): Remove definition.
3141         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
3142         (sparc_breakpoint_from_pc): Remove function.
3143         (struct sparc64_frame_cache): Remove definition.
3144         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
3145         sparc64_unwind_pc): Remove functions.
3146         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
3147         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
3148         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
3149         (sparc64_frame_cache): Change return type to `struct
3150         sparc_frame_cache *'.  Simply call sparc_frame_cache.
3151         (sparc64_frame_this_id, sparc64_frame_prev_register,
3152         sparc64_frame_base_address): Use `struct sparc_frame_cache'
3153         instead of `struct sparc64_frame_cache.
3154         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
3155         sparc_analyze_control_transfer, sparc_software_single_step,
3156         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
3157         _initialize_sparc64_tdep): Remove functions.
3158         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
3159         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
3160         macros.
3161         (sparc64_supply_gregset, sparc64_collect_gregset,
3162         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
3163         (sparc64_init_abi): New function.
3164         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
3165         inclusion guard.  Include "sparc-tdep.h".
3166         (BIAS): Define.
3167         (r_tstate_offset, r_fprs_offset): New defines.
3168         (enum sparc_regnum): Remove defenition.
3169         (enum sparc64_regnum): Reformat.
3170         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
3171         (sparc64_init_abi, sparc64_supply_gregset,
3172         sparc64_collect_gregset, sparc64_supply_fpregset,
3173         sparc64_collect_fpregset): New prototypes.
3174         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
3175         Add extern declarations.
3176         (sparc64_sol2_init_abi): New prototype.
3177         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
3178         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
3179         prototypes.
3180         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
3181         "sparnbsd-nat.h".
3182         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
3183         functions.
3184         (_initialize_sparc64fbsd_nat): Remove initialization of
3185         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
3186         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
3187         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
3188         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
3189         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
3190         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
3191         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
3192         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
3193         (sparc64fbsd_r_y_offset): Remove variables.
3194         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
3195         Make static and const.
3196         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
3197         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
3198         functions.
3199         (sparc64fbsd_gregset): New variable.
3200         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
3201         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
3202         and sparc64_supply_fpregset.
3203         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
3204         (sparc64fbsd_sigtramp_frame_this_id)
3205         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
3206         (sparc64fbsd_sigtramp_frame_unwind): New variable.
3207         (sparc64fbsd_sigtramp_frame_sniffer): New function.
3208         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
3209         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
3210         * sparcnbsd-tdep.c: Update copyright year.  Include
3211         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
3212         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
3213         "value.h" and "sparcnbsd-tdep.h".
3214         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
3215         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
3216         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
3217         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
3218         defines.
3219         (sparcnbsd_gregset): New variable.
3220         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
3221         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
3222         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
3223         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
3224         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
3225         variables.
3226         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
3227         (sparc32nbsd_sigcontext_frame_this_id)
3228         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
3229         (sparc32nbsd_sigcontext_frame_unwind): New variable.
3230         (sparc32nbsd_sigtramp_frame_sniffer): New function.
3231         (sparcnbsd_get_longjmp_target_32,
3232         sparcnbsd_get_longjmp_target_64): Remove functions.
3233         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
3234         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
3235         sparcnbsd_init_elf): Remove.
3236         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
3237         (sparcnbsd_elf_init_abi): New functions.
3238         (_initialize_sparcnbsd_tdep): New prototype.
3239         (_initialize_sparnbsd_tdep): Update.
3240         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
3241         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
3242         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
3243         * config/sparc/linux.mh: Update comment.
3244         (XM_FILE, HOST_IPC): Remove variables.
3245         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
3246         sparc-linux-nat.o.
3247         * config/sparc/linux.mt: Update comment.
3248         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
3249         * config/sparc/nbsd.mt: Reformat.
3250         * config/sparc/nbsd64.mh: Update comment.
3251         (NATDEPFILES): Add sparc-nat.o.
3252         * config/sparc/nbsd64.mt: Update comment.
3253         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
3254         (TM_FILE): Set to tm-nbsd.h.
3255         * config/sparc/nbsdelf.mh: Update comment.
3256         (NATDEPFILES): Add sparc-nat.o.
3257         (XM_FILE): Delete.
3258         * config/sparc/nbsdaout.mh: Update comment.
3259         (NATDEPFILES): Add sparc-nat.o
3260         (XM_FILE): Delete.
3261         * config/sparc/nm-linux.h: Update copyright year.  Don't include
3262         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
3263         inclusion.
3264         (KERNEL_U_SIZE): Remove define.
3265         (kernel_u_size): Remove prototype.
3266         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
3267         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
3268         "regcache.h".
3269         (CHILD_PREPARE_TO_STORE): Remove define.
3270         * config/sparc/nm-nbsdaout.h: Tweak some comments.
3271         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
3272         sparcnbsd-nat.c: Rewrite files.
3273         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
3274         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
3275         sparcnbsd-tdep.h: Remove files.
3276         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
3277         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
3278         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
3279         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
3280         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
3281         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
3282         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
3283         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
3284         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
3285         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
3286         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
3287         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
3288         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
3289         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
3290         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
3291         * config/sparc/linux64.mh, config/sparc/linux64.mt,
3292         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
3293         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
3294         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
3295
3296 2004-01-02  Andrew Cagney  <cagney@redhat.com>
3297
3298         From 2003-12-18 Kazuhiro Inaoka:
3299         * configure.host: Add m32r-linux target.
3300
3301 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
3302
3303         * top.c (print_gdb_version): Update year to 2004.
3304
3305 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
3306
3307         * MAINTAINERS: Add myself to the write-after-approval category.
3308
3309 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
3310
3311         From Bernardo Innocenti <bernie@develer.com>:
3312         * configure.tgt: Add uClinux target.
3313
3314 2004-01-02  Andrew Cagney  <cagney@redhat.com>
3315
3316         * utils.c (do_my_cleanups): Make static, add forward declaration.
3317         * defs.h (do_my_cleanups): Delete declaration.
3318
3319 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
3320
3321         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
3322         bfd/ChangeLog-0203.
3323
3324 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
3325
3326         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
3327         in <machine/reg.h>.
3328         * configure, config.in: Regenerate.
3329
3330 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
3331 tui/ChangeLog-1998-2003.
3332 \f
3333 Local Variables:
3334 mode: change-log
3335 left-margin: 8
3336 fill-column: 74
3337 version-control: never
3338 End: