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