*** empty log message ***
[external/binutils.git] / gdb / ChangeLog
1 2004-05-11  Nick Roberts  <nickrob@gnu.org>
2
3         * utils.c (defaulted_query): Just use the normal query input type
4         when printing the annotations.
5
6 2004-05-11  Andrew Cagney  <cagney@redhat.com>
7
8         * infrun.c (handle_inferior_event): Simplify code handling
9         step-into or return-from a signal trampoline.
10
11 2004-05-11  Andrew Cagney  <cagney@redhat.com>
12
13         * ppcnbsd-tdep.c: Include "gdb_assert.h".
14         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
15
16 2004-05-10  Jim Blandy  <jimb@redhat.com>
17
18         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
19         with a call to internal_error.
20
21         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
22         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
23         processor variant lacks those registers.
24         (ppc_floating_point_unit_p): Change description to make it clear
25         that this returns info about the ISA, not the ABI.
26         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
27         return true or false by checking tdep->ppc_fp0_regnum and
28         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
29         arch/mach switching done in rs6000_gdbarch_init; it's better to
30         keep that logic there, and just check the results here.
31         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
32         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
33         floating-point registers.
34         (ppc_supply_fpregset, ppc_collect_fpregset)
35         (rs6000_push_dummy_call, rs6000_extract_return_value)
36         (rs6000_store_return_value): Assert that we have floating-point
37         registers.
38         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
39         (rs6000_frame_cache): Don't note the locations at which
40         floating-point registers were saved if we have no fprs.
41         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
42         registers.
43         (fetch_regs_user_thread, fetch_regs_kernel_thread)
44         (store_regs_user_thread, store_regs_kernel_thread): Only call
45         supply_fprs / fill_fprs if we actually have floating-point
46         registers.
47         (special_register_p): Check ppc_fpscr_regnum before matching
48         against it.
49         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
50         supply / collect fpscr if we don't have it.
51         * ppc-bdm.c: #include "gdb_assert.h".
52         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
53         have floating-point registers, since I can't test this code on
54         FP-free systems to adapt it.
55         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
56         fpscr and floating point register numbers if they don't exist.
57         (fetch_register): Assert that we have floating-point registers
58         before we reach the code that handles them.
59         (store_register): Same.  And use tdep instead of calling
60         gdbarch_tdep again.
61         (fill_fpregset): Don't try to collect FP registers and fpscr if we
62         don't have them.
63         (ppc_linux_sigtramp_cache): Don't record the saved locations of
64         fprs and fpscr if we don't have them.
65         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
66         don't have them.
67         * ppcnbsd-nat.c: #include "gdb_assert.h".
68         (getfpregs_supplies): Assert that we have floating-point registers.
69         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
70         * ppcobsd-tdep.c: #include "gdb_assert.h".
71         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
72         have floating-point registers.
73         * rs6000-nat.c (regmap): Don't match against the fpscr and
74         floating point register numbers if they don't exist.
75         (fetch_inferior_registers, store_inferior_registers,
76         fetch_core_registers): Only fetch / store / supply the
77         floating-point registers and the fpscr if we have them.
78         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
79         (ppcobsd-tdep.o): Update dependencies.
80         
81 2004-05-10  Andrew Cagney  <cagney@redhat.com>
82
83         * infrun.c (through_sigtramp_breakpoint): Delete variable.
84         (context_switch): Do not switch through_sigtramp_breakpoint.
85         * gdbthread.h (save_infrun_state, load_infrun_state)
86         (struct thread_info): Delete through_sigtramp_breakpoint parameter
87         and structure member.
88         * thread.c (load_infrun_state, save_infrun_state): Update.
89
90 2004-05-10  Mark Kettenis  <kettenis@gnu.org>
91
92         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
93
94 2004-05-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
95
96         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
97         throughout.
98         * aclocal.m4: Regenerate.
99
100 2004-05-10  Nathan J. Williams  <nathanw@wasabisystems.com>
101
102         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
103
104 2004-05-10  Andrew Cagney  <cagney@redhat.com>
105
106         * infrun.c (check_sigtramp2): Delete function.
107         (handle_inferior_event): When single stepping, and taking a
108         signal, set a breakpoint at the signal return address.  Delete
109         redundant calls to check_sigtramp2.
110         (insert_step_resume_breakpoint): New function.
111         (through_sigtramp_breakpoint, handle_inferior_event)
112         (follow_exec, wait_for_inferior, fetch_inferior_event)
113         (currently_stepping, keep_going): Delete most uses of
114         through_sigtramp_breakpoint, not that it should be deleted.
115         (delete_breakpoint_current_contents): Delete function.
116
117 2004-05-10  Randolph Chung  <tausq@debian.org>
118
119         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
120         target.
121         * config/pa/tm-linux.h: New file.
122
123 2004-05-10  Daniel Jacobowitz  <drow@mvista.com>
124
125         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
126         of prefixes.  Don't print the prefix twice in the CLI.
127
128 2004-05-10  Jim Blandy  <jimb@redhat.com>
129
130         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
131         collect all the gprs.
132
133         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
134         loop collecting gprs.
135
136 2004-05-09  Andrew Cagney  <cagney@redhat.com>
137
138         * remote-vx.c (net_step): Delete step-range code.
139         * remote.c (remote_resume, init_all_packet_configs)
140         (set_remote_protocol_E_packet_cmd)
141         (show_remote_protocol_E_packet_cmd)
142         (remote_protocol_E, show_remote_cmd, _initialize_remote)
143         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
144         (show_remote_protocol_e_packet_cmd): Ditto.
145
146 2004-05-09  Mark Kettenis  <kettenis@gnu.org>
147
148         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
149
150         * hppa-tdep.h: Update copyright year.
151         (struct trad_frame_saved_reg): Add opaque declaration.
152
153         * amd64-tdep.c (amd64_return_value): Implement
154         RETURN_VALUE_ABI_RETURNS_ADDRESS.
155
156         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
157         (m68k_value_to_register): New functions.
158         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
159         value_to_register.
160
161         * defs.h (enum return_value_convention): Add
162         RETURN_VALUE_ABI_RETURNS_ADDRESS and
163         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
164         * infcmd.c (legacy_return_value): New function.
165         (print_return_value): Rwerite to implement
166         RETURN_VALUE_ABI_RETURNS_ADDRESS.
167         * values.c (using_struct_return): Check for inequality to
168         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
169         RETURN_VALUE_STRUCT_CONVENTION.
170         * i386-tdep.c (i386_return_value): Implement
171         RETURN_VALUE_ABI_RETURNS_ADDRESS.
172
173         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
174         include "symtab.h", "opcode/vax.h" and "inferior.h".
175         (vax_skip_prologue): Replace calls to read_memory_integer by calls
176         to read_memory_unsigned_integer.
177         (vax_gdbarch_init): Reorder.
178         (_initialize_vax_tdep): Spell out prototype.
179         * Makefile.in (vax-tdep.o): Update dependencies.
180
181 2004-05-08  Andrew Cagney  <cagney@redhat.com>
182
183         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
184         * target.c (target_detach, target_disconnect): Ditto.
185
186         * infcall.c (call_function_by_hand): When no
187         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
188         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
189         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
190         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
191         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
192         
193         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
194         * gdbarch.h, gdbarch.c: Re-generate.
195         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
196         deprecated_fix_call_dummy.
197         * v850-tdep.c (v850_gdbarch_init): Ditto.
198         * infcall.c (call_function_by_hand): Do not call
199         DEPRECATED_FIX_CALL_DUMMY.
200
201         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
202         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
203         * gdbarch.h, gdbarch.c: Re-generate.
204         * arm-linux-tdep.c (arm_linux_call_dummy_words)
205         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
206         deprecated_sizeof_call_dummy_words.
207         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
208         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
209         * v850-tdep.c (v850_gdbarch_init): Ditto.
210         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
211         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
212         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
213         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
214         * arch-utils.h (legacy_call_dummy_words)
215         (legacy_sizeof_call_dummy_words): Delete declarations.
216         * arch-utils.c (legacy_call_dummy_words)
217         (legacy_sizeof_call_dummy_words): Delete variables.
218
219         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
220         * gdbarch.h, gdbarch.c: Re-generate.
221         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
222         * infcall.c (call_function_by_hand): Eliminate call to
223         DEPRECATED_PUSH_DUMMY_FRAME.
224         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
225         push_dummy_frame.
226         (ns32k_push_dummy_frame): Delete function.
227
228         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
229         deprecated_call_dummy_breakpoint_offset or
230         deprecated_call_dummy_start_offset.
231         * dummy-frame.c, arm-tdep.c: Update comments.
232         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
233         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
234         * gdbarch.h, gdbarch.c: Re-generate.
235         
236         * infcall.c (legacy_push_dummy_code): Delete function.
237         (push_dummy_code): Delete call.
238
239         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
240         * gdbarch.h, gdbarch.c: Re-generate.
241         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
242         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
243         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
244         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
245
246         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
247         (struct frame_info): Delete opaque declaration.
248         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
249         * frame.c (get_frame_type): Delete call.
250
251         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
252         pc_in_call_dummy.
253         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
254         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
255
256 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
257
258         * alphanbsd-tdep.c: Include "gdb_string.h".
259         * armnbsd-tdep.c: Update copyright year.
260         Include "gdb_string.h".
261         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
262         dependencies.
263
264         * delta68-nat.c: Remove file.
265         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
266         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
267         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
268         (delta68-nat.o): Remove dependency.
269
270         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
271         function.
272         (m68k_gdbarch_init): Don't set
273         deprecated_frameless_function_invocation.
274
275 2004-05-07  Randolph Chung  <tausq@debian.org>
276
277         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
278         read_memory_nobpt for code reading when doing frame unwinding.
279         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
280
281 2004-05-07  Randolph Chung  <tausq@debian.org>
282
283         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
284         instead of sp, handle sigaltstack case.
285         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
286         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
287         signal handler and not that of the caller.
288         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
289         hppa_linux_sigtramp_find_sigcontext.
290
291 2004-05-07  Randolph Chung  <tausq@debian.org>
292
293         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
294         hppa-linux-nat.c.
295         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
296         * hppa-linux-nat.c (fetch_register, store_register): Define.
297         (fetch_inferior_registers, store_inferior_registers): Define.
298         (supply_gregset): Add comment and clean up some unneeded code.
299         (fill_gregset): Add comment and fix so that it saves registers in
300         the right place in the gregset.
301         (fill_fpregset): Fix buffer overrun problem.
302         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
303
304 2004-05-07  Randolph Chung  <tausq@debian.org>
305
306         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
307         do common handling of the pcoqt register.
308         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
309         to use helper function.
310         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
311         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
312         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
313         generic fallback unwinder when all else fails.
314         (hppa_gdbarch_init): Add fallback sniffer.
315         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
316         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
317         to use helper function.
318
319 2004-05-08  Joel Brobecker  <brobecker@gnat.com>
320
321         * config/djgpp/fnchange.lst: Add translation rules for
322         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
323
324 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
325
326         * frame.c (get_prev_frame_1): Work around GCC bug.
327         * frame.h: Add comment about GCC bug.
328
329 2004-05-07  Andrew Cagney  <cagney@redhat.com>
330
331         * observer.c: Include "commands.h" and "gdbcmd.h".
332         (observer_debug, _initialize_observer): Add the
333         command "set/show debug observer".
334         * observer.sh: When observer debugging, log notify calls.
335         * Makefile.in (observer.o): Update dependencies.
336
337 2004-05-07  Jason Molenda  (jmolenda@apple.com)
338
339         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
340
341 2004-05-07  Jim Blandy  <jimb@redhat.com>
342
343         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
344         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
345         to recognize gpr regnums, instead of assuming that
346         tdep->ppc_fp0_regnum marks the end of the general-purpose
347         registers.
348
349         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
350         the given architecture has floating-point registers. 
351
352 2004-05-07  Andrew Cagney  <cagney@redhat.com>
353
354         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
355         macro defined to 1.
356         * gdbarch.h, gdbarch.c: Re-generate.
357         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
358         deprecated_use_generic_dummy_frames.
359
360 2004-05-07  Brian Ford  <ford@vss.fsi.com>
361
362         * NEWS: Mention Cygwin DWARF 2 support.
363
364 2004-05-07  Andrew Cagney  <cagney@redhat.com>
365
366         * objfiles.h (struct entry_info): Delete unused fields
367         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
368         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
369         * mipsread.c (mipscoff_symfile_read): Update.
370         * mdebugread.c (parse_partial_symbols): Update.
371         * dwarfread.c (read_file_scope): Update.
372         * dwarf2read.c (read_file_scope): Update.
373         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
374         * coffread.c (complete_symtab): Update.
375
376 2004-05-07  Mark Kettenis  <kettenis@gnu.org>
377
378         * infcall.c (_initialize_infcall): Fix typo.
379
380 2004-05-07  Andrew Cagney  <cagney@redhat.com>
381
382         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
383         * command.h (add_setshow_zinteger_cmd): Declare.
384
385 2004-05-06  Randolph Chung  <tausq@debian.org>
386
387         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
388         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
389         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
390         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
391         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
392         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
393         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
394         definitions ...
395         * hppa-tdep.h: ... to here, with HPPA_ prefix.
396         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
397         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
398         (hppa64_hpux_frame_find_saved_regs_in_sig)
399         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
400         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
401         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
402         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
403         (hppa_linux_sigtramp_frame_prev_register): Likewise.
404         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
405         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
406         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
407         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
408         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
409         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
410         (hppa32_register_type, hppa_cannot_store_register)
411         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
412         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
413         * hpread.c (hpread_process_one_debug_symbol): Likewise.
414         * pa64solib.c (pa64_solib_have_load_event)
415         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
416         (pa64_solib_unloaded_library_pathname): Likewise.
417         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
418         (som_solib_library_pathname): Likewise.
419
420 2004-05-05  Jim Ingham  <jingham@apple.com>
421         
422         * breakpoint.c (create_breakpoints): Copy the ignore count and
423         thread id over from the pended breakpoint to the actual
424         breakpoint.
425         
426 2004-05-05  Andrew Cagney  <cagney@redhat.com>
427
428         * gdbarch.sh (PARM_BOUNDARY): Delete.
429         gdbarch.h, gdbarch.c: Re-generate.
430         * valops.c (PARM_BOUNDARY): Delete macro.
431         (value_push): Delete PARM_BOUNDARY code.
432         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
433
434 2004-05-04  Jim Blandy  <jimb@redhat.com>
435
436         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
437         Don't assume that the gprs, fprs, and UISA sprs are
438         contiguous, start at register number zero, and end with fpscr.
439         Instead, use the numbers from the tdep structure.
440
441         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
442         should no longer be used in code specific to the RS6000 and its
443         derivatives.
444         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
445         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
446         tdep->ppc_fp0_regnum.
447         (ppc_supply_fpregset, ppc_collect_fpregset)
448         (rs6000_push_dummy_call, rs6000_extract_return_value)
449         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
450         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
451         FP0_REGNUM. 
452         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
453         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
454         Same.
455         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
456         bdm_ppc_store_registers): Same.
457         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
458         (store_register, fill_fpregset): Same.
459         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
460         (ppc_linux_supply_fpregset): Same.
461         * ppcnbsd-nat.c (getfpregs_supplies): Same.
462         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
463         Same.
464         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
465         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
466         ppc64_sysv_abi_return_value): Same.
467         * rs6000-nat.c (regmap, fetch_inferior_registers) 
468         (store_inferior_registers, fetch_core_registers): Same.
469
470 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
471
472         * m68knbsd-nat.c: Remove file.
473         * m68knbsd-tdep.c: Remove file.
474         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
475         dependencies.
476         * configure.host: Add m68k-*-netbsdelf*.
477         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
478         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
479         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
480         (XM_FILE): Remove.
481         * config/m68k/nbsdelf.mh: New file.
482         * config/m68k/nbsd.mt: New file.
483         * config/m68k/nbsdaout.mt: Remove file.
484         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
485         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
486         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
487         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
488         (use_struct_convention): Remove prototype.
489         (USE_STRUCT_CONVENTION): Remove define.
490         * config/m68k/xm-nbsd.h: Remove file.
491
492 2004-05-04  Michael Snyder  <msnyder@redhat.com>
493
494         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
495         reg_struct_return method (as gcc usually does for cross targets).
496
497 2004-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
498
499         Committed by Andrew Cagney.
500         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
501         alignment padding when accessing ucontext struct members.
502
503 2004-05-04  Jim Blandy  <jimb@redhat.com>
504
505         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
506         'ppc_gplast_regnum' member.
507         (ppc_num_gprs): New enum constant.
508         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
509         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
510         * rs6000-nat.c (regmap, fetch_inferior_registers,
511         store_inferior_registers): Same.
512         * rs6000-tdep.c (e500_pseudo_register_read)
513         (e500_pseudo_register_write): Same.
514         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
515
516         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
517         * ppc-tdep.h (ppc_num_fprs): New enum constant.
518         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
519         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
520         FPLAST_REGNUM.
521         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
522         Same.
523         * ppc-linux-nat.c (ppc_register_u_addr): Same.
524         * rs6000-nat.c (regmap, fetch_inferior_registers) 
525         (store_inferior_registers): Same.
526
527         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
528         with FPLAST_REGNUM.
529
530 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
531
532         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
533         failure detected by recent versions of GCC.
534         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
535         to be consistent with the usage in dwarf2_create_include_psymtab.
536
537 2004-05-03  Michael Snyder  <msnyder@redhat.com>
538
539         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
540         (heuristic_proc_start): Whitespace cleanup.
541
542 2004-05-04  Mark Kettenis  <kettenis@gnu.org>
543
544         * sun3-nat.c: Remove file.
545         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
546         dependencies.
547         (ALLDEPFILES): Remove sun3-nat.c.
548         (sun3-nat.o): Remove dependencies.
549
550         * i386-interix-nat.c, i386-interix-tdep.c,
551         config/i386/nm-interix.h, config/i386/interix.mh,
552         config/i386/interix.mt: Remove files.
553         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
554         dependencies.
555
556 2004-05-03  Mark Kettenis  <kettenis@gnu.org>
557
558         * m68k-tdep.h (struct gdbarch_tdep): Add member
559         struct_value_regnum.
560         (m68k_svr4_init_abi): New prototype.
561         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
562         different calling conventions.
563         (m68k_extract_return_value): Remove code dealing with single-field
564         structs.
565         (m68k_store_return_value): Remove code dealing with single-field
566         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
567         (m68k_extract_struct_value_address): Remove function.
568         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
569         (m68k_reg_struct_return_p, m68k_return_value)
570         (m68k_svr4_return_value): New functions.
571         (m68k_use_struct_convention): Remove function.
572         (m68k_push_dummy_call): Use new struct_value_regnum member of
573         `struct gdbarch_tdep' instead of hardcoded register number to
574         store STRUCT_ADDR.
575         (m68k_svr4_init_abi): New function.
576         (m68k_gdbarch_init): Don't set extract_return_value,
577         store_return_values, deprecated_extract_struct_value_address and
578         use_struct_convention.  Set return_value instead.  Initialize new
579         struct_value_regnum member of `struct gdbarch_tdep'.
580         * m68klinux-tdep.c: Update copyright year.
581         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
582         (m68k_linux_extract_struct_value_address): Remove function.
583         (m68k_linux_init_abi): Don't set extract_return_value,
584         store_return_values, deprecated_extract_struct_value_address and
585         use_struct_convention.  Call m68k_svr4_init_abi but override the
586         new struct_value_regnum member of `struct gdbarch_tdep'.
587         * Makefile.in (m68k-tdep.o): Update dependencies.
588
589 2004-05-03  J. Brobecker  <brobecker@gnat.com>
590
591         * dwarf2read.c (line_header): Add new included_p field in
592         field file_names.
593         (partial_die_info): New field has_stmt_list. New field line_offset.
594         (dwarf2_create_include_psymtab): New function.
595         (dwarf2_build_include_psymtabs): New function.
596         (add_file_name): Add forward declaration. Initialize new field.
597         (dwarf_decode_lines): Add new parameter. Enhance this procedure
598         to be able to determine the list of files included by the
599         given unit, and build their associated psymtabs.
600         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
601         files as well.
602         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
603         (read_file_scope): Update call to dwarf_decode_lines.
604         (read_partial_die): Handle DW_AT_stmt_list attributes.
605
606 2004-05-02  Michael Chastain  <mec.gnu@mindspring.com>
607
608         Unfix PR gdb/1626.
609         * configure.in: Revert special case for osf5.*.
610         * configure: Regenerate.
611
612 2004-05-02  Jim Blandy  <jimb@redhat.com>
613
614         Move the symbol-file-from-memory functions into their own file.
615         * symfile-mem.c, symfile-mem.h: New files.
616         * symfile.c (symbol_file_add_from_bfd): New function.
617         (symbol_file_add): Call symbol_file_add_from_bfd.
618         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
619         Moved to symfile-mem.c.
620         (_initialize_symfile): Move definition of
621         add-symbol-file-from-memory command to symfile-mem.c.
622         * symfile.h (symbol_file_add_from_bfd): New declaration.
623         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
624         * config/powerpc/linux.mt (TDEPFILES): Same.
625         * Makefile.in (SFILES): Add symfile-mem.c.
626         (symfile_mem_h): New variable.
627         (HFILES_NO_SRCDIR): Add symfile-mem.h.
628         (symfile-mem.o): New rule.
629
630 2004-05-01  Andrew Cagney  <cagney@redhat.com>
631
632         * breakpoint.c (insert_bp_location): Use get_frame_id, and
633         frame_find_by_id instead of frame_relative_level.
634         (do_enable_breakpoint): Ditto.
635         * thread.c: Update copyright.
636         (info_threads_command): Ditto, simplify.
637
638         * frame.c (deprecated_generic_get_saved_register): Delete
639         function, moved to "xstormy16-tdep.c".
640         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
641         deprecated_generic_get_saved_register from "frame.c".
642         (xstormy16_frame_saved_register): Call
643         xstormy16_get_saved_register.
644         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
645         static.
646         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
647         * frame.h (deprecated_generic_get_saved_register): Delete.
648
649 2004-05-01  Michael Chastain  <mec.gnu@mindspring.com>
650
651         * dwarfread.c: Update documentation on the state of dwarf-1.
652
653 2004-05-01  Andrew Cagney  <cagney@redhat.com>
654
655         * stack.c (select_frame_command): Delete call to
656         frame_relative_level.
657         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
658         Delete #if0 code.
659         (frame_info): Do not print FRAMELESS.
660         (print_block_frame_labels): Replace DEPRECATED_STREQ.
661         (catch_info): Delete #if0 code.
662
663         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
664         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
665         of frame_relative_level.
666         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
667         to SENTINEL_FRAME.
668         * frame.h (enum frame_type): Add SENTINEL_FRAME.
669         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
670         frame_relative_level.
671
672         * frame.h (deprecated_set_frame_type): Delete declaration.
673         * frame.c (deprecated_set_frame_type): Delete function, update
674         comments.
675
676         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
677         * gdbarch.h, gdbarch.c: Re-generate.
678         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
679         (shnbsd_pc_in_sigtramp): Delete.
680         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
681         pc_in_sigtramp.
682         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
683         pc_in_sigtramp.
684         * frame.h: Update comments.
685         * ppc-linux-tdep.c: Update comments.
686         * breakpoint.c (bpstat_what): Update comments.
687
688         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
689         m68klinux-tdep.o's dependencies, were previously added to
690         m68klinux-nat.o.
691
692         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
693         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
694         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
695         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
696         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
697
698         * Makefile.in (m68klinux-nat.o): Update dependencies.
699         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
700         (m68k_linux_sigtramp_frame_cache)
701         (m68k_linux_sigtramp_frame_this_id)
702         (m68k_linux_sigtramp_frame_prev_register)
703         (m68k_linux_sigtramp_frame_unwind)
704         (m68k_linux_sigtramp_frame_sniffer)
705         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
706         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
707         names, use trad-frame.h.
708         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
709         (struct m68k_sigtramp_info): Delete.
710         * m68k-tdep.c (m68k_sigtramp_frame_cache)
711         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
712         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
713         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
714         "m68klinux-tdep.c".
715
716         * infrun.c (check_sigtramp2): Delete check for
717         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
718
719 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
720
721         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
722
723 2004-05-01  Andrew Cagney  <cagney@redhat.com>
724
725         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
726         (frv_linux_sigtramp_frame_cache)
727         (frv_linux_sigtramp_frame_this_id)
728         (frv_linux_sigtramp_frame_prev_register)
729         (frv_linux_sigtramp_frame_unwind)
730         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
731         include "linux" in function and variable names, directly call
732         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
733         the latest trad-frame code.
734         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
735         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
736         * Makefile.in (frv-linux-tdep.o): Update dependencies.
737         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
738         * frv-tdep.c (frv_sigtramp_frame_cache)
739         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
740         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
741         frv-linux-tdep.c.
742         (frv_gdbarch_init): Do not append a sigtramp sniffer.
743         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
744         (frv_set_sigcontext_reg_addr): Delete function.
745
746         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
747         (DEPRECATED_SIGTRAMP_END): Delete.
748         * gdbarch.h, gdbarch.c: Re-generate.
749         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
750         * config/vax/tm-vaxbsd.h: Update copyright.
751         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
752         (DEPRECATED_IN_SIGTRAMP): Define.
753         * config/m68k/tm-nbsd.h: Update copyright.
754         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
755         (DEPRECATED_IN_SIGTRAMP): Define.
756
757 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
758
759         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
760         encondings.  Fixes PR gdb/1628.
761
762         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
763         DW_CFA_restore state without a matching DW_CFA_remember_state
764         instead of aborting.  Fixes PR backtrace/1589.
765
766 2004-04-30  Joel Brobecker  <brobecker@gnat.com>
767
768         * MAINTAINERS: Add self as AIX maintainer.
769         Update my e-mail address in write-after-approval section.
770
771 2004-04-30  Andrew Cagney  <cagney@redhat.com>
772
773         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
774         (legacy_get_prev_frame): Ditto.
775
776         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
777         (mips_gdbarch_init): Do not set pc_in_sigtramp.
778         * mipsread.c (sigtramp_address): Delete extern variable.
779         (mipscoff_new_init): Delete reference.
780         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
781         (fixup_sigtramp): Delete function.
782         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
783         (fixup_sigtramp): Delete declarations.
784
785         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
786         deprecated_pc_in_sigtramp.
787         (ppcnbsd_pc_in_sigtramp): Delete function.
788
789 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
790
791         * config/m68k/nm-nbsd.h: Tweak comments.
792         * config/m68k/nm-nbsdaout.h: Likewise.
793
794 2004-04-30  Andrew Cagney  <cagney@redhat.com>
795
796         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
797         legacy_pc_in_sigtramp.
798         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
799
800 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
801
802         Add OpenBSD/m68k support.
803         * NEWS (New native configurations): Mention OpenBSD/m68k.
804         * m68kbsd-tdep.c: New file.
805         * m68kbsd-nat.c: New file.
806         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
807         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
808         * configure.host: Add m68k-*-openbsd.
809         * configure.tgt: Add m68k-*-openbsd.
810         * config/m68k/tm-obsd.h: New file.
811         * config/m68k/obsd.mt: New file.
812         * config/m68k/obsd.mh: New file.
813         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
814         m68kbsd-tdep.c.
815
816 2004-04-30  Andrew Cagney  <cagney@redhat.com>
817
818         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
819         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
820
821 2004-04-30  Mark Kettenis  <kettenis@gnu.org>
822
823         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
824         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
825
826 2004-04-30  Brian Ford  <ford@vss.fsi.com>
827
828         Revert 2004-04-16 change.
829         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
830         (i386_coff_init_abi): Remove.
831         * i386-tdep.h (i386_coff_init_abi): Remove.
832         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
833
834 2004-04-30  Andrew Cagney  <cagney@redhat.com>
835
836         * blockframe.c (find_pc_partial_function): Delete use of
837         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
838         DEPRECATED_SIGTRAMP_END.
839
840         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
841         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
842         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
843         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
844         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
845
846         * defs.h (deprecated_inside_entry_file): Delete declaration.
847         * blockframe.c (deprecated_inside_entry_file): Delete function.
848         (legacy_frame_chain_valid): Delete call.
849         * sh64-tdep.c (sh64_frame_chain): Delete call.
850         * objfiles.h: Update comments.
851         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
852         call.
853         * frame.c (get_prev_frame): Delete call, update comments.
854
855 2004-04-30  Brian Ford  <ford@vss.fsi.com>
856
857         * MAINTAINERS (Write After Approval): Add myself.
858
859 2004-04-30  Andrew Cagney  <cagney@redhat.com>
860
861         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
862         * gdbarch.h, gdbarch.c: Re-generate.
863         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
864         code.
865
866 2004-04-30  Andrew Cagney  <cagney@redhat.com>
867
868         * gdb-events.sh (selected_thread_changed)
869         (selected_frame_level_changed, target_changed): Delete.
870         * gdb-events.h, gdb-events.c: Re-generate.
871         * valops.c (value_assign): Update.
872         * stack.c (select_frame_command, up_silently_base)
873         (down_silently_base): Update.
874
875 2004-04-29  Andrew Cagney  <cagney@redhat.com>
876
877         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
878         registers correctly.
879         (print_gp_register_row, mips32_heuristic_proc_desc)
880         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
881         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
882         references to mips_isa_regsize.
883
884 2004-04-29  Andrew Cagney  <cagney@redhat.com>
885
886         * mips-tdep.c (struct gdbarch_tdep): Delete
887         mips_fp_register_double.
888         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
889         mips_abi_regsize.
890         (mips_gdbarch_init): Do not set mips_fp_register_double.
891         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
892
893 2004-04-29  Joel Brobecker  <brobecker@gnat.com>
894
895         Committed by Andrew Cagney.
896         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
897         function calls.
898
899 2004-04-29  Andrew Cagney  <cagney@redhat.com>
900
901         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
902         gdbarch, use mips_abi, update callers.
903         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
904         mips_abi_regsize, update callers.
905         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
906         mips_default_abi_regsize.
907         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
908         mips_default_abi_regsize.
909
910 2004-04-29  Andrew Cagney  <cagney@redhat.com>
911
912         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
913         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
914         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
915         mips_default_abi_regsize.
916         (mips_isa_regsize): Rename mips_regisze.
917         * mipsnbsd-tdep.c: Update.
918         * mips-linux-tdep.c: Update.
919         * irix5-nat.c: Update.
920         * mips-tdep.h (mips_isa_regsize): Update.
921
922         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
923         Delete all disabled code.
924         * gdb-events.h, gdb-events.c: Re-generate.
925         
926 2004-04-19  Jerome Guitton  <guitton@gnat.com>
927             Mark Kettenis  <kettenis@gnu.org>
928
929         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
930         the function begins with a branch instruction.
931
932 2004-04-29  Mark Kettenis  <kettenis@gnu.org>
933
934         * i386-tdep.c: Fix spelling mistakes.
935
936 2004-04-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
937             Andrew Cagney  <cagney@redhat.com>
938
939         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
940         <sys/proc.h>.
941         * acconfig.h: Provide default _KMEMUSER value.
942         * config.in, configure: Re-generate.
943         * NEWS: Mention fix.
944
945 2004-04-24  Randolph Chung  <tausq@debian.org>
946
947         * configure.host (hppa*-*-linux*): New target.
948         * configure.tgt (hppa*-*-linux*): Likewise.
949         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
950         gdbarch_init_osabi() call earlier so that osabi-specific frame
951         unwinders can be registered first.
952         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
953         hppa-linux-nat.c.
954         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
955         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
956         * config/pa/linux.mh: New file.
957         * config/pa/linux.mt: New file.
958         * config/pa/nm-linux.h: New file.
959         * config/pa/xm-linux.h: New file.
960         * hppa-linux-nat.c: New file.
961         * hppa-linux-tdep.c: New file.
962
963 2004-04-28  Randolph Chung  <tausq@debian.org>
964
965         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
966         return values.
967         (hppa32_push_dummy_call): Fix small struct and floating point argument 
968         passing, and make sure the stack frame is properly aligned.
969
970 2004-04-28  Andrew Cagney  <cagney@redhat.com>
971
972         * stack.c (print_stack_frame): Fix description.
973
974         * NEWS: Mention gdb/gdbserver/configure execute permission
975         changed.  PR server/519.
976
977 2004-04-28  Andrew Cagney  <cagney@redhat.com>
978
979         * stack.c (print_stack_frame_stub): Delete declaration.
980         (struct print_stack_frame_args, print_stack_frame)
981         (print_frame_info, print_frame): Replace "source" with print what.
982         Replace "print" with "print_level".  Replace "args" with
983         "print_args".
984         * frame.h (show_and_print_stack_frame, print_stack_frame)
985         (print_frame_info): Update declarations.
986         * stack.c (select_and_print_frame, frame_command)
987         (current_frame_command, up_command, down_command): Update calls -
988         use get_selected_frame, pass "enum print_what" for source, do not
989         call frame_relative_level.
990         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
991         * remote-rdp.c (remote_rdp_open): Ditto.
992         * remote-mips.c (common_open): Ditto.
993         * remote-e7000.c (e7000_start_remote): Ditto.
994         * ocd.c (ocd_start_remote): Ditto.
995         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
996         * infrun.c (normal_stop): Ditto.
997         * inflow.c (kill_command): Ditto.
998         * infcmd.c (finish_command): Ditto.
999         * corelow.c (core_open): Ditto.
1000         * tracepoint.c (finish_tfind_command): Ditto.
1001         * thread.c (info_threads_command, info_threads_command) 
1002         (restore_current_thread, do_captured_thread_select): Ditto.
1003         * ada-tasks.c (task_command): Ditto.
1004
1005 2004-04-26  Orjan Friberg <orjanf@axis.com>
1006
1007         * frame.c: Include "observer.h".
1008         (frame_observer_target_changed): New function.
1009         (_initialize_frame): Attach target_changed observer.
1010         * regcache.c: Include "observer.h".
1011         (regcache_observer_target_changed): New function.
1012         (_initialize_regcache): Attach target_changed observer.
1013         * valops.c: Include "observer.h".
1014         (value_assign): Notify target_changed event when modifying register.
1015         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
1016
1017 2004-04-26  Orjan Friberg <orjanf@axis.com>
1018
1019         From Paul Koning <pkoning@equallogic.com>:
1020         * breakpoint.c (free_valchain): New function.
1021         (insert_bp_location, delete_breakpoint): Use free_valchain.
1022         (remove_breakpoint): Do not remove the valchain.
1023         (bpstat_stop_status): If not stopped by watchpoint, skip
1024         watchpoints when generating stop status list.
1025         * infrun.c (handle_inferior_event): Make
1026         stepped_after_stopped_by_watchpoint a global variable.
1027         * remote.c (remote_stopped_data_address): Return watch data
1028         address rather than zero if stepped_after_stopped_by_watchpoint is
1029         set.
1030
1031 2004-04-25  Michael Chastain  <mec.gnu@mindspring.com>
1032
1033         Fix PR gdb/1626.
1034         * configure.in: Check for curses after termcap.
1035         On osf5.*, do not check for ncurses.
1036         * configure: Regenerate.
1037
1038 2004-04-25  Mark Kettenis  <kettenis@gnu.org>
1039
1040         * ppcobsd-nat.c: Include "ppc-tdep.h".
1041         * Makefile.in (ppcobsd-nat.o): Update dependencies.
1042
1043         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
1044         Fixes PR tdep/1623 and PR tdep/1624.
1045
1046 2004-04-24  Michael Chastain  <mec.gnu@mindspring.com>
1047
1048         * xmodem.h, xmodem.c: Remove files.
1049         * Makefile.in: Remove references to xmodem.h, xmodem.c.
1050
1051 2004-04-23  Randolph Chung  <tausq@debian.org>
1052
1053         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
1054         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
1055         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
1056         for handling stackless frames.
1057         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
1058
1059 2004-04-23  Randolph Chung  <tausq@debian.org>
1060
1061         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
1062         starts at a pc before the frame is created.
1063
1064 2004-04-23  Joel Brobecker  <brobecker@gnat.com>
1065
1066         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
1067
1068 2004-04-23  Jerome Guitton  <guitton@gnat.fr>
1069
1070         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
1071         use convert_typed_floating to get the appropriate format.
1072
1073 2004-04-22  Randolph Chung  <tausq@debian.org>
1074
1075         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
1076         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
1077         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
1078         (hppa_sign_extend): Add prototype.
1079         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
1080         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
1081         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
1082         hppa targets will also use these functions.
1083         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
1084         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
1085         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
1086         (hppa_gdbarch_init): Remove gdbarch setting of 
1087         skip_trampoline_code, in_solib_call_trampoline and
1088         in_solib_return_trampoline.
1089         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1090         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
1091         hppa_in_solib_call_trampoline.
1092         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
1093         Moved from hppa-tdep.c.
1094         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
1095         in_solib_call_trampoline and in_solib_return_trampoline.
1096
1097 2004-04-22  Randolph Chung  <tausq@debian.org>
1098
1099         * hppa-tdep.c (hppa_debug): New variable.
1100         (find_unwind_entry, hppa_frame_cache): Add debug output.
1101         (_initialize_hppa_tdep): Add command to set debug flag.
1102
1103 2004-04-22  Andrew Cagney  <cagney@redhat.com>
1104
1105         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
1106         "trad-frame.h".
1107         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
1108         signal trampoline unwinder.
1109         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
1110
1111 2004-04-22  Mark Kettenis  <kettenis@gnu.org>
1112
1113         Add OpenBSD/powerpc support.
1114         * NEWS (New native configurations): Mention OpenBSD/powerpc.
1115         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
1116         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
1117         (ppc_collect_fpregset): New prototypes.
1118         * ppcobsd-nat.c: New file.
1119         * ppcobsd-tdep.c: New file.
1120         * ppcobsd-tdep.h: New file.
1121         * rs6000-tdep.c: Include "regset.h".
1122         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
1123         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
1124         New functions.
1125         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
1126         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
1127         (rs6000-tdep.o): Update dependencies.
1128         * configure.host: Add powerpc-*-openbsd.
1129         * configure.tgt: Add powerpc-*-openbsd.
1130         * config/powerpc/obsd.mh: New file.
1131         * config/powerpc/nm-obsd.h: New file.
1132         * config/powerpc/obsd.mt: New file.
1133
1134 2004-04-22  Andrew Cagney  <cagney@redhat.com>
1135
1136         * frame.h (show_frame_info): Delete declaration.
1137
1138         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
1139         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1140         * m32r-tdep.c (m32r_frame_this_id): Ditto.
1141         * frv-tdep.c (frv_frame_this_id): Ditto.
1142         * avr-tdep.c (avr_frame_this_id): Ditto.
1143
1144 2004-04-22  Elena Zannoni  <ezannoni@redhat.com>
1145
1146         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
1147
1148 2004-04-22  Jim Blandy  <jimb@redhat.com>
1149
1150         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
1151         register number zero.
1152
1153 2004-04-21  Michael Snyder  <msnyder@redhat.com>
1154
1155         * mips-tdep.c (heuristic_proc_start): 
1156         Warning() already prefixes "Warning: ".
1157
1158 2004-04-21  Andrew Cagney  <cagney@redhat.com>
1159
1160         * annotate.h (deprecated_annotate_starting_hook)
1161         (deprecated_annotate_stopped_hook)
1162         (deprecated_annotate_exited_hook)
1163         (deprecated_annotate_signal_hook)
1164         (deprecated_annotate_signalled_hook): Deprecate.
1165         * tracepoint.h (deprecated_create_tracepoint_hook)
1166         (deprecated_delete_tracepoint_hook)
1167         (deprecated_modify_tracepoint_hook)
1168         (deprecated_trace_find_hook)
1169         (deprecated_trace_start_stop_hook): Deprecate.
1170         * target.h (deprecated_target_new_objfile_hook): Deprecate.
1171         * remote.h (deprecated_target_resume_hook)
1172         (deprecated_target_wait_loop_hook): Deprecate.
1173         * gdbcore.h (deprecated_exec_file_display_hook)
1174         (deprecated_file_changed_hook): Deprecate.
1175         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
1176         * defs.h (deprecated_modify_breakpoint_hook)
1177         (deprecated_command_loop_hook, deprecated_show_load_progress)
1178         (deprecated_print_frame_info_listing_hook)
1179         (deprecated_query_hook, deprecated_warning_hook)
1180         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
1181         (deprecated_delete_breakpoint_hook)
1182         (deprecated_interactive_hook, deprecated_registers_changed_hook)
1183         (deprecated_readline_begin_hook, deprecated_readline_hook)
1184         (deprecated_readline_end_hook, deprecated_register_changed_hook)
1185         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
1186         (deprecated_context_hook, deprecated_target_wait_hook)
1187         (deprecated_attach_hook, deprecated_detach_hook)
1188         (deprecated_call_command_hook, deprecated_set_hook)
1189         (deprecated_error_hook, deprecated_error_begin_hook)
1190         (deprecated_ui_load_progress_hook): Deprecate.
1191         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
1192         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
1193         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
1194         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
1195         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
1196         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
1197         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
1198         * annotate.c, aix-thread.c: Update.
1199
1200 2004-04-21  Andrew Cagney  <cagney@redhat.com>
1201
1202         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
1203         * vaxnbsd-tdep.c: Include "gdb_string.h".
1204
1205         * symfile.c (symbol_file_add_from_memory): #if 0 function.
1206         (add_symbol_file_from_memory_command): #if 0 function body, call
1207         error instead.
1208
1209 2004-04-21  Andrew Cagney  <cagney@redhat.com>
1210
1211         * gdbcore.h: Update copyright.
1212         (deprecated_add_core_fns): Rename add_core_fns.
1213         * win32-nat.c (_initialize_core_win32): Update.
1214         * sun3-nat.c (_initialize_core_sun3): Update.
1215         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
1216         * rs6000-nat.c (_initialize_core_rs6000): Update.
1217         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
1218         * nto-tdep.c (_initialize_nto_tdep): Update.
1219         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
1220         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
1221         * mips-nat.c (_initialize_core_mips): Update.
1222         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
1223         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
1224         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
1225         * lynx-nat.c (_initialize_core_lynx): Update.
1226         * irix5-nat.c (_initialize_core_irix5): Update.
1227         * i386-interix-nat.c (_initialize_core_interix): Update.
1228         * cris-tdep.c (_initialize_cris_tdep): Update.
1229         * corelow.c (deprecated_add_core_fns): Update.
1230         * core-regset.c (_initialize_core_regset): Update.
1231         * core-aout.c (_initialize_core_aout): Update.
1232         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
1233         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
1234         * alpha-nat.c (_initialize_core_alpha): Update.
1235
1236 2004-04-21  Jim Blandy  <jimb@redhat.com>
1237
1238         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
1239
1240 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
1241
1242         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
1243         Delete.
1244         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
1245         (read_attribute_value): Update calls to dwarf_alloc_block.
1246         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
1247         dwarf2_tmp_obstack.
1248         (psymtab_to_symtab_1): Likewise.  Clean up using
1249         free_stack_comp_unit.
1250         (add_to_cu_func_list): Use the comp_unit_obstack.
1251
1252 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
1253
1254         * dwarf2read.c (dwarf2_flag_true_p): New function.
1255         (die_is_declaration): Use the function above. Add some comments.
1256
1257 2004-04-19  Mark Kettenis  <kettenis@gnu.org>
1258
1259         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
1260         architecture when registering sparcnbsd_core_osabi_sniffer.
1261         Adjust comment.
1262
1263 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
1264
1265         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
1266         return value.
1267
1268         Based on a patch from Brian Ford <ford@vss.fsi.com>:
1269         * i386-tdep.c: Correct register numbering scheme comments
1270         throughout.
1271         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
1272         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
1273         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
1274         (i386_gdb_arch_init): Likewise.
1275
1276         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
1277         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
1278         ppcnbsd-tdep.o.
1279
1280         * m68k-tdep.h: Tweak comments.
1281         * m68k-tdep.c: Tweak comment.
1282
1283 2004-04-17  Randolph Chung  <tausq@debian.org>
1284
1285         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
1286         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
1287         (hppa_hpux_som_init_abi): Set is_elf to 0.
1288         (hppa_hpux_elf_init_abi): Set is_elf to 1.
1289         * hppa-tdep.c (low_text_segment_address): Remove global.
1290         (record_text_segment_lowaddr): Pass in low address as parameter. Use
1291         section offset to calculate segment address.
1292         (internalize_unwinds): Define low_text_segment_address as local and
1293         pass to record_text_segment_lowaddr for ELF targets.
1294         (hppa_gdbarch_init): Zero fill tdep structure.
1295         (hppa_dump_tdep): Print tdep structure.
1296         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
1297
1298 2004-04-17  Randolph Chung  <tausq@debian.org>
1299
1300         * hppa-tdep.c (hppa_pseudo_register_read): Define.
1301         (hppa_gdbarch_init): Set pseudo_register_read.
1302         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
1303         * regcache.c (supply_register): Remove check for
1304         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
1305
1306 2004-04-17  Randolph Chung  <tausq@debian.org>
1307
1308         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
1309         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
1310         (hpread_adjust_stack_address): Move to hpread.c.
1311         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
1312         obj_private_struct): Move from tm-hppa.h.
1313         * hpread.c (hppa-tdep.h): Include.
1314         (hpread_adjust_stack_address): Move from hppa-tdep.c.
1315         (hpread_read_function_type, hpread_read_doc_function_type)
1316         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
1317         directly.
1318         * pa64solib.c (hppa-tdep.h): Include.
1319         * somsolib.c (hppa-tdep.h): Include.
1320         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
1321         inferior_status): Remove unused forward declarations.
1322         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
1323         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
1324         obj_private_struct): Move to hppa-tdep.h.
1325         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
1326
1327 2004-04-17  Randolph Chung  <tausq@debian.org>
1328
1329         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
1330         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
1331         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
1332         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
1333         Remove forward declaration and make static.
1334         (hppa_reg_struct_has_addr): Remove.
1335
1336 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
1337
1338         * observer.sh: Move comments in sed command to first column.
1339
1340 2004-04-16  Jason Molenda  (jmolenda@apple.com)
1341
1342         * frame.c: Minor typeo corrections in comments.
1343
1344 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
1345
1346         * observer.c (observer_test_first_notification_function): Update
1347         function profile.
1348         (observer_test_second_notification_function): Likewise.
1349         (observer_test_third_notification_function): Likewise.
1350
1351 2004-04-16  Mark Kettenis  <kettenis@gnu.org>
1352
1353         From Brian Ford <ford@vss.fsi.com>:
1354         * i386-tdep.c (i386_coff_init_abi): New function.
1355         * i386-tdep.h (i386_coff_init_abi): New prototype.      
1356         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
1357         register number translation functions for DWARF and DWARF 2.
1358
1359 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
1360
1361         * dwarf2read.c: Back out my previous change, it was incorrect.
1362
1363 2004-04-16  Daniel Jacobowitz  <drow@mvista.com>
1364
1365         * dwarf2read.c: Include "hashtab.h".
1366         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
1367         has_namespace_info.
1368         (struct partial_die_info): Add comments.  Use bitfields to reduce
1369         memory footprint.  Add scope, scope_set, has_specification,
1370         spec_offset, die_parent, die_child, and die_sibling.
1371         (peek_die_abbrev): Add prototype.
1372         (partial_read_comp_unit_head): New function, broken out from
1373         dwarf2_build_psymtabs_hard.
1374         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
1375         Use partial_read_comp_unit_head.  Initialize the CU and
1376         comp_unit_obstack.  Update calls to read_partial_die and
1377         scan_partial_symbols.  Use free_stack_comp_unit and
1378         load_partial_dies.
1379         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
1380         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
1381         Update calls to helper functions.  Remove NAMESPACE argument.
1382         Update comments.
1383         (partial_die_parent_scope, partial_die_full_name): New functions.
1384         (add_partial_symbol): Remove namespace argument.  Update call to
1385         pdi_needs_namespace.  Use partial_die_full_name.  Handle
1386         DW_TAG_namespace.  Check has_namespace_info flag.
1387         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
1388         tag.  Handle namespaces.
1389         (add_partial_namespace, add_partial_enumeration): Simplify.
1390         (guess_structure_name): New function, derived from
1391         add_partial_structure.
1392         (add_partial_structure): Remove.
1393         (determine_class_name): Update comment.
1394         (dwarf2_read_abbrevs): Set has_namespace_info flag.
1395         (is_type_tag_for_partial, load_partial_dies): New functions.
1396         (read_partial_die): Pass abbrev and abbrev_len as arguments.
1397         Record specifications instead of following them immediately.
1398         (find_partial_die_in_comp_unit, find_partial_die)
1399         (fixup_partial_die, free_stack_comp_unit)
1400         (hashtab_obstack_allocate, dummy_obstack_deallocate)
1401         (partial_die_hash, partial_die_eq): New functions.
1402         * Makefile.in (hashtab_h): Define.
1403         (dwarf2read.o): Update dependencies.
1404         (observer_inc, observer_h): Move to the correct section.
1405
1406 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
1407
1408         * dwarf2read.c (dwarf2_attribute_true_p): New function.
1409         (die_is_declaration): Use the function above. Add comment.
1410
1411 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
1412
1413         * dwarf2read.c (read_structure_scope): Identify stub types
1414         using die_is_declaration() only.
1415
1416 2004-04-15  Roland McGrath  <roland@redhat.com>
1417
1418         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
1419         argument instead of NAME.
1420         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
1421         in call to symbol_file_add_with_addrs_or_offsets.
1422         (build_addr_info): New function, helper for ...
1423         (symbol_file_add_from_memory): New function.
1424         (add_symbol_file_from_memory_command): New function using that.
1425         (_initialize_symfile): Register it for add-symbol-file-from-memory.
1426         (pre_add_symbol_hook): Add const to argument type.
1427         * symfile.h (symbol_file_add_from_memory): Declare it.
1428
1429 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
1430
1431         * NEWS (New native configurations): Mention OpenBSD/vax.
1432         * configure.host: Add vax-*-openbsd*.
1433         * config/vax/obsd.mh: New file.
1434         * config/vax/nm-obsd.h: New file.
1435
1436         * vax-tdep.c: Include "regset.h".
1437         (vax_supply_gregset): New function.
1438         (vax_gregset): New variable.
1439         (vax_regset_from_core_section): New function.
1440         (vax_gdbarch_init): Set regset_from_core_section.
1441         * Makefile.in (vax-tdep.o): Update dependencies.
1442
1443 2004-04-15  Andrew Cagney  <cagney@redhat.com>
1444
1445         * observer.c (normal_stop_subject, observer_notify_normal_stop)
1446         (observer_normal_stop_notification_stub)
1447         (observer_attach_normal_stop, observer_detach_normal_stop):
1448         Delete, replaced by #include "observer.inc".
1449         * infrun.c (normal_stop): Pass "stop_bpstat" to
1450         observer_notify_normal_stop.
1451         * Makefile.in (observer_inc): Define.
1452         (observer.o): Update dependencies.
1453         (observer.h, observer.inc): New rules.
1454         * observer.h: Delete file.
1455         * observer.sh: New file.
1456
1457 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
1458
1459         * vax-tdep.c (vax_frame_cache): Fix typo.
1460
1461 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
1462
1463         * NEWS (New native configurations): Mention NetBSD/vax.
1464         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
1465         * config/vax/nbsdelf.mh: New file.
1466         * config/vax/nbsdaout.mh: New file.
1467         * config/vax/nm-nbsd.h: New file.
1468         * config/vax/nm-nbsdaout.h: New file.
1469
1470         * vaxnbsd-tdep.c: New file.
1471         * Makefile.in (vaxnbsd-tdep.o): New dependency.
1472         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
1473         * config/vax/nbsd.mt: New file.
1474         * config/vax/tm-nbsd.h: New file.
1475
1476         * Makefile.in (vaxbsd-nat.o): New dependency.
1477
1478         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
1479         * vax-tdep.c (vax_store_arguments): Remove struct_return and
1480         struct_addr arguments.  Don't push return value address.
1481         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
1482         arguments to vax_store_arguments.  Store return value address in
1483         R1.
1484         (vax_store_struct_return, vax_extract_return_value)
1485         (vax_store_return_value): Remove functions.
1486         (vax_return_value): New function.
1487         (vax_gdbarch_init): Set return value.  Don't set
1488         deprecated_store_struct_return, deprecated_extract_struct_return
1489         and deprecated_store_return_value.
1490
1491 2004-04-14  Andreas Schwab  <schwab@suse.de>
1492
1493         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
1494         value buffer.
1495         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
1496
1497 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
1498
1499         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
1500         (vax_unwind_dummy_id): New functions.
1501         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
1502         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
1503         variables.
1504         (vax_fix_call_dummy): Remove function.
1505         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
1506         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
1507         call_dummy_location, deprecated_call_dummy_words,
1508         deprecated_sizeof_call_dummy_words,
1509         deprecated_call_dummy_breakpoint_offset,
1510         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
1511         and deprecated_dummy_write_sp.
1512
1513 2004-04-13  David Carlton  <carlton@kealia.com>
1514
1515         * MAINTAINERS: Move myself to "paper trail" section.
1516
1517 2004-04-12  Mark Kettenis  <kettenis@gnu.org>
1518
1519         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
1520         "trad-frame.h".
1521         (vax_frame_init_saved_regs): Remove function.
1522         (vax_sigtramp_saved_pc): Remove function.
1523         (vax_frame_saved_pc): Remove function.
1524         (vax_frame_args_address): Remove function.
1525         (vax_frame_num_args): Rewrite.
1526         (vax_frame_chain): Remove function.
1527         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
1528         VAX_FP_REGNUM.
1529         (vax_pop_frame): Likewise.
1530         (vax_saved_pc_after_call): Remove function.
1531         (struct vax_frame_cache): New structure.
1532         (vax_frame_cache): New function.
1533         (vax_frame_this_id): New function.
1534         (vax_frame_prev_register): New function.
1535         (vax_frame_unwind): New variable.
1536         (vax_frame_sniffer): New function.
1537         (vax_frame_base_address): New function.
1538         (vax_frame_args_address): New function.
1539         (vax_frame_base): New variable.
1540         (vax_unwind_pc): New function.
1541         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
1542         deprecated_fp_regnum, deprecated_saved_pc_after_call,
1543         deprecated_frame_chain, deprecated_frame_saved_pc,
1544         deprecated_frame_args_address and
1545         deprecated_frame_init_saved_regs.
1546         * Makefile.in (vax-tdep.o): Update dependencies.
1547
1548         * vaxbsd-nat.c: New file.
1549
1550         * vax-tdep.h: Update copyright year.  Adjust comments.
1551         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
1552         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
1553         (vax_regnum): New enum.  Replacing...
1554         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
1555         (VAX_PS_REGNUM): ... these removed macros.
1556         * vax-tdep.c (vax_register_name): Remove prototype.
1557         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
1558         (vax_register_byte, vax_register_raw_size,
1559         vax_register_virtual_size, vax_register_virtual_type): Remove
1560         functions.
1561         (vax_register_type): New function.
1562         (vax_breakpoint_from_pc): Reorganize.
1563         (vax_gdbarch_init): Set register_type.  Don't set
1564         deprecated_register_size, deprecated_register_bytes,
1565         deprecated_register_byte, deprecated_register_raw_size,
1566         deprecated_max_register_raw_size,
1567         deprecated_register_virtual_size,
1568         deprecated_max_register_virtual_size and
1569         deprecated_register_virtual_type.  Add comment on stack direction.
1570
1571 2004-04-11  Mark Kettenis  <kettenis@gnu.org>
1572
1573         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
1574         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
1575         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
1576
1577 2004-04-10  Randolph Chung  <tausq@debian.org>
1578
1579         * MAINTAINERS (write after approval): Add myself.
1580
1581 2004-04-07  Randolph Chung  <tausq@debian.org>
1582
1583         * hppa-tdep.c (hppa_inner_than): Remove.
1584         (is_pa_2): Remove unused static variable.
1585         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
1586
1587 2004-03-10  Paul N. Hilfinger  <Hilfinger@gnat.com>
1588
1589         * language.h (language_defn): Add new la_post_parser field.
1590         * parser-defs.h (null_post_parser): New declaration (default for
1591         la_post_parser).
1592
1593         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
1594         insert call to that function.
1595         (parse_exp_in_context): New function, including code formerly in
1596         parse_exp_1.  Calls language-dependent post-parser after
1597         prefixification.
1598         (parse_expression_in_context): New exported function.
1599         (null_post_parser): New definition.
1600         * expression.h (parse_expression_in_context): Add declaration.
1601
1602         * p-lang.c (pascal_language_defn): Add trivial post-parser.
1603         * c-lang.c (c_language_defn): Ditto.
1604         (cplus_language_defn): Ditto.
1605         (asm_language_defn): Ditto.
1606         (minimal_language_defn): Ditto.
1607         * f-lang.c (f_language_defn): Ditto.
1608         * jv-lang.c (java_language_defn): Ditto.
1609         * language.c (unknown_language_defn): Ditto.
1610         (auto_language_defn): Ditto.
1611         (local_language_defn): Ditto.
1612         * m2-lang.c (m2_language_defn): Ditto.
1613         * scm-lang.c (scm_language_defn): Ditto.
1614         * obj-lang.c (objc_language_defn): Ditto.
1615
1616 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
1617
1618         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
1619         (amd64nbsd_mcontext_addr): New function.
1620         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
1621         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
1622         with amd64nbsd_r_reg_offset, instead of building it on the fly.
1623
1624         * corelow.c (core_xfer_partial): Fix coding standards violation.
1625         Add support for TARGET_OBJECT_WCOOKIE.
1626
1627         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
1628         deprecated_pc_in_sigtramp.
1629         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1630         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1631         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
1632         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
1633         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
1634         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
1635         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
1636
1637         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
1638         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
1639         Fix typo.
1640
1641         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
1642         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
1643         (amd64_collect_fxsave): Likewise.
1644
1645         * i386-sol2-tdep.c: Include "gdb_string.h".
1646         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
1647         name.
1648         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
1649
1650 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
1651
1652         * i386-sol2-tdep.c: Include "solib-svr4.h".
1653         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
1654         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
1655         * config/i386/tm-i386sol2.h: Include :solib.h".
1656         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
1657         solib-svr4.o and solib-legacy.o.
1658         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
1659         solib-svr4.o.
1660
1661 2004-04-09  Mark Kettenis  <kettenis@gnu.org>
1662
1663         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
1664         whether a register is supplied by PTRACE_GETFPREGS.
1665         (store_inferior_registers): Likewise.
1666         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
1667         whether a register is supplied by PT_GETFPREGS.
1668         (store_inferior_registers): Likewise.
1669
1670         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
1671         * config/i386/linux64.mt (TDEPFILES): Likewise.
1672
1673         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
1674
1675         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
1676         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
1677         the program counter is in the range specified by `struct
1678         gdbarch_tdep'.
1679         * amd64-linux-tdep.c: Include "symtab.h".
1680         (amd64_linux_pc_in_sigtramp): Remove function.
1681         (amd64_linux_sigtramp_p): New function.
1682         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
1683         deprecated_pc_in_sigtramp.
1684         * amd64nbsd-tdep.c: Include "symtab.h".
1685         (amd64nbsd_sigtramp_p): New function.
1686         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
1687         deprecated_pc_in_sigtramp.
1688         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
1689         few comments.
1690         (amd64obsd_pc_in_sigtramp): Remove function.
1691         (amd64obsd_sigtramp_p): New function.
1692         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
1693         deprecated_pc_in_sigtramp.
1694         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
1695         (i386bsd_pc_ins_sigtramp): Remove prototype.
1696         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
1697         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
1698         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
1699         the program counter is in the range specified by `struct
1700         gdbarch_tdep'.
1701         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
1702         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
1703         (i386_go32_pc_in_sigtramp): Remove function.
1704         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
1705         Initialize TDEP->sigtramp_p.
1706         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
1707         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
1708         deprecated_pc_in_sigtramp.
1709         * i386-linux-tdep.c: Adjust comments.
1710         (i386_linux_pc_in_sigtramp): Remove function.
1711         (i386_linux_sigtramp_p): New function.
1712         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
1713         deprecated_pc_in_sigtramp.
1714         * i386-nto-tdep.c: Update copyright year.
1715         (i386nto_pc_in_sigtramp): Remove function.
1716         (i386nto_sigtramp_p): New function.
1717         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
1718         SP_REGNUM.
1719         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
1720         deprecated_pc_in_sigtramp.
1721         * i386-sol2-tdep.c: Update copyright year.
1722         (i386_sol2_pc_in_sigtramp): Remove function.
1723         (i386_sol2_sigtramp_p): New function.
1724         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
1725         deprecated_pc_in_sigtramp.
1726         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
1727         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
1728         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
1729         deprecated_sigtramp_start and deprecated_sigtramp_end.
1730         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
1731         (i386nbsd_pc_in_sigtramp): Remove function.
1732         (i386nbsd_sigtramp_p): New function.
1733         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
1734         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
1735         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
1736         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
1737         (i386obsd_pc_in_sigtramp): Remove function.
1738         (i386obsd_sigtramp_p): New function.
1739         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
1740         functions.
1741         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
1742         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
1743         TDEP->sigtramp_p.
1744         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
1745         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
1746         dependencies.
1747
1748         * config/i386/i386aout.mt: Remove file.
1749
1750         * configure.tgt: Remove i[34567]86-*-go32*,
1751         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
1752         and i[34567]86-*-isc*.  Set gdb_target to i386 for
1753         i[34567]86-*-netware* and i[34567]86-*-*.
1754         * config/i386/i386.mt: New file.
1755         * config/i386/embed.mt: Remove file.
1756         * config/i386/go32.mt: Remove file.
1757         * config/i386/i386nw.mt: Remove file.
1758         * config/i386/i386v.mt: Remove file.
1759         * config/i386/tm-go32.h: Remove file.
1760
1761         * tui/tui-hooks.c: Include "readline/readline.h" after
1762         "gdb_curses.h" instead of before.
1763         * tui/tui-io.c: Likewise.
1764
1765         * tui/tui.c: Fix typo in comment.
1766
1767         * sparc64-tdep.c (sparc_address_from_register): Remove function.
1768
1769 2004-04-08  Andrew Cagney  <cagney@redhat.com>
1770
1771         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
1772         (deprecated_exception_support_initialized): Declare.
1773         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
1774         (initialize_hp_cxx_exception_support)
1775         (child_enable_exception_callback): Update.
1776         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
1777         (deprecated_exception_support_initialized): Rename
1778         deprecated_exception_catchpoints_are_fragile and
1779         deprecated_exception_support_initialized.
1780         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
1781
1782         * symtab.c (deprecated_hp_som_som_object_present): Rename
1783         hp_som_som_object_present.
1784         * symtab.h (deprecated_hp_som_som_object_present): Declare.
1785         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
1786         Update.  Delete extern declaration.
1787         * valops.c (hp_som_som_object_present): Ditto.
1788         * parse.c (deprecated_hp_som_som_object_present)
1789         (parse_nested_classes_for_hpacc): Ditto.
1790         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
1791         * hppa-hpux-tdep.c (hp_som_som_object_present)
1792         (initialize_hp_cxx_exception_support): Ditto.
1793         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
1794         * cp-valprint.c (hp_som_som_object_present)
1795         (cp_print_class_method): Ditto.
1796         * c-typeprint.c (hp_som_som_object_present):
1797         (c_type_print_base): Ditto.
1798         * c-exp.y (hp_som_som_object_present): Ditto.
1799
1800 2004-04-08  Andrew Cagney  <cagney@redhat.com>
1801
1802         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
1803         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
1804         (frame_unwind_find_by_frame): Re-implement the unwind code so
1805         that it can both prepend and append sniffers.  Replace
1806         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
1807         * tramp-frame.c (tramp_frame_append): Use
1808         frame_unwind_prepend_unwinder.
1809         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
1810         frame_unwind_register_unwinder.
1811         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
1812         tramp_frame_append.
1813         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
1814         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
1815         (mips_linux_init_abi): Update.
1816
1817 2004-04-08  Kevin Buettner  <kevinb@redhat.com>
1818
1819         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
1820         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
1821         file support.
1822
1823 2004-04-07  Kevin Buettner  <kevinb@redhat.com>
1824
1825         * ia64-tdep.c (elf.h): Don't include.
1826         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
1827
1828 2004-04-07  Jason Molenda  (jmolenda@apple.com)
1829
1830         * frame.h: Typeo corrections in comments.
1831
1832 2004-04-07  Jim Blandy  <jimb@redhat.com>
1833
1834         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
1835         %esp and %ebp
1836
1837 2004-04-07  Mark Kettenis  <kettenis@gnu.org>
1838
1839         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
1840         * config/sparc/linux64.mt (TDEPFILES): Likewise.
1841         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1842         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
1843         and solib-legacy.o.
1844         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
1845         solib-svr4.o.
1846         * config/sparc/tm-sol2.h: Update copyright year.  Include
1847         "solib.h".
1848
1849         * sparc-sol2-tdep.c: Update copyright year.  Include
1850         "solib-svr4.h".
1851         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
1852         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
1853         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
1854         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
1855         dependencies.
1856
1857 2004-04-06  Andrew Cagney  <cagney@redhat.com>
1858
1859         * infttrace.c: Include "infttrace.h".
1860         * infttrace.h: Include "target.h".
1861         * Makefile.in (infttrace_h): Update.
1862         (infttrace.o): Update.
1863
1864 2004-04-06  Andrew Cagney  <cagney@redhat.com>
1865
1866         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
1867         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
1868         move extern declarations from here ...
1869         * infttrace.h: ... to here.
1870         * Makefile.in (hppah-nat.o): Update dependencies.
1871
1872         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
1873         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
1874         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
1875         (hppa_breakpoint_from_pc): Delete.
1876
1877         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
1878
1879 2004-04-05  Andrew Cagney  <cagney@redhat.com>
1880
1881         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
1882         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
1883         <sys/file.h>.
1884
1885 2004-04-06  Randolph Chung  <tausq@debian.org>
1886
1887         Committed by Andrew Cagney (mechanical change).
1888         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
1889         exception_catchpoints_are_fragile, find_stub_with_shl_get,
1890         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
1891         child_enable_exception_callback, current_ex_event,
1892         null_symtab_and_line, child_get_current_exception_event,
1893         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
1894         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
1895         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
1896         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
1897         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
1898         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
1899         Move hpux-specific definitions ...
1900         * hppa-hpux-tdep.c: ... to here.
1901
1902 2004-04-05  Andrew Cagney  <cagney@redhat.com>
1903
1904         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
1905         skip_prologue_using_sal.
1906
1907 2004-04-05  Andrew Cagney  <cagney@redhat.com>
1908
1909         * config/i386/tm-i386.h: Delete file.
1910         * config/i386/tm-vxworks.h: Update copyright, do not include
1911         "tm-i386.h".
1912         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
1913         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
1914         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
1915         * config/i386/ncr3000.mt (TM_FILE): Delete.
1916         * config/i386/interix.mt (TM_FILE): Delete.
1917         * config/i386/i386v.mt (TM_FILE): Delete.
1918         * config/i386/i386nw.mt (TM_FILE): Delete.
1919         * config/i386/i386gnu.mt (TM_FILE): Delete.
1920         * config/i386/i386aout.mt (TM_FILE): Delete.
1921         * config/i386/embed.mt (TM_FILE): Delete.
1922
1923 2004-04-05  Kevin Buettner  <kevinb@redhat.com>
1924
1925         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
1926         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
1927         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
1928         (accg7_regnum): New constants.
1929         (last_spr_regnum, last_pseudo_regnum): Update.
1930         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
1931         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
1932         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
1933         for accg registers.
1934         (frv_register_sim_regno): Update spr_map[].
1935
1936 2004-04-04  Andrew Cagney  <cagney@redhat.com>
1937
1938         * config/mips/xm-riscos.h: Delete.
1939         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
1940         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
1941         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
1942         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
1943         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
1944         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
1945         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
1946         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
1947         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
1948         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
1949         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
1950         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
1951         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
1952         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
1953         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
1954         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
1955         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
1956         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
1957         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
1958         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
1959         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
1960         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
1961         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
1962         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
1963         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
1964         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
1965
1966         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
1967         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
1968         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
1969         * configure.host: Remove m680[01]0-sun-sunos3*,
1970         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
1971         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
1972         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
1973         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
1974         mips-*-riscos*.
1975         * NEWS: Mention removed systems.
1976
1977 2004-04-04  Andrew Cagney  <cagney@redhat.com>
1978
1979         GDB 6.1 release created from 6.1 branch.
1980
1981 2004-04-04  Andrew Cagney  <cagney@redhat.com>
1982
1983         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
1984         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1985         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
1986
1987         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
1988         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
1989         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
1990
1991 2004-04-03  Jim Blandy  <jimb@redhat.com>
1992
1993         * MAINTAINERS: Chris Faylor has changed employers; add him to
1994         "paper trail" section, and update his E-mail address.
1995
1996 2004-04-03  Andrew Cagney  <cagney@redhat.com>
1997
1998         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
1999         generic dummy frames.
2000         * dummy-frame.c: Update copyright.
2001         (dummy_frame_sniffer): Delete check for generic dummy frames.
2002
2003         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
2004         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
2005         (REG_PARM_STACK_SPACE): Delete.
2006         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
2007         Inline reference to REG_PARM_STACK_SPACE.
2008
2009         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
2010         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
2011         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
2012         (FRAME_BASE_BEFORE_SIGTRAMP)
2013         (hppa32_hpux_frame_base_before_sigtramp)
2014         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
2015         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
2016         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
2017         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
2018         (FRAME_BASE_BEFORE_SIGTRAMP)
2019         (hppa64_hpux_frame_base_before_sigtramp)
2020         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
2021
2022 2004-04-03  Andrew Cagney  <cagney@redhat.com>
2023
2024         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
2025
2026 2004-04-02  Andrew Cagney  <cagney@redhat.com>
2027
2028         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
2029         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
2030         * dummy-frame.h: Delete out-of-date comments.
2031         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
2032         * gdbarch.h, gdbarch.c: Re-generate.
2033
2034 2004-04-02  Joel Brobecker  <brobecker@gnat.com>
2035
2036         Committed by Andrew Cagney <cagney@redhat.com>.
2037         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
2038         into account an instruction saving a register if we have already
2039         seen an earlier instruction saving that same register.
2040
2041 2004-04-02  Andrew Cagney  <cagney@redhat.com>
2042
2043         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
2044         * gdbarch.h, gdbarch.c: Re-generate.
2045         * frame.c (legacy_get_prev_frame): Delete references to
2046         DEPRECATED_INIT_FRAME_PC_FIRST.
2047
2048         * infrun.c (pc_in_sigtramp): Delete function.
2049         (check_sigtramp2): Inline call to pc_in_sigtramp, use
2050         get_frame_type.
2051
2052 2004-04-02  Andrew Cagney  <cagney@redhat.com>
2053
2054         * infrun.c (handle_step_into_function): Delete code conditional on
2055         legacy_frame_p.
2056         (handle_inferior_event, step_over_function): Ditto.
2057
2058 2004-04-02  Andrew Cagney  <cagney@redhat.com>
2059
2060         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
2061         "previous frame inner to this frame" test.
2062
2063 2004-04-02  Andrew Cagney  <cagney@redhat.com>
2064
2065         * frame.c (safe_frame_unwind_memory): New function.
2066         * frame.h (safe_frame_unwind_memory): Declare.  Update description
2067         of /safe_/ methods.
2068         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
2069         "next_frame".  Use safe_frame_unwind_memory.
2070         (tramp_frame_sniffer): Update call to tramp_frame_start.
2071
2072 2004-04-01  Daniel Jacobowitz  <drow@mvista.com>
2073
2074         * dwarf2read.c (dwarf2_objfile_data_key): New.
2075         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
2076         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
2077         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
2078         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
2079         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
2080         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
2081         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
2082         Remove variables.
2083         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
2084         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
2085         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
2086         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
2087         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
2088         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
2089         Remove macros.
2090         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
2091         data.
2092         (dwarf2_locate_sections, dwarf2_build_psymtabs)
2093         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
2094         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
2095         (read_partial_die, read_full_die, read_indirect_string)
2096         (dwarf_decode_line_header, dwarf_decode_macros)
2097         (dwarf2_symbol_mark_computed): Remove use of removed macros.
2098         Update uses of removed variables.
2099         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
2100         of removed macros.
2101         (_initialize_dwarf2_read): New function.
2102         * symfile.h (dwarf2_has_info): Update prototype.
2103         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
2104         * elfread.c (elf_symfile_read): Likewise.
2105
2106 2004-04-01  Jim Blandy  <jimb@redhat.com>
2107
2108         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
2109         function for register numbers on all the rs6000-derived targets.
2110         (rs6000_gdbarch_init): Don't register a separate
2111         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
2112         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
2113         variants.
2114
2115         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
2116         numbering.
2117
2118 2004-04-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
2119
2120         * valarith.c: Update copyright notice.
2121         (value_add): Handle range types.
2122         (value_sub): Ditto.
2123         (value_equal): Ditto.
2124         (value_less): Ditto.
2125         (value_neg): Ditto.
2126         (value_complement): Ditto.
2127         (value_binop): Simplify slightly by using is_integral_type and
2128         eliminiating unnecessary COERCE_ENUMs.
2129
2130 2004-03-31  Andrew Cagney  <cagney@redhat.com>
2131
2132         * frame.h (frame_unwind_id): Declare.
2133         * frame.c (frame_unwind_id): New function.
2134         (get_prev_frame_1): New function.
2135         (frame_debug_got_null_frame): New function.
2136         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
2137         code proper to prev_frame, update description.
2138         * infrun.c (step_over_function): Use frame_unwind_id.
2139
2140 2004-04-31  J. Brobecker  <brobecker@gnat.com>
2141
2142         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
2143         (hppa64_push_dummy_call): Likewise.
2144
2145 2004-03-30  Jim Blandy  <jimb@redhat.com>
2146
2147         From Ulrich Weigand:
2148         * utils.c (query): Do not use a va_list variable multiple times.
2149
2150 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
2151
2152         * Makefile.in (linux_nat_h): Update dependencies.
2153         * configure.in: Check for <gnu/libc-version.h>.
2154         * configure: Regenerate.
2155         * config.in: Regenerate.
2156         * linux-nat.h: Include "target.h".  Add waitstatus field to
2157         struct lwp_info.
2158         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
2159         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
2160         to.
2161         (lin_lwp_handle_extended): New function.  Handle clone events.
2162         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
2163         thread exit events.
2164         (child_wait): Handle clone events.
2165         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
2166         * linux-nat.c (linux_enable_event_reporting): Turn on
2167         PTRACE_O_TRACECLONE.
2168         (linux_handle_extended_wait): Handle clone events.
2169         * thread-db.c: Include <gnu/libc-version.h>.
2170         (struct private_thread_info): Add dying flag.
2171         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
2172         higher.
2173         (attach_thread): Update comments.  Handle dying threads.
2174         (detach_thread): Set the dying flag.
2175         (check_event): Always call attach_thread.
2176
2177 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
2178
2179         * mips-tdep.c (mips_pdr_data): New.
2180         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
2181         (_initialize_mips_tdep): Initialize mips_pdr_data.
2182
2183 2004-03-29  Corinna Vinschen  <vinschen@redhat.com>
2184
2185         * minsyms.c (install_minimal_symbols): Move dropping leading
2186         char from linkage name from here...
2187         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
2188         test for "__gnu_compiled*" symbols.
2189
2190 2004-03-28  Jim Blandy  <jimb@redhat.com>
2191
2192         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
2193         registers to temp register r0 and byte stores as prologue
2194         instructions.
2195
2196 2004-03-28  Andrew Cagney  <cagney@redhat.com>
2197
2198         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
2199         arm*-*-*.
2200
2201 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
2202
2203         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
2204         and switch the layout to force a display of register window.
2205
2206 2004-02-26  J. Brobecker  <brobecker@gnat.com>
2207
2208         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
2209         of the INTEGER class.
2210
2211 2004-03-26  Jim Blandy  <jimb@redhat.com>
2212
2213         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
2214         bytes long on PPC GNU/Linux.
2215
2216 2004-03-26  David Carlton  <carlton@kealia.com>
2217
2218         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
2219
2220 2004-03-25  Andrew Cagney  <cagney@redhat.com>
2221
2222         * PROBLEMS: Add general section titles, remove references to
2223         specific releases.
2224
2225 2004-03-25  Daniel Jacobowitz  <drow@mvista.com>
2226
2227         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
2228         INT_REGISTER_SIZE.
2229         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
2230         FP_REGISTER_VIRTUAL_SIZE.
2231         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
2232         of DEPRECATED_REGISTER_RAW_SIZE.
2233         (arm_register_type): Add gdbarch argument.
2234         (arm_register_raw_size, arm_register_virtual_size): Delete.
2235         (arm_register_byte, arm_extract_return_value)
2236         (arm_store_return_value, arm_get_longjmp_target): Update references
2237         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
2238         (arm_gdbarch_init): Likewise.  Don't set
2239         deprecated_register_raw_size, deprecated_register_virtual_size,
2240         deprecated_max_register_raw_size,
2241         deprecated_max_register_virtual_size, or
2242         deprecated_max_register_virtual_type.  Do set register_type.
2243         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
2244         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
2245         (FP_REGISTER_VIRTUAL_SIZE): Delete.
2246         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
2247         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
2248         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
2249         INT_REGISTER_SIZE.
2250         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
2251         (remote_rdp_store_register): Likewise.
2252
2253 2004-03-24  Daniel Jacobowitz  <drow@mvista.com>
2254
2255         * Makefile.in (mips-linux-tdep.o): Update dependencies.
2256         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
2257         to after osabi initialization.
2258         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
2259         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
2260         functions.
2261         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
2262         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
2263         variables.
2264         (mips_linux_init_abi): Append signal trampoline unwinders.
2265
2266 2004-03-24  Andrew Cagney  <cagney@redhat.com>
2267
2268         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
2269         * tramp-frame.c: Include "gdb_assert.h".
2270         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
2271         correct sizeof.
2272         (tramp_frame_append): Validate the tramp frame's instructions.
2273         * Makefile.in (tramp-frame.o): Update dependencies.
2274
2275 2004-03-23  Andrew Cagney  <cagney@redhat.com>
2276
2277         * trad-frame.h (trad_frame_set_reg_addr): Declare.
2278
2279 2004-03-23  Andrew Cagney  <cagney@redhat.com>
2280
2281         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
2282         Nasser as past testsuite/lib/ (and other) maintainers.
2283
2284 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
2285
2286         * infcmd.c (attach_command): Reread symbols if we already have
2287         an exec file.
2288
2289 2004-03-23  Andrew Cagney  <cagney@redhat.com>
2290
2291         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
2292
2293 2004-03-23  Andrew Cagney  <cagney@redhat.com>
2294
2295         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
2296         * gdbarch.h, gdbarch.c: Re-generate.
2297         * i386obsd-tdep.c (i386obsd_init_abi): Update.
2298         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
2299         * i386bsd-tdep.c (i386bsd_init_abi): Update.
2300         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
2301         (DEPRECATED_SIGTRAMP_START): Update.
2302         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
2303         (DEPRECATED_SIGTRAMP_START): Update.
2304         * blockframe.c (find_pc_sect_partial_function): Update.
2305         * arch-utils.c (legacy_pc_in_sigtramp): Update.
2306
2307 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
2308
2309         * remote.c (remote_open_1): Reopen the exec file and reread symbols
2310         if necessary.
2311
2312 2004-03-23  Andrew Cagney  <cagney@redhat.com>
2313
2314         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
2315         predicate, deprecate.
2316         * gdbarch.h, gdbarch.c: Re-generate.
2317         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
2318         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
2319         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
2320         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
2321         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
2322         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
2323         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
2324         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
2325         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
2326         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
2327         * blockframe.c (find_pc_partial_function): Update.
2328         * breakpoint.c (bpstat_what): Update.
2329         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
2330         * frv-linux-tdep.c (frv_linux_init_abi): Update.
2331         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
2332         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
2333         * i386-interix-tdep.c (i386_interix_init_abi): Update.
2334         * i386-linux-tdep.c (i386_linux_init_abi): Update.
2335         * i386-nto-tdep.c (i386nto_init_abi): Update.
2336         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
2337         * i386-tdep.c (i386_sigtramp_frame_sniffer)
2338         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
2339         * i386bsd-tdep.c (i386bsd_init_abi): Update.
2340         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
2341         * i386obsd-tdep.c (i386obsd_init_abi): Update.
2342         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
2343         * infrun.c (pc_in_sigtramp): Update.
2344         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
2345         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
2346         * mips-tdep.c (mips_gdbarch_init): Update.
2347         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
2348         * ppc-linux-tdep.c: Update comment.
2349         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
2350         * shnbsd-tdep.c (shnbsd_init_abi): Update.
2351         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
2352         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
2353         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
2354         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
2355         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
2356         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
2357         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
2358         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
2359
2360 2004-03-23  Andrew Cagney  <cagney@redhat.com>
2361
2362         * tramp-frame.h, tramp-frame.h: New files.
2363         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
2364         Update rules to include "tramp-frame.h" and "tramp-frame.c".
2365
2366         * Makefile.in: Update all dependencies.
2367
2368 2004-03-23  Andrew Cagney  <cagney@redhat.com>
2369
2370         * Makefile.in (trad_frame_h): Add $(frame_h).
2371         * trad-frame.h: Update copyright.  Include "frame.h".
2372         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
2373         (trad_frame_set_id, trad_frame_get_id): Declare.
2374         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
2375         * trad-frame.c: Update copyright.
2376         (struct trad_frame_cache): Define.
2377         (trad_frame_cache_zalloc): New function.
2378         (trad_frame_set_id, trad_frame_get_id): New functions.
2379         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
2380
2381 2004-03-22  Andrew Cagney  <cagney@redhat.com>
2382
2383         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
2384         s390_pltstub_unwind_cache.
2385         (s390_stub_frame_unwind_cache): Rename
2386         s390_pltstub_frame_unwind_cache.
2387         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
2388         (s390_stub_frame_prev_register): Rename
2389         s390_pltstub_frame_prev_register.
2390         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
2391         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
2392
2393         From Ulrich Weigand:
2394         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
2395         pointer calls like PLT calls.
2396
2397 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
2398
2399         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
2400         PC rather than the partial function start address.  Use the start
2401         address to sanity check the found PDR.
2402
2403 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
2404
2405         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
2406         linux_handle_extended_wait.
2407
2408 2004-03-22  Andrew Cagney  <cagney@redhat.com>
2409
2410         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
2411         function.
2412
2413         * frame.h (generic_pop_current_frame): Delete declaration.
2414         (deprecate_pop_dummy_frame): Deprecate
2415         generic_pop_dummy_frame.
2416         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
2417         (generic_pop_current_frame): Delete function.
2418         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
2419         generic_pop_current_frame.
2420         * v850-tdep.c (v850_pop_frame): Update.
2421         * mcore-tdep.c (mcore_pop_frame): Update.
2422         * sh64-tdep.c (sh64_pop_frame): Update.
2423         * h8300-tdep.c (h8300_pop_frame): Update.
2424
2425 2004-03-22  Andrew Cagney  <cagney@redhat.com>
2426
2427         * frame.h (deprecated_pc_in_call_dummy): Rename
2428         generic_pc_in_call_dummy.
2429         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
2430         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
2431         generic_pc_in_call_dummy.
2432         (pc_in_dummy_frame): Make static.
2433         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
2434         * gdbarch.h, gdbarch.c: Re-generate.
2435         * dummy-frame.c (dummy_frame_sniffer): Simplify.
2436         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
2437         (legacy_get_prev_frame): Ditto.
2438         * inferior.h: Delete reference to generic_pc_in_call_dummy in
2439         comment.
2440
2441 2004-03-21  Andrew Cagney  <cagney@redhat.com>
2442
2443         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
2444         declaration and out-of-date comment.
2445         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2446         Delete function.
2447         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2448         deprecated_pc_in_call_dummy.
2449
2450         * infrun.c (handle_inferior_event): For non legacy frames, use the
2451         frame ID and frame type to identify a signal trampoline.  Update
2452         comments.
2453
2454 2004-03-21  Nathan J. Williams  <nathanw@wasabisystems.com>
2455
2456         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
2457         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
2458
2459 2004-03-21  Andrew Cagney  <cagney@redhat.com>
2460
2461         * frame-unwind.h: Update copyright.
2462         (struct frame_data): Add opaque declaration.
2463         (frame_sniffer_ftype): Declare.
2464         (struct frame_unwind): Add "unwind_data" and "sniffer".
2465         (frame_unwind_register_unwinder): Declare.
2466         (frame_unwind_find_by_frame): Add parameter "this_cache".
2467         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
2468         (legacy_get_prev_frame, legacy_get_prev_frame)
2469         (get_frame_type): Pass the prologue_cache to
2470         frame_unwind_find_by_frame.
2471         * frame-unwind.c (struct frame_unwind_table_entry): Add field
2472         "unwinder".
2473         (frame_unwind_register_unwinder): New function.
2474         (frame_unwind_find_by_frame): Handle an unwind sniffer.
2475
2476 2004-03-20  Paul Hilfinger  <hilfingr@nile.gnat.com>
2477
2478         * bcache.c (print_percentage): Use floating point to avoid
2479         incorrect results when portion*100 overflows.
2480
2481 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
2482
2483         * ppc_tdep.h (ppc_linux_frame_saved_pc)
2484         (ppc_linux_init_extra_frame_info)
2485         (ppc_linux_frameless_function_invocation)
2486         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
2487         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
2488         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
2489         (rs6000_frame_chain): Delete declarations.
2490         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
2491         (ppc_linux_init_extra_frame_info)
2492         (ppc_linux_frameless_function_invocation)
2493         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
2494         (ppc_linux_init_abi): Remove registration of above deleted functions.
2495         * rs6000-tdep.c (rs6000_init_extra_frame_info)
2496         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
2497         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
2498         (rs6000_pop_frame, rs6000_frameless_function_invocation)
2499         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
2500         (rs6000_gdbarch_init): Remove registration of above deleted functions.
2501         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
2502         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
2503         frame management for all OSABIs.
2504
2505 2004-03-19  Andrew Cagney  <cagney@redhat.com>
2506
2507         Committed by Kevin Buettner <kevinb@redhat.com>.
2508
2509         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
2510         Update copyright.
2511         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
2512         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
2513         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
2514         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
2515         unwinders.  #ifdef legacy frame code.
2516         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
2517         "frame-base.h".
2518         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
2519         (struct rs6000_frame_cache, rs6000_frame_cache)
2520         (rs6000_frame_this_id, rs6000_frame_prev_register)
2521         (rs6000_frame_sniffer, rs6000_frame_unwind)
2522         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
2523         (rs6000_frame_base): Implement a traditional frame unwinder.
2524         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
2525         frame unwinder.
2526
2527 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
2528
2529         * breakpoint.c (adjust_breakpoint_address): Don't adjust
2530         breakpoint address for watchpoints or the catch eventpoints.
2531         Add new paramter ``bptype''.  Adjust all callers.
2532
2533 2004-03-19  Andrew Cagney  <cagney@redhat.com>
2534
2535         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
2536
2537         * PROBLEMS: Delete note that ARM does not use frame code, problem
2538         fixed.
2539
2540 2004-03-18  Andrew Cagney  <cagney@redhat.com>
2541
2542         * stack.c (return_command): Delete code wrapped in #ifdef
2543         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
2544
2545         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
2546
2547 2004-03-18  Andrew Cagney  <cagney@redhat.com>
2548
2549         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
2550         DEPRECATED_IN_SIGTRAMP.
2551         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2552         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
2553         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2554         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2555         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2556         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2557         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2558         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2559         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
2560         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
2561
2562 2004-03-18  Andrew Cagney  <cagney@redhat.com>
2563
2564         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
2565         (struct frame_base_table_entry): Define.
2566         (struct frame_base_table): Re-implement as a linked list.
2567         (frame_base_init): Re-implement.
2568         (frame_base_table): Delete function.
2569         (append_predicate): Delete function.
2570         (frame_base_append_sniffer): Update.
2571         (frame_base_set_default): Update.
2572         (frame_base_find_by_frame): Update.
2573         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
2574         * Makefile.in (frame-base.o): Update dependencies.
2575
2576 2004-03-17  Andrew Cagney  <cagney@redhat.com>
2577
2578         * frame.c (legacy_get_prev_frame): Pass correct frame to
2579         frame_unwind_find_by_frame.
2580
2581 2004-03-17  David Carlton  <carlton@kealia.com>
2582
2583         * NEWS: Mention C++ nested types and namespaces
2584
2585 2004-03-16  Michael Chastain  <mec.gnu@mindspring.com>
2586
2587         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
2588         and "Regressions since gdb 5.3.".  Add known regressions since
2589         gdb 6.0.
2590
2591 2004-03-16  David Carlton  <carlton@kealia.com>
2592
2593         * dwarf2read.c (process_structure_scope): Process children even
2594         when we're a declaration.
2595
2596 2004-03-16  Andrew Cagney  <cagney@redhat.com>
2597
2598         * symtab.h (find_pc_sect_partial_function): Delete declaration.
2599         * blockframe.c (find_pc_partial_function)
2600         (find_pc_sect_partial_function): Merge into a single
2601         find_pc_partial_function.
2602
2603 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
2604
2605         * i386bsd-nat.c: s/regno/regnum/g.
2606         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
2607         FP0_REGNUM.
2608         (store_inferior_registers): Likewise.
2609
2610 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
2611
2612         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
2613         of i387_fill_fsave.
2614         (store_inferior_registers): Call i387_collect_fsave and
2615         i387_collect_fxsave instead of i387_fill_fsave and
2616         i387_fill_fxsave.
2617
2618 2004-03-15  Andrew Cagney  <cagney@redhat.com>
2619
2620         * Makefile.in (frame-unwind.o): Update dependencies.
2621         * frame-unwind.c: Include "gdb_obstack.h".
2622         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
2623         parameter.
2624         (append_predicate): Delete function.
2625         (struct frame_unwind_table_entry): New structure.
2626         (struct frame_unwind_table): Replace "sniffer" with "head" and
2627         "tail".
2628         (frame_unwind_append_sniffer): Update.
2629         (frame_unwind_find_by_frame): Update.
2630         (_initialize_frame_unwind): Registe frame_unwind_init using
2631         gdbarch_data_register_pre_init.
2632
2633 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
2634
2635         * i386bsd-nat.c: Update copyright year.
2636         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
2637         define unconditionally.
2638
2639 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
2640
2641         * i387-tdep.h (i387_collect_fsave): New prototype.
2642         * i387-tdep.c (i387_collect_fsave): New function containing most
2643         of the code from i387_fill_fsave.
2644         (i387_fill_fsave): Call i387_collect_fsave.
2645
2646 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
2647
2648         * i386-linux-tdep.c: Update copyright year.
2649         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
2650         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
2651         svr4_ilp32_link_map_offsets instead of
2652         i386_linux_svr4_fetch_link_map_offsets.
2653
2654 2004-03-15  David Carlton  <carlton@kealia.com>
2655
2656         Fix for PR c++/1553:
2657         * dwarf2read.c (read_structure_type): Determine type name by
2658         calling determine_class_name.
2659         (determine_class_name): New.
2660         (determine_prefix): Look at TYPE_TAG_NAME and call
2661         determine_class_name when appropriate.
2662         (determine_prefix_aux, class_name): Delete.
2663         (read_namespace): Set die->type.
2664
2665 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
2666
2667         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
2668         unused macro definition.  The definition in target.h (or perhaps
2669         elsewhere) takes precedence.
2670
2671 2004-03-15  Andrew Cagney  <cagney@redhat.com>
2672
2673         * ppc-tdep.h: Update copyright.
2674         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
2675         function signatures to match "regsets.h".
2676         * ppc-linux-tdep.c: Include "regset.h".
2677         (ELF_GREGSET_SIZE): Delete.
2678         (right_supply_register): New function.
2679         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
2680         using right_supply_register.
2681         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
2682         functions.
2683         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
2684         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
2685         (_initialize_ppc_linux_tdep): Do not register
2686         ppc_linux_regset_core_fns.
2687         (ppc_linux_regset_from_core_section): Replace
2688         fetch_core_registers.
2689         (ppc_linux_regset_core_fns): Delete.
2690         * ppc-linux-nat.c: (right_fill_reg): New function.
2691         (supply_gregset): Update call to ppc_linux_supply_gregset.
2692         (fill_gregset): Clear the register set, use right_fill_reg.
2693         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
2694         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
2695
2696         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
2697         unsigned.
2698
2699 2004-03-15  Andrew Cagney  <cagney@redhat.com>
2700
2701         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
2702         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
2703         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
2704         and register_gdbarch_data.
2705         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
2706         (struct gdbarch_data): Replace "init" by "pre_init" and
2707         "post_init".
2708         * gdbarch.h, gdbarch.c: Re-generate.
2709         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
2710         with"obstack", use OBSTACK_ZALLOC.
2711         (dwarf2_frame_ops): Delete.
2712         (dwarf2_frame_set_init_reg): Use gdbarch_data.
2713         (dwarf2_frame_init_reg): Use gdbarch_data.
2714         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
2715         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
2716         (_initialize_svr4_solib): Update.
2717         * user-regs.c (_initialize_user_regs): Update.
2718         * reggroups.c (_initialize_reggroup): Update.
2719         * regcache.c (_initialize_regcache): Update.
2720         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
2721         * libunwind-frame.c (_initialize_libunwind_frame): Update.
2722         * gnu-v3-abi.c (init_gnuv3_ops): Update.
2723         * frame-unwind.c (_initialize_frame_unwind): Update.
2724         * frame-base.c (_initialize_frame_base): Update.
2725         * user-regs.c (user_reg_add): Update.
2726         * reggroups.c (reggroup_add): Update.
2727         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
2728         * libunwind-frame.c (libunwind_frame_set_descr): Update.
2729         * frame-unwind.c (frame_unwind_append_sniffer): Update.
2730         * frame-base.c (frame_base_table): Update.
2731         * remote.c (_initialize_remote): Update.
2732         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
2733
2734 2004-03-15  Andrew Cagney  <cagney@redhat.com>
2735
2736         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
2737
2738 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
2739
2740         * Makefile.in (frv-linux-tdep.o): Add dependencies.
2741         * frv-linux-tdep.c: New file.
2742         * frv-tdep.c (struct gdbarch_tdep): Add new field
2743         ``sigcontext_reg_addr''.
2744         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
2745         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
2746         (frv_sigramp_frame_sniffer): New functions.
2747         (frv_sigtramp_frame_unwind): New static global.
2748         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
2749         sniffers.
2750         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
2751         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
2752
2753 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
2754
2755         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
2756         but not via a call to error(), when unable to read memory.
2757
2758 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
2759
2760         * frv-tdep.c (frv_call_dummy_words): Delete.
2761         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
2762
2763 2004-03-15  Andrew Cagney  <cagney@redhat.com>
2764
2765         * infrun.c (handle_step_into_function, step_over_function): Only
2766         update and use STEP_FRAME_ID when the system is using legacy
2767         frames.  Update comments.
2768
2769 2004-03-14  Mark Kettenis  <kettenis@gnu.org>
2770
2771         * amd64-linux-tdep.h: Remove file.
2772         * amd64-linux-tdep.c: Don't include "inferior.h" and
2773         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
2774         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
2775         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
2776         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
2777         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
2778         macros.
2779         (user_to_gdb_regmap): Remove variable.
2780         (amd64_linux_gregset_reg_offset): New variable.
2781         (amd64_core_fns): Remove variable.
2782         (fetch_core_registers): Remove function.
2783         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
2784         functions.
2785         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
2786         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
2787         * Makefile.in (amd64_linux_tdep_h): Remove.
2788         (amd64-linux-nat.o): Update dependencies.
2789         (amd64-linux-tdep.o): Update dependencies.
2790
2791         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2792         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
2793         functions.
2794         (fetch_inferior_registers, store_inferior_registers): Rewrite.
2795
2796         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
2797         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
2798
2799 2004-03-14  Daniel Jacobowitz  <drow@mvista.com>
2800
2801         * dwarf2read.c (read_structure_type): Rename from
2802         read_structure_scope.  Don't create a symbol or call process_die.
2803         Return immediately if die->type is set.  Call read_type_die before
2804         dwarf2_add_member_fn.
2805         (process_structure_scope): New function.
2806         (read_enumeration_type, process_enumeration_scope): New functions,
2807         broken out from read_enumeration.  Don't create the enumeration
2808         type if it has already been created.
2809         (read_enumeration): Removed.
2810         (process_die): Call read_structure_type, process_structure_scope,
2811         read_enumeration_type, and process_enumeration_scope.  Just call
2812         new_symbol for base and subrange types.  Add a comment about other
2813         type dies.
2814         (read_type_die): Call read_enumeration_type.
2815         (add_partial_structure, new_symbol): Update comments.
2816
2817 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
2818
2819         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
2820
2821 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
2822
2823         * tui/tui-win.h (tui_get_cmd_list): Declare.
2824         * tui/tui-win.c (tui_command): New function.
2825         (tui_get_cmd_list): New function.
2826         (_initialize_tui_win): Moved initialization of tui command in
2827         tui_get_cmd_list.
2828
2829         * tui/tui-data.c (init_content_element): Setup new data members.
2830         (init_win_info): Likewise.
2831         (free_content_elements): Free it.
2832         * tui/tui-data.h (struct tui_data_element): Store the register
2833         content to print.
2834         (struct tui_data_info): Keep the current register group.
2835
2836         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
2837
2838         * tui/tui-regs.h (tui_show_registers): Update prototype.
2839         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
2840         (tui_resize_all): No need to calculate anything for register window.
2841         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
2842         (tui_set_register_element, tui_set_general_regs_content): Remove.
2843         (tui_set_special_regs_content): Remove.
2844         (tui_set_general_and_special_regs_content): Remove.
2845         (tui_set_float_regs_content): Remove.
2846         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
2847         (tui_set_regs_content): Remove.
2848         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
2849         (tui_v_show_registers_command_support): Remove.
2850         (tui_show_registers): Use a reggroup to specify the registers to show.
2851         (tui_show_register_group): New function.
2852         (tui_display_registers_from): Compute the layout of register window
2853         and refresh with new API; be sure to delete old register windows.
2854         (tui_check_register_values): Update to use tui_get_register and
2855         tui_display_data.
2856         (tui_display_register): Just refresh the register window part.
2857         (tui_register_format): Format registers and save in tui_data_element.
2858         (tui_get_register): New to combine tui_reg_value_has_changed and
2859         tui_get_register_raw_value; fix to use the new gdb API.
2860         (tui_show_float_command): Renamed tui_reg_float_command.
2861         (tui_show_general_command): Renamed tui_reg_general_command.
2862         (tui_show_special_command): Renamed tui_reg_system_command.
2863         (_initialize_tui_regs): Remove unused commands.
2864
2865 2004-03-13  Mark Kettenis  <kettenis@gnu.org>
2866
2867         * NEWS (New native configurations): Mention OpenBSD/amd64.
2868
2869         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
2870         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
2871         Remove defines.
2872         * config/i386/nm-fbsd64.h: Likewise.
2873         * config/i386/nm-obsd.h: Likewise.
2874         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
2875         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
2876
2877 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
2878
2879         * frv-tdep.c (set_variant_scratch_registers): New function.
2880         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
2881         New constants.
2882
2883         From Richard Sandiford  <rsandifo@redhat.com>:
2884         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
2885
2886 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
2887
2888         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
2889         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
2890         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
2891         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
2892         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
2893         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
2894         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
2895         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
2896         definitions from frv-tdep.c to frv-tdep.h.
2897
2898 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
2899
2900         Add shared library support for FR-V FDPIC ABI:
2901         * Makefile.in (solib-frv.o): Add dependencies.
2902         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
2903         New functions.
2904         (frv_push_dummy_call): Add support for FDPIC ABI.
2905         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
2906         for FDPIC ABI.
2907         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
2908         (frv_fdpic_find_canonical_descriptor): Declare.
2909         * solib-frv.c: New file.
2910         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
2911         * config/frv/tm-frv.h (solib.h): Include.
2912
2913 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
2914
2915         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
2916         (frv-tdep.o): Update dependencies.
2917         * frv-tdep.h: New file.
2918         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
2919         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
2920         constants.
2921         (struct gdbarch_tdep): Add new member ``frv_abi''.
2922         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
2923         functions.
2924         (new_variant): Set ``frv_abi'' field.
2925         (gdb_arch_init): Detect FDPIC executables.
2926
2927 2004-03-12  Mark Kettenis  <kettenis@gnu.org>
2928
2929         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
2930         wrapper.
2931
2932 2004-03-11  Andrew Cagney  <cagney@redhat.com>
2933
2934         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
2935
2936 2004-03-11  Kevin Buettner  <kevinb@redhat.com>
2937
2938         * solist.h (master_so_list): New function.
2939         * solib.c (master_so_list): Likewise.
2940         * solib-svr4.c (enable_break): Iterate over so_list entries
2941         obtained from master list instead of entries obtained directly
2942         via svr4_current_sos().
2943
2944 2004-03-10  Ben Elliston  <bje@gnu.org>
2945
2946         * MAINTAINERS: Update my mail address.
2947
2948 2004-03-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
2949
2950         * remote-m32r-sdi.c: Support hardware watchpoint.
2951
2952 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
2953
2954         * user-regs.c: Update copyright years.
2955         (struct user_regs): Rename to gdb_user_regs.
2956         (append_user_reg, builtin_user_regs, user_regs_init)
2957         (user_reg_add, user_reg_map_name_to_regnum)
2958         (usernum_to_user_reg): Update.
2959
2960 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
2961
2962         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
2963         (skip_children): New functions.
2964         (locate_pdi_sibling): Call skip_children.
2965
2966 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
2967
2968         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
2969         * gdbtypes.c (check_typedef): Update comments.
2970
2971 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
2972
2973         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
2974         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
2975         pointer.  Update comment about comp_unit_head.
2976         (struct abbrev_info): Shorten two int flags.
2977         (dwarf_alloc_abbrev): Take a CU argument.
2978         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
2979         each time through the loop.  Update cleanup argument.
2980         (psymtab_to_symtab_1): Update cleanup call.
2981         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
2982         abbrev_obstack.
2983         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
2984         Just call obstack_free and clear the pointer.
2985
2986 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
2987
2988         * infrun.c (handle_inferior_event): Remove short-circuit code for
2989         events in a different thread.
2990
2991 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
2992
2993         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
2994         print the whole transfer.
2995         (initialize_targets): Update description of "set debug target".
2996
2997 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
2998
2999         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
3000
3001 2004-03-08  Nathan J. Williams  <nathanw@wasabisystems.com>
3002
3003         * MAINTAINERS (write after approval): Add myself.
3004
3005 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
3006
3007         * sh-tdep.c (sh_print_registers_info): Use for loop.
3008         Don't skip multiple registers when a float register is encountered.
3009
3010 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
3011
3012         Fix PR tdep/1291.
3013         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
3014         to official SH documentation.
3015
3016 2004-03-07  Andrew Cagney  <cagney@redhat.com>
3017
3018         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
3019         unused function.
3020
3021 2004-03-07  Daniel Jacobowitz  <drow@mvista.com>
3022
3023         * arm-tdep.c (thumb_get_next_pc): Handle BX.
3024         (arm_get_next_pc): Handle BX and BLX.
3025
3026 2004-03-07  Andrew Cagney  <cagney@redhat.com>
3027
3028         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
3029         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
3030         HPPA_SP_REGNUM.
3031         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
3032         (hppa_target_read_fp): Delete.
3033         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
3034         register_virtual_size, max_register_raw_size,
3035         max_register_virtual_size, register_byte, register_size,
3036         target_read_fp, fp_regnum, and register_bytes.  Set register_type
3037         instead of register_virtual_type.
3038         (hppa32_register_type, hppa64_register_type): Replace
3039         hppa32_register_virtual_type and hppa64_register_virtual_type.
3040         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
3041         (HPPA_FP_REGNUM): Define.
3042
3043         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
3044
3045         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
3046         (pa_do_registers_info): Delete.
3047         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
3048         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
3049         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
3050
3051         * infcall.c (legacy_push_dummy_code): Delete #ifdef
3052         GDB_TARGET_IS_HPPA code.
3053         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
3054         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
3055         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
3056         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
3057         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
3058         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
3059         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
3060         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
3061         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
3062         (hppa_frameless_function_invocation, hppa64_store_return_value)
3063         (hppa_store_struct_return, hppa64_extract_return_value)
3064         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
3065         (hppa32_call_dummy_length, hppa64_call_dummy_length)
3066         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
3067         (find_proc_framesize, deposit_21, restore_pc_queue)
3068         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
3069         (rp_saved, pc_in_linker_stub): Delete.
3070
3071         Unconditionally enable 64-bit frame and ABI code.
3072         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
3073         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
3074         push_dummy_frame, fix_call_dummy, push_arguments,
3075         call_dummy_location, extract_return_value, use_struct_convention,
3076         store_return_value, store_struct_return, saved_pc_after_call,
3077         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
3078         frame_chain, frame_chain_valid, frameless_function_invocation,
3079         frame_saved_pc, and pop_frame.
3080
3081         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
3082         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
3083         (hppa_gdbarch_init): Do not set PC_REGNUM.
3084
3085 2004-03-06  Mark Kettenis  <kettenis@gnu.org>
3086
3087         * config/alpha/tm-fbsd.h: Remove file.
3088         * config/alpha/fbsd.mt: Tweak comment.
3089         (TM_FILE): Set to tm-alpha.h.
3090
3091 2004-03-05  Andrew Cagney  <cagney@redhat.com>
3092
3093         * infrun.c (step_over_function): When non-legacy code, and no
3094         step_frame_id, use the unwinder to get the caller's frame ID.
3095
3096 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
3097
3098         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
3099         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
3100         bfd_arch_unknown.  Adjust comment.
3101
3102         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
3103         * i386obsd-tdep.c: Correct spelling in comment.
3104         * i386nbsd-tdep.c: Correct spelling in comment.
3105         * sparc-tdep.c: Correct spelling in comments.
3106
3107 2004-03-05  David Carlton  <carlton@kealia.com>
3108
3109         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
3110         bug.
3111
3112 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
3113
3114         * sparc-tdep.c: Fix typo in comment.
3115
3116 2004-03-04  J. Brobecker  <brobecker@gnat.com>
3117
3118         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
3119
3120 2004-03-04  Daniel Jacobowitz  <drow@mvista.com>
3121
3122         * dwarf2read.c: Add comment describing memory lifetimes.
3123         (struct dwarf2_pinfo): Update comment.
3124         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
3125         (read_enumeration, new_symbol): Don't use obsavestring.
3126
3127 2004-03-04  Mark Kettenis  <kettenis@gnu.org>
3128
3129         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
3130         instead of amd64_fill_fxsave.
3131         * amd64bsd-nat.c (store_inferior_registers): Likewise.
3132         * amd64fbsd-nat.c (fill_fpregset): Likewise.
3133
3134         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
3135         Reorganize code a bit.
3136
3137 2004-03-04  Orjan Friberg  <orjanf@axis.com>
3138
3139         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
3140         when the frame pointer is pushed.  Don't set the frame pointer's
3141         address on the stack unless it's actually located there.
3142         Set the SRP's address on the stack correctly when the PC is still in
3143         the prologue.
3144         (cris_return_value): New function.
3145         (cris_gdbarch_init): Clear deprecated store_return_value,
3146         extract_return_value.
3147
3148 2004-03-02  Jim Blandy  <jimb@redhat.com>
3149
3150         * stabsread.c (reg_value_complaint): The maximum register number
3151         is one less than the number of registers.
3152
3153 2004-03-02  Andrew Cagney  <cagney@redhat.com>
3154
3155         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
3156         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
3157         trailing comma and redundant assignment of I386_ST0_REGNUM.
3158         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
3159         32-bit segment registers.
3160
3161 2004-03-01  Andrew Cagney  <cagney@redhat.com>
3162
3163         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
3164         use frame_relative_level and get_next_frame.
3165
3166 2004-02-29  Andrew Cagney  <cagney@redhat.com>
3167
3168         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
3169         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
3170         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
3171         Delete macro.
3172
3173 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
3174
3175         * inflow.c (terminal_inferior): Don't give up the terminal if we
3176         previously couldn't get the inferior's terminal state.
3177
3178 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
3179
3180         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
3181         PC_REGNUM.
3182
3183 2004-02-28  Andrew Cagney  <cagney@redhat.com>
3184
3185         * NEWS: Refer to GDB 6.1.
3186         * README: Refer to GDB 6.1.
3187         * PROBLEMS: Refer to GDB 6.1.
3188
3189 2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
3190
3191         * thread-db.c (disable_thread_signals): Remove unused function.
3192
3193 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
3194
3195         * amd64-nat.c: Include "gdb_string.h".
3196         (amd64_collect_native_gregset): Zero-extend the 32-bit
3197         general-purpose registers and %eip.
3198
3199         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
3200         * amd64-tdep.c (amd64_collect_fxsave): New function.
3201         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
3202
3203         * i387-tdep.h: Update copyright year.
3204         (i387_collect_fxsave): New prototype.
3205         * i387-tdep.c: Update copyright year.
3206         (i387_collect_fxsave): New function containing most of the code
3207         from i387_fill_fxsave.
3208         (i387_fill_fxsave): Call i387_collect_fxsave.
3209
3210 2004-02-28  Andrew Cagney  <cagney@redhat.com>
3211
3212         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
3213         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
3214
3215 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
3216
3217         * amd64-tdep.c (amd64_frame_cache): Fix comment.
3218
3219 2004-02-28  Andrew Cagney  <cagney@redhat.com>
3220
3221         * utils.c: Use "", instead of <>, to include readline.
3222         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
3223         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
3224         * source.c, solib.c, exec.c, event-top.c: Ditto.
3225         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
3226         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
3227         * Makefile.in: Update all dependencies.
3228         (readline_tilde_h, readline_history_h): Define.
3229         (readline_headers): Delete.
3230
3231 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
3232
3233         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
3234         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
3235         "config/i386/tm-lx64.h".
3236
3237         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
3238         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
3239         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
3240
3241 2004-02-28  Andrew Cagney  <cagney@redhat.com>
3242
3243         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
3244
3245         * breakpoint.c (_initialize_breakpoint): Use
3246         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
3247         Add help to show command.
3248
3249 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
3250
3251         * i386-nat.c: Reformat to be closer to coding standards.
3252         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
3253         `retval'.  Make variables `align' and `size' local to while-loop.
3254         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
3255         (_initialize_i386_nat): New prototype.
3256
3257         * tui/tui.c: Include <readline/readline.h> instead of
3258         "readline/readline.h".  Include it after <term.h> and
3259         "gdb_curses.h".
3260
3261 2004-02-27  Andrew Cagney  <cagney@redhat.com>
3262
3263         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
3264         the new frame unwind code.
3265         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
3266         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
3267         PCOQ_HEAD_REGNUM.
3268
3269         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
3270         "return_value" and "push_dummy_call".
3271         (hppa32_use_struct_convention): Delete unused function.
3272         (hppa32_store_return_value): Delete unused function.
3273         (hppa32_extract_return_value): Delete unused function.
3274         (hppa32_stack_align): Delete function.
3275
3276 2004-02-27  Eli Zaretskii  <eliz@elta.co.il>
3277
3278         * coffread.c (enter_linenos): Don't let rawptr reference memory
3279         outside linetab[]'s limits.
3280
3281 2004-02-27  Andrew Cagney  <cagney@redhat.com>
3282
3283         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
3284         inferior stack space - the stack needs to grow upwards.
3285         (hppa32_frame_align): New function.
3286         (hppa64_frame_align): Replace hppa_frame_align.
3287         (hppa_gdbarch_init): Update.
3288
3289 2004-02-26  Orjan Friberg  <orjanf@axis.com>
3290
3291         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
3292         (dwarf2-frame.h): Include.
3293         (enum cris_regnums): New enum CRIS_FP_REGNUM.
3294         Remove static variables related to ABI setting.
3295         (struct gdbarch_tdep): Remove cris_abi member.
3296         (struct frame_extra_info): Remove.
3297         (cris_unwind_cache, stack_item): New structs.
3298         (cris_frame_unwind, cris_frame_base): New variables.
3299         (push_stack_item, pop_stack_item)
3300         (cris_frame_unwind_cache, cris_frame_this_id)
3301         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
3302         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
3303         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
3304         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
3305         (cris_reg_struct_has_addr): New functions.
3306         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
3307         (cris_frame_saved_pc, cris_saved_pc_after_call,
3308         (cris_store_struct_return, cris_frameless_function_invocation)
3309         (cris_pop_frame, cris_skip_prologue_main)
3310         (cris_abi_original_store_return_value)
3311         (cris_abi_v2_store_return_value)
3312         (cris_abi_original_extract_return_value)
3313         (cris_abi_v2_extract_return_value)
3314         (cris_abi_original_reg_struct_has_addr)
3315         (cris_abi_v2_reg_struct_has_addr)
3316         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
3317         (cris_push_return_address, cris_abi_update): Remove.
3318         (_initialize_cris_tdep): Remove ABI command.
3319         (cris_dump_tdep): Ditto.
3320         (cris_gdbarch_init): Remove ABI command.
3321         Set store_return_value, extract_return_value, push_dummy_code,
3322         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
3323         frame_unwind_append_sniffer, frame_base_set_default.
3324         Clear deprecated init_frame_pc, push_arguments, store_return_value,
3325         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
3326         sizeof_call_dummy_words, get_saved_register, push_return_address,
3327         pop_frame, store_struct_return, frame_init_saved_regs,
3328         init_extra_frame_info, frameless_function_invocation, frame_chain,
3329         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
3330         dummy_write_sp.
3331
3332 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
3333
3334         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
3335         * valprint.c (print_hex_chars): Change from static to external.
3336         (print_char_chars): New function.
3337         * printcmd.c (print_scalar_formatted): For integer and enum types
3338         that are longer than LONGEST, perform processing via appropriate
3339         print_*_chars routines.
3340
3341 2004-02-26  Andrew Cagney  <cagney@redhat.com>
3342
3343         * Makefile.in: Update dependencies.
3344         Changes from Ulrich Weigand,
3345         * s390-tdep.c: Include "dwarf2-frame.h".
3346         (s390_dwarf2_frame_init_reg): New function.
3347         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
3348         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
3349
3350 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
3351
3352         * breakpoint.c (pending_break_support): New setting variable.
3353         (break_command_1): Account for pending_break_support setting
3354         when creating pending breakpoints.
3355         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
3356         (_initialize_breakpoint): Add "set breakpoint pending" and
3357         "show breakpoint pending" commands.
3358
3359 2004-02-26  Andrew Cagney  <cagney@redhat.com>
3360
3361         Fix PR i18n/1570.
3362         * charset.c (backslashable, backslashed, represented): Remove 'e'
3363         from list of escaped characters, not part of ISO-C.
3364
3365 2004-02-25  J. Brobecker  <brobecker@gnat.com>
3366
3367         From Peter Schauer <schauer@pdf.de>:
3368         * tui/tui.c: Move system header includes after local includes.
3369         Fixes a build failure on solaris systems.
3370
3371 2004-02-25  J. Brobecker  <brobecker@gnat.com>
3372
3373         * configure.in: Refine the previous change.
3374         * configure: Regenerate.
3375
3376 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
3377
3378         * amd64-tdep.h: Renamed from x86-64-tdep.h.
3379         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
3380         "amd64-tdep.h" instead of "x86-64-tdep.h".
3381         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
3382         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
3383         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
3384         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
3385         and "x86-64-tdep.c".
3386         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
3387         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
3388         and "x86-64-tdep.c".
3389         * amd64bsd-nat.c: Update copyright year.
3390         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
3391         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
3392         "x86-64-tdep.h".
3393         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
3394         "x86-64-tdep.h".
3395         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
3396         "x86-64-tdep.h".
3397         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
3398         "x86-64-tdep.h".
3399         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
3400         "x86-64-tdep.h".
3401         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
3402         "x86-64-tdep.h".
3403         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
3404         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
3405         * Makefile.in (amd64_linux_tdep_h): Renamed from
3406         x86_64_linux_tdep_h.
3407         (amd64_tdep_h): Renamed from x86_64_tdep_h.
3408         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
3409         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
3410         (amd64obsd-tdep.o): Update dependencies.
3411         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
3412         dependencies.
3413         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
3414         dependencies.
3415         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
3416         amd64-linux-nat.c amd64-linux-tdep.c.
3417         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
3418         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
3419         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
3420         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
3421         amd64-tdep.o and amd64-linux-tdep.o.
3422         (TM_FILE): Set to tm-linux64.h.
3423         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
3424         (NAT_FILE): Set to nm-linux64.h.
3425         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
3426         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
3427         amd64-tdep.o.
3428         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
3429         amd64-tdep.o.
3430         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
3431         amd64-tdep.o.
3432
3433 2004-02-25  Roland McGrath  <roland@redhat.com>
3434
3435         * remote.c (remote_protocol_qPart_auxv): New variable.
3436         (init_all_packet_configs): Initialize it.
3437         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
3438         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
3439         (show_remote_cmd): Call it.
3440         (_initialize_remote): Initialize commands.
3441         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
3442         service TARGET_OBJECT_AUXV requests.
3443
3444 2004-02-25  J. Brobecker  <brobecker@gnat.com>
3445
3446         * configure.in: Make sure that the wborder function is available.
3447         Otherwise, search for it in the cur_colr library.
3448         * configure: Regenerate.
3449
3450 2004-02-25  Andrew Cagney  <cagney@redhat.com>
3451
3452         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
3453
3454 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
3455
3456         * config/i386/tm-x86-64linux.h: Tweak comments.
3457
3458 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
3459
3460         * MAINTAINERS: Add self to write-after-approval list.
3461
3462 2004-02-25  Andrew Cagney  <cagney@redhat.com>
3463
3464         PR cli/1566.  Problem found, and fix suggested by David Allan.
3465         * cli/cli-script.c (execute_control_command): Unconditionally
3466         install a cleanup.  Default "ret" to "invalid_control".  Use
3467         "break" instead of "return" to escape from the switch.
3468
3469 2004-02-24  J. Brobecker  <brobecker@gnat.com>
3470
3471         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
3472         with the lines macro defined in term.h on AiX.
3473         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
3474         a collision with the label_width macro defined in term.h on AiX.
3475
3476 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
3477
3478         Committed by Kevin Buettner <kevinb@redhat.com>.
3479
3480         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
3481         * ia64-tdep.c (ia64_write_pc): Make it a global function.
3482         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
3483         instead of ia64_write_pc().
3484         * ia64-linux-tdep.c (regcache.h): Include.
3485         (ia64_linux_write_pc): New function.
3486
3487 2004-02-23  Roland McGrath  <roland@redhat.com>
3488
3489         * auxv.c (info_auxv_command): Fix typos in error messages.
3490
3491 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
3492
3493         * x86-64-tdep.h: Tweak comment.
3494         (enum amd64_regnum): New.
3495         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
3496         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
3497         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
3498         (X86_64_XMM1_REGNUM): Removed.
3499         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
3500         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
3501         prototypes for renamed functions.
3502         * x86-64-tdep.c: Fix typo.
3503         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
3504         register numbers.
3505         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
3506         Use constants from `enum amd64_regnum' for register numbers.
3507         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
3508         (amd64_analyze_prologue, amd64_frame_cache,
3509         amd64_sigtramp_frame_cache): Use constants from `enum
3510         amd64_regnum' for register numbers.
3511         (amd64_supply_fpregset): Adjust for renamed functions.
3512         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
3513         `enum amd64_regnum' for register numbers.
3514         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
3515         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
3516         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
3517         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
3518         (amd64_linux_fill_gregset): Adjust for renamed macros.
3519         (fetch_core_registers): Adjust for renamed functions.
3520         (amd64_linux_init_abi): Adjust for renamed functions.
3521         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
3522         renamed functions.
3523         * amd64-nat.c: Adjust for renamed macros.
3524         * amd64bsd-nat.c (fetch_inferior_registers)
3525         (store_inferior_registers): Use constants from `enum amd64_regnum'
3526         for register numbers.  Adjust for renamed variables.
3527         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
3528         renamed variables.
3529         (_initialize_amd64fbsd_nat): Use constants from `enum
3530         amd64_regnum' for register numbers.
3531         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
3532         `enum amd64_regnum' for register numbers.
3533         (amd64fbsd_init_abi): Adjust for renamed functions.
3534         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
3535         `enum amd64_regnum' for register numbers.
3536         (amd64nbsd_init_abi): Adjust for renamed functions.
3537         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
3538         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
3539         `enum amd64_regnum' for register numbers.
3540         (amd64obsd_init_abi): Adjust for renamed functions.
3541         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
3542
3543 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
3544
3545         * breakpoint.c (print_one_breakpoint): Do not output spaces
3546         after printing <PENDING> for a pending breakpoint.
3547
3548 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
3549
3550         * printcmd.c (print_scalar_formatted): Initialize val_long
3551         to remove compiler warning message.
3552
3553 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
3554
3555         * defs.h (nquery, yquery): New prototypes.
3556         * breakpoint.c (break_command_1): Use new nquery interface.
3557         * utils.c (defaulted_query, nquery, yquery): New functions.
3558
3559 2004-02-23  Andrew Cagney  <cagney@redhat.com>
3560
3561         * hppa-tdep.c (hppa_frame_align): New function.
3562         (hppa32_push_dummy_call): New function.
3563         (hppa64_push_dummy_call): New function.
3564         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
3565         disabled.
3566
3567         * infcall.c (legacy_push_dummy_code): Don't call deprecated
3568         FIX_CALL_DUMMY when push_dummy_call is available.
3569         (call_function_by_hand, push_dummy_code): Ditto.
3570
3571 2004-02-22  Andrew Cagney  <cagney@redhat.com>
3572
3573         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
3574         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
3575         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
3576         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
3577         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
3578         call_dummy_location to ON_STACK.
3579
3580 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
3581
3582         * x86-64-linux-tdep.c: Tweak comment.
3583         (amd64_linux_supply_gregset): Renamed from
3584         x86_64_linux_supply_gresget.
3585         (amd64_linux_fill_gregset): Renamed from
3586         x86_64_linux_fill_gregset.
3587         (fetch_core_registers): Adjust for renamed functions.
3588         (amd64_core_fns): Renamed from x86_64_core_fns.
3589         (amd64_linux_sigtramp_start): Renamed from
3590         x86_64_linux_sigtramp_start.
3591         (amd64_linux_pc_in_sigtramp): Renamed from
3592         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
3593         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
3594         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
3595         (amd64_linux_sigcontext_addr): Renamed from
3596         x86_64_linux_sigcontext_addr.
3597         (amd64_linux_sc_reg_offset): Renamed from
3598         x86_64_linux_sc_reg_offset.
3599         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
3600         Adjust for renamed functions and variables.
3601         (_initialize_amd64_linux_tdep): Renamed from
3602         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
3603         variables.
3604         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
3605         Adjust for renamed functions.
3606
3607         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
3608         from x86_64_linux_gregset64_reg_offset.
3609         (amd64_linux_gregset32_reg_offset): Rename from
3610         x86_64_linux_gregset64_reg_offset.
3611         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
3612         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
3613         (amd64_linux_dr_set_control): Renamed from
3614         x86_64_linux_dr_set_control.  Adjust for renamed functions.
3615         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
3616         Adjust for renamed functions.
3617         (amd64_linux_dr_reset_addr): Renamed from
3618         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
3619         (amd64_linux_dr_get_status): Renamed from
3620         x86_64_linux_dr_get_status.  Adjust for renamed functions.
3621         (_initialize_amd64_linux_nat): Renamed from
3622         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
3623         functions.
3624         * config/i386/nm-x86-64linux.h: Update copyright year.
3625         Adjust for renamed functions.
3626
3627         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
3628         amd64fbsd_sigtramp_start.
3629         (amd64fbsd_sigtramp_end_addr): Renamed from
3630         amd64fbsd_sigtramp_end.
3631         (amd64fbsd_init_abi): Adjust for renamed variables.
3632         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
3633         variables.
3634         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
3635         amd64fbsd_sigtramp_start.
3636         (amd64fbsd_sigtramp_end_addr): Renamed from
3637         amd64fbsd_sigtramp_end.
3638
3639 2004-02-22  Andrew Cagney  <cagney@redhat.com>
3640
3641         * hppa-tdep.c (hppa32_return_value): New function.
3642         (hppa64_return_value): New function.
3643         (hppa_gdbarch_init): Set return_value; keep disabled.
3644
3645         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
3646         struct-return and inferior function call methods.
3647
3648         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
3649         "frame-base.h".
3650         (struct hppa_frame_cache): Define.
3651         (hppa_frame_cache, hppa_frame_this_id): New functions.
3652         (hppa_frame_prev_register): New function.
3653         (hppa_frame_unwind, hppa_frame_base): New variables.
3654         (hppa_frame_unwind_sniffer): New function.
3655         (hppa_frame_base_address, hppa_unwind_pc): New function.
3656         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
3657         sniffer, and frame base sniffer; keep disabled.
3658         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
3659         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
3660
3661         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
3662         to predicates for "seriously old code".
3663
3664         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
3665         runtime if(0).
3666
3667         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
3668         unsigned.
3669         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
3670
3671         * config/pa/tm-hppa.h: Update copyright.
3672         (DEPRECATED_INIT_FRAME_PC): Delete macro.
3673         (deprecated_init_frame_pc_default): Delete declaration.
3674         (hppa_frame_init_saved_regs): Delete declaration.
3675         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
3676         * hppa-tdep.c: Include "arch-utils.h".
3677         (hppa_gdbarch_init): Set deprecated init_frame_pc
3678         and deprecated frame_init_saved_regs.
3679         (hppa_frame_init_saved_regs): Make static.
3680
3681 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
3682
3683         Remove old 386BSD support.
3684         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
3685         * configure.host: Remove i[34567]86-*-bsd*.
3686         * configure.tgt: Remove i[34567]86-*-bsd*.
3687         * i386b-nat.c: Removed.
3688         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
3689         (i386b-nat.o): Remove dependencies.
3690
3691         * config/i386/i386bsd.mh: Removed.
3692         * config/i386/i386bsd.mt: Removed.
3693         * config/i386/nm-i386bsd.h: Removed.
3694         * config/i386/tm-i386bsd.h: Removed.
3695         * config/i386/xm-i386bsd.h: Removed.
3696
3697         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
3698
3699         * amd64fbsd-tdep.c: Include "solib-svr4.h".
3700         (amd64fbsd_init_abi): Set link map offsets.
3701         * amd64nbsd-tdep.c: Include "slib-svr4.h".
3702         (amd64nbsd_init_abi): Set link map offsets.
3703         * amd64obsd-tdep.c: Include "solib-svr4.h".
3704         (amd64obsd_init_abi): Set link map offsets.
3705         * i386fbsd-tdep.c: Include "solib-svr4.h".
3706         (i386fbsd_init_abi): Set link map offsets.
3707         * i386nbsd-tdep.c: Include "solib-svr4.h".
3708         (i386nbsdelf_init_abi): Set link map offsets.
3709         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
3710         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
3711         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
3712         solib-legacy.o and core-aout.o. Reformat.
3713         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
3714         solib-svr4.o, solib-legacy.o.  Reformat.
3715         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
3716         * config/i386/nbsdelf.mh: Reformat.
3717         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
3718         solib-svr4.o, solib-legacy.o and corelow.o.
3719         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
3720         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
3721         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
3722         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
3723         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
3724         (TM_FILE): Set to tm-fbsd.h.
3725         * config/i386/nbsd.mt (TDEPFILES): Reformat.
3726         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
3727         solib-svr4.o.
3728         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
3729         solib-svr4.o.
3730         (TM_FILE): Set to nm-nbsd.h.
3731         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
3732         Simplify shared library support.  Don't include "elf/common.h".
3733         (SVR4_SHARED_LIBS): Don't define.
3734         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
3735         "solib.h".
3736         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
3737         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
3738         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
3739         Don't include "i386/tm-i386.h".  Include "solib.h".
3740         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
3741         Don't include "i386/tm-i386.h".
3742         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
3743         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
3744         Include "i386/xm-i386.h".
3745         (HOST_LONG_DOUBLE_FORMAT): Remove.
3746
3747         Fix OpenBSD/i386 sigtramp recognition.
3748         * i386-tdep.h: Update copyright year.
3749         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
3750         (i386bsd_sigtramp_end): New prototypes.
3751         (i386fbsd_sigtramp_start_addr): Renamed from
3752         i386fbsd_sigtramp_start.
3753         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
3754         (i386obsd_sigtramp_start_addr): Renamed from
3755         i386obsd_sigtramp_start.
3756         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
3757         * i386bsd-tdep.c: Update copyright year.
3758         (i386bsd_pc_in_sigtramp): Make public.
3759         * i386fbsd-nat.c: Update copyright year.
3760         (_initialize_i386fbsd_nat): Adjust for renamed variables.
3761         * i386fbsd-tdep.c: Update copyright year.
3762         (i386fbsd_sigtramp_start_addr): Renamed from
3763         i386fbsd_sigtramp_start.
3764         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
3765         (i386fbsdaout_init_abi): Adjust for renamed variables.
3766         * i386obsd-nat.c: Update copyright year.
3767         (_initialize_i386obsd_nat): Adjust for renamed variables.
3768         * i386obsd-tdep.c: Include "target.h".
3769         (i386obsd_page_size): New variable.
3770         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
3771         (i386obsd_sigtramp_end): New functions.
3772         (i386obsd_sigtramp_start_addr): Renamed from
3773         i386obsd_sigtramp_start.
3774         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
3775         (i386obsd_init_abi): Adjust for renamed variables.  Set
3776         pc_in_sigtramp, sigtramp_start and sigtramp_end.
3777         * Makefile.in (i386obsd-tdep.o): Update dependencies.
3778
3779         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
3780         trampoline change in OpenBSD kernel.
3781
3782         * amd64-nat.c: Update copyright year.
3783         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
3784         architecture from REGCACHE.
3785
3786         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
3787         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
3788
3789 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
3790
3791         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
3792         i[34567]86-*-openbsd3.[0-3].
3793         * config/i386/obsdaout.mh: New file.
3794
3795         * config/i386/obsd.mh (MH_FLAGS): Remove.
3796
3797         Fix PR build/1549.
3798         * i386obsd-tdep.c: Update copyright years.  Include
3799         "solib-svr4.h".
3800         (i386obsd_init_abi): Don't set regset_from_core_section here.
3801         (i386obsd_aout_init_abi): New function.  Set
3802         regset_from_core_section here.
3803         (i386obsd_elf_init_abi): New function.
3804         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
3805         * Makefile.in (i386obsd-tdep.o): Update dependecies.
3806         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3807         (TM_FILE): Set to tm-nbsd.h.
3808
3809         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
3810         solib-sunos.o.
3811
3812         * solib-svr4.h: Update copyright year.
3813         (svr4_ilp32_fetch_link_map_offsets)
3814         (svr4_lp64_fetch_link_map_offsets): New prototype.
3815         * solib-svr4.c: Update copyright year.
3816         (svr4_ilp32_fetch_link_map_offsets)
3817         (svr4_lp64_fetch_link_map_offsets): New function.
3818
3819 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
3820
3821         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
3822         to the partial symbol table.
3823
3824 2004-02-20  J. brobecker  <brobecker@gnat.com>
3825
3826         * PROBLEMS: Add description of problem documented under gdb/1560.
3827
3828 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
3829
3830         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
3831         comments.
3832         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
3833         functions.
3834         (amd64obsd_init_abi): Reorder initializations.  Use
3835         amd64obsd_r_reg_offset to initialize the general-purpose register
3836         set details.  Set regset_from_core_section.
3837         (_initialize_amd64obsd_tdep): Rename from
3838         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
3839         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
3840         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
3841
3842         * NEWS (New native configurations): Mention OpenBSD/alpha.
3843         * configure.tgt: Add alpha*-*-openbsd*.
3844         * configure.host: Add alpha*-*-openbsd*.
3845         * alphanbsd-tdep.c: Update copyright year.
3846         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
3847
3848 2004-02-20  Andrew Cagney  <cagney@redhat.com>
3849
3850         Fix PR tdep/1372.
3851         * configure.tgt: Delete target "none-*-*".
3852         * configure.host: Delete host "none-*-*".
3853         * config/none/none.mh: Delete file.
3854         * config/none/none.mt: Delete file.
3855         * config/none/xm-none.h: Delete file.
3856         * config/none/tm-none.h: Delete file.
3857         * config/none/nm-none.h: Delete file.
3858
3859 2004-02-19  Fred Fish  <fnf@redhat.com>
3860
3861         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
3862         cache->uses_fp prior to setting it.
3863
3864 2004-02-19  Fred Fish  <fnf@redhat.com>
3865
3866         Fix for PR breakpoint/1558.
3867         * sh-tdep.c (IS_JSR): New macro.
3868         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
3869
3870 2004-02-19  Jim Blandy  <jimb@redhat.com>
3871
3872         * findvar.c (value_from_register): Doc fix.
3873
3874 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
3875
3876         * printcmd.c (print_scalar_formatted): Do not check for sizeof
3877         type being greater than sizeof of host's LONGEST.  Always use
3878         unpack_long() unless format 'f' chosen.
3879
3880 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
3881
3882         Committed by Elena Zannoni  <ezannoni@redhat.com>
3883
3884         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
3885         contains a symbol wich is the best, non-exact match for the given
3886         pc.  Update comments.
3887
3888 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
3889
3890         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
3891         macro, which was part of the now removed Mach 3 port.
3892         * utils.c (request_quit): Ditto.
3893
3894 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
3895
3896         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
3897         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
3898
3899 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3900
3901         Committed by Mark Kettenis  <kettenis@gnu.org>.
3902
3903         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
3904         Define.
3905
3906 2004-02-18  Andrew Cagney  <cagney@redhat.com>
3907
3908         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
3909         CONFIG_INSTALL and CONFIG_UNINSTALL.
3910         * configure: Re-generate.
3911         * interps.h (INTERP_TUI): Define.
3912         * Makefile.in: Update dependencies.
3913         (TUI): New macro.
3914         (tui-main.o): Specify dependencies.
3915         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
3916         * tui/tui-main.c: New file.
3917
3918 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
3919
3920         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
3921         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
3922         dependencies.
3923         * configure.host: Add x86_64-*-openbsd*.
3924         * configure.tgt: Add x86_64-*-openbsd*.
3925         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
3926
3927         * tui/tui.c: Don't include <malloc.h>.
3928
3929         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
3930         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
3931         amd64nbsd-tdep.c.
3932
3933         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
3934         static.  Remove extraneous whitespace.
3935         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
3936         static.
3937
3938 2004-02-17  Jim Blandy  <jimb@redhat.com>
3939
3940         * findvar.c (value_from_register): Doc fix.
3941
3942 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3943
3944         Committed by Jim Blandy  <jimb@redhat.com>.
3945
3946         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
3947         CORE_ADDR as type for selectors.  Correct types for GNU run time
3948         message lookup function to use double indirection.
3949         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
3950         * objc-lang.h (lookup_child_selector): Adapt prototype.
3951
3952         * s390-nat.c (SUBOFF): New macro.
3953         (supply_gregset, fill_gregset): Use it to handle debugging
3954         of 32-bit exectuables running under a 64-bit kernel.
3955         * s390-tdep.c: Include "solib-svr4.h".
3956         (s390_svr4_fetch_link_map_offset): New function.
3957         (s390x_svr_fetch_link_map_offset): Likewise.
3958         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
3959         * Makefile.in (s390-tdep.o): Update dependencies.
3960
3961         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
3962         "frame-unwind.h".
3963         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
3964         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
3965         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
3966         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
3967         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
3968         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
3969         S390_SIGNAL_FRAMESIZE,
3970         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
3971         (struct frame_extra_info): Remove.
3972         (s390_memset_extra_info): Remove.
3973         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
3974         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
3975         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
3976         (is_rse): Renamed to ...
3977         (is_rsy): ... this.  Support long displacements.
3978         (is_rxe): Renamed to ...
3979         (is_rxy): ... this.  Support long displacements.
3980         (compute_x_addr): Support long displacements.
3981         (struct s390_prologue_data): New data type.
3982         (s390_on_stack): Change API to use struct s390_prologue_data.
3983         (s390_store): Reimplement.
3984         (s390_load): New function.
3985         (s390_get_signal_frame_info): Remove.
3986         (s390_get_frame_info): Remove, replace by ...
3987         (s390_analyze_prolog): ... this new function.
3988         (s390_check_function_end): Remove.
3989         (s390_function_start): Remove.
3990         (s390_frameless_function_invokation): Remove.
3991         (s390_is_sigreturn): Remove.
3992         (s390_init_frame_pc_first): Remove.
3993         (s390_init_frame_extra_info): Remove.
3994         (s390_frame_init_saved_regs): Remove.
3995         (s390_frame_saved_pc_nofix): Remove.
3996         (s390_frame_saved_pc): Remove.
3997         (s390_frame_chain): Remove.
3998         (s390_fp_regnum, s390_read_fp): Remove.
3999         (s390_pop_frame_regular, s390_pop_frame): Remove.
4000         (s390_saved_pc_after_call): Remove.
4001         (s390_skip_prologue): Reimplement.
4002         (s390_in_function_epilogue_p): Support long displacements.
4003         (struct s390_unwind_cache): New data structure.
4004         (s390_frame_unwind_cache): New function.
4005         (s390_prologue_frame_unwind_cache): Likewise.
4006         (s390_backchain_frame_unwind_cache): Likewise.
4007         (s390_frame_this_id, s390_frame_prev_register): Likewise.
4008         (s390_frame_unwind): Define.
4009         (s390_frame_sniffer): New function.
4010         (struct s390_pltstub_unwind_cache): New data structure.
4011         (s390_pltstub_frame_unwind_cache): New function.
4012         (s390_pltstub_frame_this_id): Likewise.
4013         (s390_pltstub_frame_prev_register): Likewise.
4014         (s390_pltstub_frame_unwind): Define.
4015         (s390_pltstub_frame_sniffer): New function.
4016         (struct s390_sigtramp_unwind_cache): New data structure.
4017         (s390_sigtramp_frame_unwind_cache): New function.
4018         (s390_sigtramp_frame_this_id): Likewise.
4019         (s390_sigtramp_frame_prev_register): Likewise.
4020         (s390_sigtramp_frame_unwind): Define.
4021         (s390_sigtramp_frame_sniffer): New function.
4022         (s390_frame_base_address, s390_local_base_address): New functions.
4023         (s390_frame_base): Define.
4024         (s390_unwind_pc, s390_unwind_sp): New function.
4025         (s390_push_dummy_call): Use new frame base location.
4026         (s390_unwind_dummy_id): Likewise.
4027         (s390_gdbarch_init): Remove calls to:
4028         set_gdbarch_frameless_function_invocation,
4029         set_gdbarch_deprecated_init_frame_pc,
4030         set_gdbarch_deprecated_frame_chain,
4031         set_gdbarch_deprecated_frame_init_saved_regs,
4032         set_gdbarch_deprecated_pop_frame,
4033         set_gdbarch_deprecated_init_extra_frame_info,
4034         set_gdbarch_deprecated_init_frame_pc_first,
4035         set_gdbarch_deprecated_target_read_fp,
4036         set_gdbarch_deprecated_frame_saved_pc,
4037         set_gdbarch_deprecated_saved_pc_after_call,
4038         set_gdbarch_deprecated_fp_regnum.
4039         Add calls to:
4040         set_gdbarch_in_solib_call_trampoline,
4041         frame_unwind_append_sniffer,
4042         frame_base_set_default,
4043         set_gdbarch_unwind_pc,
4044         set_gdbarch_unwind_sp.
4045         * Makefile.in (s390-tdep.o): Update dependencies.
4046
4047         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
4048         (S390_STACK_FRAME_OVERHEAD): Remove.
4049         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
4050         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
4051         (s390_promote_integer_argument): Remove.
4052         (s390_cannot_extract_struct_value_address): Remove.
4053         (s390_use_struct_convention, s390_store_struct_return): Remove.
4054         (s390_extract_return_value, s390_store_return_value): Remove.
4055         (s390_return_value_convention, s390_return_value): New functions.
4056         (is_float_singleton): Handle typedefs.
4057         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
4058         Remove, replace by ...
4059         (s390_function_arg_pass_by_reference, s390_function_arg_float,
4060         s390_function_arg_integer): ... these new functions.
4061         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
4062         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
4063         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
4064         Fill in tdep->abi.
4065         Remove calls to:
4066         set_gdbarch_deprecated_store_struct_return,
4067         set_gdbarch_deprecated_extract_return_value,
4068         set_gdbarch_deprecated_store_return_value,
4069         set_gdbarch_use_struct_convention,
4070         set_gdbarch_extract_struct_value_address,
4071         set_gdbarch_deprecated_pc_in_call_dummy,
4072         set_gdbarch_deprecated_push_arguments,
4073         set_gdbarch_deprecated_save_dummy_frame_tos,
4074         set_gdbarch_deprecated_push_return_address,
4075         set_gdbarch_deprecated_sizeof_call_dummy_words,
4076         set_gdbarch_deprecated_call_dummy_words,
4077         set_gdbarch_deprecated_dummy_write_sp.
4078         Add calls to:
4079         set_gdbarch_push_dummy_call,
4080         set_gdbarch_unwind_dummy_id,
4081         set_gdbarch_return_value.
4082
4083         * config/s390/nm-linux.h: Update comments.
4084         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
4085         (STOPPED_BY_WATCHPOINT): Redefine.
4086         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
4087         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
4088         (s390_stopped_by_watchpoint): Likewise.
4089         (watch_area_cnt): Remove.
4090         * s390-nat.c: Update comments.
4091         (watch_area): Remove typedef.
4092         Global replace watch_area by struct watch_area.
4093         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
4094         (s390_stopped_by_watchpoint): Remove pid argument,
4095         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
4096         (s390_fix_watch_points): Remove pid argument,
4097         use s390_inferior_tid.  Recompute area spanned by watchpoints.
4098         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
4099         argument.  Reimplement.
4100
4101         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
4102         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
4103         (FETCH_INFERIOR_REGISTERS): Define.
4104         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
4105         core-regset.o.
4106         * config/s390/s390x.mt: Remove.
4107         * config/s390/tm-s390.h: Remove.
4108         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
4109         (TARGET_ELF64): Remove.
4110         (SKIP_TRAMPOLINE_CODE): Do not undefine.
4111         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
4112         s390*-*-* case; always set gdb_target to s390.
4113         * regformats/reg-s390.dat: Remove control registers.
4114         * regformats/reg-s390x.dat: Likewise.
4115         * s390-tdep.h: New file.
4116         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
4117         Include "inferior.h" and "s390-tdep.h".
4118         Remove private definition of offsetof.
4119         (s390_register_u_addr): Remove.
4120         (regmap_gregset, regmap_fpregset): Define.
4121         (supply_gregset, fill_gregset): Reimplement.
4122         (supply_fpregset, fill_fpregset): Likewise.
4123         (s390_inferior_tid): New function.
4124         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
4125         (fetch_inferior_registers, store_inferior_registers): Likewise.
4126         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
4127         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
4128         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
4129         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
4130         (struct gdbarch_tdep): Define.
4131         (struct s390_register_info): Define.
4132         (s390_register_info): New variable.
4133         (s390_register_name): Reimplement.
4134         (s390_register_type): New function.
4135         (s390_register_raw_size, s390x_register_raw_size): Remove.
4136         (s390_cannot_fetch_register): Remove.
4137         (s390_register_byte): Remove.
4138         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
4139         (s390_dwarf_regmap): New variable.
4140         (s390_dwarf_reg_to_regnum): New function.
4141         (s390_stab_reg_to_regnum): Remove.
4142         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
4143         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
4144         (s390_convert_register_p): Likewise.
4145         (s390_register_to_value, s390_value_to_register): Likewise.
4146         (s390_register_reggroup_p): Likewise.
4147         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
4148         s390_gregset, s390x_gregset, s390_fpregset): New variables.
4149         (s390_supply_regset, s390_regset_from_core_section): New functions.
4150         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
4151         (S390_FPR_SIZE): Likewise.
4152         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
4153         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
4154         (S390_NUM_GPRS): Move here from tm-s390.h.
4155         (S390_NUM_FPRS): Likewise.
4156         (s390_in_function_epilogue_p): New function.
4157         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
4158         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
4159         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
4160         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
4161         Replace S390_FP_REGNUM by S390_SP_REGNUM.
4162         Remove calls to:
4163         set_gdbarch_deprecated_max_register_raw_size,
4164         set_gdbarch_deprecated_max_register_virtual_size,
4165         set_gdbarch_deprecated_register_byte,
4166         set_gdbarch_cannot_fetch_register,
4167         set_gdbarch_cannot_store_register,
4168         set_gdbarch_deprecated_register_size,
4169         set_gdbarch_deprecated_register_raw_size,
4170         set_gdbarch_deprecated_register_virtual_size,
4171         set_gdbarch_deprecated_register_virtual_type,
4172         set_gdbarch_deprecated_register_bytes.
4173         Add calls to:
4174         set_gdbarch_num_pseudo_regs,
4175         set_gdbarch_register_type,
4176         set_gdbarch_convert_register_p,
4177         set_gdbarch_register_to_value,
4178         set_gdbarch_value_to_register,
4179         set_gdbarch_register_reggroup_p,
4180         set_gdbarch_regset_from_core_section,
4181         set_gdbarch_pseudo_register_read,
4182         set_gdbarch_pseudo_register_write,
4183         set_gdbarch_in_function_epilogue_p.
4184         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
4185         (s390_tdep_h): New variable.
4186
4187 2004-02-17  Jim Blandy  <jimb@redhat.com>
4188
4189         * findvar.c (value_from_register): If the type has no length, just
4190         return an acceptable value --- don't report an internal error.
4191
4192         * stabsread.c (read_type): If we find any type numbers that are
4193         forward references, complain if the references aren't resolved by
4194         the time we're finished reading.
4195         (cleanup_undefined_types): Make error message more appropriate for
4196         a complaint.
4197
4198 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
4199
4200         * Makefile.in (defs_h): Remove dependency on progress_h.
4201         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
4202         progress.h.
4203         * main.c (captured_main): Delete use of START_PROGRESS and
4204         END_PROGRESS.
4205
4206 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
4207
4208         * objfiles.c (terminate_minimal_symbol_table): Add back
4209         initialization of MSYMBOL_TYPE.
4210
4211 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
4212
4213         Committed by Andrew Cagney.
4214         * Makefile.in (ia64_tdep_h): New macro.
4215         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
4216         (ia64-tdep.o): Likewise.
4217         * ia64-tdep.h: New file.
4218         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
4219         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
4220         (ia64_aix_sigcontext_register_address): Likewise.
4221         (ia64_linux_getunwind_table): Delete declaration.
4222         * ia64-linux-tdep.c: Likewise.
4223
4224 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
4225
4226         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
4227         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
4228         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
4229
4230 2004-02-17  Andrew Cagney  <cagney@redhat.com>
4231
4232         * symtab.c (skip_prologue_using_sal): New function.
4233         * symtab.h (skip_prologue_using_sal): Declare.
4234         * frv-tdep.c: Include "symtab.h".
4235         (skip_prologue_using_sal): Delete function.
4236         * mips-tdep.c (skip_prologue_using_sal): Delete function.
4237         * rs6000-tdep.c (refine_prologue_limit): Mention
4238         skip_prologue_using_sal.
4239         * ia64-tdep.c (refine_prologue_limit): Ditto.
4240         * Makefile.in: Update dependencies.
4241
4242 2004-02-16  Andrew Cagney  <cagney@redhat.com>
4243
4244         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
4245         START_INFERIOR_TRAPS_EXPECTED.
4246         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
4247         START_INFERIOR_TRAPS_EXPECTED.
4248         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
4249         Delete macro.
4250         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
4251         macro, moved to "nm-osf.h".  Update copyright.
4252         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
4253         update copyright.
4254
4255         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
4256         and function replacing FRAMELESS_FUNCTION_INVOCATION.
4257         * blockframe.c (legacy_frameless_look_for_prologue): Rename
4258         frameless_look_for_prologue.
4259         * frame.h (legacy_frameless_look_for_prologue): Rename
4260         frameless_look_for_prologue.
4261         * gdbarch.h, gdbarch.c: Re-generate.
4262         * sh64-tdep.c (sh64_gdbarch_init): Update.
4263         * sh-tdep.c (sh_gdbarch_init): Update.
4264         * s390-tdep.c (s390_gdbarch_init): Update.
4265         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4266         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4267         * m68k-tdep.c (m68k_gdbarch_init): Update.
4268         (delta68_frame_args_address): Update.
4269         * m32r-tdep.c (m32r_gdbarch_init): Update.
4270         * hppa-tdep.c (hppa_gdbarch_init): Update.
4271         * h8300-tdep.c (h8300_gdbarch_init): Update.
4272         * frv-tdep.c (frv_gdbarch_init): Update.
4273         (frv_frameless_function_invocation): Update.
4274         * cris-tdep.c (cris_gdbarch_init): Update.
4275         (cris_frameless_function_invocation): Update.
4276         * avr-tdep.c (avr_gdbarch_init): Update.
4277         * arm-tdep.c (arm_gdbarch_init): Update.
4278         * stack.c (frame_info): Update, call predicate.
4279         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
4280         * frame.c (legacy_get_prev_frame): Update, call predicate..
4281         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
4282         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
4283         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
4284         invocation.
4285         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4286         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4287         * vax-tdep.c (vax_gdbarch_init): Ditto.
4288
4289         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
4290         function.
4291
4292 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
4293
4294         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
4295         initializations.
4296
4297 2004-02-16  Andrew Cagney  <cagney@redhat.com>
4298
4299         * tui/tui-windata.c: Include "gdb_string.h".
4300         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
4301         * tui/tui-layout.c, tui/tui-command.c: Ditto.
4302         * Makefile.in: Update dependencies.
4303
4304 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
4305
4306         * Makefile.in (infrun.o): Add $(gdb_assert_h).
4307         * infrun.c: Include "gdb_assert.h".
4308         (singlestep_ptid, saved_singlestep_ptid)
4309         (stepping_past_singlestep_breakpoint): New variables.
4310         (resume): Set singlestep_ptid.  Check for singlestep thread
4311         hop.
4312         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
4313         (handle_inferior_event): Handle singlestep thread hop.
4314
4315 2004-02-16  Andrew Cagney  <cagney@redhat.com>
4316
4317         * dwarf2-frame.c (dwarf2_frame_ops): New function.
4318         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
4319         (dwarf2_frame_init_reg): Ditto.
4320
4321         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
4322         suggested by Joshua Neuheisel
4323
4324         * configure.in: Always check for curses, including pdcurses.
4325         Warn, instead of error, when no curses are found.  Enable TUI when
4326         curses is available.
4327         * configure: Re-generate.
4328
4329 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
4330
4331         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
4332         sh_sh4_register_convert_to_virtual.
4333         (sh_register_convert_to_raw): Rename from
4334         sh_sh4_register_convert_to_raw.
4335         (sh_pseudo_register_read): Accomodate above name change.
4336         (sh_pseudo_register_write): Ditto.
4337
4338 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
4339
4340         * sh-tdep.c (sh_generic_register_name): Remove.
4341         (sh_gdbarch_init): Use sh_sh_register_name in default case.
4342
4343 2004-02-15  Andrew Cagney  <cagney@redhat.com>
4344
4345         * configure.in (build_warnings): Add -Wunused-function.
4346         * configure: Re-generate.
4347
4348         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
4349         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
4350
4351         * procfs.c (procfs_init_inferior): Assume that
4352         START_INFERIOR_TRAPS_EXPECTED is defined.
4353         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
4354         * config/ns32k/tm-nbsd.h: Delete file,
4355         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
4356
4357         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
4358         * config/vax/tm-vax.h: Delete file.
4359
4360         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4361         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4362         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4363         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4364         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
4365         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4366         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
4367
4368 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
4369
4370         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
4371         * dwarf2-frame.c (dwarf2_frame_data): New variable.
4372         (struct dwarf2_frame_ops): New.
4373         (dwarf2_frame_default_init_reg): New function, based on
4374         dwarf2_frame_init_reg.
4375         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
4376         (dwarf2_frame_init_reg): Call architecture-specific function.
4377         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
4378         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
4379         instead of dwarf2_frame_data.
4380         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
4381         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
4382
4383 2004-02-15  Andrew Cagney  <cagney@redhat.com>
4384
4385         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
4386         register_gdbarch_swap.
4387         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
4388         * f-lang.c (_initialize_f_language): Update, use
4389         DEPRECATED_REGISTER_GDBARCH_SWAP.
4390         * remote.c (_initialize_remote): Ditto.
4391         * regcache.c (_initialize_regcache): Ditto.
4392         * parse.c (_initialize_parse): Ditto.
4393         * infrun.c (_initialize_infrun): Ditto.
4394         * mi/mi-main.c (_initialize_mi_main): Ditto.
4395         * gdbtypes.c (_initialize_gdbtypes): Ditto.
4396
4397         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
4398         poking .cacheable directly.
4399         * symfile.c (symfile_bfd_open): Ditto.
4400
4401         * Makefile.in: Update all dependencies.
4402
4403         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
4404         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
4405         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
4406         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
4407         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
4408
4409 2004-02-14  Andrew Cagney  <cagney@redhat.com>
4410
4411         * arch-utils.c (legacy_convert_register_p): Check
4412         DEPRECATED_REGISTER_CONVERTIBLE_P.
4413         * findvar.c (value_of_register): Ditto.
4414
4415         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
4416         * gdbarch.h, gdbarch.c: Re-generate.
4417         * arch-utils.c (deprecated_register_convertible_not): Delete.
4418         * arch-utils.h (deprecated_register_convertible_not): Delete.
4419         * mi/mi-main.c (get_register): Update.  Update copyright.
4420         * infcmd.c (default_print_registers_info): Update.
4421
4422         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
4423         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
4424         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
4425         * gdbarch.h, gdbarch.c: Re-generate.
4426         * frame.c (deprecated_get_next_frame_hack): Delete function.
4427         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
4428         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
4429         Update.
4430         * infcall.c (call_function_by_hand): Update.
4431
4432 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
4433
4434         * symfile.c (init_entry_point_info, entry_point_address): Move
4435         from here...
4436         * objfiles.c (init_entry_point_info, entry_point_address):..to
4437         here.
4438         * symfile.h (init_entry_point_info, entry_point_address): Remove
4439         prototypes.
4440         * objfiles.h (init_entry_point_info, entry_point_address):Add
4441         prototypes.
4442         * cris-tdep.c: Remove include of symfile.h. Add include of
4443         objfiles.h.
4444         * infcall.c: Ditto.
4445         * mcore-tdep.c: Ditto.
4446         * mn10300-tdep.c: Ditto.
4447         * sh64-tdep.c: Ditto.
4448         * v850-tdep.c: Ditto.
4449         * arm-tdep.c: Remove include of symfile.h.
4450         * blockframe.c: Ditto.
4451         * coffread.c: Ditto.
4452         * dbxread.c: Ditto.
4453         * dwarf2read.c: Ditto.
4454         * dwarfread.c: Ditto.
4455         * frv-tdep.c: Ditto.
4456         * ia64-tdep.c: Ditto.
4457         * mdebugread.c: Ditto.
4458         * mipsread.c: Ditto.
4459         * rs6000-tdep.c: Ditto.
4460         * s390-tdep.c: Ditto.
4461         * sh-tdep.c: Ditto.
4462         * xstormy16-tdep.c: Ditto.
4463         * gdbarch.sh: Remove include of symfile.h.
4464         * gdbarch.c: Regenerate.
4465         * solib-irix.c (enable_break): Use entry_point_address().
4466         Add comment about include file.
4467         * xcoffread.c: Add comment about include file.
4468         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
4469         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
4470         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
4471         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
4472         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
4473
4474 2004-02-13  Andrew Cagney  <cagney@redhat.com>
4475
4476         * corelow.c (core_xfer_partial): Use "struct bfd_section".
4477         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
4478         copyright.
4479         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
4480
4481 2004-02-12  Fred Fish  <fnf@redhat.com>
4482
4483         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
4484          set_gdbarch_store_return_value.
4485
4486 2004-02-12  Andrew Cagney  <cagney@redhat.com>
4487
4488         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
4489         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
4490         (interrupt_query): Ditto.
4491         (ofunc): Delete unused variable.
4492         * cris-tdep.c (cris_abi): Delete unused function.
4493         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
4494         (cris_get_wide_opcode, cris_get_short_size): Ditto.
4495         (cris_get_asr_quick_shift_steps): Ditto.
4496         (cris_skip_prologue_frameless_p): Ditto.
4497         * arm-tdep.c (arm_push_return_address): Delete unused function.
4498         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
4499         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
4500         * s390-tdep.c (s390_function_start): Delete unused function.
4501
4502 2004-02-12  Andrew Cagney  <cagney@redhat.com>
4503
4504         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
4505         gdbarch.h, gdbarch.c: Re-generate.
4506         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
4507         to generic_prologue_frameless_p.
4508         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
4509         * arch-utils.c (generic_prologue_frameless_p): Delete function.
4510
4511 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
4512
4513         * mips-linux-tdep.c: Include "frame.h".
4514         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
4515         (mips_linux_skip_resolver): New functions.
4516         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
4517         and set_gdbarch_in_solib_call_trampoline.
4518         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
4519         to after set_gdbarch_in_solib_return_trampoline.  Only set the
4520         solib hooks to mips16 functions if the OS ABI is unknown.
4521         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
4522         including "config/tm-linux.h".
4523         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
4524         * Makefile.in (mips-linux-tdep.o): Update.
4525
4526 2004-02-11  David Carlton  <carlton@kealia.com>
4527
4528         * linespec.c (decode_compound): Only look for a class symbol when
4529         considering all but the rightmost component.
4530
4531 2004-02-11  Andrew Cagney  <cagney@redhat.com>
4532
4533         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
4534         abi code are are separatly grouped.
4535
4536 2004-02-11  Andrew Cagney  <cagney@redhat.com>
4537
4538         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
4539         * gdbarch.h, gdbarch.c: Re-generate.
4540         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4541         * v850-tdep.c (v850_gdbarch_init): Update.
4542         * sh64-tdep.c (sh64_gdbarch_init): Update.
4543         * sh-tdep.c (sh_gdbarch_init): Update.
4544         * s390-tdep.c (s390_gdbarch_init): Update.
4545         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4546         * mips-tdep.c (mips_gdbarch_init): Update.
4547         * mcore-tdep.c (mcore_gdbarch_init): Update.
4548         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4549         * m32r-tdep.c (m32r_gdbarch_init): Update.
4550         * ia64-tdep.c (ia64_gdbarch_init): Update.
4551         * hppa-tdep.c (hppa_gdbarch_init): Update.
4552         * h8300-tdep.c (h8300_gdbarch_init): Update.
4553         * frv-tdep.c (frv_gdbarch_init): Update.
4554         * d10v-tdep.c (d10v_gdbarch_init): Update.
4555         * cris-tdep.c (cris_gdbarch_init): Update.
4556         * avr-tdep.c (avr_gdbarch_init): Update.
4557         * arm-tdep.c (arm_gdbarch_init): Update.
4558         * alpha-tdep.c (alpha_gdbarch_init): Update.
4559
4560 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
4561
4562         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
4563         comma.
4564         (sh_sh4al_dsp_register_name): Ditto.
4565
4566 2004-02-10  Andrew Cagney  <cagney@redhat.com>
4567
4568         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
4569         (mips_init_frame_pc_first): Delete function.
4570         (mips_frame_saved_pc): Delete function.
4571         (mips_frame_chain): Delete function.
4572         (mips_init_extra_frame_info): Delete function.
4573         (mips_xfer_register): Delete unused variable "reg".
4574         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
4575         (mips_n32n64_return_value): Delete unused variable "reg".
4576         (mips_n32n64_return_value): Delete unused variable "pos".
4577         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
4578         (mips_o32_return_value): Delete unused variable "pos".
4579         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
4580         (mips_print_fp_register): Delete unused variable "namelen"
4581         (mips_print_fp_register): Delete unused variable "flt2"
4582         (get_frame_pointer): Delete function.
4583         (cached_proc_desc): Delete static variable.
4584         (mips_pop_frame): Delete function.
4585         (mips_find_saved_regs): Delete function.
4586         (mips_get_saved_register): Delete function.
4587         (mips_saved_pc_after_call): Delete function.
4588         (SIGFRAME_BASE): Delete macro.
4589         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
4590         (SIGFRAME_PC_OFF): Delete macro.
4591         (SIGFRAME_REGSAVE_OFF): Delete macro.
4592         (mips_dump_tdep): Do not print deleted macro definitions.
4593
4594 2004-02-10  Andrew Cagney  <cagney@redhat.com>
4595
4596         * Makefile.in (SFILES): Remove explictly listed tui files.
4597         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
4598
4599 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
4600
4601         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
4602         to use paddr functions to format ia64 addresses and long values.
4603         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
4604         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
4605         (get_kernel_table, ia64_find_proc_info_x): Ditto.
4606         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
4607         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
4608
4609 2004-02-10  Andrew Cagney  <cagney@redhat.com>
4610
4611         * defs.h: Do not include "tui.h".
4612         * gdb_curses.h: New file.
4613         * tui/tui-hooks.h: New file.
4614         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
4615         (tui_install_hooks, tui_remove_hooks): Delete declarations.
4616         (tui_initialize_io): Delete declaration.
4617         (tui_initialize_readline: Delete redundant declaration.
4618         (struct tui_point): Delete definition.
4619         * tui/tui-data.h (struct tui_point): Define.
4620         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
4621         * utils.c: Include "tui/tui.h".
4622         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
4623         * printcmd.c [TUI]: Include "tui/tui.h".
4624         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
4625         * tui/tui-command.c: Include "gdb_curses.h".
4626         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
4627         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
4628         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
4629         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
4630         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
4631         * Makefile.in: Update all dependencies.
4632         (tui_hooks_h, gdb_curses_h): Define.
4633         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
4634
4635 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
4636
4637         * objfiles.h (struct objfile): Remove unused fields auxf1 and
4638         auxf2. Add comments about some other rarely used fields.
4639
4640 2004-02-10  Andrew Cagney  <cagney@redhat.com>
4641
4642         * Makefile.in (init.c): Fix script removing duplicates. Problem
4643         reported by Peter Schauer.
4644
4645 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
4646
4647         * bcache.c (bcache_xmalloc): Use obstack_init instead of
4648         obstack_specify_allocation.
4649         * objfiles.c (allocate_objfile): Ditto.
4650         * solib-sunos.c (solib_add_common_symbols)
4651         (allocate_rt_common_objfile): Ditto.
4652         * symfile.c (reread_symbols): Ditto.
4653         * gdb_obstack.h: Add comment.
4654
4655 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
4656
4657         * linespec.c (decode_line_1, locate_first_half)
4658         (decode_compound, lookup_prefix_sym): Update comments. Delete old
4659         commented out code.
4660
4661 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
4662
4663         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
4664         obstack_free.
4665
4666 2004-02-09  Andrew Cagney  <cagney@redhat.com>
4667
4668         * blockframe.c (find_pc_partial_function): If find_pc_overlay
4669         fails, try find_pc_section.  Fix PR c++/1267.
4670         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
4671         instead of find_pc_mapped_section.
4672         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
4673         not default to the section containing PC.  Fix PR symtab/1519.
4674
4675 2004-02-09  Andrew Cagney  <cagney@redhat.com>
4676
4677         * Makefile.in (mips-tdep.o): Update dependencies.
4678         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
4679         "trad-frame.h".
4680         (mips_unwind_pc): Return the pseudo PC register.
4681         (mips_unwind_dummy_id): New function.
4682         (mips16_fetch_instruction): New function.
4683         (mips32_fetch_instruction): New function.
4684         (struct mips_frame_cache): Define.
4685         (mips_mdebug_frame_cache): New function.
4686         (mips_mdebug_frame_this_id): New function.
4687         (mips_mdebug_frame_prev_register): New function.
4688         (mips_mdebug_frame_unwind): Define.
4689         (mips_mdebug_frame_sniffer): New function.
4690         (mips_mdebug_frame_base_address): New function.
4691         (mips_mdebug_frame_base): Define.
4692         (mips_mdebug_frame_base_sniffer): New function.
4693         (mips_gdbarch_init): Append unwind and base sniffers.  Set
4694         unwind_dummy_id.
4695
4696 2004-02-08  Andrew Cagney  <cagney@redhat.com>
4697
4698         * frame.c: Print both the register number and name.
4699
4700         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
4701         and a sed into a single sed.  Make .c and .o patterns more robust.
4702         (OBS): Delete.
4703         (INIT_FILES): Replace OBS with COMMON_OBS.
4704         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
4705
4706 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
4707
4708         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
4709         the PT_WCOOKIE request.
4710
4711 2004-02-08  Andrew Cagney  <cagney@redhat.com>
4712
4713         * mips-tdep.c (mips_unwind_pc): New function.
4714         (mips_gdbarch_init): Set mips_unwind_pc.
4715
4716         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
4717         (get_frame_id): Allow the UNKNOWN_FRAME.
4718         (frame_register_unwind, get_frame_type): Ditto.
4719
4720         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
4721         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
4722         unwind_dummy_id indicates a legacy frame.
4723
4724         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
4725         * configure: Re-generate.
4726
4727         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
4728         methods.
4729
4730 2004-02-08  Andrew Cagney  <cagney@redhat.com>
4731
4732         * configure.in (CONFIG_ALL): Set to Makefile target, and not
4733         makefile macro.
4734         * configure: Re-generate.
4735         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
4736         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
4737         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
4738         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
4739         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
4740         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
4741         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
4742         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
4743         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
4744         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
4745
4746 2004-02-07  Andrew Cagney  <cagney@redhat.com>
4747
4748         * Makefile.in: Update all dependencies.
4749
4750         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
4751         * configure: Re-generate.
4752         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
4753         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
4754         (COMMON_OBS): Add "main.o" and "annotate.o".
4755         (ANNOTATE_OBS): Delete.
4756         (OBS): Remove ANNOTATE_OBS.
4757         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
4758         CONFIG_INITS.
4759         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
4760         against CONFIG_OBS and "main.o".
4761         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
4762         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
4763
4764         * tui/tui-command.c: Include "gdb_string.h", delete register
4765         attribute, use ISO-C function signatures.
4766         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
4767         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
4768         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
4769         * tui/tui.c: Ditto.
4770
4771         * tui/tui-command.c: Change variable and function names to lower
4772         case.
4773         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
4774         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
4775         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
4776         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
4777         * tui/tui-winsource.c, tui/tui.c: Ditto.
4778
4779 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
4780
4781         * buildsym.c (free_pending_blocks, finish_block)
4782         (record_pending_block, make_blockvector, end_symtab): Replace
4783         symbol_obstack with objfile_obstack.
4784         * coffread.c (process_coff_symbol, coff_read_struct_type)
4785         (coff_read_enum_type): Ditto.
4786         * cp-namespace.c (initialize_namespace_symtab)
4787         (check_one_possible_namespace_symbol): Ditto.
4788         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4789         (dwarf2_symbol_mark_computed): Ditto.
4790         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
4791         * elfread.c (elf_symtab_read): Ditto.
4792         * hpread.c (hpread_symfile_init, hpread_symfile_init)
4793         (hpread_read_enum_type, hpread_read_function_type)
4794         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
4795         Ditto.
4796         * jv-lang.c (get_java_class_symtab, add_class_symbol)
4797         (java_link_class_type): Ditto.
4798         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4799         (new_symbol): Ditto.
4800         * minsyms.c (install_minimal_symbols): Ditto.
4801         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
4802         (terminate_minimal_symbol_table): Replace symbol_obstack with
4803         objfile_obstack.
4804         (free_objfile): Remove freeing of symbol_obstack.
4805         * objfiles.h: Remove symbol_obstack field.
4806         * pa64solib.c (add_to_solist): Replace symbol_obstack with
4807         objfile_obstack.
4808         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
4809         symbol_obstack.
4810         (solib_add_common_symbols): Replace symbol_obstack with
4811         objfile_obstack.
4812         * somsolib.c (som_solib_add): Ditto.
4813         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4814         (common_block_start, common_block_end): Ditto.
4815         * symfile.c (reread_symbols): Remove freeing and init of
4816         symbol_obstack.
4817         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
4818         * symfile.h: Update comment.
4819         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
4820         stats printing.
4821         * symtab.c (symbol_set_names): Replace symbol_obstack with
4822         objfile_obstack.
4823         * symtab.h (struct general_symbol_info, struct minimal_symbol):
4824         Update comments.
4825         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
4826         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
4827         objfile_obstack.
4828
4829 2004-02-07  Andrew Cagney  <cagney@redhat.com>
4830
4831         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
4832         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
4833         fields and variables.
4834         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
4835         (m_beInvisible): Delete macro.
4836         * tui/tui-data.h: Fix case case fields and variables.
4837         (m_genWinPtrIsNull): Delete macro.
4838         (tui_win_list): Rename winList.
4839         (TUI_SRC_WIN): Rename srcWin.
4840         (TUI_DISASM_WIN): Rename disassemWin.
4841         (TUI_DATA_WIN): Rename dataWin.
4842         (TUI_CMD_WIN): Rename cmdWin.
4843         (m_genWinPtrNotNull): Delete macro.
4844         (m_winPtrIsNull): Delete macro.
4845         (m_winPtrNotNull): Delete macro.
4846         (tui_win_is_source_type): Replace m_winIsSourceType
4847         (tui_win_is_auxillary): Replace m_winIsAuzillary.
4848         (tui_win_has_locator): Replace m_hasLocator.
4849         (tui_set_win_highlight): Replace m_setWinHighlightOn and
4850         m_setWinHighlightOff.
4851         * tui/tui-data.c: Update references.
4852         (tui_win_is_source_type, tui_set_win_highlight): New functions.
4853         (tui_win_has_locator, tui_win_is_auxillary): New functions.
4854         * tui/tui-command.c, tui/tui-disasm.c: Update references.
4855         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
4856         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
4857         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
4858         * tui/tui-winsource.c, tui/tui.c: Ditto.
4859
4860 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
4861
4862         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
4863         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
4864         StackGhost.
4865
4866         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
4867         variable `i6' to `i7'.
4868         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
4869
4870 2004-02-07  Andrew Cagney  <cagney@redhat.com>
4871
4872         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
4873         (TuiPoint, TuiPointPtr): Ditto.
4874         (TuiStatus, TuiStatusPtr): Ditto.
4875         (TuiWinType, TuiWinTypePtr): Ditto.
4876         (struct tui_point): Rename _TuiPoint.
4877         (tui_get_low_disassembly_address): Rename
4878         tuiGetLowDisassemblyAddress.
4879         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
4880         (tuiFree): Delete declaration.
4881         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
4882         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
4883         * tui/tui.c (tuiFree): Delete function.
4884         * cli/cli-cmds.c (disassemble_command): Update references.
4885         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
4886         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
4887         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
4888         * tui/tui-winsource.c: Ditto.
4889
4890 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
4891
4892         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
4893         coffstab_build_psymtabs, elfstab_build_psymtabs)
4894         (stabsect_build_psymtabs): Replace psymbol_obstack with
4895         objfile_obstack.
4896         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
4897         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
4898         Ditto.
4899         * dwarfread.c (scan_compilation_units): Ditto.
4900         * elfread.c (elfstab_offset_sections): Ditto.
4901         * hppa-tdep.c (read_unwind_info): Ditto.
4902         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
4903         (hpread_end_psymtab): Ditto.
4904         * mdebugread.c (mdebug_build_psymtabs, add_pending)
4905         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
4906         Ditto.
4907         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4908         * objfiles.c (add_to_objfile_sections)
4909         (build_objfile_section_table): Ditto.
4910         (allocate_objfile): Remove init of psymbol_obstack.
4911         (free_objfile): Remove freeing of psymbol_obstack.
4912         * objfiles.h (struct objfile): Remove field
4913         psymbol_obstack. Update comments.
4914         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
4915         psymbol_obstack with objfile_obstack.
4916         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
4917         psymbol_obstack.
4918         * somread.c (som_symfile_offsets, init_import_symbols)
4919         (init_export_symbols): Replace psymbol_obstack with
4920         objfile_obstack.
4921         * somsolib.c (som_solib_add_solib_objfile): Ditto.
4922         * symfile.c (default_symfile_offsets, syms_from_objfile)
4923         (reread_symbols): Remove freeing and init of psymbol_obstack.
4924         (cashier_psymtab): Update comment.
4925         * symmisc.c (print_objfile_statistics): Don't report stats for
4926         psymbol obstack.
4927         * symtab.h (struct general_symbol_info, struct partial_symtab):
4928         Update comments.
4929         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
4930         (xcoff_symfile_offsets): Replace psymbol_obstack with
4931         objfile_obstack.
4932
4933 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
4934
4935         * objfiles.h (struct objfile): Add objfile_obstack field.
4936         Remove type_obstack field.
4937
4938         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
4939         read_structure_scope read_enumeration, new_symbol): Replace
4940         type_obstack with objfile_obstack.
4941         * dwarfread.c (struct_type, enum_type): Ditto.
4942         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
4943         (lookup_fundamental_type): Ditto.
4944         * gdbtypes.h (TYPE_ALLOC): Ditto.
4945         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
4946         (hpread_read_doc_function_type, hpread_read_struct_type)
4947         (fix_static_member_physnames, hpread_read_array_type)
4948         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
4949         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
4950         (java_link_class_type): Ditto.
4951         * mdebugread.c (parse_type): Ditto.
4952         * objfiles.c (allocate_objfile, free_objfile): Ditto.
4953         * solib-sunos.c (solib_add_common_symbols): Ditto.
4954         * stabsread.c (define_symbol, read_type, read_member_functions,
4955         read_cpp_abbrev, read_one_struct_field): Ditto.
4956         * symfile.c (reread_symbols): Ditto.
4957         * symmisc.c (print_objfile_statistics): Ditto.
4958
4959 2004-02-07  Andrew Cagney  <cagney@redhat.com>
4960
4961         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
4962         (tui_exec_info_content): Rename TuiExecInfoContent.
4963         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
4964         (TuiWinInfo, TuiWinInfoPtr): Ditto.
4965         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
4966         (TuiList, TuiListPtr): Ditto.
4967         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
4968         (TuiDataType, TuiDataTypePtr): Ditto.
4969         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
4970         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
4971         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
4972         (TuiSourceElement, TuiSourceElementPtr): Ditto.
4973         (TuiDataElement, TuiDataElementPtr): Ditto.
4974         (TuiWinElement, TuiWinElementPtr): Ditto.
4975         (TuiDataInfo, TuiDataInfoPtr): Ditto.
4976         (TuiCommandElement, TuiCommandElementPtr): Ditto.
4977         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
4978         (TuiWhichElement, TuiWhichElementPtr): Ditto.
4979         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
4980         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
4981         * tui/tui-command.c, tui/tui-data.c: Update references.
4982         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
4983         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
4984         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
4985         * tui/tui-winsource.c, tui/tui.c: Ditto.
4986
4987 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
4988
4989         * dwarf2-frame.h: Update copyright.
4990         (enum dwarf2_frame_reg_rule): New.
4991         (struct dwarf2_frame_state_reg): New.
4992         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
4993         * dwarf2-frame.c: Update copyright.
4994         (enum dwarf2_reg_rule): Remove.
4995         (struct dwarf2_frame_state): Remove defenition of `struct
4996         dwarf2_frame_state_reg'.
4997         (read_reg): Call get_frame_arch to get the architecture instead of
4998         using CURRENT_GDBARCH.
4999         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
5000         DWARF2_FRAME_.
5001         (dwarf2_frame_init_reg): New function.
5002         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
5003         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
5004         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
5005         tags with DWARF2_FRAME_.
5006         (dwarf2_frame_prev_register): Call get_frame_arch to get the
5007         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
5008         dwarf2_reg_rule' tags with DWARF2_FRAME_.
5009
5010 2004-02-06  Andrew Cagney  <cagney@redhat.com>
5011
5012         * tui/tui-data.h (struct tui_list): Rename _TuiList.
5013         (enum tui_data_type): Rename _TuiDataType.
5014         (struct tui_layout_def): Rename _TuiLayoutDef.
5015         (struct tui_source_element): Rename _TuiSourceElement.
5016         (struct tui_data_element): Rename _TuiDataElement.
5017         (struct tui_command_element): Rename _TuiCommandElement.
5018         (struct tui_locator_element): Rename _TuiLocatorElement.
5019         (union tui_which_element): Define.
5020         (struct tui_win_element): Rename _TuiWinElement.
5021         (struct tui_data_info): Rename _TuiDataInfo.
5022         (struct tui_source_info): Rename _TuiSourceInfo.
5023         (struct tui_command_info): Rename _TuiCommandInfo.
5024         (tui_initialize_static_data): Rename initializeStaticData.
5025         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
5026         (tui_alloc_win_info): Rename allocWinInfo.
5027         (tui_init_generic_part): Rename initGenericPart.
5028         (tui_init_win_info): Rename initWinInfo.
5029         (tui_alloc_content): Rename allocContent.
5030         (tui_add_content_elements): Rename addContentElements.
5031         (tui_init_content_element): Rename initContentElement.
5032         (tui_free_window): Rename freeWindow.
5033         (tui_free_win_content): Rename freeWinContent.
5034         (tui_free_data_content): Rename freeDataContent.
5035         (tui_free_all_source_wins_content): Rename
5036         freeAllSourceWinsContent.
5037         (tui_del_window): Rename tuiDelWindow.
5038         (tui_del_data_windows): Rename tuiDelDataWindows.
5039         (tui_partial_win_by_name): Rename partialWinByName.
5040         (tui_win_name): Rename winName.
5041         (tui_current_layout): Rename currentLayout.
5042         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
5043         (tui_term_height): Rename termHeight.
5044         (tui_set_term_height_to): Rename setTermHeightTo.
5045         (tui_term_width): Rename termWidth.
5046         (tui_set_term_width_to): Rename setTermWidthTo.
5047         (tui_set_gen_win_origin): Rename setGenWinOrigin.
5048         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
5049         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
5050         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
5051         (tui_source_windows): Rename sourceWindows.
5052         (tui_clear_source_windows): Rename clearSourceWindows.
5053         (tui_clear_source_windows_detail): Rename
5054         clearSourceWindowsDetail.
5055         (tui_clear_win_detail): Rename clearWinDetail.
5056         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
5057         (tui_default_tab_len): Rename tuiDefaultTabLen.
5058         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
5059         (tui_win_with_focus): Rename tuiWinWithFocus.
5060         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
5061         (tui_layout_def): Rename tuiLayoutDef.
5062         (tui_win_resized): Rename tuiWinResized.
5063         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
5064         (tui_next_win): Rename tuiNextWin.
5065         (tui_prev_win): Rename tuiPrevWin.
5066         (tui_add_to_source_windows): Rename addToSourceWindows.
5067         * tui/tui-winsource.c, tui/tui-win.c: Update references.
5068         * tui/tui-layout.c, tui/tui-source.c: Ditto.
5069         * tui/tui-stack.c, tui/tui-io.c: Ditto.
5070         * tui/tui.c, tui/tui-data.c: Ditto.
5071         * tui/tui-interp.c, tui/tui-data.c: Ditto.
5072         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
5073
5074         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
5075         (struct symtab): Declare.
5076         (tui_set_source_content): Rename tuiSetSourceContent.
5077         (tui_show_symtab_source): Rename tuiShowSource.
5078         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
5079         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
5080         * tui/tui-source.c: Update copyright.  Update references.
5081         * tui/tui-win.c, tui/tui-winsource.c: Update references.
5082         * tui/tui-stack.c: Update references.
5083
5084         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
5085         (struct tui_win_info): Declare.
5086         (tui_scroll_forward): Rename tuiScrollForward.
5087         (tui_scroll_backward): Rename tuiScrollBackward.
5088         (tui_scroll_left): Rename tuiScrollLeft.
5089         (tui_scroll_right): Rename tuiScrollRight.
5090         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
5091         (tui_resize_all): Rename tuiResizeAll.
5092         (tui_refresh_all_win): Rename tuiRefreshAll.
5093         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
5094         * tui/tui-layout.c, * tui/tui-io.c: Update references.
5095         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
5096         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
5097
5098         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
5099         (tui_erase_data_content): Rename tuiEraseDataContent.
5100         (tui_display_all_data): Rename tuiDisplayAllData.
5101         (tui_check_data_values): Rename tuiCheckDataValues.
5102         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
5103         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
5104         (tui_first_data_element_no_in_line): Rename
5105         tuiFirstDataElementNoInLine.
5106         (tui_delete_data_content_windows): Rename
5107         tuiDeleteDataContentWindows.
5108         (tui_refresh_data_win): Rename tuiRefreshDataWin.
5109         (tui_display_data_from): Rename tuiDisplayDataFrom.
5110         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
5111         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
5112         * tui/tui-win.c, tui/tui-regs.c: Update references.
5113         * tui/tui-layout.c, tui/tui.c: Update references.
5114
5115         * tui/tui-wingeneral.h: Update copyright.
5116         (m_allBeVisible): Delete macro.
5117         (m_allBeInvisible): Delete macro.
5118         (struct tui_gen_win_info): Declare.
5119         (struct tui_win_info): Declare.
5120         (tui_unhighlight_win): Rename unhighlightWin.
5121         (tui_make_visible, tui_make_invisible): Replace makeVisible.
5122         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
5123         (tui_make_window): Rename makeWindow.
5124         (tui_copy_win): Rename copyWin.
5125         (tui_box_win): Rename boxWin.
5126         (tui_highlight_win): Rename highlightWin.
5127         (tui_check_and_display_highlight_if_needed): Rename
5128         checkAndDisplayHighlightIfNeeded.
5129         (tui_refresh_all): Rename refreshAll.
5130         (tui_delete_win): Rename tuiDelwin.
5131         (tui_refresh_win): Rename tuiRefreshWin.
5132         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
5133         (tui_make_visible, tui_make_invisible): New functions.
5134         (tui_make_all_visible, tui_make_all_invisible): New functions.
5135         (make_all_visible): Rename makeAllVisible.
5136         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
5137         * tui/tui-data.c, tui/tui-winsource.c: Update references.
5138         * tui/tui-windata.c, tui/tui-win.c: Update references.
5139         * tui/tui-regs.c, tui/tui-layout.c: Update references.
5140         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
5141
5142 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
5143
5144         * proc-api.c (write_with_trace): Initialize local variable to
5145         silence compiler warning.
5146
5147 2004-02-06  Andrew Cagney  <cagney@redhat.com>
5148
5149         * tui/tui-source.h: Do not include "defs.h".
5150         (struct tui_win_info): Declare.
5151         (tui_set_source_content_nil): Declare.
5152         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
5153         (union tui_line_or_address): Rename _TuiLineOrAddress.
5154         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
5155         (tui_update_source_window): Rename tuiUpdateSourceWindow.
5156         (tui_update_source_window_as_is): Rename
5157         tuiUpdateSourceWindowAsIs.
5158         (tui_update_source_windows_with_addr): Rename
5159         tuiUpdateSourceWindowsWithAddr.
5160         (tui_update_source_windows_with_line): Rename
5161         tuiUpdateSourceWindowsWithLine.
5162         (tui_clear_source_content): Rename tuiClearSourceContent.
5163         (tui_erase_source_content): Rename tuiEraseSourceContent.
5164         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
5165         (tui_show_source_content): Rename tuiShowSourceContent.
5166         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
5167         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
5168         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
5169         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
5170         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
5171         (tui_update_exec_info): Rename tuiUpdateExecInfo.
5172         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
5173         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
5174         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
5175         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
5176         (struct tui_win_info): Declare.
5177         * tui/tui-stack.c: Update references.
5178         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
5179         * tui/tui-win.c, tui/tui-source.c: Ditto.
5180         * tui/tui.c, tui/tui-disasm.c: Ditto.
5181
5182 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
5183
5184         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
5185         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
5186
5187 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
5188
5189         * infrun.c (handle_inferior_event): Allow for breakpoint
5190         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
5191         and SIGEMT.  Update comments.
5192         * NEWS (Revised SPARC target): Mention support for non-executable
5193         stack.
5194
5195 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
5196
5197         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
5198         * inftarg.c: Update copyright year.
5199         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
5200         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
5201         (sparc_xfer_wcookie): New function.
5202         * sparc-tdep.c (sparc_fetch_wcookie): New function.
5203         * Makefile.in (sparc-nat.o): Update dependencies.
5204         * config/sparc/nm-nbsd.h: Include "target.h".
5205         (NATIVE_XFER_WCOOKIE): New define.
5206         (sparc_xfer_wcookie): New prototype.
5207
5208 2004-02-04  Andrew Cagney  <cagney@redhat.com>
5209
5210         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
5211         SYSCALL_TRAP function.
5212         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
5213
5214 2004-02-04  Andrew Cagney  <cagney@redhat.com>
5215             Daniel Jacobowitz  <drow@mvista.com>
5216
5217         * objfiles.h: Delete comments refering to inside_entry_func and
5218         DEPRECATED_FRAME_CHAIN_VALID.
5219         * defs.h (inside_entry_func): Update prototype..
5220         * blockframe.c (inside_entry_func): Rename to
5221         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
5222         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
5223
5224 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
5225
5226         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
5227         outside of #ifdef SOLIB_ADD region.
5228         (do_restore_lang_radix_cleanup): Ditto.
5229         (resolve_pending_breakpoint): Ditto.
5230
5231 2004-02-03  Andrew Cagney  <cagney@redhat.com>
5232
5233         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
5234         (process_note_abi_tag_sections): Delete unused function.
5235         (ia64_read_fp): Delete unused function.
5236         (gdbarch_extract_struct_value_address): Delete declaration.
5237
5238 2004-02-02  Andrew Cagney  <cagney@redhat.com>
5239
5240         * vax-tdep.c (vax_frame_chain): Delete call to
5241         deprecated_inside_entry_file.
5242         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
5243
5244 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
5245
5246         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
5247         column that's "empty" or "same value" when eliminating REG_RA
5248         rules.
5249
5250 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
5251
5252         * NEWS: Add information about new pending breakpoint support.
5253
5254 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
5255
5256         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
5257         and pending fields for pending breakpoint support.
5258         * breakpoint.c (breakpoint_enabled): Add check for not pending.
5259         (condition_command): Only parse condition if not a pending
5260         breakpoint.
5261         (print_one_breakpoint): Add support for pending breakpoints.
5262         (describe_other_breakpoints): Add checks to verify we are not
5263         dealing with pending breakpoints.
5264         (check_duplicates): Don't check pending breakpoints.
5265         (set_raw_breakpoint): Initialize pending flag.
5266         (do_restore_lang_radix_cleanup): New cleanup routine.
5267         (resolve_pending_breakpoint): New function.
5268         (re_enable_breakpoints_in_shlibs): Try and resolve any
5269         pending breakpoints via resolve_pending_breakpoint.
5270         (mention): Add pending breakpoint support.
5271         (parse_breakpoint_sals): Add new parameter to pass to
5272         decode_line_1 to indicate silent errors when files or functions
5273         are not found.  Change all callers.
5274         (do_captured_parse_breakpoint): New function.
5275         (break_command_1): Change prototype to return an rc value and to
5276         take an optional pending breakpoint pointer.  Support creating
5277         a pending breakpoint if a "not found" form of error occurs when
5278         parsing the breakpoint.  Also support resolving an existing pending
5279         breakpoint and be silent if the resolution fails.
5280         (create_breakpoints): Change prototype to take pending breakpoint
5281         pointer.  When resolving a pending breakpoint, use the new pointer
5282         to provide a conditional or commands added by the end-user.
5283         (delete_breakpoint): Add appropriate check for pending.
5284         (breakpoint_re_set_one): Ditto.
5285         (do_enable_breakpoint): Ditto.
5286
5287 2004-02-02  David Carlton  <carlton@kealia.com>
5288
5289         * valops.c (enum oload_classification): New.
5290         (find_overload_match): Break implementation into separate
5291         functions; delete #if 0'd code; look for symbols within
5292         namespaces.
5293         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
5294         (find_oload_champ,oload_method_static,classify_oload_match): New.
5295         * cp-support.h: Add declaration for cp_func_name; update
5296         declaration for make_symbol_overload_list.
5297         * cp-support.c (cp_func_name): New.
5298         (overload_list_add_symbol): Fix comment, use
5299         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
5300         (make_symbol_overload_list): Take a function name and a namespace
5301         instead of a symbol; change implementation.
5302         (make_symbol_overload_list_using): New.
5303         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
5304
5305 2004-02-02  Fred Fish  <fnf@redhat.com>
5306
5307         * main.c (gdb_stdtarg): Move definition to group with other
5308         gdb_stdtarg definitions and update copyright years.
5309         * remote-sim.c (gdb_os_write_stderr): Write output to
5310         gdb_stdtargerr stream instead of gdb_stdtarg stream.
5311         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
5312         gdb_stderr stream and update copyright years.
5313
5314 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
5315
5316         * Makefile.in (mips-linux-nat.o): Update dependencies.
5317         * mips-linux-nat.c: Include mips-tdep.h.
5318
5319 2004-02-01  Roland McGrath  <roland@redhat.com>
5320
5321         * sol-thread.c (sol_thread_xfer_partial): New function.
5322         (init_sol_thread_ops): Use that for to_xfer_partial hook.
5323         (init_sol_core_ops): Likewise.
5324
5325         * procfs.c (procfs_xfer_partial): New function.
5326         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
5327         * Makefile.in (procfs.o): Add $(auxv_h) dep.
5328
5329         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
5330         procfs_xfer_auxv function.
5331
5332         * procfs.c (procfs_make_note_section): If we can read
5333         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
5334         * linux-proc.c (linux_make_note_section): Likewise.
5335
5336         * auxv.h: New file.
5337         * auxv.c: New file.
5338         * Makefile.in (auxv_h): New variable.
5339         (COMMON_OBS): Add auxv.o here.
5340         (auxv.o): New target.
5341
5342         * corelow.c (core_xfer_partial): New function.
5343         (init_core_ops): Use it for core_ops.to_xfer_partial.
5344
5345         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
5346         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
5347         macro if that is defined.
5348
5349 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
5350
5351         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
5352         and check the specified thread for each breakpoint.
5353         * breakpoint.h (bpstat_stop_status): Update prototype.
5354         * infrun.c (handle_inferior_event): Update calls to
5355         bpstat_stop_status.
5356
5357 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
5358
5359         * Makefile.in (cli-cmds.o): Add $(readline_h).
5360
5361 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
5362
5363         * cli/cli-cmds.c: Include readline.h.
5364         (complete_command): Pass the start of the last word to
5365         complete_line.
5366
5367 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
5368
5369         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
5370         argument, and change first argument to a CORE_ADDR.
5371         * breakpoint.h (bpstat_stop_status): Update prototype.
5372         * infrun.c (adjust_pc_after_break): Add a new comment.
5373         (handle_inferior_event): Update calls to bpstat_stop_status.
5374
5375 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
5376
5377         * breakpoint.h: Update copyright years.
5378
5379 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
5380
5381         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
5382         (bpstat_stop_status): Don't decrement PC.
5383         * breakpoint.h (software_breakpoint_inserted_here_p): Add
5384         prototype.
5385         * infrun.c (adjust_pc_after_break): New function.
5386         (handle_inferior_event): Call it, early.  Remove later references
5387         to DECR_PC_AFTER_BREAK.
5388         (normal_stop): Add commentary.
5389
5390 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
5391
5392         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
5393         2004-01-27 double-free fix.
5394
5395 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
5396
5397         * sparc-tdep.c (sparc_fetch_wcookie): New function.
5398         (sparc32_frame_prev_register): Handle StackGhost.
5399         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
5400
5401 2004-01-29  Roland McGrath  <roland@redhat.com>
5402
5403         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
5404         * configure: Regenerated.
5405
5406         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
5407         * Makefile.in (procfs.o): Add dep.
5408
5409 2004-01-28  Andrew Cagney  <cagney@redhat.com>
5410
5411         * tui/tui-stack.h: Update copyright.
5412         (struct frame_info): Add opaque declaration.
5413         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
5414         (tui_show_locator_content): Rename tuiShowLocatorContent.
5415         (tui_show_frame_info): Rename tuiShowFrameInfo.
5416         * tui/tui-stack.c: Update copyright.  Update references.
5417         * tui/tui-winsource.c: Update references.
5418         * tui/tui-win.c: Update references.
5419         * tui/tui-layout.c: Update references.
5420         * tui/tui-hooks.c: Update copyright, update references.
5421         * tui/tui.c: Update copyright, update references.
5422         * tui/tui-disasm.c: Update references.
5423
5424 2004-01-28  David Carlton  <carlton@kealia.com>
5425
5426         * dwarf2read.c (add_partial_structure): Use demangled name if
5427         namespace equals "".
5428
5429 2004-01-27  Jim Blandy  <jimb@redhat.com>
5430
5431         Clean up misapplied patch:
5432         * dwarf2read.c (determine_prefix): Change one of the two forward
5433         declarations for 'determine_prefix_aux' to a declaration for this.
5434         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
5435         argument to 'die_specification'.
5436
5437         * dwarf2read.c (read_func_scope): Re-indent comment.
5438
5439 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
5440
5441         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
5442         b->exp to NULL after freeing so that error during re-parsing or
5443         evaluation of expressions associated with breakpoint don't
5444         eventually lead to re-freeing of storage.
5445         Committed by Andrew Cagney.
5446
5447 2004-01-27  Andrew Cagney  <cagney@redhat.com>
5448
5449         * source.c (ambiguous_line_spec): Delete undefined declaration.
5450         * m32r-rom.c (m32r_set_board_address): Delete unused function.
5451         (m32r_set_server_address, m32r_set_download_path): Ditto.
5452         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
5453
5454 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
5455
5456         * dwarf2read.c: Update calls to changed and renamed functions, and
5457         references to moved variables.
5458
5459         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
5460         language, language_defn, list_in_scope, and ftypes members.
5461         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
5462         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
5463         (baseaddr): Remove globals.
5464
5465         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
5466         (set_cu_language, die_is_declaration, die_specification)
5467         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
5468         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
5469         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
5470         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
5471
5472         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
5473         cu.list_in_scope.  Don't initialize cu_header_offset.
5474         (add_partial_symbol): Add local baseaddr.
5475         (psymtab_to_symtab_1): Add local baseaddr.  Use
5476         objfile->section_offsets for consistency.  Don't initialize
5477         cu_header_offset; do initialize cu.header.offset and
5478         cu.list_in_scope.
5479         (read_file_scope, read_func_scope, read_lexical_block_scope)
5480         (dwarf_decode_lines, new_symbol): Add local baseaddr.
5481
5482 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
5483
5484         * PROBLEMS: Add gdb/1516.
5485
5486 2003-12-29  Robert Millan  <robertmh@gnu.org>
5487
5488         Patch committed by Andrw Cagney.
5489         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
5490         * configure.tgt: Match knetbsd*-gnu.
5491
5492 2004-01-26  Andrew Cagney  <cagney@redhat.com>
5493
5494         * breakpoint.c (catch_command_1): Delete #ifdef code.
5495         (catch_fork_command_1): Delete #ifdef wrapper.
5496         (catch_exec_command_1): Ditto.
5497         (catch_load_command_1): Ditto.
5498         (catch_unload_command_1): Ditto.
5499
5500         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
5501         (catch_breakpoint): Delete #if0ed function.
5502         (disable_catch_breakpoint): Ditto.
5503         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
5504         (disable_catch, enable_catch, delete_catch): Ditto.
5505
5506 2004-01-26  Andrew Cagney  <cagney@redhat.com>
5507
5508         * remote.c (echo_check, quit_flag): Delete variables.
5509         (cisco_kernel_mode): Delete variable.
5510         (minitelnet_return, tty_input, escape_count): Delete variables.
5511         (remote_cisco_mode): Delete variable.
5512         (remote_cisco_open, remote_cisco_close): Delete function.
5513         (remote_cisco_mourn, remote_cisco_wait): Delete function.
5514         (init_remote_cisco_ops): Delete function.
5515         (_initialize_remote): Do not install "remote cisco" code.
5516         (read_frame): Delete cisco specific code.
5517         (remote_info_process): Delete function.
5518         (remote_wait): Delete cisco specific code.
5519         (remote_cisco_section_offsets): Delete function.
5520         (remote_cisco_objfile_relocate): Delete function.
5521         (remote_async_wait): Delete cisco specific code.
5522         (minitelnet, readtty, readsocket): Delete function.
5523
5524 2004-01-26  Andrew Cagney  <cagney@redhat.com>
5525
5526         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
5527         comments mentioning extract_returned_value_address.
5528         * infcmd.c (print_return_value): Update.  Add comments on
5529         extract_returned_value_address.
5530         * stack.c (return_command): Add comments on
5531         extract_returned_value_address.
5532         * values.c: Update comment.
5533         * m32r-tdep.c: Update comment.
5534         * sparc-tdep.c: Update comment.
5535         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
5536         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5537         * sh64-tdep.c (sh64_gdbarch_init): Update.
5538         * sh-tdep.c (sh_gdbarch_init): Update.
5539         * s390-tdep.c (s390_gdbarch_init): Update.
5540         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5541         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
5542         * m68k-tdep.c (m68k_gdbarch_init): Update.
5543         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5544         * m32r-tdep.c (m32r_gdbarch_init): Update.
5545         * ia64-tdep.c (ia64_gdbarch_init): Update.
5546         * h8300-tdep.c (h8300_gdbarch_init): Update.
5547         * frv-tdep.c (frv_gdbarch_init): Update.
5548         * arm-tdep.c (arm_gdbarch_init): Update.
5549         * alpha-tdep.c (alpha_gdbarch_init): Update.
5550
5551 2004-01-26  Andrew Cagney  <cagney@redhat.com>
5552
5553         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
5554         SYMBOL_LOCATION_FUNCS
5555         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
5556         "struct symbol_ops".
5557         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
5558         type to "struct symbol_ops".
5559         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
5560         (struct symbol): Replace ".aux_value.loc.funcs" and
5561         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
5562         (SYMBOL_OBJFILE): Delete macro.
5563         (SYMBOL_LOCATION_FUNCS): Delete macro.
5564         (SYMBOL_LOCATION_BATON): Update.
5565         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
5566         intead of SYMBOL_LOCATION_FUNCS.
5567         * ax-gdb.c (gen_var_ref): Ditto.
5568         * printcmd.c (address_info): Ditto.
5569         * findvar.c (read_var_value): Ditto.
5570         (symbol_read_needs_frame): Ditto.
5571
5572 2004-01-26  Andrew Cagney  <cagney@redhat.com>
5573
5574         * dwarf2read.c (read_func_scope): Document frame-base hack.
5575
5576 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
5577
5578         * infcmd.c (print_return_value): Plug memory leak; delete
5579         ui_stream object.  Rename argument `structure_return' to
5580         `struct_return'.
5581
5582 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
5583
5584         * infcmd.c (print_return_value): Wrap long lines.
5585         (finish_command_continuation, finish_command): Remove unused
5586         variable `funcaddr'.  Fix some coding-standards problems.
5587
5588         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
5589         SECT_SIZE is large enough, not whether it's exactly the right size.
5590         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
5591         TDEP->fpregset to zero.
5592
5593         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
5594         floating-point registers for traditional NetBSD core files.
5595         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
5596         TDEP->sizeof_fpregset here.
5597
5598 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
5599
5600         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
5601         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
5602         function with code split out from
5603         sparc32nbsd_sigcontext_frame_cache.
5604         (sparc32nbsd_sigcontext_frame_cache): Use
5605         sparc32nbsd_sigcontext_saved_regs.
5606         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
5607         OpenBSD.
5608         * sparcobsd-tdep.c: New file.
5609         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
5610         (sparcobsd-tdep.o): New dependency.
5611         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
5612         * config/sparc/obsd.mt: New file.
5613
5614         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
5615         TDEP->fpregset to be initialized to enable core file register
5616         sets.
5617
5618 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
5619
5620         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
5621         Add opaque declarations.
5622         (sparc64nbsd_sigcontext_saved_regs): New prototype.
5623         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
5624         function with code split out from
5625         sparc64nbsd_sigcontext_frame_cache.
5626         (sparc64nbsd_sigcontext_frame_cache): Use
5627         sparc64nbsd_sigcontext_saved_regs.
5628         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
5629         OpenBSD.
5630         * sparc64obsd-tdep.c: New file.
5631         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
5632         (sparc64obsd-tdep.o): New dependency.
5633         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
5634         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
5635         * config/sparc/obsd64.mt: New file.
5636
5637         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
5638         read the instruction at PC.
5639
5640         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
5641         value of GDB_OSABI_DEFAULT.
5642         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
5643         instead of GDB_OSABI_NETBSD_AOUT.
5644
5645 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
5646
5647         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
5648         copyright.
5649
5650 2004-01-23  Andrew Cagney  <cagney@redhat.com>
5651
5652         * printcmd.c (display_command): Replace tui_set_display call with
5653         tui_set_layout_for_display_command.
5654         * tui/tui.h (enum tui_win_type): Define.
5655         (tui_set_layout): Delete declaration.
5656         (tui_set_layout_for_display_command): Rename set_tui_layout.
5657         * tui/tui-data.h (enum tui_layout_type): Define.
5658         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
5659         "tui.h".
5660         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
5661         (tui_default_win_height): Rename tuiDefaultWinHeight.
5662         (tui_default_win_viewport_height): Rename
5663         tuiDefaultWinViewportHeight.
5664         (tui_set_layout): RenametuiSetLayout.
5665         * tui/tui-layout.c: Update references.
5666         * tui/tui.c: Update references.
5667         * tui/tui-disasm.c: Update references.
5668
5669 2004-01-23  David Carlton  <carlton@kealia.com>
5670
5671         Partial workaround for PR c++/1511:
5672         * cp-namespace.c: Include frame.h.
5673         (cp_lookup_transparent_type): New
5674         (cp_lookup_transparent_type_loop): New.
5675         * cp-support.h: Declare cp_lookup_transparent_type.
5676         * symtab.c (basic_lookup_transparent_type): Renamed from
5677         lookup_transparent_type.
5678         (lookup_transparent_type): Replace old body by a call to
5679         current_language->la_lookup_transparent_type.
5680         * symtab.h: Update copyright.  Declare
5681         basic_lookup_transparent_type.
5682         * language.h: Update copyright.
5683         (struct language_defn): Add la_lookup_transparent_type.
5684         * language.c: Update copyright.
5685         (unknown_language_defn): Add basic_lookup_transparent_type.
5686         (auto_language_defn): Add basic_lookup_transparent_type.
5687         (local_language_defn): Add basic_lookup_transparent_type.
5688         * ada-lang.c: Update copyright.
5689         (ada_language_defn): Add basic_lookup_transparent_type.
5690         * c-lang.c: Update copyright.
5691         (c_language_defn): Add basic_lookup_transparent_type.
5692         (cplus_language_defn): Add basic_lookup_transparent_type.
5693         (asm_language_defn): Add basic_lookup_transparent_type.
5694         (minimal_language_defn): Add basic_lookup_transparent_type.
5695         * f-lang.c: Update copyright.
5696         (f_language_defn): Add basic_lookup_transparent_type.
5697         * jv-lang.c: Update copyright.
5698         (java_language_defn): Add basic_lookup_transparent_type.
5699         * m2-lang.c: Update copyright.
5700         (m2_language_defn): Add basic_lookup_transparent_type.
5701         * objc-lang.c: Update copyright.
5702         (objc_language_defn): Add basic_lookup_transparent_type.
5703         * p-lang.c: Update copyright.
5704         (p_language_defn): Add basic_lookup_transparent_type.
5705         * scm-lang.c: Update copyright.
5706         (scm_language_defn): Add basic_lookup_transparent_type.
5707         * Makefile.in (cp-namespace.o): Depend on frame.h.
5708
5709 2004-01-23  David Carlton  <carlton@kealia.com>
5710
5711         Patch for PR c++/1520:
5712         * dwarf2read.c (read_func_scope): Set processing_current_prefix
5713         properly if we have a specification die.
5714         (determine_prefix_aux): Rename from determine_prefix.
5715         (determine_prefix): Like the old determine_prefix, but never
5716         returns NULL.
5717
5718 2004-01-23  Theodore A. Roth  <troth@openavr.org>
5719
5720         * avr-tdep.c: Update copyright.
5721         (avr_iaddr_p): Delete unused function.
5722         (avr_saddr_p): Delete unused function.
5723
5724 2004-01-23  David Carlton  <carlton@kealia.com>
5725
5726         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
5727         Fix for PR symtab/1534.
5728
5729 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
5730
5731         * NEWS (New native configurations): Mention OpenBSD/sparc and
5732         OpenBSD/sparc64.
5733         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
5734         * configure.host: Likewise.
5735         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
5736         handler for OpenBSD.
5737         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
5738
5739 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
5740
5741         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
5742         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
5743
5744         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
5745         * cli/cli-cmds.c (shell_escape): Likewise.
5746
5747         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
5748         OpenBSD .note.openbsd.ident sections.
5749
5750 2004-01-22  David Carlton  <carlton@kealia.com>
5751
5752         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
5753         get_scope_pc_bounds.
5754         (read_file_scope): Ditto.
5755         (get_scope_pc_bounds): New function, produced by extracting code
5756         from the above two functions, consolidating it, and adding support
5757         for DW_TAG_namespace.
5758
5759 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
5760
5761         * osabi.c (MAX_NOTESZ): New define.
5762         (check_note): New function.
5763         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
5764         check_note.
5765
5766 2004-01-21  Roland McGrath  <roland@redhat.com>
5767
5768         * MAINTAINERS (write after approval): Add myself.
5769
5770 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
5771
5772         * utils.c (init_page_info): Move declarations of `rows' and
5773         `cols' before the __GO32__-specific code.  Move the closing brace
5774         outside the #ifdef __GO32__..#endif block.
5775         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
5776
5777 2004-01-21  Paul Brook  <paul@codesourcery.com>
5778
5779         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
5780         BPSTAT_WHAT_CHECK_SHLIBS.
5781
5782 2004-01-21  Paul Brook  <paul@codesourcery.com>
5783
5784         * MAINTAINERS: Add myself to write-after-approval.
5785
5786 2004-01-20  Andrew Cagney  <cagney@redhat.com>
5787
5788         * ax-gdb.c (print_axs_value): Delete unused function.
5789         * jv-lang.c (java_lookup_type): Delete unused function.
5790         * cli/cli-dump.c (dump_filetype): Delete unused function.
5791         * remote-mips.c (remote_mips_insert_hw_breakpoint)
5792         (remote_mips_remove_hw_breakpoint): Delete unused functions.
5793         (mips_getstring): Delete unused function.
5794         (pmon_insert_breakpoint): Delete #if0ed function.
5795         (PMON_MAX_BP): Delete #if0ed MACRO.
5796         (mips_pmon_bp_info): Delete #if0ed variable.
5797         (pmon_remove_breakpoint): Delete #if0ed function.
5798         * monitor.c (monitor_write_even_block): Delete unused function.
5799         (monitor_write_memory_block): Delete #if0ed code.
5800         * dink32-rom.c (dink32_load): Delete unused function.
5801         (_initialize_dink32_rom): Delete #if0ed code.
5802         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
5803
5804         * tui/tui-command.c: Update references.
5805         * tui/tui-io.c: Update references.
5806         * tui/tui-command.h: Update copyright.
5807         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
5808
5809         * source.c (ambiguous_line_spec): Delete never-defined function.
5810         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
5811         * gdbtypes.c (add_name, add_mangled_type): Ditto.
5812         * cli/cli-cmds.c (validate_comname): Ditto.
5813
5814         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
5815         "tui-data.h".
5816         (tui_set_disassem_content): Rename tuiSetDisassemContent.
5817         (tui_show_disassem): Rename tuiShowDisassem.
5818         (tui_show_disassem_and_update_source): Rename
5819         tuiVerticalDisassemScroll.
5820         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
5821         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
5822         * tui/tui.h: Update copyright.
5823         (enum tui_status): Define.
5824         * tui/tui-data.h (enum tui_scroll_direction): Define.
5825         * tui/tui-disasm.c: Update copyright.  Update references.
5826         * tui/tui-winsource.c:  Update copyright.  Update references.
5827         * tui/tui-win.c: Update references.
5828         * tui/tui-layout.c: Update references.
5829
5830 2004-01-20  Andrew Cagney  <cagney@redhat.com>
5831
5832         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
5833         sym2 to start of block.
5834
5835 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
5836
5837         * MAINTAINERS: Delete mmalloc.
5838         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
5839         * NEWS: Mention removal of --with-malloc.
5840         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
5841         * config.in: Regenerate.
5842         * configure: Regenerate.
5843         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
5844         USE_MMALLOC, MMCHECK_FORCE.
5845         * gdbinit.in: Remove mmalloc.
5846         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
5847         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
5848         * config/i386/go32.mh: Likewise.
5849         * config/i386/interix.mh: Likewise.
5850         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
5851
5852 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
5853
5854         * linespec.c (decode_variable, symtab_from_filename):  Call
5855         error_silent with error message instead of throwing an exception
5856         directly.
5857         * defs.h (error_silent, error_output_message): Add prototypes.
5858         (catch_exceptions_with_msg): Ditto.
5859         * utils.c (error_silent, error_output_message): New functions.
5860         * top.c (catch_exceptions_with_msg): New function.
5861
5862 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
5863
5864         * mi/mi-cmds.h (enum print_values): Add definition.
5865
5866         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
5867         type and value for simple data types and just the name and type
5868         for complex ones, if required.
5869
5870         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
5871         children, if required.
5872
5873 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
5874
5875         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
5876         unused declarations.
5877
5878 2004-01-19  Andrew Cagney  <cagney@redhat.com>
5879
5880         * top.h (mapped_symbol_files): Delete declaration.
5881         * main.c (captured_main): Delete option "m" and "mapped".
5882         * objfiles.c (mapped_symbol_files): Delete variable.
5883         * symfile.c (symbol_file_command): Delete mmap code.
5884         (symbol_file_add_with_addrs_or_offsets): Ditto.
5885         (add_symbol_file_command, reread_separate_symbols): Ditto.
5886         * objfiles.h (OBJF_MAPPED): Delete.
5887         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
5888         (free_objfile) [USE_MMALLOC]: Ditto.
5889         (open_existing_mapped_file): Delete function.
5890         (open_mapped_file): Delete function.
5891         (map_to_file): Delete function.
5892
5893 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
5894
5895         * infrun.c (step_into_function): Account for possible breakpoint
5896         adjustment when computing ``stop_func_start''.
5897
5898 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
5899
5900         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
5901         the region size against the size of a pointer, not the size of
5902         a register as given by DEPRECATED_REGISTER_SIZE.
5903
5904 2004-01-19  Andrew Cagney  <cagney@redhat.com>
5905
5906         * tui/tui-regs.h: Include "tui-data.h".
5907         (tuiFirstRegElementNoInLine): Delete declaration.
5908         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
5909         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
5910         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
5911         (tui_calculate_regs_column_count): Rename
5912         tuiCalculateRegsColumnCount.
5913         (tui_check_register_values): Rename tuiCheckRegisterValues.
5914         (tui_show_registers): Rename tuiShowRegisters.
5915         (tui_display_registers_from_line): Rename
5916         tuiDisplayRegistersFromLine.
5917         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
5918         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
5919         (tui_first_reg_element_no_inline): Rename
5920         tuiFirstRegElementNoInLine.
5921         * tui/tui-data.h: Update copyright.
5922         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
5923         * tui/tui-windata.c: Update copyright, update references.
5924         * tui/tui-regs.c: Update copyright, update references.
5925         * tui/tui-win.c: Update copyright, update references.
5926         * tui/tui-layout.c: Update copyright, update references.
5927
5928 2004-01-18  Andrew Cagney  <cagney@redhat.com>
5929
5930         * tui/tui-io.c: Update copyright.
5931         (key_is_end_sequence, key_is_backspace): New functions.
5932         (key_is_command_char, key_is_start_sequence): New function.
5933         (tui_getc): Update references.
5934         * tui/tui-io.h: Update copyright.
5935         (m_tuiStartNewLine): Delete macro.
5936         (m_isBackspace, m_isDeleteChar): Delete macros.
5937         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
5938         (m_isNextPage, m_isPrevPage): Delete macros.
5939         (m_isLeftArrow, m_isRightArrow): Delete macros.
5940         (m_isXdbStyleCommandChar): Delete macro.
5941         (key_is_start_sequence): Declare, replace m_isStartSequence.
5942         (key_is_end_sequence): Declare, replace m_isEndSequence.
5943         (key_is_backspace): Declare ,replace m_isBackspace.
5944         (key_is_command_char): Declare, replace m_isCommandChar.
5945         * tui/tui-command.c: Update copyright.
5946         (tuiDispatchCtrlChar): Update references.
5947
5948         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
5949         tuiSourceWin.h.
5950
5951         * tui/tui-command.c: Rename tui/tuiCommand.c.
5952         * tui/tui-command.h: Rename tui/tuiCommand.h.
5953         * tui/tui-data.c: Rename tui/tuiData.c.
5954         * tui/tui-data.h: Rename tui/tuiData.h.
5955         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
5956         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
5957         * tui/tui-io.c: Rename tui/tuiIO.c.
5958         * tui/tui-io.h: Rename tui/tuiIO.h.
5959         * tui/tui-layout.c: Rename tui/tuiLayout.c.
5960         * tui/tui-layout.h: Rename tui/tuiLayout.h.
5961         * tui/tui-regs.c: Rename tui/tuiRegs.c.
5962         * tui/tui-regs.h: Rename tui/tuiRegs.h.
5963         * tui/tui-source.c: Rename tui/tuiSource.c.
5964         * tui/tui-source.h: Rename tui/tuiSource.h.
5965         * tui/tui-stack.c: Rename tui/tuiStack.c.
5966         * tui/tui-stack.h: Rename tui/tuiStack.h.
5967         * tui/tui-win.c: Rename tui/tuiWin.c.
5968         * tui/tui-win.h: Rename tui/tuiWin.h.
5969         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
5970         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
5971         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
5972         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
5973         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
5974         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
5975         * tui/tui-file.c: Update includes.
5976         * tui/tui-hooks.c: Update includes.
5977         * tui/tui-interp.c: Update includes.
5978         * tui/tui.c: Update includes.
5979         * Makefile.in: Update all tui/ dependencies.
5980         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
5981
5982         * Makefile.in: Update copyright.  Update dependencies.
5983
5984         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
5985         problem.
5986
5987 2004-01-18  Andrew Cagney  <cagney@redhat.com>
5988
5989         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
5990         instead of register_gdbarch_init.
5991
5992         * remote-sds.c (tohex): Delete unused function.  Update copyright.
5993         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
5994         * v850-tdep.c (v850_register_virtual_size): Ditto.
5995         * target.c (normal_target_post_startup_inferior): Ditto.
5996         * source.c (ambiguous_line_spec): Ditto.
5997         * remote.c (adapt_remote_get_threadinfo): Ditto.
5998         * mi/mi-out.c (out_field_fmt): Ditto.
5999         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
6000         (output_control_change_notification): Ditto.
6001         * m68k-tdep.c (m68k_register_byte): Ditto.
6002         (m68k_remote_breakpoint_from_pc): Ditto.
6003         * ui-out.c (init_ui_out_state): Delete unused declaration.
6004         * stabsread.c (search_value): Ditto.
6005         * mi/mi-cmd-env.c (env_cli_command): Ditto.
6006         * maint.c (print_section_table): Ditto.
6007         * infrun.c (set_follow_fork_mode_command): Ditto.
6008
6009 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
6010
6011         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
6012         DW_CFA_def_cfa_exporession.  Add support for
6013         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
6014         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
6015
6016 2004-01-18  Andrew Cagney  <cagney@redhat.com>
6017
6018         * ocd.c: Update copyright.
6019         (bdm_read_register_command): Delete unused function.
6020         (_initialize_remote_ocd): Delete commented out reference.
6021         (get_quoted_char, reset_packet): Delete #if0ed function.
6022         (output_packet, put_quoted_char): Delete #if0ed function.
6023         (stu_put_packet, stu_get_packet): Delete #if0ed function.
6024         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
6025         (BDM_BREAKPOINT): Delete #if0ed macro.
6026         (remote_timeout): Delete #if0ed variable.
6027
6028 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
6029
6030         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
6031         (core-sol2.o): Remove dependency.
6032         * core-sol2.c: Remove file.
6033
6034 2004-01-17  Andrew Cagney  <cagney@redhat.com>
6035
6036         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
6037         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
6038         enums.
6039
6040 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
6041
6042         * remote.c: Update copyright years.
6043
6044 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
6045
6046         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
6047
6048 2004-01-17  Andrew Cagney  <cagney@redhat.com>
6049
6050         * mdebugread.c: Update copyright.
6051         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
6052         (parse_type, parse_procedure): Ditto.
6053         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
6054
6055         * cris-tdep.c (cris_store_struct_return): Put back accidently
6056         deleted function.
6057
6058         * gdbarch.sh: Update copyright year.
6059         * gdbarch.h, gdbarch.c: Re-generate.
6060
6061 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
6062
6063         Suggested by George Anzinger.
6064         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
6065         correct stack offset.  Include unknown opcode numbers in the error
6066         message.
6067
6068 2004-01-17  Andrew Cagney  <cagney@redhat.com>
6069
6070         * x86-64-tdep.c (x86_64_init_abi): No need to clear
6071         extract_struct_value_address, i386 does not set it.
6072         * sparc64-tdep.c (sparc64_init_abi): Do not set
6073         extract_struct_value_address, never called.
6074         (sparc64_extract_struct_value_address): Delete function.
6075         * m68hc11-tdep.c: Update copyright.
6076         (m68hc11_gdbarch_init): Delete redundant assignment of
6077         extract_struct_value_address.
6078         * i386-tdep.c: Update copyright.
6079         (i386_gdbarch_init): Do not set extract_struct_value_address,
6080         never called.
6081         (i386_extract_struct_value_address): Delete function.
6082         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
6083         extract_struct_value_address, never called.
6084         (sparc32_extract_struct_value_address): #if 0 function.  Add
6085         comments explaining its future.
6086
6087 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
6088
6089         * arm-tdep.c (arm_write_pc): New function.
6090         (arm_gdbarch_init): Call set_gdbarch_write_pc.
6091
6092 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
6093
6094         * breakpoint.c (must_shift_inst_regs): Delete.
6095         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
6096         and SHIFT_INST_REGS.
6097         * infcmd.c (step_1, step_1_continuation): Delete references to
6098         SHIFT_INST_REGS.
6099         * infrun.c (keep_going): Likewise.
6100         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
6101         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
6102
6103 2004-01-17  Andrew Cagney  <cagney@redhat.com>
6104
6105         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6106         * gdbarch.h, gdbarch.c: Re-generate.
6107         * infcmd.c (print_return_value): Delete reference to
6108         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6109
6110         * cris-tdep.c (cris_gdbarch_init): Do not set
6111         deprecated_extract_struct_value_address.
6112
6113         * xstormy16-tdep.c: Update copyright.
6114         (xstormy16_extract_struct_value_address): Update to current
6115         extract struct value address interface.
6116         (xstormy16_gdbarch_init): Set extract_struct_value_address.
6117         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
6118         current extract struct value address interface.
6119         (sh64_gdbarch_init): Set extract_struct_value_address.
6120
6121         * cris-tdep.c: Update copyright.
6122         (cris_extract_struct_value_address): Delete function.
6123         (struct_return_address): Delete variable.
6124         (cris_store_struct_return): Do not set struct_return_address.
6125
6126         * mcore-tdep.c: Update copyright.
6127         (mcore_extract_struct_value_address): Delete function.  Update
6128         comments.
6129         (mcore_gdbarch_init): Update.
6130         * mn10300-tdep.c: Update copyright.
6131         (mn10300_extract_struct_value_address): Delete function.
6132         (mn10300_gdbarch_init): Update.
6133         * v850-tdep.c: Update copyright.
6134         (v850_extract_struct_value_address): Delete.
6135         (v850_gdbarch_init): Update.
6136         * ns32k-tdep.c: Update copyright.
6137         (ns32k_extract_struct_value_address): Delete.
6138         (ns32k_gdbarch_init): Update.
6139         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
6140         (hppa_gdbarch_init): Update.
6141         * vax-tdep.c: Update copyright.
6142         (vax_extract_struct_value_address): Delete.
6143         (vax_gdbarch_init): Update.
6144
6145         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
6146         * gdbarch.h, gdbarch.c: Re-generate.
6147         * procfs.c (procfs_fetch_registers): Delete reference to
6148         DEPRECATED_NPC_REGNUM.
6149         (procfs_store_registers): Ditto.
6150         * regcache.c (generic_target_write_pc): Simplify.
6151         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
6152
6153         * core-sol2.c (fetch_core_registers): Replace
6154         DEPRECATED_NPC_REGNUM with equivalent tdep value.
6155
6156         * hppa-tdep.c: Update copyright year.
6157         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
6158         NPC_REGNUM.
6159         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
6160
6161         * mips-tdep.c (mips_write_pc): New function.
6162         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
6163         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
6164         (mips_find_saved_regs, mips_software_single_step: Ditto.
6165         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
6166         mips_init_extra_frame_info, mips_pop_frame): Ditto.
6167
6168 2004-01-17  Andrew Cagney  <cagney@redhat.com>
6169
6170         * mips-tdep.c: Re-indent.  Group functions by ABI.
6171
6172 2004-01-17  Andrew Cagney  <cagney@redhat.com>
6173
6174         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
6175         * gdbarch.c: Re-generate.
6176         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6177         DECR_PC_AFTER_BREAK to zero.
6178         * vax-tdep.c (vax_gdbarch_init): Ditto.
6179         * v850-tdep.c (v850_gdbarch_init): Ditto.
6180         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
6181         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6182         * sh-tdep.c (sh_gdbarch_init): Ditto.
6183         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6184         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6185         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6186         * mips-tdep.c (mips_gdbarch_init): Ditto.
6187         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6188         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6189         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
6190         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6191         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
6192         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6193         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6194         * frv-tdep.c (frv_gdbarch_init): Ditto.
6195         * cris-tdep.c (cris_gdbarch_init): Ditto.
6196         * avr-tdep.c (avr_gdbarch_init): Ditto.
6197         * arm-tdep.c (arm_gdbarch_init): Ditto.
6198         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
6199
6200 2004-01-17  J. Brobecker  <brobecker@gnat.com>
6201
6202         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
6203         Delete, no longer used.
6204         (read_subrange_type): New function, mostly extracted from
6205         read_array_type().
6206         (read_array_type): Replace extracted code by call to
6207         read_subrange_type().
6208         (dwarf2_get_attr_constant_value): New function.
6209         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
6210         (add_partial_symbol): Likewise.
6211         (process_die): Likewise.
6212         (new_symbol): Likewise.
6213         (read_type_die): Likewise.
6214
6215 2004-01-16  Andrew Cagney  <cagney@redhat.com>
6216
6217         * symfile.c: Update copyright year.
6218         (compare_symbols): Delete unused function.
6219         * stabsread.c: Update copyright year.
6220         (lrs_general_complaint): Delete unused function.
6221         (ref_search_value): Ditto.
6222         (get_substring): Delete declaration.
6223         * sh64-tdep.c: Update copyright year.
6224         (sh64_get_gdb_regnum): Delete unused function.
6225         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
6226         Delete unused function.
6227
6228 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
6229
6230         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
6231         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
6232
6233 2004-01-16  Andrew Cagney  <cagney@redhat.com>
6234
6235         Changes from Peter Schauer.
6236         * rs6000-tdep.c: Update copyright year.
6237         (rs6000_push_dummy_call): Update the stack pointer before
6238         accessing the corresponding stack region.
6239         * rs6000-nat.c: Update copyright year.
6240         (set_host_arch): Set "info.abfd" to "exec_bfd".
6241
6242 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
6243
6244         * blockframe.c: Update copyright year.
6245         (inside_entry_func): Don't treat a zero PC specially.
6246
6247 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
6248
6249         * gcore.c (gcore_copy_callback): Use paddr_d to print size
6250         variable.
6251         (gcore_create_callback): Ditto.  Skip any memory segment that has
6252         no permissions set.
6253
6254 2004-01-14  David Carlton  <carlton@kealia.com>
6255
6256         Change symbols for C++ nested types to contain the fully qualified
6257         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
6258         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
6259         c++/895.
6260         * c-exp.y (qualified_type): Handle types nested within classes.
6261         * cp-namespace.c: Update comments.
6262         (cp_set_block_scope): Delete #if 0.
6263         (cp_lookup_nested_type): Handle types nested within classes.
6264         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
6265         when appropriate.
6266         (add_partial_symbol): Add the name of the enclosing namespace to
6267         types.
6268         (pdi_needs_namespace): New.
6269         (add_partial_namespace): Tweak comment.
6270         (add_partial_structure): New.
6271         (psymtab_to_symtab_1): Initialize processing_current_prefix
6272         here...
6273         (process_die): instead of here.
6274         (read_structure_scope): Try to figure out the name of the class or
6275         namespace that the structure might be defined within.
6276         (read_enumeration): Generate fully-qualified names, if possible.
6277         (read_namespace): Don't set name to NULL.
6278         (die_specification): New.
6279         (new_symbol): Generate fully-qualified names for types.
6280         (read_type_die): Determine appropriate prefix.
6281         (determine_prefix): New.
6282         (typename_concat): New.
6283         (class_name): New.
6284         * valops.c (value_aggregate_elt): Pass NOSIDE to
6285         value_struct_elt_for_reference.
6286         (value_struct_elt_for_reference): Make static, add NOSIDE
6287         parameter, call value_maybe_namespace_elt as a last resort.
6288         (value_namespace_elt): Break out code into
6289         value_maybe_namespace_elt.
6290         (value_maybe_namespace_elt): New.
6291
6292 2004-01-12  Andrew Cagney  <cagney@redhat.com>
6293
6294         * mips-tdep.c (mips_convert_register_p): Handle both raw and
6295         cooked floating-point registers.
6296         (mips_gdbarch_init): Set convert_register_p, register_to_value,
6297         and value_to_register.
6298
6299 2004-01-13  Andrew Cagney  <cagney@redhat.com>
6300
6301         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
6302         * gdbarch.c: Re-generate.
6303         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6304         FUNCTION_START_OFFSET.
6305         * v850-tdep.c (v850_gdbarch_init): Ditto.
6306         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
6307         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6308         * sh-tdep.c (sh_gdbarch_init): Ditto.
6309         * s390-tdep.c (s390_gdbarch_init): Ditto.
6310         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6311         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6312         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6313         * mips-tdep.c (mips_gdbarch_init): Ditto.
6314         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6315         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6316         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6317         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
6318         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6319         * i386-tdep.c (i386_gdbarch_init): Ditto.
6320         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6321         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6322         * frv-tdep.c (frv_gdbarch_init): Ditto.
6323         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6324         * cris-tdep.c (cris_gdbarch_init): Ditto.
6325         * avr-tdep.c (avr_gdbarch_init): Ditto.
6326         * arm-tdep.c (arm_gdbarch_init): Ditto.
6327         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6328
6329 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
6330
6331         * infrun.c (follow_fork_mode_ask): Remove.
6332         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
6333         (follow_fork): Simplify and remove internal error for
6334         follow_fork_mode_ask.
6335         (_initialize_infrun): Update "set follow-fork-mode" help text.
6336
6337 2004-01-13  Andrew Cagney  <cagney@redhat.com>
6338
6339         * configure.in: Update copyright year.
6340         (build_warnings): Add -Wunused-label.
6341         * configure: Re-generate.
6342
6343 2004-01-12  Andrew Cagney  <cagney@redhat.com>
6344
6345         * exec.h (exec_ops): Make "extern".
6346
6347         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
6348         the function is void.
6349         (mips_pseudo_register_write): Ditto.
6350
6351 2004-01-12  Andrew Cagney  <cagney@redhat.com>
6352
6353         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
6354         call.  Never defined.
6355         * sparc-tdep.h (struct frame_info): Add opaque declaration.
6356         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
6357         (struct sparc_gregset, struct regcache): Ditto.
6358         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
6359
6360 2004-01-12  Andrew Cagney  <cagney@redhat.com>
6361
6362         * mi/ChangeLog: Delete file.  Renamed to ...
6363         * mi/ChangeLog-1999-2003: New file.
6364         * tui/ChangeLog: Delete file.  Renamed to ...
6365         * tui/ChangeLog-1998-2003: New file.
6366
6367 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
6368
6369         * sparc64nbsd-tdep.c: Include "regset.h".
6370         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
6371         Remove variables.
6372         (fetch_core_registers): Remove function.
6373         (sparc64nbsd_core_fns): Remove variable.
6374         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
6375         functions.
6376         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
6377         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
6378         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
6379
6380         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
6381         sparc_extract_struct_value_address.
6382         (sparc32_gdbarch_init): Set extract_struct_value_address.
6383         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
6384         function.
6385         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
6386         return_value_on_stack.
6387
6388         * NEWS: Mention that %cs and %ss have been added to the AMD64
6389         configurations
6390
6391         * frame.c: Update copyright year.
6392         (get_prev_frame): Improve comment.
6393
6394         * sparc64fbsd-tdep.c: Include "regset.h".
6395         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
6396         Remove variables.
6397         (fetch_core_registers): Remove function.
6398         (sparc64fbsd_core_fns): Remove variable.
6399         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
6400         functions.
6401         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
6402         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
6403         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
6404
6405         * sparcnbsd-tdep.c: Include "regset.h".
6406         (fetch_core_registers): Remove function.
6407         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
6408         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
6409         functions.
6410         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
6411         TDEP->fpregset.
6412         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
6413
6414         * sparc-tdep.h (struct regset): Provide opaque declaration.
6415         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
6416         fpregset and sizeof_fpregset members.
6417         * sparc-tdep.c (struct regset): Provide opaque declaration.
6418         (sparc_regset_from_core_section): New function.
6419         (sparc32_gdbarch_init): Initialize TDEP->gregset,
6420         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
6421         Set regset_from_core_section when appropriate.
6422
6423 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
6424
6425         * x86-64-tdep.c (amd64_non_pod_p): New function.
6426         (amd64_classify_aggregate): Return class memory for non-POD
6427         C++ structure types.
6428
6429         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
6430         argument.  Use it to reserve a register if necessary.
6431         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
6432         amd64_push_arguments.
6433
6434         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
6435
6436         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
6437         register numbers in comments.
6438         * x86-64-tdep.h: Update copyright year.
6439         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
6440         Adjust for addition of %cs and %ss.
6441         * amd64fbsd-nat.c: Update copyright year.
6442         (reg_offset): Add register offsets for %cs and %ss.
6443         * amd64fbsd-tdep.c: Update copyright year.
6444         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
6445         (amd64fbsd_sc_reg_offset): Likewise.
6446         * x86-64-linux-nat.c: Update copyright year.
6447         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
6448         and %ss.
6449         * amd64nbsd-nat.c: Update copyright year.
6450         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
6451         * amd64nbsd-tdep.c: Update copyright year.
6452         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
6453         * x86-64-linux-tdep.c: Update copyright year.
6454         (user_to_gdb_regmap): Add mapping for %cs and %ss.
6455         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
6456         * regformats/reg-x86-64.dat: Add %cs and %ss.
6457
6458         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
6459         variables to prevent long lines.  Update comments to reflect
6460         reality.
6461
6462 2004-01-09  David Carlton  <carlton@kealia.com>
6463
6464         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
6465         * dwarf2read.c (read_namespace): Pull out name-generating code
6466         into namespace_name. Rename previous_namespace to previous_prefix
6467         and processing_current_namespace to processing_current_prefix..
6468         (namespace_name): New function.
6469         (add_partial_symbol): Substitute uses of pdi->name with
6470         actual_name.
6471         * cp-support.h: Rename processing_current_namespace to
6472         processing_current_prefix.
6473         Update copyright year.
6474         * cp-namespace.c: Rename processing_current_namespace to
6475         processing_current_prefix.
6476         Update copyright year.
6477
6478 2004-01-09  Andrew Cagney  <cagney@redhat.com>
6479
6480         * jv-valprint.c, ser-unix.c: Add missing copyright years.
6481
6482 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
6483
6484         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
6485         complaining.
6486         (process_one_symbol): Deal with N_PATCH stabs.
6487
6488 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
6489
6490         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
6491         ifdeffed code.
6492         Update copyright year.
6493
6494 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
6495
6496         * config/pa/tm-hppa.h: Update extern declarations for
6497         hppa32_hpux_frame_saved_pc_in_sigtramp,
6498         hppa32_hpux_frame_base_before_sigtramp, and
6499         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
6500
6501 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
6502
6503         * config/pa/tm-hppah.h: Update copyright years.
6504
6505 2004-01-08  Andrew Cagney  <cagney@redhat.com>
6506
6507         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
6508         (mips_o32_reg_struct_has_addr): Delete function.
6509         (mips_gdbarch_init): Update.
6510         (mips_extract_struct_value_address): Delete function.
6511
6512 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
6513
6514         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
6515         reality.
6516
6517 2004-01-07  Andrew Cagney  <cagney@redhat.com>
6518
6519         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
6520         architecture's elf flags (when available).
6521
6522         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
6523         FPU to the start, check the MIPS FPU when looking for an old
6524         architecture.
6525         (set_mipsfpu_single_command): Update the architecture.
6526         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
6527
6528         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
6529         (mips_mask_address_p): Add "tdep" parameter.
6530         (show_mask_address, mips_addr_bits_remove): Update.
6531         (mips_dump_tdep): Update.
6532         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
6533         (MIPS_STACK_ARGSIZE): Delete macro.
6534         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
6535         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
6536         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
6537         (mips_dump_tdep): Update.
6538         (MIPS_SAVED_REGSIZE): Delete macro.
6539         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
6540         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
6541         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
6542         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
6543         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
6544         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
6545         (mips_pop_frame, return_value_location): Update.
6546         (mips_n32n64_return_value, mips_dump_tdep): Update.
6547
6548         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
6549         MIPS ABI.
6550
6551         * mips-tdep.c: Update copyright.
6552         (mips_gdbarch_init): Merge two code blocks handling the register
6553         name and number layout.
6554
6555 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
6556
6557         * tracepoint.c (validate_actionline): Fix segv at EOF
6558
6559 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
6560
6561         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
6562         properly for static fields.
6563
6564 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
6565             Jason Molenda  <jmolenda@apple.com>
6566
6567         * disasm.c: Update copyright to include 2004.
6568         (do_mixed_source_and_assembly): For uiout asm list
6569         and tuple cleanups, initialize to null_cleanup instead of
6570         NULL and do so prior to loop.  Only reset when we close off
6571         the tuple/list.  Move check for whether to close off the
6572         asm tuple/list to after dump_insns call where it will be run
6573         on each loop iteration.
6574
6575 2004-01-05  Andrew Cagney  <cagney@redhat.com>
6576
6577         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
6578         should be a switch case and not a label.
6579         * mips-tdep.c (mips32_next_pc): Delete unused labels
6580         "greater_equal_branch" and "less_zero_branch".
6581         * jv-valprint.c (java_print_value_fields): Delete unused label
6582         "flush_it".
6583
6584         * target.c (unpush_target): Only close a target that is in the
6585         target stack.
6586
6587 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
6588
6589         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
6590         address from [sp + 64] instead of %o2.
6591
6592         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
6593         fixes PR backtrace/1476.
6594
6595 2004-01-05  Andrew Cagney  <cagney@redhat.com>
6596
6597         * libunwind-frame.h (struct frame_id): Add opaque declaration,
6598         move to start of file.
6599         * i386-tdep.h (struct regcache): Add opaque declaration.
6600         * config/ia64/nm-linux.h (struct target_ops): Add opaque
6601         declaration.
6602         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
6603         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
6604         * win32-nat.c (fake_create_process): Use ISO C style definition.
6605         * stabsread.c (define_symbol): Delete #ifndef
6606         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
6607         stabs_argument_has_addr call, macro never defined.
6608
6609 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
6610
6611         * op50-rom.c: Delete.
6612         * w89k-rom.c: Delete.
6613         * Makefile.in: Remove references.
6614
6615 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
6616
6617         * x86-64-tdep.c: Update copyright year.
6618         (struct amd64_register_info): Rename from x86_64_register_info.
6619         (amd64_register_info): Rename from x86_64_register_info.
6620         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
6621         (amd64_register_name): Rename from x86_64_register_name.
6622         (amd64_register_type): Rename from x86_64_register_type.
6623         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
6624         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
6625         (amd64_dwarf_reg_to_regnum): Rename from
6626         x86_64_dwarf_reg_to_regnum.
6627         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
6628         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
6629         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
6630         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
6631         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
6632         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
6633         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
6634         (amd64_frame_cache): Rename from x86_64_frame_cache.
6635         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
6636         (amd64_frame_prev_register): Rename from
6637         x86_64_frame_prev_register.
6638         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
6639         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
6640         (amd64_sigtramp_frame_cache): Rename from
6641         x86_64_sigtramp_frame_cache.
6642         (amd64_sigtramp_frame_prev_register): Rename from
6643         x86_64_sigtramp_frame_prev_register.
6644         (amd64_sigtramp_frame_unwind): Rename from
6645         x86_64_sigtramp_frame_unwind.
6646         (amd64_sigtramp_frame_sniffer): Rename from
6647         x86_64_sigtramp_frame_sniffer.
6648         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
6649         (amd64_frame_base): Rename from x86_64_frame_base.
6650         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
6651         (amd64_frame_align): Rename from x86_64_frame_align.
6652         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
6653         (amd64_regset_from_core_section): Rename from
6654         x86_64_regset_from_core_section.
6655         (x86_64_init_abi): Update comments.
6656
6657 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
6658
6659         * MAINTAINERS (write after approval): Add myself.
6660
6661 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
6662
6663         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6664         `float' arguments.
6665
6666 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
6667
6668         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
6669         such that it mentions a specific version of GCC that exhibits this
6670         bug.
6671
6672 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
6673
6674         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
6675         structure that has a single `float' member, store it in %f1 in
6676         addition to %f0.
6677
6678         * sparc-sol2-nat.c: Add missing '\'.
6679
6680         * sparc-tdep.c (sparc32_return_value): New function.
6681          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
6682         Remove functions.
6683         (sparc32_gdbarch_init): Set return_value, don't set
6684         extract_return_value, store_return_value, use_struct_convention
6685         and return_value_on_stack.
6686
6687         * sparc-sol2-nat.c: Add missing ')'.
6688
6689 2004-01-03  J. Brobecker  <brobecker@gnat.com>
6690
6691         * infrun.c (handle_step_into_function): New function.
6692         (handle_inferior_event): Extract out some code into the new
6693         function above.
6694
6695 2004-01-03  J. Brobecker  <brobecker@gnat.com>
6696
6697         * infrun.c (handle_inferior_event): Move the declaration of
6698         real_stop_pc inside the if blocks where it is used.
6699
6700 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
6701
6702         * sparc64-tdep.c (sparc64_16_byte_align_p)
6703         (sparc64_store_floating_fields, sparc64_store_floating_fields):
6704         Use check_typedef to get subtypes of structures and unions.
6705         (sparc64_store_return_value): Fix calculation of the appropriate
6706         offset into VALBUF when storing a structure or union.
6707         (sparc64_return_value): New function.
6708         (sparc64_use_struct_convention): Remove function.
6709         (sparc64_init_abi): Set return_value, don't set
6710         extract_return_value, store_return_value and
6711         use_struct_convention.
6712
6713 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
6714
6715         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
6716         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
6717         gdb/config/alpha/xm-alphaosf.h,
6718         gdb/config/powerpc/tm-ppcle-eabi.h,
6719         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
6720         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
6721         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
6722         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
6723         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
6724         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
6725         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
6726         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
6727         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
6728         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
6729         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
6730         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
6731         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
6732         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
6733         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
6734         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
6735         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
6736         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
6737         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
6738         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
6739         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
6740         Remove lines for .cvsignore files.
6741
6742 2004-01-03  J. Brobecker  <brobecker@gnat.com>
6743
6744         * infrun.c: Back out the previous change.
6745
6746 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
6747
6748         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
6749         sparc-*-sunos4* to the list of REMOVED configurations.
6750
6751         * configure.tgt: Add back sparc-*-vxworks*.
6752         * remote-vxsparc.c: Remove all includes except for "defs.h",
6753         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
6754         Include "sparc-tdep.h".
6755         (SPARC_R_G1): New define.
6756         (vxsparc_gregset): New variable.
6757         (ext_format_sparc): Remove extern declaration.
6758         (vx_read_register): Rewrite to use sparc32_supply_gregset and
6759         sparc32_supply_fpregset.
6760         (vx_write_register): Rewrite to use sparc32_collect_gregset,
6761         sparc_collect_rwindow and sparc32_collect_fpregset.
6762         * config/sparc/tm-vxworks.h: New file, based on recently removed
6763         tm-vxsparc.h.
6764         * config/sparc/vxworks.mt: New file, based on recently removed
6765         vxworks.mt.
6766
6767 2004-01-03  J. Brobecker  <brobecker@gnat.com>
6768
6769         * infrun.c (handle_step_into_function): New function.
6770         (handle_inferior_event): Extract out some code into the new
6771         function above.
6772
6773 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
6774
6775         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
6776         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
6777         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
6778         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
6779         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
6780         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
6781         (sparc_nat_h): New variable.
6782         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
6783         (tm-sun4os4.h): Remove dependency.
6784         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
6785         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
6786         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
6787         sparc-tdep.o): Update dependencies.
6788         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
6789         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
6790         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
6791         dependencies.
6792         * configure.host: Remove existing sparc-*-lynxos*,
6793         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
6794         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
6795         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
6796         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
6797         triplets.
6798         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
6799         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
6800         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
6801         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
6802         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
6803         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
6804         sparc64-*-solaris2* and sparc64-*-* triplets.
6805         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
6806         "symtab.h" and "objfiles.h".
6807         (BIAS): Remove define.
6808         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
6809         (X_DISP19): Remove macros.
6810         (sparc_fetch_instruction): Remove function.
6811         (struct gdbarch_tdep): Remove definition.
6812         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
6813         (sparc_breakpoint_from_pc): Remove function.
6814         (struct sparc64_frame_cache): Remove definition.
6815         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
6816         sparc64_unwind_pc): Remove functions.
6817         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
6818         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
6819         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
6820         (sparc64_frame_cache): Change return type to `struct
6821         sparc_frame_cache *'.  Simply call sparc_frame_cache.
6822         (sparc64_frame_this_id, sparc64_frame_prev_register,
6823         sparc64_frame_base_address): Use `struct sparc_frame_cache'
6824         instead of `struct sparc64_frame_cache.
6825         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
6826         sparc_analyze_control_transfer, sparc_software_single_step,
6827         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
6828         _initialize_sparc64_tdep): Remove functions.
6829         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
6830         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
6831         macros.
6832         (sparc64_supply_gregset, sparc64_collect_gregset,
6833         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
6834         (sparc64_init_abi): New function.
6835         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
6836         inclusion guard.  Include "sparc-tdep.h".
6837         (BIAS): Define.
6838         (r_tstate_offset, r_fprs_offset): New defines.
6839         (enum sparc_regnum): Remove defenition.
6840         (enum sparc64_regnum): Reformat.
6841         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
6842         (sparc64_init_abi, sparc64_supply_gregset,
6843         sparc64_collect_gregset, sparc64_supply_fpregset,
6844         sparc64_collect_fpregset): New prototypes.
6845         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
6846         Add extern declarations.
6847         (sparc64_sol2_init_abi): New prototype.
6848         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
6849         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
6850         prototypes.
6851         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
6852         "sparnbsd-nat.h".
6853         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
6854         functions.
6855         (_initialize_sparc64fbsd_nat): Remove initialization of
6856         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
6857         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
6858         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
6859         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
6860         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
6861         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
6862         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
6863         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
6864         (sparc64fbsd_r_y_offset): Remove variables.
6865         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
6866         Make static and const.
6867         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
6868         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
6869         functions.
6870         (sparc64fbsd_gregset): New variable.
6871         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
6872         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
6873         and sparc64_supply_fpregset.
6874         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
6875         (sparc64fbsd_sigtramp_frame_this_id)
6876         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
6877         (sparc64fbsd_sigtramp_frame_unwind): New variable.
6878         (sparc64fbsd_sigtramp_frame_sniffer): New function.
6879         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
6880         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
6881         * sparcnbsd-tdep.c: Update copyright year.  Include
6882         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
6883         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
6884         "value.h" and "sparcnbsd-tdep.h".
6885         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
6886         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
6887         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
6888         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
6889         defines.
6890         (sparcnbsd_gregset): New variable.
6891         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
6892         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
6893         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
6894         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
6895         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
6896         variables.
6897         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
6898         (sparc32nbsd_sigcontext_frame_this_id)
6899         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
6900         (sparc32nbsd_sigcontext_frame_unwind): New variable.
6901         (sparc32nbsd_sigtramp_frame_sniffer): New function.
6902         (sparcnbsd_get_longjmp_target_32,
6903         sparcnbsd_get_longjmp_target_64): Remove functions.
6904         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
6905         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
6906         sparcnbsd_init_elf): Remove.
6907         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
6908         (sparcnbsd_elf_init_abi): New functions.
6909         (_initialize_sparcnbsd_tdep): New prototype.
6910         (_initialize_sparnbsd_tdep): Update.
6911         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
6912         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
6913         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
6914         * config/sparc/linux.mh: Update comment.
6915         (XM_FILE, HOST_IPC): Remove variables.
6916         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
6917         sparc-linux-nat.o.
6918         * config/sparc/linux.mt: Update comment.
6919         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
6920         * config/sparc/nbsd.mt: Reformat.
6921         * config/sparc/nbsd64.mh: Update comment.
6922         (NATDEPFILES): Add sparc-nat.o.
6923         * config/sparc/nbsd64.mt: Update comment.
6924         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
6925         (TM_FILE): Set to tm-nbsd.h.
6926         * config/sparc/nbsdelf.mh: Update comment.
6927         (NATDEPFILES): Add sparc-nat.o.
6928         (XM_FILE): Delete.
6929         * config/sparc/nbsdaout.mh: Update comment.
6930         (NATDEPFILES): Add sparc-nat.o
6931         (XM_FILE): Delete.
6932         * config/sparc/nm-linux.h: Update copyright year.  Don't include
6933         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
6934         inclusion.
6935         (KERNEL_U_SIZE): Remove define.
6936         (kernel_u_size): Remove prototype.
6937         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
6938         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
6939         "regcache.h".
6940         (CHILD_PREPARE_TO_STORE): Remove define.
6941         * config/sparc/nm-nbsdaout.h: Tweak some comments.
6942         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
6943         sparcnbsd-nat.c: Rewrite files.
6944         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
6945         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
6946         sparcnbsd-tdep.h: Remove files.
6947         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
6948         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
6949         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
6950         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
6951         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
6952         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
6953         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
6954         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
6955         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
6956         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
6957         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
6958         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
6959         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
6960         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
6961         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
6962         * config/sparc/linux64.mh, config/sparc/linux64.mt,
6963         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
6964         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
6965         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
6966
6967 2004-01-02  Andrew Cagney  <cagney@redhat.com>
6968
6969         From 2003-12-18 Kazuhiro Inaoka:
6970         * configure.host: Add m32r-linux target.
6971
6972 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
6973
6974         * top.c (print_gdb_version): Update year to 2004.
6975
6976 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
6977
6978         * MAINTAINERS: Add myself to the write-after-approval category.
6979
6980 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
6981
6982         From Bernardo Innocenti <bernie@develer.com>:
6983         * configure.tgt: Add uClinux target.
6984
6985 2004-01-02  Andrew Cagney  <cagney@redhat.com>
6986
6987         * utils.c (do_my_cleanups): Make static, add forward declaration.
6988         * defs.h (do_my_cleanups): Delete declaration.
6989
6990 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
6991
6992         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
6993         bfd/ChangeLog-0203.
6994
6995 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
6996
6997         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
6998         in <machine/reg.h>.
6999         * configure, config.in: Regenerate.
7000
7001 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
7002 tui/ChangeLog-1998-2003.
7003 \f
7004 Local Variables:
7005 mode: change-log
7006 left-margin: 8
7007 fill-column: 74
7008 version-control: never
7009 End: