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