* hppa-tdep.c (hppa_frame_prev_register_helper): Make 64-bit safe.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2004-12-21  Mark Kettenis  <kettenis@gnu.org>
2
3         * hppa-tdep.c (hppa_frame_prev_register_helper): Make 64-bit safe.
4
5 2004-12-21  Mark Kettenis  <kettenis@gnu.org>
6
7         * hppa-tdep.c (hppa64_return_value): Fix previous commit.
8
9 2004-12-21  Mark Kettenis  <kettenis@gnu.org>
10
11         * hppa-tdep.c (hppa32_return_value): Move further down.
12         (hppa64_return_value): Re-implement.
13
14 2004-12-21  Jim Blandy  <jimb@redhat.com>
15
16         * remote.c (fetch_register_using_p): Fix formatting.
17         
18 2004-12-21  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
19
20         * ada-lang.c (ada_print_subexp): Remove i18n markup from Ada code
21         output.
22         * ada-typeprint.c (ada_typedef_print): Ditto.
23         (print_unchecked_union_type): Ditto.
24         (print_record_type): Ditto, and correct output for non-derived
25         types that was inadvertently left off during the markup.
26
27 2004-12-19  Mark Kettenis  <kettenis@gnu.org>
28
29         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Check
30         whether the name returned by find_pc_partial_function is a null
31         pointer, not whether it is an empty string.
32
33         * hppa-tdep.h (hppa_regnum): Add HPPA_DP_REGNUM, HPPA_RET0_REGNUM,
34         HPPA_RET1_REGNUM and HPPA64_FP4_REGNUM.
35         * hppa-tdep.c (hppa64_integral_or_pointer_p)
36         (hppa64_floating_p) New functions.
37         (hppa64_push_dummy_call): Re-implement.
38         (hppa32_register_type): Rename argument reg_nr to regnum.
39         (hppa64_register_type): Likewise.  Use HPPA64_FP4_REGNUM instead
40         of HPPA_FP4_REGNUM.
41         (hppa32_cannot_store_register): Renamed from
42         hppa_cannot_store_register.
43         (hppa64_cannot_store_register): New function.
44         (hppa_gdbarch_init): Set cannot_store_register and
45         cannot_fetch_register to hppa32_cannot_store_register or
46         hppa64_cannot_store_register when appropriate.
47
48 2004-12-18  Mark Kettenis  <kettenis@gnu.org>
49
50         * hppah-nat.c: Remove file.
51         * infttrace.h: Remove file.
52         * infttrace.c: Remove file.
53         * Makefile.in (ALLDEPFILES): Remove hppah-nat.c
54         (infttrace_h): Remove variable.
55         (hppah-nat.o, infttrace.o): Remove dependencies.
56         * configure.host (hppa*64*-*-hpux11*): Remove.
57         * config/pa/hpux11w.mh: Remove file.
58         * config/pa/nm-hppah.h: Remove file.
59         * config/pa/nm-hppah11.h: Remove file.
60
61         * config/djgpp/fnchange.lst: Resolve name clash between
62         ../bfd/elf32-arm.c and ../bfd/elf32-arc.c, i386-sol2-nat.c and
63         i386-sol2-tdep.c, mips64obsd-nat.c and mips64obsd-tdep.c,
64         testsuite/gdb.base/bitfields.c and
65         testsuite/gdb.base/bitfields2.c, testsuite/gdb.base/bitfields.exp
66         and testsuite/gdb.base/bitfields2.exp.  Remove entry for
67         config/m88k/xm-delta88v4.h.
68
69         * solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
70         PA_SOM_ONLY isn't defined.
71
72         * somread.c: Include "solib-som.h".
73         (som_symfile_init, som_new_init, som_symfile_read,
74         som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove
75         redudant prototypes.
76         * Makefile.in (somread.o): Update dependencies.
77
78 2004-12-17  Jim Blandy  <jimb@redhat.com>
79
80         * remote.c (fetch_register_using_p): Indentation cleanup.
81
82 2004-12-17  Randolph Chung  <tausq@debian.org>
83
84         * hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
85         (find_stub_with_shl_get): Make static.
86
87 2004-12-17  Randolph Chung  <tausq@debian.org>
88
89         * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
90         (in_opd_section): New.
91         (hppa32_hpux_find_global_pointer): Rename from 
92         hppa_hpux_som_find_global_pointer.
93         (hppa64_hpux_find_global_pointer): New.
94         (ldsid_pattern): New.
95         (hppa_hpux_search_pattern): New.
96         (hppa32_hpux_search_dummy_call_sequence): New.
97         (hppa64_hpux_search_dummy_call_sequence): New.
98         (hppa_hpux_find_import_stub_for_addr): New.
99         (hppa_hpux_sr_for_addr): New.
100         (hppa_hpux_find_dummy_bpaddr): New.
101         (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
102         (hppa_hpux_som_init_abi): Set find_global_pointer method to
103         hppa32_hpux_find_global_pointer instead of
104         hppa_hpux_som_find_global_pointer.
105         (hppa_hpux_elf_init_abi): Set find_global_pointer method.
106         * hppa-tdep.c (hppa_init_objfile_priv_data): New.
107         (read_unwind_info): Use function to initialize objfile-private data.
108         (hppa32_push_dummy_call): Don't automatically set the RP if there is
109         a push_dummy_code method.
110         (hppa64_push_dummy_call): Retrieve and set the global pointer.
111         Don't automatically set the RP if there is a push_dummy_code method.
112         * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
113         dummy_call_sequence_addr members.
114         (hppa_init_objfile_priv_data): New prototype.
115
116 2004-12-17  Joel Brobecker  <brobecker@gnat.com>
117
118         * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
119         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
120         * solib-som.c (som_solib_create_inferior_hook): Replace stub
121         msymbol search by call to hppa_lookup_stub_minimal_symbol. This
122         extends the search to all objfiles, not just shared libraries.
123         Remove unused variable.
124
125 2004-12-16  Michael Snyder  <msnyder@redhat.com>
126
127         * MAINTAINERS: Add myself as maintainer for mn10300.
128         * NEWS: Mention mn10300.
129
130 2004-12-15  Kevin Buettner  <kevinb@redhat.com>
131
132         * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
133         frame cache.
134
135 2004-12-14  Randolph Chung  <tausq@debian.org>
136
137         * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
138         (hppa_gdbarch_init): Set in_epilogue_p method.
139
140 2004-12-14  Corinna Vinschen  <vinschen@redhat.com>
141
142         * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
143         sh_default_extract_return_value.
144         (sh_extract_return_value_fpu): Rename from
145         sh3e_sh4_extract_return_value.
146         (sh_store_return_value_nofpu): Rename from
147         sh_default_store_return_value.
148         (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
149         (sh_return_value_nofpu): Accomodate above changes.
150         (sh_return_value_fpu): Ditto.
151
152 2004-12-13  Jerome Guitton  <guitton@gnat.com>
153
154         * stabsread.c (read_huge_number): Add support for reading octal
155         signed number in twos complement, based on the size of this
156         number.
157         (read_range_type): Add support for reading octal signed bounds
158         in twos complements, based on the size of the type.
159         (read_type_number, read_cpp_abbrev, read_member_functions,
160         read_cpp_abbrev, read_one_struct_field, read_baseclasses,
161         read_struct_type, read_array_type, read_enum_type,
162         read_sun_builtin_type, read_sun_floating_type): Update calls to
163         read_huge_number.
164         (read_type): Update call to read_range_type.
165
166 2004-12-13  Randolph Chung  <tausq@debian.org>
167
168         * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
169         solib_get_solib_by_pc method through target vector.
170         (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
171         method through target vector.
172
173 2004-12-13  Joel Brobecker  <brobecker@gnat.com>
174
175         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
176         parameter name to make it clear that we already have a next
177         frame.  Return the sigcontext from that next frame instead
178         of the frame following it.
179
180 2004-12-13  Randolph Chung  <tausq@debian.org>
181
182         * Makefile.in (pa64solib_h, somsolib_h): Delete.
183         (solib_pa64_h, solib_som_h): New.
184         (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
185         (hppa-hpux-tdep.o, hpread.o): Update dependencies.
186         (pa64solib.o, somsolib.o): Delete.
187         (solib-pa64.o, solib-som.o): New.
188         * hppa-hpux-tdep.c: Include new solib interfaces.
189         (hppa_hpux_som_init_abi): Attach to SOM solib interface.
190         (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
191         * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
192         is available, use it to determine the base of unwind records.
193         * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
194         * hpread.c: Replace somsolib.h with solib-som.h.
195         (hpread_process_one_debug_symbol): Use target vector to get thread 
196         start address.
197         * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
198         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
199         * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
200         * config/pa/tm-hppah.h: Use new solib interface.
201
202 2004-12-13  Randolph Chung  <tausq@debian.org>
203
204         * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or 
205         sections to be trampolines too.
206
207 2004-12-13  Ben Elliston  <bje@au.ibm.com>
208
209         * f-exp.y (typename): Remove unused nonterminal.
210         (name): Likewise.
211
212 2004-12-12  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
213
214         Committed by Andrew Cagney.
215         * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
216         markup.
217         
218 2004-12-12  Andrew Cagney  <cagney@gnu.org>
219
220         * frame.c (get_prev_frame): When unwinding normal frames, check
221         that the PC isn't zero.
222         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
223         zero PC.
224
225         * MAINTAINERS: Reword description of what "Target Instruction Set
226         Architectures" covers.
227
228 2004-12-12  Mark Kettenis  <kettenis@gnu.org>
229
230         * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
231
232 2004-12-11  Mark Kettenis  <kettenis@gnu.org>
233
234         * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
235         (hppa_hpux_save_state_offset): New function, replacing variable
236         with the same name.
237         (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
238         functions.
239         (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
240         Use new hppa_hpux_save_state_offset function.  Add special
241         handling for handling 64-bit "flags" register.
242         (hppa_hpux_store_register): Likewise.
243         (hppa_hpux_child_can_run): Tweak comment.
244
245         * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
246         (inf_ttrace_attach): Likewise.
247         (inf_ttrace_resume_callback): New function.
248         (inf_ttrace_resume): Don't use TT_PROC_CONTINUE.  Iterate over all
249         lwps and call inf_ttrace_resume_callback instead.
250         (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
251
252         * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
253
254 2004-12-10  Michael Snyder  <msnyder@redhat.com>
255
256         * mn10300-tdep.c: New file.  This is a re-implementation of
257         the mn10300 target back-end using the new frame api etc.
258         * mn10300-tdep.h: New file.
259         * config/mn10300/mn10300.mt: New file (or replace old file).
260         * configure.tgt: Add mn10300 target.
261
262 2004-12-10  Mark Kettenis  <kettenis@gnu.org>
263
264         * configure.host (hppa*-*-hpux11*): Remove.
265         * config/pa/hpux11.mh: Remove file.
266
267         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
268         typo.
269
270 2004-12-10  Kris Warkentin  <kewarken@qnx.com>
271
272         * nto-tdep.h: Include osabi.h.  Prototypes for generic Neutrino
273         osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
274         function and nto_set_target function.
275         (struct nto_target_ops): Put comments inline with struct.  Add osabi
276         sniffer hook.  Redefine macros to permit testing/assignment.  Remove
277         nto_ prefix from members.
278         * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
279         dynamically to support arbitrary root paths.  Check for basename of
280         lib in search path and then check for absolute.
281         (nto_in_dynsym_resolve_code): New function.
282         (nto_core_sniffer): New function.
283         (regset_core_fns): Register core sniffer.
284         (nto_initialize_signals): New function.
285         (_initialize_nto_tdep): Move signal initialization code to above to
286         avoid initialization race conditions.
287         (nto_set_target): New function.
288         * nto-procfs.c: Minor formatting/indenting changes.
289         (procfs_is_nto_target): New function.
290         (procfs_open): Set nto_is_nto_target.
291         (_initialize_procfs): Ditto.  Remove notice_signals() call to avoid
292         initialization race conditions.
293         (procfs_create_inferior): Resume inferior after creation.
294         * i386-nto-tdep.c: Declare i386_nto_target.
295         (init_i386nto_ops): Initialize i386_nto_target instead of
296         current_nto_target.
297         (i386nto_init_abi): Initialize signals.  Call nto_set_target.  Set
298         TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
299         (_initialize_i386nto_tdep): Call init_i386nto_ops.  Register osabi
300         sniffer.
301
302 2004-12-10  Mark Kettenis  <kettenis@gnu.org>
303
304         * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
305         (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
306         (hppa_hpux_init_abi): Reformat long line.
307
308 2004-12-09  Mark Kettenis  <kettenis@gnu.org>
309
310         * hppa-hpux-tdep.c: Include "regset.h".
311         (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
312         (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
313         (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
314         (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
315         (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
316         (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
317         functions.
318         (hppa_hpux_regset): New variable.
319         (hppa_hpux_regset_from_core_section): New function.
320         (hppa_hpux_init_abi): Set regset_from_core_section.
321         (hppa_hpux_core_osabi_sniffer): New function.
322         (_initialize_hppa_hpux_tdep): Register
323         hppa_hpux_core_osabi_sniffer.
324         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
325         * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
326
327 2004-12-09  Randolph Chung  <tausq@debian.org>
328
329         * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
330         text and data sections.
331         (pa64_current_sos): Also include the dld in the list of current shared
332         objects.
333         (pa64_solib_get_solib_by_pc): Update comments.
334         (pa64_solib_get_text_base): New function.
335         (pa64_solib_select): Set solib_get_text_base method.
336
337 2004-12-08  Daniel Jacobowitz  <dan@debian.org>
338
339         * linux-thread-db.c (BUILD_THREAD): Delete.
340         (thread_get_info_callback): Include LWP ID in thread ID.
341         (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
342         (lwp_from_thread): Use the LWP ID from the thread ID.
343
344 2004-12-07  Randolph Chung  <tausq@debian.org>
345
346         * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
347         register for both 32- and 64-bit targets.
348
349 2004-12-07  Randolph Chung  <tausq@debian.org>
350
351         * frame.c (get_prev_frame): Don't terminate unwinding at main if we
352         are unwinding through a dummy frame.
353
354 2004-12-07  Randolph Chung  <tausq@debian.org>
355
356         * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
357         * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
358         (hppa_hpux_init_abi) Set unwind_adjust_stub method.
359         * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
360         if defined.
361
362 2004-12-07  Randolph Chung  <tausq@debian.org>
363
364         * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if 
365         unwinding from a frame with pc == 0.
366         (hppa_stub_frame_this_id): Likewise.
367         (hppa_stub_frame_prev_register): Only provide real values if the frame
368         cache is not NULL.
369
370 2004-12-07  Randolph Chung  <tausq@debian.org>
371
372         * solib-som.c: New file.
373         * solib-som.h: New file.
374         * solib-pa64.c: New file.
375         * solib-pa64.h: New file.
376
377 2004-12-07  Mark Kettenis  <kettenis@gnu.org>
378
379         * Makefile.in (inf-ttrace.o): Fix typo.
380
381 2004-12-07  Jim Blandy  <jimb@redhat.com>
382
383         * remote.c (remote_threads_info, remote_current_thread): Use
384         strtoul to parse thread ID numbers.
385
386 2004-12-07  Mark Kettenis  <kettenis@gnu.org>
387
388         * inf-ttrace.c: Include "gdbthread.h".
389         (inf_ttrace_num_lwps): New variable.
390         (inf_ttrace_num_lwps_in_syscall): Renamed from
391         inf_ttrace_num_threads_in_syscall.
392         (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
393         TTEVT_LWP_TERMINATE events.
394         (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
395         zero.
396         (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
397         (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
398         Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
399         events.
400         (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
401         default.  Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
402         TTEVT_LWP_TERMINATE events.
403         (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
404         (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
405         * Makefile.in (inf-ttrace.o): Update dependencies.
406
407         * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
408         prototypes.
409         * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
410         Make global.  Remove HP-UX specific code.  Use
411         frame_unwind_register_unsigned instead of
412         frame_unwind_register_signed.
413         (hppa_write_pc): Rename from hppa_target_write_pc.  Make global.
414         Remove HP-UX specific code.
415         (hppa_unwind_pc): Make global.  Remove HP-UX specific code.
416         (hppa_frame_prev_register_helper): Set "flags" register to zero
417         for all unwound frames.
418         (hppa_gdbarch_init): Adjust.
419         * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
420         (hppa_hpux_read_pc, hppa_hpux_write_pc)
421         (hppa_hpux_unwind_pc): New functions.
422         (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
423
424 2004-12-07  Andreas Schwab  <schwab@suse.de>
425
426         * main.c (long_options): Add entry for "-l".
427         (print_gdb_help): Add line for -l option.
428         * NEWS: Mention it.
429
430 2004-12-05  Randolph Chung  <tausq@debian.org>
431
432         * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
433         DEPRECATED_REGISTER_BYTE.
434
435 2004-12-05  Randolph Chung  <tausq@debian.org>
436
437         * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
438         records.
439
440 2004-12-05  Mark Kettenis  <kettenis@gnu.org>
441
442         * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
443         * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
444
445         * hppa-hpux-tdep.c: Update copyright notice and year.
446
447 2004-12-05  Richard Earnshaw  <rearnsha@arm.com>
448
449         * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
450         (get_field, put_field): Assert that the format is one we can handle.
451         Simplify logic accordingly.
452         (floatformat_normalize_byteorder): New function.
453         (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
454         to normalize and select modified byte order. Pass modified byte order
455         to get_field.
456         (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa): 
457         Likewise.
458         (convert_doublest_to_floatformat): Select an appropriate intermediate
459         byte order if necessary.  Always convert to the final format before
460         returning.
461
462 2004-12-04  Daniel Jacobowitz  <dan@debian.org>
463
464         PR tui/1703
465         * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
466         Suggested by Joshua Neuheisel.
467
468 2004-12-03  Randolph Chung  <tausq@debian.org>
469
470         * gdbarch.sh (instruction_nullified): Delete.
471         * gdbarch.c: Regenerate.
472         * gdbarch.h: Regenerate.
473         * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
474         nullified.
475         (hppa_unwind_pc): Likewise. 
476         (hppa_instruction_nullified): Delete.
477         (hppa_gdbarch_init): Don't set instruction_nullified method.
478         * infrun.c (infwait_states): Remove infwait_nullified_state.
479         (handle_inferior_event): Remove handling of infwait_nullified_state.
480         Remove handling of nullified instructions.
481
482 2004-12-03  Mark Kettenis  <kettenis@gnu.org>
483
484         * inf-ttrace.c: Include <sys/mman.h>.
485         (struct inf_ttrace_page): New.
486         (struct inf_ttrace_page_dict): New.
487         (inf_ttrace_num_threads_in_syscall)
488         (inf_ttrace_reenable_page_protections): New variables.
489         (inf_ttrace_enable_syscall_events)
490         (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
491         (inf_ttrace_add_page, inf_ttrace_insert_page)
492         (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
493         (inf_ttrace_enable_page_protections)
494         (inf_ttrace_disable_page_protections)
495         (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
496         (inf_ttrace_can_use_hw_breakpoint)
497         (inf_ttrace_region_size_ok_for_hw_watchpoint)
498         (inf_ttrace_stopped_by_watchpoint): New functions.
499         (inf_ttrace_him): Remove unsused varaible `tts'.
500         (inf_ttrace_create_inferior): Add assertionts.
501         (inf_ttrace_mourn_inferior): Clear page dictionary.
502         (inf_ttrace_attach): Set initial event mask.
503         (inf_ttrace_detach): Reset number of threads in system call.
504         (inf_ttrace_wait): Deal with system call events.
505         (inf_ttrace_target): Initialize "hardware" watchpoint-related
506         parts of the target vector.
507         (_initialize_inf_ttrace): New prototype and function.
508
509         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
510         type of `gp' variable.
511
512 2004-12-03  Richard Sandiford  <rsandifo@redhat.com>
513
514         * README: Remove config.if from directory listing.
515
516 2004-12-01  Joel Brobecker  <brobecker@gnat.com>
517
518         * alpha-tdep.c (alpha_register_name): Add comment.
519         (alpha_cannot_fetch_register): Exclude registers numbers which
520         are no longer used from the list of registers that can be fetched.
521         (alpha_cannot_store_register): Exclude registers numbers which
522         are no longer used from the list of registers that can be stored.
523         * alpha-nat.c (fetch_osf_core_registers): Add missing value in
524         core_reg_mapping array.
525
526 2004-12-01  Joel Brobecker  <brobecker@gnat.com>
527
528         * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
529         the register value from the correct frame.
530
531 2004-11-30  Randolph Chung  <tausq@debian.org>
532
533         * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
534         (hppa_linux_in_dyncall): Check that we are inside the range of 
535         $$dyncall, not necessarily at the first insn.
536         (hppa_linux_in_solib_call_trampoline): Identify a trampoline 
537         even if the pc does not point to the first insn of the trampoline.
538
539 2004-11-30  Randolph Chung  <tausq@debian.org>
540
541         * breakpoint.c (break_at_finish_command): Delete.
542         (break_at_finish_command_1): Delete.
543         (break_at_finish_at_depth_command): Delete.
544         (break_at_finish_at_depth_command_1): Delete.
545         (tbreak_at_finish_command): Delete.
546         * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
547         and bx commands.
548
549 2004-11-30  Andrew Cagney  <cagney@gnu.org>
550
551         * config/nm-gnu.h: Delete file.
552         * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
553
554         * config/nm-sysv4.h: Delete file.
555         * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
556         * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
557         * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
558         * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
559         * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
560
561 2004-11-29  Andrew Cagney  <cagney@gnu.org>
562
563         * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
564         Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
565         as can-commit architecture developers.
566
567 2004-11-29  Mark Kettenis  <kettenis@gnu.org>
568
569         * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
570         (sparc32_skip_prologue): Skip instructions that store arguments in
571         registers into their corresponding stack slots.
572
573         * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
574         tm-solib.h.
575         * config/m68k/obsd.mh (NAT_FILE): Likewise.
576
577         * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
578         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
579         * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
580         sparc32nbsd_elf_init_abi.  Remove duplicate code.
581
582         * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
583         * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
584         * config/sparc/nm-nbsd.h: Remove file.
585         * config/sparc/nm-nbsdaout.h: Remove file.
586
587         * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
588         (sparc_xfer_partial): New function.
589         (sparc_target): Save value of to_xfer_partial from ptrace vector.
590         Set to_xfer_partial.
591
592         * fork-child.c (fork_inferior): Fork instead of vfork if
593         PRE_TRACE_FUN is non-null.
594
595 2004-11-24  Fred Fish  <fnf@specifixinc.com>
596
597         * rs6000-tdep.c (skip_prologue): Use line table info to skip over
598         compiler generated function calls made as part of a prologue.
599
600 2004-11-23  Mark Kettenis  <kettenis@gnu.org>
601
602         * inf-ttrace.c: New file.
603         * inf-ttrace.h: New file.
604         * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
605         Include "inf-ttrace.h".
606         (ss_mpsfu_high): Define to ss_tlsp if necessary.
607         (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
608         ptid_get_pid instead of PIDGET.  Modify to handle both ttrace and
609         ptrace systems.
610         (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
611         instead of inf_ptrace_target.
612         * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
613         * Makefile.in (inf_ttrace_h): New variable.
614         (hppa-hpux-nat.o): Update dependency.
615         (inf-ttrace.o): New dependency.
616         (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
617
618 2004-11-23  Randolph Chung  <tausq@debian.org>
619
620         * arch-utils.c (generic_instruction_nullified): New.
621         * arch-utils.h (generic_instruction_nullified): New.
622         * gdbarch.sh (instruction_nullified): New method.
623         * gdbarch.c: Regenerate.
624         * gdbarch.h: Regenerate.
625         * infrun.c (INSTRUCTION_NULLIFIED): Delete.
626         (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
627         new gdbarch method.
628         * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
629         * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
630         static.  Rewrite to work directly off the passed regcache.
631         (hppa_gdbarch_init): Set instruction_nullified method.
632
633 2004-11-23  Joel Brobecker  <brobecker@gnat.com>
634
635         * sparc-tdep.c (sparc_is_unimp_insn): New function.
636         (sparc32_frame_cache): For functions where there is no debugging
637         information to help us determine whether it's a struct-return
638         function or not, fallback on checking whether the instruction
639         at the return address is an "unimp" instruction or not.
640
641 2004-11-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
642
643         * MAINTAINERS: Add myself to write after approval section.
644
645         * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
646         hpux-thread.c to suppress children from running.
647         (hppa_hpux_child_can_run): New function.
648         (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
649         * hpux-thread.c: Include string.h and hppa-tdep.h.
650         (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
651         HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
652         (hpux_thread_store_registers): Replace deprecated_registers with
653         calls to regcache_raw_read.
654         * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
655
656 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
657
658         * sparc64fbsd-nat.c: Update copyright year.
659         (_initialize_sparc64fbsd_nat): Construct and add target vector.
660         * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
661         inftarg.o.
662
663 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
664
665         * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
666
667 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
668
669         * linux-nat.c (my_waitpid): New function.
670         (linux_test_for_tracefork): Make more robust and verbose.  Take
671         an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
672         (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
673         argument.  Update calls to linux_test_for_tracefork.
674         (linux_enable_event_reporting, child_follow_fork)
675         (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
676         (child_insert_exec_catchpoint): Update calls to
677         linux_supports_tracefork and linux_supports_tracevforkdone.
678
679 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
680
681         * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
682         (value_subscripted_rvalue): Likewise.
683         * valops.c (search_struct_field, value_slice): Likewise.
684
685 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
686
687         * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
688         Reorder includes a bit.  Fix comment.
689         * Makefile.in (inf-ptrace.o): Update dependencies.
690
691 2004-11-21  Andreas Schwab  <schwab@suse.de>
692
693         * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
694         (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
695         svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
696         to glibc_skip_solib_resolver.
697         * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o.  Remove
698         solib-legacy.o.
699         * Makefile.in (m68klinux-tdep.o): Update dependencies.
700
701 2004-11-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
702
703         * infttrace.h (ttrace_write_reg_64): Add prototype.
704         * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
705         expression.  
706         (store_inferior_registers): Correct formatting.  Replace uses of
707         deprecated_registers with calls to regcache_raw_read,
708         regcache_raw_write_part and regcache_raw_read_part.
709
710 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
711
712         * config/pa/hppahpux.mh: Remove file.
713         * config/pa/hpux1020.mh: Remove file.
714
715 2004-11-20  Andreas Schwab  <schwab@suse.de>
716
717         * configure.host: Set host floatformat for m68k.
718
719 2004-11-20  Eli Zaretskii  <eliz@gnu.org>
720
721         * config/djgpp/fnchange.lst: Resolve file-name clash between
722         hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
723
724 2004-11-20  Mark Kettenis  <kettenis@gnu.org>
725
726         * hppa-hpux-nat.c: New file.
727         * config/pa/hpux.mh (NATDEPFILES): New file.
728         * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
729         (hppa-hpux-nat.o): New dependency.
730         * configure.host: Remove hppa*-*-hpux10.20.
731         (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
732
733         * inf-ptrace.c: Fix coding style.
734
735         * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
736         * infptrace.c (call_ptrace): Simply call ptrace with four
737         arguments.
738
739         * dbxread.c (process_one_symbol): Fix a few coding standard
740         issues.  Improve code formatting.
741
742         * dbxread.c: Include "gdb_string.h".
743         (record_minimal_symbol, read_ofile_symtab): Replace
744         DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
745         * Makefile.in (dbxread.o): Update dependencies.
746
747         * dwarf2-frame.c (read_encoded_value): Correctly calculate number
748         of bytes read for aligned LEB128 encodings.
749
750 2004-11-19  Mark Kettenis  <kettenis@gnu.org>
751
752         * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
753         parse_and_eval_address to u_long before converting it to a pointer
754         type.
755         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
756         ps_strings from int to u_long.
757         * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
758         u_long instead of CORE_ADDR.
759
760 2004-11-18  Mark Kettenis  <kettenis@gnu.org>
761
762         * dbxread.c (process_one_symbol): Do not adjust address of first
763         N_SLINE stab for a function for code generated by non-GCC
764         compilers.
765
766 2004-11-18  Kevin Buettner  <kevinb@redhat.com>
767
768         * solib-null.c: New file.
769
770 2004-11-17  Andrew Cagney  <cagney@gnu.org>
771
772         * MAINTAINERS: Drop MIPS and remote.
773
774 2004-11-15  Andrew Cagney  <cagney@gnu.org>
775
776         * findvar.c (value_of_register): Set the frame ID.
777         * value.c (value_primitive_field): Copy the frame ID.
778         * valops.c (value_assign): Simplify lval_register case, there's
779         always a frame.
780
781 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
782
783         * Makefile.in (mips-linux-tdep.o): Update dependencies.
784         * mips-linux-tdep.c: Include "regcache.h".
785         (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
786
787 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
788
789         * Makefile.in (linux-thread-db.o): Fix typo in last change.
790
791 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
792
793         * linux-thread-db.c: New file, renamed from thread-db.c.
794         * thread-db.c: Remove.
795         * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
796         * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
797         to linux-thread-db.o.
798         * config/arm/linux.mh (NATDEPFILES): Likewise.
799         * config/i386/linux.mh (NATDEPFILES): Likewise.
800         * config/i386/linux64.mh (NATDEPFILES): Likewise.
801         * config/ia64/linux.mh (NATDEPFILES): Likewise.
802         * config/m32r/linux.mh (NATDEPFILES): Likewise.
803         * config/m68k/linux.mh (NATDEPFILES): Likewise.
804         * config/mips/linux.mh (NATDEPFILES): Likewise.
805         * config/pa/linux.mh (NATDEPFILES): Likewise.
806         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
807         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
808         * config/s390/s390.mh (NATDEPFILES): Likewise.
809         * config/sparc/linux.mh (NATDEPFILES): Likewise.
810         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
811
812 2004-11-13  Andrew Cagney  <cagney@gnu.org>
813
814         * config/i386/i386lynx.mh: Delete file.
815         * config/i386/i386lynx.mt: Delete file.
816         * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
817         * i386ly-tdep.c: Delete.
818
819         * config/tm-lynx.h: Delete, inline contents ...
820         * config/rs6000/tm-rs6000ly.h: ... here.
821
822         * config/tm-sysv4.h: Delete file, inlining contents.
823         * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
824         * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
825         * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
826
827         * regcache.h (deprecated_register_valid): Delete.
828         (deprecated_registers): Delete.
829         * regcache.c (deprecated_register_valid): Delete.
830         (deprecated_registers): Delete.
831         (deprecated_read_register_byte, _initialize_regcache)
832         (deprecated_write_register_bytes, build_regcache): Update.
833         * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
834         remote-sds.o.
835         * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
836         * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
837
838         * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
839         v850-*-* under removed.
840         * configure.host: Delete ns32k-*-netbsd*.
841         * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
842         ns32k-*-netbsd*, and v850*-*-*.
843         * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
844         "Deleted"
845         * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
846         * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
847         * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
848         * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
849         * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
850         * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
851         * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
852         * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
853         * v850-tdep.c: Delete.
854         
855 2004-11-13  Joel Brobecker  <brobecker@gnat.com>
856
857         * irix5-nat.c (fetch_core_registers): Replace use of
858         deprecated_registers by equivalent code.
859
860 2004-11-13  Joel Brobecker  <brobecker@gnat.com>
861
862         * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
863         with equivalent code.
864         (fill_fpregset): Likewise.
865
866 2004-11-13  Andrew Cagney  <cagney@gnu.org>
867
868         * MAINTAINERS: Do not list "Deleted" architectures.
869
870         * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
871         m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
872         sparc-*-vxworks*.
873         * NEWS: Mention that vxworks was deleted.
874         * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
875         * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
876         * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
877         * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
878         * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
879         * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
880         * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
881         * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
882         * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
883         * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
884         * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
885         * remote-vxmips.c, remote-vx.c: Delete.
886         * remote-vx68.c: Delete.
887         * config/m68k/tm-os68k.h: Remove reference to VxWorks.
888         * config/m68k/os68k.mt, ada-lang.h: Ditto.
889         * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
890         (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
891
892 2004-11-13  Eli Zaretskii  <eliz@gnu.org>
893
894         * config/i386/xm-go32.h: Don't include fopen-bin.h.
895         Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
896
897         * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
898         branch that doesn't define CRLF_SOURCE_FILES; always use
899         binary-mode open.
900         (print_source_lines_base, forward_search_command)
901         (reverse_search_command): Enable the code that accepts DOS-style
902         CRLF line endings on all platforms (this removes the need for
903         CRLF_SOURCE_FILES).
904
905         * defs.h: Fix wording of the comment before FOPEN_RB.
906         (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
907
908         * config/djgpp/fnchange.lst: Group renames for opcode directory
909         together.
910
911         * config/djgpp/djconfig.sh: Replace file names that don't exist
912         anymore with existing files, for checking the unpacked
913         distribution.
914
915         * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
916         Export pre-cooked values in configure-* targets that begin with
917         "@test -f stage_last".
918
919 2004-11-12  Andrew Cagney  <cagney@gnu.org>
920
921         * defs.h (enum lval_type): Delete lval_reg_frame_relative.
922         * value.h (struct value): Update comment.
923         * valops.c (value_assign): Fold lval_reg_fame_relative into
924         lval_register.
925         * findvar.c (value_from_register, locate_var_value): Ditto.
926
927 2004-11-12  Randolph Chung  <tausq@debian.org>
928
929         * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
930         * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
931         (write_exp_msymbol): Remove conditional check for symbols starting 
932         with $.  Update comments.
933
934 2004-11-12  Randolph Chung  <tausq@debian.org>
935
936         * pa64solib.c (pa64_solib_thread_start_addr): Rename from 
937         so_lib_thread_start_addr.
938         * pa64solib.h (so_list): Forward declare.
939         (pa64_solib_thread_start_addr): Prototype.
940         * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
941         (no_shared_libraries): Remove.
942         (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
943         * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
944         * hpread.c (hpread_process_one_debug_symbol): Use either the som or
945         the elf solib handler to find the start address.
946
947         * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support 
948         files to the target makefile.
949         * config/pa/hpux1020.mh (NATDEPFILES):  Likewise.
950         * config/pa/hpux11.mh (NATDEPFILES): Likewise.
951         * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
952
953         * config/pa/hppa64.mt (TDEPFILES): Put target-specific support 
954         files for symbol reading and shared library handling here.
955         * config/pa/hppahpux.mt (TDEPFILES): Likewise.  
956         (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target 
957         without bringing in 64-bit support.
958
959 2004-11-12  Andrew Cagney  <cagney@gnu.org>
960
961         * sparc-tdep.c: Replace VALUE_TYPE with value_type.
962         * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
963         * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
964         * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
965         * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
966         * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
967         * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
968
969         Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
970         * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
971         (VALUE_REGNUM): Define.
972         (struct value): Delete location.regnum, rename "regno" to
973         "regnum".
974         * value.c, valops.c, valarith.c, findvar.c: Update.
975
976         * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
977         (VALUE_BITPOS): Delete.
978         (value_type, value_offset, value_bitsize, value_bitpos): Declare.
979         * value.c (value_type, value_offset, value_bitpos)
980         (value_bitsize): New functions.  Update references.
981         * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
982         * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
983         * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
984         * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
985         * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
986         * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
987         * valops.c, eval.c, findvar.c, breakpoint.c: Update.
988         * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
989         * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
990
991 2004-11-12  Andrew Cagney  <cagney@gnu.org>
992
993         * cris-tdep.c (cris_register_offset): Delete, never called.
994         (cris_spec_reg_applicable): Delete cris_ver_sim.
995         * MAINTAINERS: List d10v as OBSOLETE.
996         * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
997         FOPEN_WB et.al., defined by "fopen-bin.h".
998
999 2004-11-12  Randolph Chung  <tausq@debian.org>
1000
1001         * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
1002         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
1003         * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
1004         * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
1005
1006 2004-11-12  Mark Kettenis  <kettenis@jive.nl>
1007
1008         * tui/tui-io.c: Don't include "terminal.h".
1009         * Makefile.in (tui-io.o): Update dependencies.
1010
1011 2004-11-12  Kei Sakamoto  <sakamoto.kei@renesas.com>
1012
1013         * Makefile.in (m32r-linux-tdep.o): Update dependencies.
1014         * m32r-linux-tdep.c (m32r_linux_init_abi): Call
1015         set_gdbarch_regset_from_core_section for core file support.
1016         (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
1017         New functions.
1018
1019 2004-11-11  Randolph Chung  <tausq@debian.org>
1020
1021         * hppa-tdep.c (skip_prologue_hard_way): Make static, add
1022         stop_after_branch parameter and use it to determine if we should look
1023         at the delay slot of the first branch insn to find prologue insns.
1024         (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
1025         (hppa_frame_cache): Likewise.
1026
1027 2004-11-11  Randolph Chung  <tausq@debian.org>
1028
1029         * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
1030         register so that it can be unwound from anywhere in the prologue.
1031
1032 2004-11-10  msnyder  <msnyder@redhat.com>
1033
1034         * rs6000-tdep.c (skip_prologue): After saving lr_offset, 
1035         must invalidate lr_reg (so we don't try to save it again).  
1036         Ditto for cr_offset and cr_reg.
1037
1038 2004-11-05  Jon Beniston <jon@beniston.com>
1039
1040         Committed by Andrew Cagney.
1041         * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK 
1042         when an unexpected packet is received, as the target stubs 
1043         continually retransmit the same packet until ACKed.
1044         
1045 2004-11-10  Randolph Chung  <tausq@debian.org>
1046
1047         * frame.c (get_prev_frame): Use get_frame_type to retrieve the 
1048         frame's type.
1049
1050 2004-11-10  Randolph Chung  <tausq@debian.org>
1051
1052         * blockframe.c (inside_entry_func): Move to .....
1053         * frame.c (inside_entry_func): ... here, and make static.
1054         (backtrace_past_entry): New flag.
1055         (get_prev_frame): Stop backtrace at the entry function if enabled
1056         by flag.  Update comments.
1057         (_initialize_frame): Add command to set backtrace_past_entry flag.
1058         * defs.h (inside_entry_func): Remove prototype.
1059
1060 2004-11-10  Mark Kettenis  <kettenis@gnu.org>
1061
1062         * dwarf2read.c: Fix formatting.
1063
1064 2004-11-10  Andrew Cagney  <cagney@gnu.org>
1065
1066         * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
1067         (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
1068         macros with function declarations.
1069         * value.c (coerce_ref, coerce_array, coerce_number)
1070         (coerce_enum): New functions.
1071         (value_as_long, value_as_address): Update.
1072         * ada-lang.c (ada_coerce_ref, ada_value_binop) 
1073         (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
1074         * jv-lang.c (evaluate_subexp_java): Update.
1075         * valarith.c (value_less, value_neg, value_complement)
1076         (value_binop, value_add, value_subscript, value_x_binop) 
1077         (value_logical_not, value_sub): Update.
1078         * valops.c (check_field, value_struct_elt, value_ind)
1079         (value_find_oload_method_list, value_cast, value_assign): Update.
1080         * eval.c (evaluate_subexp_standard): Update.
1081
1082 2004-11-10  Mark Kettenis  <kettenis@gnu.org>
1083
1084         * mips-tdep.c (mips32_relative_offset): Change return type to
1085         LONGEST, change argument type to ULONGEST.  Fix sign-extension.
1086
1087 2004-11-10  Randolph Chung  <tausq@debian.org>
1088
1089         * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
1090         (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
1091         (hppa_fetch_pointer_argument): Likewise.
1092         (hppa_frame_cache): Use safe_frame_unwind_memory instead of 
1093         deprecated_read_memory_nobpt.
1094         (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
1095         add_set_cmd sequence with add_setshow_boolean_cmd.
1096
1097 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1098
1099         GDB 6.3 released from GDB 6.3 branch.
1100
1101 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1102
1103         * values.c: Rename to ...
1104         * value.c: ..., new file.
1105         * Makefile.in: Update.
1106
1107 2004-11-09  Daniel Jacobowitz  <dan@debian.org>
1108
1109         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
1110         size.
1111
1112 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1113
1114         * TODO: Delete.
1115
1116         * value.h (struct value): Delete field bfd_section.
1117         (VALUE_BFD_SECTION): Delete macro.
1118         (COERCE_REF): Update.
1119         (value_at, value_at_lazy): Delete asection parameter.
1120         * printcmd.c (print_formatted, x_command): Update.
1121         (do_examine): Delete asection parameter.
1122         (next_section): Delete variable.
1123         * valops.c (value_cast, value_at, value_at_lazy)
1124         (value_coerce_function, value_addr, value_ind, value_string) 
1125         (find_rt_vbase_offset, value_full_object): Update.
1126         * hpacc-abi.c (hpacc_virtual_fn_field)
1127         (hpacc_value_rtti_type): Update.
1128         * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field) 
1129         (gnuv3_baseclass_offset): Update.
1130         * f-valprint.c (f_val_print): Update.
1131         * c-valprint.c (c_val_print): Update.
1132         * p-valprint.c (pascal_val_print): Update.
1133         * jv-valprint.c (java_value_print): Update.
1134         * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1135         * ada-lang.c (ada_value_primitive_packed_val)
1136         (ada_evaluate_subexp): Update.
1137         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1138         * expprint.c (print_subexp_standard): Update.
1139         * infcall.c (call_function_by_hand): Update.
1140         * valarith.c (value_add): Update.
1141         * eval.c (evaluate_subexp_standard): Update.
1142         * values.c (allocate_value, value_copy, value_static_field): Update.
1143         * findvar.c (read_var_value, locate_var_value): Update.
1144         
1145 2004-11-09  Andrew Cagney  <cagney@gnu.org>
1146
1147         * i386-linux-tdep.c: Include "dwarf2-frame.h".
1148         * Makefile.in: Update all dependencies.
1149
1150 2004-11-08  Andrew Cagney  <cagney@gnu.org>
1151
1152         * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1153         (sentinel_frame_unwinder): Add the prev_pc method.
1154         * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1155         available.  Do not handle the sentinel-frame case.
1156         * frame-unwind.h (frame_prev_register_ftype): Define.
1157         (struct frame_unwind): Add prev_pc;
1158
1159 2004-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1160
1161         * configure.in: Check for ncurses/term.h.
1162         * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1163         * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1164         * tui/tui.c: Don't include term.h.
1165         * configure, config.in: Rebuilt.
1166
1167 2004-11-08  Mark Kettenis  <kettenis@gnu.org>
1168
1169         * m68kbsd-nat.c: Include "inf-ptrace.h".
1170         (_initialize_m68kbsd_nat): Fix pasto.
1171         * Makefile.in (m68kbsd-nat.o): Update dependencies.
1172
1173 2004-11-08  Randolph Chung  <tausq@debian.org>
1174
1175         * infrun.c (debug_infrun): New variable.
1176         (resume, proceed, wait_for_inferior): Annotate with debug messages.
1177         (handle_inferior_event, keep_going): Likewise.
1178         (_initialize_infrun): Register "set debug infrun" command.
1179
1180 2004-11-08  Andreas Schwab  <schwab@suse.de>
1181
1182         * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1183         PTRACE_EVENT_VFORKDONE.
1184         (child_follow_fork): Adjust.
1185
1186 2004-11-08  Andrew Cagney  <cagney@gnu.org>
1187
1188         * README: Refer to 6.3, not 6.2, update directory listing droppng
1189         references to intl/ and mmalloc/.
1190         * PROBLEMS: Refer to 6.3 not 6.2.
1191
1192         * PROBLEMS: Delete no-longer applicable problems.
1193
1194 2004-11-07  Andrew Cagney  <cagney@redhat.com>
1195             Daniel Jacobowitz  <dan@debian.org>
1196             Roland McGrath  <roland@redhat.com>
1197
1198         * Makefile.in (symfile-mem.o): Update dependencies.
1199         * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1200         (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1201         * inf-ptrace.c (inf_ptrace_attach): Call
1202         observer_notify_inferior_created.
1203         * inftarg.c (child_attach): Likewise.
1204         * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1205         (symbol_file_add_from_memory): Take NAME argument.  Use it for
1206         the new BFD's filename.
1207         (add_symbol_file_from_memory_command): Update call to
1208         symbol_file_add_from_memory.
1209         (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1210         (symbol_file_add_from_memory_wrapper): New.
1211         (_initialize_symfile_mem): Register add_vsyscall_page as an
1212         inferior_created observer.
1213
1214 2004-11-07  Mark Kettenis  <kettenis@gnu.org>
1215
1216         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1217         fetch_inferior_registers.  Make static.
1218         (m68kbsd_store_inferior_registers): Rename from
1219         store_inferior_registers.  Make static.
1220         (_initialize_m68kbsd_nat): Construct and add target vector.
1221         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1222         inftarg.o.  Add inf-ptrace.o.
1223         (NAT_FILE): Set to tm-solib.h.
1224         (LOADLIBES): New variable.
1225         * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1226         inftarg.o.  Add inf-ptrace.o.
1227         (NAT_FILE): Delete variable.
1228         * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1229         inftarg.o.  Add inf-ptrace.o.
1230         (NAT_FILE): Set to tm-solib.h.
1231         * config/m68k/nm-nbsdaout.h: Remove file.
1232
1233 2004-11-07  Daniel Jacobowitz  <dan@debian.org>
1234
1235         * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1236         (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1237         (dwarf2_signal_frame_unwind): New.
1238         (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1239         * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1240
1241 2004-11-07  Mark Kettenis  <kettenis@gnu.org>
1242
1243         * Makefile.in (mips64obsd-tdep.o): Fix typo.
1244
1245         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1246         from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets.  Trim sizes
1247         to only include the structure members we actually need.
1248         (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1249         mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets.  Trim sizes to
1250         only include the structure members we actually need.
1251         (mipsnbsd_init_abi): Update.
1252
1253         * mips64obsd-nat.c: Include "mips-tdep.h".
1254         (MIPS64OBSD_NUM_REGS): Remove define.
1255         (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1256         (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1257         floating-point registers correctly.
1258         * Makefile.in (mips64obsd-nat.o): Update dependencies.
1259
1260         * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1261         "gdb_assert.h".
1262         (mips64obsd_sigframe_init): New function.
1263         (mips64obsd_sigframe): New variable.
1264         (mips64obsd_init_abi): Add comments.  Prepend mips64obsd_sigrame
1265         unwinder.
1266         * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1267
1268 2004-11-06  Joel Brobecker  <brobecker@gnat.com>
1269
1270         * alpha-mdebug-tdep.c: #include mdebugread.h.
1271         Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1272         * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1273
1274 2004-11-05  Andrew Cagney  <cagney@gnu.org>
1275
1276         * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1277         CFI and the init_reg method leave the register unspecified.
1278         Include the register name in the "Incomplete CFI data" complaint.
1279         Supress leading zeros in the address.
1280
1281 2004-11-05  Mark Kettenis  <kettenis@gnu.org>
1282
1283         * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1284         skipping a personality routine in a CIE augmentation.
1285
1286 2004-11-05  Jeff Johnston  <jjohnstn@redhat.com>
1287
1288         * defs.h (fatal, vfatal): New function prototypes.
1289         * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1290         via catch_errors.
1291         (backtrace_command): Change to call backtrace_command_stub via
1292         catch_errors instead of calling backtrace_command_1 directly.
1293         (backtrace_full_command): Ditto.
1294         * utils.c (error_stream_1): New static function.
1295         (verror): Change to call error_stream_1 instead of error_stream.
1296         (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1297         (vfatal, fatal): New functions.
1298
1299 2004-11-05  Andrew Cagney  <cagney@gnu.org>
1300
1301         * stack.c (parse_frame_specification_1): Clear selected_frame_p
1302         when not using selected frame.
1303
1304 2004-11-05  Mark Kettenis  <kettenis@jive.nl>
1305
1306         * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1307         personality routine in a CIE augmentation.
1308
1309 2004-11-05  Felix Lee  <felix+log1@specifixinc.com>
1310
1311         * stack.c (set_current_sal_from_frame): New function.
1312         (print_args_stub): Use it.
1313         (print_frame_info): Don't set sal here.
1314
1315 2004-11-04  Mark Kettenis  <kettenis@gnu.org>
1316
1317         * dwarf2-frame.c (read_encoded_value): Change type of third
1318         argument to `unsigned char *'.  Add support for LEB128 encodings.
1319
1320 2004-11-04  Jim Blandy  <jimb@redhat.com>
1321
1322         * gdbtypes.c (make_qualified_type): Doc fix.  Add assertion to
1323         prevent cross-objfile references.
1324         (make_cv_type): Doc fix.  Don't create cross-objfile references,
1325         even for stub types.
1326         (replace_type): Add assertion to prevent cross-objfile references.
1327         (check_typedef): Never resolve a stub type by copying over a type
1328         from another file.
1329
1330 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
1331
1332         * Makefile.in (m32r-tdep.o): Update dependencies.
1333         * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1334         ABI-specific overrides.
1335
1336 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
1337
1338         * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1339         unnecessary parallel execution bit.
1340         (m32r_memory_remove_breakpoint): Ditto.
1341         (m32r_breakpoint_from_pc): Update.
1342
1343 2004-11-03  Randolph Chung  <tausq@debian.org>
1344
1345         * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1346         frame_func_unwind to locate the unwind entry.
1347         (hppa_frame_this_id): Likewise.
1348
1349 2004-11-03  Andrew Cagney  <cagney@gnu.org>
1350
1351         * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1352         packet, obsolete configurations, end-of-life deprecated_registers.
1353
1354 2004-11-02  Mark Kettenis  <kettenis@gnu.org>
1355
1356         * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1357         encodings as well as unsigned encodings.
1358
1359 2004-11-02  Andrew Cagney  <cagney@gnu.org>
1360
1361         * value.h (COERCE_VARYING_ARRAY): Delete.
1362         * valops.c (value_cast, value_slice): Delete use.
1363         * valarith.c (value_subscript, value_concat): Delete use.
1364
1365 2004-11-02  Paul Hilfinger  <hilfingr@nile.gnat.com>
1366
1367         * NEWS: GDB understands GNAT Ada.
1368
1369 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
1370
1371         * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1372         (amd64-sol2-tdep.o): Add dependencies.
1373         * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1374         config/i386/sol2-64.mt: New files.
1375         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1376         amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1377         (supply_gregset): Correct order of arguments to
1378         amd64_supply_native_gregset.
1379         (fill_gregset): Correct order of arguments to
1380         amd64_collect_native_gregset.
1381         * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1382         * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1383         * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1384         for definition of NEW_PROC_API.
1385         * configure: Regenerate.
1386
1387 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
1388
1389         * MAINTAINERS (Write After Approval): Add myself.
1390
1391 2004-11-01  Andrew Cagney  <cagney@gnu.org>
1392
1393         * configure.tgt: Mark d10v-*-* as obsolete.
1394         * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1395
1396 2004-11-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
1397
1398         * values.c (modify_field): Correct handling of bit-fields that
1399         don't fit in 32 bits.  Use unsigned operations throughout and 
1400         simplify the code a bit.  Document preconditions.
1401
1402 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1403
1404         * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1405         * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1406         (in_plt_section): Delete.
1407
1408         * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1409         (mips_gdbarch_init): Do not set same.
1410
1411         * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1412         * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1413
1414         * gdbarch.sh (in_solib_call_trampoline): Delete.
1415         * gdbarch.h, gdbarch.c: Re-generate.
1416
1417         * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1418         IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1419         * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1420         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1421         * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1422
1423 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1424
1425         * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1426         (mipsnbsd_fetch_inferior_registers): Rename from
1427         fetch_inferior_registers.  Make static.
1428         (mipsnbsd_store_inferior_registers): Rename from
1429         store_inferior_registers.  Make static.
1430         (_initialize_mipsnbsd_nat): New function and prototype.
1431         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1432         * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1433         (NATDEPFILES): Remove infptrace.o and inftarg.o.  Add
1434         inf-ptrace.o.
1435
1436 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1437
1438         * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1439         (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1440         delete corresponding unused function.
1441         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1442         in_solib_call_trampoline.
1443         * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1444         * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1445         * config/mips/tm-nbsd.h: Ditto.
1446         * config/arm/tm-linux.h: Ditto.
1447         * config/mips/tm-linux.h: Ditto.
1448
1449         * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1450         (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1451         in_solib_call_trampoline, delete corresponding unused function.
1452         * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline) 
1453         (vaxnbsd_aout_init_abi): Ditto.
1454         * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline) 
1455         (sparc32nbsd_aout_init_abi): Ditto.
1456         * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline) 
1457         (ppc_linux_init_abi): Ditto.
1458         * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline) 
1459         (ns32knbsd_init_abi_aout): Ditto.
1460         * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1461         * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1462         * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline) 
1463         (m68kbsd_aout_init_abi): Ditto.
1464         * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline) 
1465         (i386_cygwin_init_abi): Ditto.
1466         * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline) 
1467         (i386bsd_init_abi): Ditto.
1468
1469         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1470         in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1471         isn't used by this architecture.
1472         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1473         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1474         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1475         * s390-tdep.c (s390_gdbarch_init): Ditto.
1476         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1477         * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1478         * i386-tdep.c (i386_svr4_init_abi): Ditto.
1479         * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1480         * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1481         * amd64-tdep.c (amd64_init_abi): Ditto.
1482
1483         * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1484         in_solib_call_trampoline to its default value of
1485         generic_in_solib_call_trampoline.
1486         * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1487         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1488         * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1489         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1490         * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1491         * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1492
1493         * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1494
1495         * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1496
1497         * config/mips/tm-mips.h: Delete file.
1498         * remote-mips.c: Delete tm-mips.h from comment.
1499         * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1500         * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1501         * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1502         * config/mips/tm-linux.h: Don't include tm-mips.h.
1503         * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1504         * config/mips/irix5.mt (DEPRECATED_TM_FILE): 
1505         * config/mips/tm-wince.h: Don't include.
1506
1507         * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1508         * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1509         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1510         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1511
1512         * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1513         * mdebugread.c (ecoff_relocate_efi): Delete function.
1514         * objfiles.c (objfile_relocate): Delete #ifdef
1515         MDEBUG_EFI_SYMBOL_NAME code.
1516
1517 2004-10-31  Orjan Friberg <organ.friberg@axis.com>
1518             Andrew Cagney  <cagney@gnu.org>
1519
1520         * gdbarch.sh (single_step_through_delay): Add.
1521         * gdbarch.h, gdbarch.c: Re-generate.
1522         * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1523         (mips_step_skips_delay): Delete.
1524         * mips-tdep.c (mips_single_step_through_delay): Replace
1525         mips_step_skips_delay.
1526         (mips_gdbarch_init): Set single_step_through_delay.
1527         (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1528         
1529 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1530
1531         * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1532         from TRAMP_FRAME frame type.
1533
1534 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1535
1536         * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1537
1538         * mips-tdep.c (mips_ignore_helper): Delete.
1539         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1540         * infrun.c (handle_inferior_event): Delete #ifdef
1541         DEPRECATED_IGNORE_HELPER_CALL code.
1542
1543         * config/mips/tm-mips.h (RA_REGNUM): Delete.
1544
1545 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1546
1547         * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1548         (fill_fpregset): Do not compile for 64-bit systems.
1549         * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1550         * Makefile.in (i386-sol2-nat.o): Update dependencies.
1551         * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1552
1553 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1554
1555         * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1556         (struct mdebug_extra_func_info): Define.
1557         * config/alpha/tm-alpha.h: Delete same.
1558         * config/mips/tm-mips.h: Delete same.
1559         * mdebugread.c: Delete same.
1560         * Makefile.in: Update dependencies.
1561         * mips-mdebug-tdep.c: Include "mdebugread.h".
1562
1563         * objfiles.c: Include "mdebugread.h".
1564         * mdebugread.c: Include "mdebugread.h".
1565         (ecoff_relocate_cfi): Delete.
1566         * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1567         * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1568         * mdebugread.h (ecoff_relocate_efi): New file.
1569         * Makefile.in: Update dependencies.
1570         
1571         * mips-tdep.c (struct frame_extra_info): Delete.
1572         (temp_proc_desc): Delete.
1573
1574         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1575         MIPS_EFI_SYMBOL_NAME.
1576         (mips_extra_func_info_t, mips_extra_func_info): Delete.
1577         (struct mdebug_extra_func_info): Replace struct
1578         alpha_extra_func_info and alpha_extra_func_info_t.
1579         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1580         MIPS_EFI_SYMBOL_NAME.
1581         (struct mdebug_extra_func_info): Replace struct
1582         alpha_extra_func_info and alpha_extra_func_info_t.
1583         * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1584         * mdebugread.c, alpha-mdebug-tdep.c: 
1585
1586         Suggested by Mark Kettenis.
1587         * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1588         fields frame_adjust and high_addr.
1589         * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1590         (non_heuristic_proc_desc): Delete references.
1591
1592         * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1593         * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1594         * mips-tdep.c: Update.
1595
1596         * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1597         (MIPS_LAST_EMBED_REGNUM): Add.
1598         * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1599         (LAST_EMBED_REGNUM): Delete.
1600         * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1601
1602         * config/mips/tm-mips.h (PS_REGNUM): Delete.
1603         * mips-tdep.h (MIPS_PS_REGNUM): Add.
1604         * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1605         * mips-linux-nat.c: Update.
1606
1607         * mips-tdep.h: Add comments on registers.
1608         (MIPS_UNUSED_REGNUM): Define.
1609         * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1610         (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1611         * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1612         * mips-linux-nat.c, remote-mips.c: Update.
1613
1614         * config/mips/tm-mips.h (t_insn): Delete.
1615         * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1616         Replace t_insn with ULONGEST.
1617
1618 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1619
1620         * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1621         (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1622         (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1623         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1624         (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1625         (mipsnbsd_core_osabi_sniffer): New function.
1626         (mipsnbsd_init_abi): Set regset_from_core_section.
1627         (_initialize_mipsnbsd_tdep): Remove calls to
1628         deprecated_add_core_fns.
1629         (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1630         (mipsnbsd_regset_from_core_section): New functions.
1631         (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1632         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1633
1634         * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1635         Remove optimization for DEPRECATED_FP_REGNUM.
1636
1637 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1638
1639         * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1640         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1641         (alpha_setup_arbitrary_frame): Delete.
1642         * mips-tdep.c (setup_arbitrary_frame): Delete.
1643         * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1644         (setup_arbitrary_frame): Delete.
1645         * stack.c (parse_frame_specification_1): When specified, call
1646         create_new_frame with two parameters.  Delete #ifdef
1647         SETUP_ARBITRARY_FRAME.
1648
1649         * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1650         (MIPS_INSTLEN): Delete.
1651         * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1652         MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1653         * remote-mips.c, mips-tdep.c: Update.
1654
1655         * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1656         * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1657         * mips-tdep.c (mips_mdebug_frame_cache)
1658         (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1659         (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1660         (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1661         (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1662         (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1663         (mips_gdbarch_init): Do not append mdebug sniffers.
1664         (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET) 
1665         (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK) 
1666         (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG) 
1667         (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1668         * Makefile.in: Update dependencies.
1669
1670         * mips-tdep.h (mips_abi_regsize): Declare.
1671         * mips-tdep.c (mips_abi_regsize): Make non-static.
1672
1673         * mips-tdep.c (gdb_print_insn_mips): Simplify.
1674         (make_mips16_addr): Delete.
1675
1676 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1677
1678         * i386-sol2-nat.c: New file.
1679         * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1680         i386-sol2-tdep.c.
1681         (i386-sol2-nat.o): Update dependencies.
1682         * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1683         i386-sol2-nat.o.
1684
1685 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1686
1687         Total breakage identified by Joel Brobecker.
1688         * mips-tdep.c (after_prologue): Delete.
1689         (mips_skip_prologue): Use skip_prologue_using_sal.
1690         (heuristic_proc_desc): Delete, unused.
1691
1692 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1693
1694         * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1695         (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1696         Cleanup coding style.
1697
1698 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1699
1700         * mips-tdep.h (mips_pc_is_mips16): Declare.
1701         * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1702         non-static.  Update calls.
1703
1704         * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1705         * command.h (add_setshow_enum_cmd): Declare.
1706         * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1707
1708         * mips-tdep.c (_initialize_mips_tdep): Use
1709         add_setshow_zinteger_cmd.
1710         
1711         * mips-tdep.c (mips_eabi_extract_return_value)
1712         (mips_o64_extract_return_value, mips_o64_store_return_value)
1713         (return_value_location, mips_eabi_reg_struct_has_addr)
1714         (mips_eabi_use_struct_convention)
1715         (mips_eabi_store_return_value): Delete.
1716         (mips_eabi_store_return_value): New function.
1717         (mips_eabi_return_value): New function.
1718         (mips_gdbarch_init): For O64 and EABI, delete
1719         extract_return_value, store_return_value, use_struct_convention
1720         and reg_struct_has_addr, add return_value.
1721
1722         * mips-tdep.c (read_signed_register): Use
1723         regcache_cooked_read_signed.
1724
1725 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1726
1727         * mipsread.c: Cleanup coding style.
1728         (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1729         (mipscoff_symfile_finish): Remove prototypes.
1730
1731 2004-10-29  Mark Kettenis  <kettenis@gnu.org>
1732
1733         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1734         (mips_mdebug_frame_cache, mips16_scan_prologue)
1735         (mips32_scan_prologue, mips_stub_frame_cache)
1736         (heuristic_proc_start, heuristic_proc_desc)
1737         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1738         (mips_n32n64_return_value, mips_o32_push_dummy_call)
1739         (mips_o32_return_value, mips_o64_push_dummy_call)
1740         (mips_step_skips_delay, mips_skip_trampoline_code)
1741         (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1742         MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1743         T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1744         instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1745         and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1746         (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1747         T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1748         MIPS16_INSTLEN.  Use MIPS_A0_REGNUM instead of A0_REGNUM.
1749         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1750         (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1751         ZERO_REGNUM.
1752         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1753         (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1754         ZERO_REGNUM.
1755         (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1756         A0_REGNUM.
1757         * mipsnbsd-nat.c: Include "mips-tdep.h".
1758         (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1759         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1760
1761 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1762
1763         * stack.c (parse_frame_specification_1): New function based on
1764         parse_frame_specification.  Add message and selected_frame_p
1765         paramters.  Truely always return non-NULL.
1766         (parse_frame_specification): Call parse_frame_specification_1.
1767         (frame_info): Update.  Eliminate target_has_stack check.
1768         (select_frame_command): Update.
1769
1770 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1771
1772         * frame.h (get_selected_frame): Add message parameter.
1773         * frame.c (get_selected_frame): Add and use message parameter.
1774         * stack.c (current_frame_command, return_command, locals_info)
1775         (catch_info, args_info, up_silently_base, down_silently_base): Use
1776         get_selected_frame with an explicit message.
1777         * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1778         * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1779         * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1780         * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1781         * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1782         * breakpoint.c: Update.
1783
1784 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1785
1786         * trad-frame.c (trad_frame_get_prev_register): Use
1787         frame_unwind_register instead of frame_register_unwind, do not
1788         recurse the register's location.
1789         * xstormy16-tdep.c (xstormy16_frame_prev_register): 
1790         * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1791         * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1792         * sh-tdep.c (sh_frame_prev_register): Ditto.
1793         * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1794         * i386-tdep.c (i386_frame_prev_register): Ditto.
1795         * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1796         * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1797
1798 2004-10-28  Mark Kettenis  <kettenis@jive.nl>
1799
1800         * proc-events.c: Fix several coding-style issues.  Consistently
1801         use #ifdef instead of #if defined().
1802         (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1803         ARRAY_SIZE.
1804         (_initialize_proc_events): New prototype.
1805
1806         * proc-why.c: Fix several coding-style issues.
1807         (proc_prettyfprint_why): Use ARRAY_SIZE.
1808
1809 2004-10-27  Jim Blandy  <jimb@redhat.com>
1810
1811         * remote.c (fetch_register_using_p): Construct 'p' packet in a
1812         manner independent of the host byte order.
1813
1814 2004-10-27  Mark Kettenis  <kettenis@gnu.org>
1815
1816         * mips-tdep.c (id_delayed): Remove prototype.
1817
1818 2004-10-26  Mark Kettenis  <kettenis@gnu.org>
1819
1820         * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1821         MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1822         to enum with register numbers.
1823         (enum mips_insn_size): New enum.
1824
1825 2004-10-26  Andrew Cagney  <cagney@gnu.org>
1826
1827         * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1828         * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1829         (mips_gdbarch_init): Update.
1830         (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1831
1832         * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1833         * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1834         IN_SOLIB_RETURN_TRAMPOLINE.
1835         * mips-tdep.c (mips_dump_tdep): Do not print
1836         IN_SOLIB_RETURN_TRAMPOLINE.
1837         (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1838         (mips_gdbarch_init): Update.
1839
1840         * mips-tdep.h (mips_software_single_step): Move to here ...
1841         * config/mips/tm-mips.h: ... from here.
1842         * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P) 
1843         (SOFTWARE_SINGLE_STEP): Delete.
1844         * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1845
1846 2004-10-25  Andrew Cagney  <cagney@gnu.org>
1847
1848         * NEWS: Add Changes since GDB 6.3 section.
1849
1850 2004-10-23  Andreas Schwab  <schwab@suse.de>
1851
1852         * ada-lang.c (grow_vect): Return the new array instead of
1853         expecting pointer to pointer to avoid violation of aliasing rules.
1854         * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1855
1856 2004-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
1857
1858         * s390-tdep.c (enum pv_boolean): Remove.
1859         (pv_is_array_ref): Remove.
1860         (s390_on_stack): Remove.
1861         (S390_NUM_SPILL_SLOTS): Remove.
1862         (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1863         add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1864         (s390_store): Track all stores of orginal incoming registers to the
1865         stack constant offsets relative to the CFA, instead of only tracking
1866         stores into specific spill slots.
1867         (s390_load): Likewise.
1868         (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1869         (s390_prologue_frame_unwind_cache): Likewise.  Only track registers
1870         defined as call-saved by the ABI.
1871         (s390_push_dummy_call): Use bottom of dummy call argument save area
1872         as return value, not the top.  Do not store to the called function's
1873         register save area.
1874         (s390_unwind_dummy_id): Adapt accordingly.
1875
1876 2004-10-23  Andrew Cagney  <cagney@gnu.org>
1877
1878         * objfiles.h (struct objfile): Rename obj_private to
1879         deprecated_obj_private, sym_private to deprecated_sym_private, and
1880         sym_stab_info to deprecated_sym_stab_info.
1881         * gdb-stabs.h: Update.
1882         * elfread.c: Update.
1883         * dbxread.c: Update.
1884         * coffread.c: Update.
1885         * xcoffread.c: Update.
1886         * symfile.c: Update.
1887         * somread.c: Update.
1888         * nlmread.c: Update.
1889         * mdebugread.c: Update.
1890         * hpread.c: Update.
1891         * coffread.c: Update.
1892
1893 2004-10-23  Mark Kettenis  <kettenis@gnu.org>
1894
1895         * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1896         * configure.host: Add mips64*-*-openbsd*.
1897         * configure.tgt: Add mips64*-*-openbsd*.
1898         * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1899         mips64obsd-tdep.c.
1900         (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1901         * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1902
1903 2004-10-21  Joel Brobecker  <brobecker@gnat.com>
1904
1905         * symtab.c (symbol_search_name): Minor reformatting.
1906
1907 2004-10-20  Joel Brobecker  <brobecker@gnat.com>
1908
1909         * symtab.h: Fix typo in comment.
1910
1911 2004-10-19  Mark Kettenis  <kettenis@gnu.org>
1912
1913         * dwarf2read.c (struct comp_unit_head): Fix coding style.
1914         (dwarf_decode_line_header): Likewise.
1915
1916 2004-10-19  Michael Chastain  <mec.gnu@mindspring.com>
1917
1918         * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1919
1920 2004-10-19  Andrew Cagney  <cagney@gnu.org>
1921
1922         GDB 6.3 branch created.
1923         * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1924
1925 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1926
1927         * dwarf2read.c (set_cu_language): Set language to Ada for
1928         DW_LANG_Ada83 and DW_LANG_Ada95.
1929
1930 2004-10-15  Michael Chastain  <mec.gnu@mindspring.com>
1931
1932         From Andreas Schwab <schwab@suse.de>:
1933         * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1934         for xmalloc and xrealloc.
1935
1936 2004-10-15  Andrew Cagney  <cagney@gnu.org>
1937
1938         * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1939         * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1940         * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1941         Update dependencies.
1942
1943 2004-10-15  Paul Hilfinger  <Hilfinger@gnat.com>
1944
1945         * ada-lang.c (ada_lookup_symbol): Correct comment.
1946         (ada_evaluate_subexp): Change error message for
1947         OP_FUNCALL case so as not to indicate an internal error.
1948         
1949 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1950
1951         Committed by Paul Hilfinger.
1952         * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1953         type sizes in XVE/XVU types, and emit a warning when that happens,
1954         instead of rounding up the size of the resulting type.
1955         Some minor reformatting.
1956         (ada_is_aligner_type): Do not consider a type as an aligner type 
1957         if there is a corresponding XVS type as well.
1958         (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we 
1959         have several levels of pointer indirection to the array.
1960         
1961 2004-10-15  Jerome Guitton  <guitton@gnat.com>
1962
1963         Committed by Paul Hilfinger.
1964         * ada-lang.c (check_size): New function.
1965         (coerce_unspec_val_to_type): call check_size to make sure
1966         that the object size is reasonable.
1967         (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1968         Implements the case when we get a reference when we evaluate
1969         the expression of one of the bounds of the slice.
1970         (ada_value_struct_elt): when a packed array field is
1971         a reference, use ada_coerce_ref to dereference it; use 
1972         ada_value_ind only if it is a pointer.
1973
1974 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1975
1976         * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1977         a bit to avoid the necessity of an advance declaration. Remove
1978         declaration.
1979         (set_reg_offset): Move implemenation up.
1980         (mips16_get_imm): Likewise.
1981         (mips16_scan_prologue): Likewise.
1982         (reset_saved_regs): Likewise.
1983         (mips32_scan_prologue): Likewise.
1984
1985 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1986
1987         * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1988         Remove sp as a parameter, compute it internally instead. Move
1989         prologue scanning limit from heuristic_proc_desc to here.
1990         (mips16_scan_prologue): Likewise.
1991         (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1992         by call to mips16_scan_prologue.
1993         (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1994         by call to mips32_scan_prologue.
1995         (heuristic_proc_desc): Remove code that's no longer necessary.
1996         Update calls to mips16_scan_prologue and mips32_scan_prologue.
1997         (mips_skip_prologue): Update calls to mips16_scan_prologue
1998         and mips32_scan_prologue.
1999
2000 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
2001
2002         * mips-tdep.c (mips16_scan_prologue): Merge code from
2003         mips16_skip_prologue.  Now return the address of the first
2004         instruction past the function prologue.
2005         (mips16_skip_prologue): Remove, no longer necessary.
2006         (mips_skip_prologue): Replace call to mips16_skip_prologue
2007         by call to mips16_scan_prologue.
2008
2009 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
2010
2011         * mips-tdep.c (mips32_scan_prologue): Merge code from
2012         mips32_skip_prologue.  Now return the address of the first
2013         instruction past the function prologue.
2014         (mips32_skip_prologue): Remove.  No longer necessary.
2015         (mips16_skip_prologue): Add parameter end_pc instead of
2016         computing it.
2017         (mips_skip_prologue): Compute the upper limit for the
2018         prologue scanning. Update call to mips16_skip_prologue.
2019         Replace call to mips32_skip_prologue by call to
2020         mips32_scan_prologue.
2021
2022 2004-10-14  Mark Kettenis  <kettenis@gnu.org>
2023
2024         * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
2025         NetBSD system call stubs that store %rp in the ERP slot of the
2026         stack frame.
2027
2028         * source.c: Always define O_BINARY to 0 if not defined already.
2029         (openp): Unconditionally use O_BINARY.
2030
2031         * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
2032         * event-top.c (gdb_readline2): Likewise.
2033
2034 2004-10-14  Orjan Friberg  <orjanf@axis.com>
2035
2036         * cris-tdep.c (_initialize_cris_tdep): Re-add call to
2037         deprecated_add_core_fns which was removed by mistake.
2038
2039 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
2040
2041         * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
2042         references to deprecated_registers[] with equivalent code.
2043
2044 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
2045
2046         * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
2047         ``deprecated_registers'' with equivalent code.  Use gdb_assert()
2048         instead of explicit test and print statement.
2049
2050 2004-10-12  Mark Kettenis  <kettenis@gnu.org>
2051
2052         * sparc-nat.c: Include "inf-ptrace.h".
2053         (sparc_target): New function.
2054         * sparc-nat.h: Update copyright year.
2055         (sparc_target): New prototype.
2056         * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
2057         (_initialize_sparcnbsd_nat): Construct and add target vector.
2058         * sparc64nbsd-nat.c: Include "target.h".
2059         (_initialize_sparc64nbsd_nat): Construct and add target vector.
2060         * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
2061         Update dependencies.
2062         * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
2063         inftarg.o, add inf-ptrace.o.
2064         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2065         inftarg.o, add inf-ptrace.o and bsd-kvm.o.
2066         (NAT_FILE): Set to nm-bsd.h.
2067         (LOADLIBES): New variable.
2068         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2069         infarg.o, add inf-ptrace.o.
2070         * config/sparc/nm-nbsdaout.h: Remove file.
2071         * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
2072         * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
2073         * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
2074
2075         * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
2076         "fopen-same.h".  Update comment.
2077
2078 2004-10-11  Mark Kettenis  <kettenis@gnu.org>
2079
2080         * i386gnu-nat.c: Include "gdb_string.h".
2081         (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
2082         registers when the floating-point state isn't initialized.
2083         * Makefile.in (i386gnu-nat.o): Update dependencies.
2084
2085 2004-10-11  David Anderson  <davea@sgi.com>
2086
2087         * regcache.c (regcache_raw_read): Comment was missing "to".
2088         Extraneous ' removed.
2089         * gdb_thread_db.h (struct td_thrinfo): ti_lid field
2090         comment now describes use.
2091
2092 2004-10-11  Orjan Friberg  <orjanf@axis.com>
2093
2094         * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2095         (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2096         (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
2097         (cris_sigtramp_frame_sniffer): New functions.
2098         (cris_gdbarch_init): Hook in signal trampoline unwinder.
2099         (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
2100         (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
2101         (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
2102         (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
2103         command.
2104         (cris_version_update): Remove, replace with ...
2105         (set_cris_version): New function.
2106         (struct gdbarch_tdep, cris_mode, cris_mode_update)
2107         (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
2108         (_initialize_cris_tdep): Remove CRIS mode command.
2109         (cris_fpless_backtrace, _initialize_cris_tdep): Remove 
2110         cris-fpless-backtrace command.
2111         (cris_scan_prologue): Fix prologue scanning limit.
2112         (cris_register_type): Update to reflect actual registers.
2113         (cris_register_bytes_ok) Remove.
2114         (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2115         Remove set_gdbarch_deprecated_register_size,
2116         set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2117         
2118 2004-10-10  Andrew Cagney  <cagney@gnu.org>
2119
2120         * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2121         comment.
2122
2123 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2124
2125         * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2126
2127 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2128
2129         * mips-tdep.c (mips16_scan_prologue): Renames
2130         mips16_heuristic_proc_desc. Update comment.
2131         (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2132         (heuristic_proc_desc): Update calls to the 2 functions above.
2133
2134 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2135
2136         * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2137         Update comments. Also immediately return empty cache when the start
2138         address of our function could not be found.
2139         (mips_insn32_frame_cache): Likewise.
2140
2141 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
2142
2143         * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2144         (mips_insn16_frame_cache): Pass frame cache in call to
2145         heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2146         Remove code that became redundant as a consequence.
2147         (mips32_heuristic_proc_desc): No longer compute a fake
2148         procedure descriptor. Compute the full frame cache instead.
2149         Some minor comment reformatting.
2150
2151 2004-10-10  Jim Blandy  <jimb@redhat.com>
2152
2153         * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2154         reader, tracing bytecode stuff): Remove self.
2155
2156 2004-10-10  Mark Kettenis  <kettenis@gnu.org>
2157
2158         * sparc64-linux-tdep.c: Update copyright year.  Don't include
2159         "solib-svr4.h".
2160         (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2161         (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2162         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2163
2164         * sparc-linux-tdep.c: Update copyright year.
2165         (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2166         to struct frame_info *.  Use safe_frame_unwind_memory instead of
2167         deprecated_read_memory_nobpt.
2168         (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2169         Change argumen from CORE_ADDR to struct frame_info *.  Adjust for
2170         changed signature of sparc_linux_sigtramp_start.
2171         (sparc32_linux_pc_in_sigtramp): Remove function.
2172         (sparc32_linux_sigtramp_p): New function.
2173         (sparc32_linux_sigtramp_frame_sniffer): Use
2174         sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2175
2176         * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2177         Remove function.
2178         (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2179
2180         * ada-lang.c (lim_warning): Re-implement as a varargs function.
2181         (decode_packed_array_type, value_subscript_packed)
2182         (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2183         argument in call to lim_warning.
2184
2185         * configure.in: Really disable the TUI if an enhanced curses
2186         library isn't found.
2187         * configure: Regenerate.
2188
2189 2004-10-09  Mark Kettenis  <kettenis@gnu.org>
2190
2191         * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2192         * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2193         * config/i386/nm-nbsdaout.h: Remove file.
2194         * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2195         (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2196         (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2197         (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2198         (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2199         (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2200         (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2201         (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2202         (ldd, ld_un, ld_2): Remove defines.
2203         * config/i386/nm-obsd.h: Likewise.
2204
2205 2004-10-09  Paul Hilfinger  <hilfingr@nile.gnat.com>
2206
2207         * ada-lex.l: Remove useless rule whose right-context clause
2208         causes unreferenced static function warning for yyrealloc.
2209         (ada_flex_use): Remove the artificial reference to yyrealloc.
2210
2211 2004-10-08  Andrew Cagney  <cagney@gnu.org>
2212
2213         * target.h (struct target_ops): Rename to_xfer_memory to
2214         deprecated_xfer_memory.
2215         * target.c: Update.
2216         (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2217         * wince.c: Update.
2218         * win32-nat.c: Update.
2219         * v850ice.c: Update.
2220         * uw-thread.c: Update.
2221         * thread-db.c: Update.
2222         * sol-thread.c: Update.
2223         * remote.c: Update.
2224         * remote-vx.c: Update.
2225         * remote-st.c: Update.
2226         * remote-sim.c: Update.
2227         * remote-sds.c: Update.
2228         * remote-rdp.c: Update.
2229         * remote-rdi.c: Update.
2230         * remote-mips.c: Update.
2231         * remote-m32r-sdi.c: Update.
2232         * remote-e7000.c: Update.
2233         * procfs.c: Update.
2234         * ppc-bdm.c: Update.
2235         * nto-procfs.c: Update.
2236         * monitor.c: Update.
2237         * linux-nat.c: Update.
2238         * inftarg.c: Update.
2239         * hpux-thread.c: Update.
2240         * go32-nat.c: Update.
2241         * gnu-nat.c: Update.
2242         * exec.c: Update.
2243         * corelow.c: Update.
2244         * bsd-kvm.c: Update.
2245         * aix-thread.c: Update.
2246
2247 2004-10-08  Andrew Cagney  <cagney@gnu.org>
2248
2249         * target.c (debug_target): Move to near start of file.
2250         (target_stopped_data_address_p): Re-org logic, add casts.
2251
2252 2004-10-02  Mark Kettenis  <kettenis@gnu.org>
2253
2254         * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2255         (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2256         (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2257         (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2258         New defines.
2259
2260 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
2261
2262         * target.h (to_stopped_data_address): Change prototype to
2263         take a CORE_ADDR pointer and return an int.
2264         * target.c (update_current_target): Change to_stopped_data_address
2265         to match new prototype.
2266         (debug_to_stopped_data_address): Change appropriately.
2267         * breakpoint.c (bpstat_stop_status): Change call to
2268         target_stopped_data_address to use new prototype.
2269         * frv-tdep.c (frv_have_stopped_data_address): New function.
2270         (frv_stopped_data_address): Change to new prototype and
2271         functionality.
2272         * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2273         prototype and functionality.
2274         (ia64_stopped_by_watchpoint): New function.
2275         * i386-nat.c (i386_stopped_data_address): Change to new
2276         prototype and functionality.
2277         (i386_stopped_by_watchpoint): New function.
2278         * remote.c (remote_stopped_data_address): Change to new prototype
2279         and functionality.
2280         * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2281         * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2282         (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2283         * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2284         new i386_stopped_by_watchpoint function.
2285         (i386_stopped_by_watchpoint): New prototype.
2286         (i386_stoppped_data_address): Change to new prototype.
2287         * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2288         new ia64_stopped_by_watchpoint function.
2289         (ia64_stopped_by_watchpoint): New prototype.
2290         (ia64_stopped_data_address): Ditto.
2291
2292 2004-10-08  Paul Hilfinger  <Hilfinger@gnat.com>
2293
2294         * ada-typeprint.c (ada_print_type): Use int_string for printing
2295         modulus of modular type.
2296         * ada-lang.h (ada_modulus): Change return type to unsigned.
2297         * ada-lang.c (ada_language_arch_info): Correct type of 
2298         string_char_type.
2299         (ada_modulus): Return unsigned result.
2300         (ada_lookup_symbol): Remove user disambiguation and modify comment 
2301         accordingly.
2302         
2303 2004-10-08 Eric Botcazou  <ebotcazou@act-europe.fr>     
2304
2305         Committed by Paul Hilfinger.
2306         * ada-lang.c (decode_packed_array): On big-endian targets, 
2307         left-justify the value if it comes with a modular type.
2308
2309 2004-10-08  Joel Brobecker  <brobecker@gnat.com>        
2310
2311         Committed by Paul Hilfinger.
2312         * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2313         (is_name_suffix): Add support for "___JM" suffixes.
2314         (ada_check_typedef): Renames ada_completed_type. 
2315         Update all users of CHECK_TYPEDEF, check_typedef, and 
2316         ada_complete_type to call ada_check_typedef.
2317         * ada-typeprint.c: Likewise.
2318         * ada-valprint.c: Likewise.
2319
2320 2004-10-08  Corinna Vinschen  <vinschen@redhat.com>
2321
2322         * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2323
2324 2004-10-08  Nick Roberts  <nickrob@snap.net.nz>
2325
2326         * MAINTAINERS: Update e-mail address.
2327
2328 2004-10-07  Daniel Jacobowitz  <dan@debian.org>
2329
2330         From Maciej W. Rozycki  <macro@mips.com>:
2331         * mips-tdep.c (mips32_next_pc): Check the register's contents,
2332         not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2333
2334 2004-10-07  Kei Sakamoto  <sakamoto.kei@renesas.com>
2335
2336         * m32r-tdep.c (decode_prologue): Support functions written
2337         in assembler language. Recognize trap instructions as the
2338         end of prologue.
2339         (m32r_frame_unwind_cache): Ditto.
2340         (m32r_skip_prologue): Extend search limit. Quit analyzing
2341         prologue if pc's location is not readable.
2342
2343 2004-10-06  Paul N. Hilfinger  <Hilfinger@gnat.com>
2344
2345         * Makefile.in (.l.c): Do conversions of names of alloc and free 
2346         functions that are done for .y.c files, plus special one
2347         for yy_flex_realloc.  Also, correct missing-file tests here.
2348         * ada-lex.l (malloc, free): Remove macros.
2349         (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2350         xrealloc.
2351         (ada_flex_use): Dummy definition to remove warnings about unused
2352         functions.
2353         * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2354         to suppress warning.
2355         
2356 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2357
2358         * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2359         RETURN_VALUE.
2360         (sh_return_value_fpu): Ditto for CPUs with FPU.
2361         (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2362         RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2363         Install sh_return_value_nofpu resp. sh_return_value_fpu as
2364         RETURN_VALUE functions.
2365
2366 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2367
2368         * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling. 
2369         (sh_pseudo_register_write): Ditto.
2370
2371 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2372
2373         * sh-tdep.c (IS_MACL_STS): New define.
2374         (IS_MOVI20): Ditto.
2375         (IS_MACL_LDS): Ditto.
2376         (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2377         instructions in prologue.
2378         (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2379         instructions in epilogue.
2380
2381 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2382
2383         * sh-tdep.c (SH_NUM_REGS): Define as 67.
2384         (sh_sh_register_name): Add eight empty register names.
2385         (sh_sh3_register_name): Ditto.
2386         (sh_sh3e_register_name): Ditto.
2387         (sh_sh2e_register_name): Ditto.
2388         (sh_sh2a_register_name): New function, defining SH2A register set.
2389         (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2390         in nofpu case.
2391         (sh_sh_dsp_register_name): Add eight empty register names.
2392         (sh_sh3_dsp_register_name): Ditto.
2393         (sh_sh4_register_name): Ditto.
2394         (sh_sh4_nofpu_register_name): Ditto.
2395         (sh_sh4al_dsp_register_name): Ditto.
2396         (sh2a_show_regs): New function.
2397         (sh2a_nofpu_show_regs): New function.
2398         (sh_sh2a_register_type): New function.
2399         (do_bank_register_info): New function.
2400         (sh_print_pseudo_register): Call do_bank_register_info.
2401         Call sh_print_pseudo_register for valid "bank" register.
2402         (sh_sh2a_register_sim_regno): New function.
2403         (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2404         Increment pseudo register count by one for all sh variants with
2405         pseudo registers to accomodate pseudo bank register.
2406         * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2407         IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2408         IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM. 
2409         Increment pseudo register numbers.
2410
2411 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2412
2413         * dwarf2read.c (read_subroutine_type): Call make_function_type
2414         instead of lookup_function_type.
2415
2416 2004-10-05  Jim Blandy  <jimb@redhat.com>
2417
2418         * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2419         (Previous change missed some uses.)
2420
2421 2004-10-05  Andrew Cagney  <cagney@gnu.org>
2422
2423         * target.h (deprecated_child_ops): Rename child_ops.
2424         * wince.c: Update copyright.  Rename child_ops.
2425         * win32-nat.c: Rename child_ops.
2426         * target.c: Rename child_ops.
2427         * rs6000-nat.c: Rename child_ops.
2428         * linux-nat.c: Rename child_ops.
2429         * infttrace.c: Rename child_ops.
2430         * inftarg.c: Rename child_ops.
2431         * infptrace.c: Rename child_ops.
2432         * hppah-nat.c: Update copyright.  Rename child_ops.
2433         * hpux-thread.c: Update copyright.  Rename child_ops.
2434
2435 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
2436
2437         * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2438
2439 2004-10-05  Andrew Cagney  <cagney@gnu.org>
2440
2441         * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2442
2443 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
2444
2445         * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2446         (die_ref_table): Remove.
2447         (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2448         (struct dwarf2_per_cu_data): Add PSYMTAB.  Add a comment describing
2449         the usage of this type.
2450         (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2451         (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2452         (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2453         (dwarf2_create_include_psymtab): Update comment.
2454         (find_partial_die): Remove third argument.  Remove unreachable call
2455         to error ().
2456         (dwarf2_find_containing_comp_unit): Update comments.  Change one
2457         assertion to an error.  Remove an unreachable error.
2458         (dwarf2_find_comp_unit): Update comments.
2459         (type_at_offset): Remove dead code.
2460         (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2461         (store_in_ref_table): Add CU argument.
2462         (follow_die_ref): Take DIE, attribute, and CU arguments.  Handle
2463         inter-compilation-unit references.
2464         (load_full_comp_unit, process_full_comp_unit): New functions, based
2465         on psymtab_to_symtab_1.
2466         (psymtab_to_symtab_1): Use them.
2467         (dwarf2_add_dependence): New function.
2468         (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu.  Always create
2469         a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2470         (partial_die_parent_scope, guess_structure_name): Update for changes
2471         to find_partial_die.
2472         (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2473         (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2474         (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2475         (read_die_and_children): Update call to store_in_ref_table.
2476         (do_free_die_list_cleanup): Remove.
2477         (fixup_partial_die): Update for changes to find_partial_die.
2478         (read_full_die): Handle queueing absolute references.
2479         (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2480         (dwarf2_attr, die_specification, die_type)
2481         (die_containing_type, dwarf2_extension): Update calls to
2482         follow_die_ref.
2483         (dump_die): Update DW_FORM_ref* handling.
2484         (dwarf2_get_ref_die_offset): Likewise.
2485         (free_one_comp_unit): Release the dies list.
2486         (dwarf2_mark_helper): New function.
2487         (dwarf2_mark): Use it.
2488
2489 2004-10-05  Mark Kettenis  <kettenis@jive.nl>
2490
2491         * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2492         when writing to memory.
2493
2494 2004-10-05  Kei Sakamoto  <sakamoto.kei@renesas.com>
2495
2496         * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2497         (m32r_extract_struct_value_address): Delete function.
2498         (m32r_return_value): New function.
2499         (m32r_gdbarch_init): Instead of store_return_value,
2500         extract_return_value, deprecated_extract_struct_value_address
2501         and deprecated_use_struct_convention, set return_value.
2502
2503 2004-10-03  Daniel Jacobowitz  <dan@debian.org>
2504
2505         * dwarf2read.c (read_subrange_type): Add comment for variable
2506         sized arrays.
2507
2508 2004-10-03  Paul Hilfinger  <hilfingr@nile.gnat.com>
2509
2510         * Makefile.in (.l.c): Modify rule for compatibility with recent
2511         versions of flex, and remove most command-line options.
2512         * ada-lex.l: Add %options line in place of -I -i and -s command-line
2513         options.
2514
2515 2004-10-02  Paul N. Hilfinger  <Hilfinger@gnat.com>
2516
2517         Turn on initial Ada support (mainly expression evaluation).
2518         
2519         * Makefile.in (SFILES): Remove ada-tasks.c.
2520         (HFILES_NO_SRCDIR): Add ada-lang.h.
2521         (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2522         (YYOBJ): Add ada-exp.o.
2523         (rule .l.c): Generalize to not mention ada.
2524         * symtab.c: Include ada-lang.h.
2525         (symbol_natural_name, symbol_demangled_name)
2526         (symbol_search_name): Add Ada case.
2527
2528 2004-10-01  Andrew Cagney  <cagney@gnu.org>
2529
2530         * Makefile.in (COMMON_OBS): Add inf-child.o.
2531         * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2532         * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2533         * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2534         * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2535         * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2536         * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2537         * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2538         * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2539         * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2540         * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2541         * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2542         * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2543         * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2544
2545         * target.c (xfer_using_stratum): Change return type to LONGEST.
2546         On each iteration offset, readbuf and writebuf.
2547         * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2548         partial_length, and read/modify/write predicate, update comments.
2549         Pass buffer.word to ptrace write.
2550
2551 2004-10-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
2552
2553         * symfile.c (init_filename_language_table): Add extensions for
2554         Ada.
2555         * defs.h (enum language): Add language_ada.
2556         * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2557         * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2558         (add_symbols_from_enclosing_procs): Make a no-op for now.
2559         (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2560         (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2561         (find_line_in_linetable, find_next_line_in_linetable)
2562         (read_all_symtabs, is_plausible_func_for_line)
2563         (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2564         (is_runtime_sym_defined, check_size): Remove declaration.
2565         (function_name_from_pc, ada_translate_error_message)
2566         (ada_lookup_minimal_symbol): Remove definition.
2567         (ada_add_block_symbols): Remove useless label.
2568         * ada-lang.h (ada_maybe_exception_partial_symbol): Remove 
2569         useless declaration.
2570         (ada_is_exception_sym): Likewise.
2571
2572 2004-09-30    Kei Sakamoto  <sakamoto.kei@renesas.com>
2573
2574         Add m32r-linux support.
2575         * configure.tgt: Add m32r*-*-linux*.
2576         * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2577         and m32r-linux-tdep.c.
2578         (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2579         * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2580         * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2581         m32r-linux-tdep.c.
2582         * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2583         config/m32r/linux.mh, config/m32r/linux.mt,
2584         config/m32r/nm-linux.h: New files.
2585
2586 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
2587
2588         * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2589         (mips32_fetch_instruction): Remove, unused.
2590
2591 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
2592
2593         * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2594         conditions that will always be true.
2595
2596 2004-09-30  Mark Kettenis  <kettenis@gnu.org>
2597
2598         * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2599         (vaxbsd_fetch_inferior_registers): Rename from
2600         fetch_inferior_registers.  Make static.
2601         (vaxbsd_store_inferior_registers): Rename from
2602         store_inferior_registers.  Make static.
2603         (_initialize_vaxbsd_nat): Construct and add target vector.
2604         * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2605         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2606         * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2607         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2608         (NAT_FILE): Remove.
2609         * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2610         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2611         (NAT_FILE): Remove.
2612         * Makefile.in (vaxbsd-nat.o): Update dependencies.
2613
2614         * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2615         (m88kbsd_fetch_inferior_registers): Rename from
2616         fetch_inferior_registers.  Make static.
2617         (m88kbsd_store_inferior_registers): Rename from
2618         store_inferior_registers.  Make static.
2619         (_initialize_m88kbsd_nat): New prototype and function.
2620         * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2621         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2622         (NAT_FILE): Remove.
2623         * Makefile.in (m88kbsd-nat.o): Update dependencies.
2624
2625 2004-09-30  Andrew Cagney  <cagney@gnu.org>
2626
2627         * target.c (target_xfer_partial): New function.
2628         (target_read_memory_partial, target_write_memory_partial) 
2629         (default_xfer_partial, target_read_partial, target_write_partial) 
2630         (xfer_using_stratum): Use.
2631         (debug_to_xfer_partial): Delete function.
2632         (setup_target_debug): Do not override to_xfer_partial.
2633
2634 2004-09-30  Mark Kettenis  <kettenis@chello.nl>
2635
2636         * fork-child.c: Update copyright year.  Fix coding style.
2637
2638 2004-09-29  Mark Kettenis  <kettenis@gnu.org>
2639
2640         * defs.h (msavestring, mstrsave): Remove prototypes.
2641         * utils.c (msavestring, mstrsave): Remove functions.
2642         * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2643         * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2644         of mstrsave.
2645         * source.c (find_and_open_source): Use xstrdup instead of
2646         mstrsave.
2647
2648 2004-09-30  Andrew Cagney  <cagney@gnu.org>
2649
2650         * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2651         (inf_ptrace_xfer_memory): Delete.
2652         * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2653         (target_read_memory, target_write_memory): Use xfer_using_stratum
2654         when target_xfer_partial_p.
2655         (debug_target): Move to start of file.
2656         (target_read_memory_partial, target_write_memory_partial): Use
2657         to_xfer_partial when target_xfer_partial_p.
2658
2659         * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2660         inf_ptrace_xfer_memory with equivalent code.
2661         * inftarg.c (child_xfer_partial): When performing a write, pass
2662         writebuf to child_xfer_memory.
2663
2664         * target.c (target_read_string): Use target_read_memory instead of
2665         target_xfer_memory.
2666
2667 2004-09-29  Andrew Cagney  <cagney@gnu.org>
2668
2669         * infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
2670         the address of status.
2671
2672         * infptrace.c (ptrace_wait): Mention problem with HPUX.
2673         (kill_inferior): Inline ptrace_wait call.
2674         * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2675         * inftarg.c (child_wait): Inline ptrace_wait call.
2676
2677         * target.h (struct target_ops): Delete field to_post_wait.
2678         (target_post_wait): Delete macro.
2679         (child_post_wait): Delete declaration.
2680         * target.c (update_current_target, update_current_target)
2681         (debug_to_post_wait, setup_target_debug): Delete functions and
2682         references.
2683         * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2684         * inftarg.c (child_post_wait): Delete.
2685         (init_child_ops): Do not set to_post_wait.
2686         * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2687         * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2688         * inf-child.c (inf_child_post_wait): Delete.
2689         (inf_child_target): Do not set to_post_wait.
2690         * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2691         (inf_ptrace_target): Do not set to_post_wait.
2692
2693         * wince.c (child_ops): Delete.
2694         * win32-nat.c (child_ops): Delete.
2695
2696         * inftarg.c (inftarg_set_find_memory_regions) 
2697         (inftarg_set_make_corefile_notes): Delete functions.
2698         (_initialize_linux_nat): Inline calls.
2699
2700         * target.h (child_ops): Declare.
2701         * inftarg.c (child_ops): Move from here ...
2702         * target.c (child_ops): ... to here.
2703         * wince.c (child_ops): Delete extern declaration.
2704         * win32-nat.c (child_ops): Delete extern declaration.
2705         * linux-nat.c (child_ops): Delete extern declaration.
2706         * hpux-thread.c (child_ops): Delete extern declaration.
2707
2708 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
2709
2710         * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2711
2712 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
2713
2714         * configure.in: Only set host_makefile_frag when building a native
2715         debugger.
2716         * configure: Regenerate.
2717
2718         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2719         for OpenBSD ELF.
2720
2721 2004-09-28  Andrew Cagney  <cagney@gnu.org>
2722
2723         Problem identified by Paul Hilfinger.
2724         * Makefile.in (ada_lex_c): Define.
2725         (ada-lex.o): Delete rule.
2726
2727         * linux-proc.c: Delete file.
2728         * Makefile.in: Update.
2729         * config/sparc/linux64.mh (NATDEPFILES): 
2730         * config/sparc/linux.mh (NATDEPFILES): Update.
2731         * config/s390/s390.mh (NATDEPFILES): Update.
2732         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2733         * config/powerpc/linux.mh (NATDEPFILES): Update.
2734         * config/pa/linux.mh (NATDEPFILES): Update.
2735         * config/mips/linux.mh (NATDEPFILES): Update.
2736         * config/m68k/linux.mh (NATDEPFILES): Update.
2737         * config/ia64/linux.mh (NATDEPFILES): Update.
2738         * config/i386/linux64.mh (NATDEPFILES): Update.
2739         * config/i386/linux.mh (NATDEPFILES): Update.
2740         * config/arm/linux.mh (NATDEPFILES): Update.
2741         * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2742         * linux-nat.c: Update copyright.  Include <sys/param.h>,
2743         <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2744         "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2745         (O_LARGEFILE): Possibly define.
2746         (_initialize_linux_nat, linux_proc_pending_signals)
2747         (add_line_to_sigset, linux_proc_xfer_memory)
2748         (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2749         (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2750         (struct linux_corefile_thread_data)
2751         (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2752         (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2753
2754 2004-09-16  Andrew Cagney  <cagney@gnu.org>
2755
2756         * lin-lwp.c: Delete file.
2757         * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2758         <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2759         (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2760         (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2761         (linux_nat_attach, detach_callback, linux_nat_detach)
2762         (resume_callback, resume_clear_callback, linux_nat_resume)
2763         (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2764         (stop_wait_callback, linux_nat_has_pending, flush_callback)
2765         (status_callback, running_callback, count_events_callback)
2766         (select_singlestep_lwp_callback, select_event_lwp_callback)
2767         (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2768         (child_wait, stop_and_resume_callback, linux_nat_wait)
2769         (kill_callback, kill_wait_callback, linux_nat_kill)
2770         (linux_nat_create_inferior, linux_nat_mourn_inferior)
2771         (linux_nat_xfer_memory, linux_nat_thread_alive)
2772         (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2773         (_initialize_linux_nat): New functions.
2774         * Makefile.in: Update all dependencies.
2775         * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2776         * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2777         * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2778         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2779         * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2780         * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2781         * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2782         * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2783         * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2784         * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2785         * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2786         * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2787         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2788
2789 2004-09-27  Mark Kettenis  <kettenis@gnu.org>
2790
2791         * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2792         config/i386/obsd64.mh (NAT_FILE): Remove variable.
2793
2794         * configure.in: Don't comment out NATDEPFILES in the generated
2795         Makefile if NAT_FILE is unset.
2796         * configure: Regenerate.
2797
2798 2004-09-27  Andrew Cagney  <cagney@gnu.org>
2799
2800         * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2801         (insert_step_resume_breakpoint): Delete.
2802         (insert_step_resume_breakpoint_at_frame): New function.
2803         (insert_step_resume_breakpoint_at_sal): New function.
2804         (handle_inferior_event, step_into_function)
2805         (insert_step_resume_breakpoint): Simplify by using same.
2806
2807         * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2808
2809 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
2810
2811         * fbsd-proc.c: Remove file.
2812         * Makefile.in (fbsd-proc.o): Remove dependency.
2813
2814         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2815         code together.
2816
2817         * config/i386/nm-fbsd64.h: Remove file.
2818         * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2819
2820 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
2821
2822         * amd64-nat.h: Update copyright year.
2823         (amd64bsd_target): New prototype.
2824         * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2825         (amd64bsd_target): New function.
2826         (amd64bsd_fetch_inferior_registers): Rename from
2827         fetch_inferior_registers.  Make static.
2828         (amd64bsd_store_inferior_registers): Rename from
2829         store_inferior_registers.  Make static.
2830         * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2831         (_initialize_amd64fbsd_nat): Construct and add target vector.
2832         * amd64nbsd-nat.o: Include "target.h".
2833         (_initialize_amd64nbsd_nat): Construct and add target vector.
2834         * amd64obsd-nat.c: Include "target.h".
2835         (_initialize_amd64obsd_nat): Construct and add target vector.
2836         * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2837         * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2838         inftarg.o and fbsd-proc.o.  Add inf-child.o, inf-ptrace.o and
2839         fbsd-nat.o.
2840         * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2841         Remove infptrace.o and inftarg.o.  Add inf-child.o and
2842         inf-ptrace.o.
2843         * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2844         (amd64obsd-nat.o): Update dependencies.
2845
2846 2004-09-25  Mark Kettenis  <kettenis@gnu.org>
2847
2848         * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2849         * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2850         * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2851         * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2852         * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2853
2854         * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2855         Inline attach call.
2856         (inf_ptrace_detach): Inline detach call.
2857
2858         * configure.in: Check for waddstr instead of mvwaddstr when
2859         searching for curses library.  Check for wborder.
2860         * configure, config.in: Regenerate.
2861         * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2862         available.
2863
2864         * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2865
2866 2004-09-24  Robert Picco <Robert.Picco@hp.com>
2867
2868         Committed by Andrew Cagney.
2869         * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2870         (show_remote_protocol_p_packet_cmd): New.  Implement 'p' packet.
2871         configuration.
2872         (fetch_register_using_p): Implement 'p' packet.  Based on code by
2873         Fernando Nasser.
2874         (remote_fetch_registers): Call fetch_register_using_p.
2875         (init_all_packet_configs, show_remote_cmd)
2876         (_initialize_remote): Add p-packet.
2877
2878 2004-09-24  Mark Kettenis  <kettenis@gnu.org>
2879
2880         * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2881         instead of call_ptrace.  Call wait directly instead of
2882         ptrace_wait.
2883         (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2884         (inf_ptrace_wait): Inline ptrace_wait call.
2885
2886 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
2887
2888         * Makefile.in (.y.c): Revert previous change.  ../ylwrap was 
2889         rolled back instead.
2890
2891 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
2892
2893         * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2894         the new argument order.
2895
2896 2004-09-23  Corinna Vinschen  <vinschen@redhat.com>
2897
2898         * MAINTAINERS: Remove "broken" from XStormy16 entry.
2899         * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2900         (struct gdbarch_tdep): Remove.
2901         (struct xstormy16_frame_cache): New frame cache structure.
2902         (xstormy16_register_byte, xstormy16_register_raw_size)
2903         (xstormy16_reg_virtual_type, xstormy16_register_type)
2904         (xstormy16_push_arguments, xstormy16_push_return_address)
2905         (xstormy16_pop_frame, xstormy16_store_struct_return)
2906         (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2907         (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2908         (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2909         (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2910         (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2911         (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2912         (xstormy16_use_struct_convention): Drop gcc_p parameter.
2913         (xstormy16_extract_return_value, xstormy16_store_return_value):
2914         Regcachify.  Drop useless struct convention handling.
2915         (xstormy16_register_type, xstormy16_return_value)
2916         (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2917         (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2918         (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2919         (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2920         (xstormy16_unwind_sp, xstormy16_unwind_pc)
2921         (xstormy16_unwind_dummy_id) : New functions.
2922         (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2923         of xstormy16_scan_prologue.
2924         (xstormy16_frame_unwind): New frame_unwind structure.
2925         (xstormy16_frame_base): New frame_base structure.
2926         (xstormy16_gdbarch_init): Accomodate all of the above changes.
2927         Reshuffle for better readability.  Also add dwarf2_frame_sniffer.
2928
2929 2004-09-22  Mark Kettenis  <kettenis@gnu.org>
2930
2931         * language.c (language_gdbarch_post_init): Fix off-by one error.
2932
2933 2004-09-21  Daniel Jacobowitz  <dan@debian.org>
2934
2935         * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2936         (struct dwarf2_offset_and_type): New.
2937         (set_die_type, reset_die_and_siblings_types, get_die_type)
2938         (offset_and_type_hash, offset_and_type_eq): New functions.
2939         (read_structure_type, read_enumeration_type, read_array_type)
2940         (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2941         (read_tag_reference_type, read_tag_const_type)
2942         (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2943         (read_typedef, read_base_type, read_subrange_type): Use
2944         set_die_type.
2945
2946 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
2947
2948         * Makefile.in (dwarf2read.o): Update dependencies.
2949         * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2950         (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2951         and read_in_chain.
2952         (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2953         mark, and has_form_ref_addr.
2954         (struct dwarf2_per_cu_data): New.
2955         (dwarf2_max_cache_age): New.
2956         (dwarf2_build_psymtabs_hard): Free cached compilation units
2957         after loading.  Create and manage the list of compilation units.
2958         Remove unnecessary NULL initialization.  Fix indentation.
2959         (psymtab_to_symtab_1): Initialize all of CU.
2960         (dwarf2_read_abbrevs): Set has_form_ref_addr.
2961         (find_partial_die): Use dwarf2_find_containing_comp_unit
2962         and load_comp_unit.
2963         (free_stack_comp_unit): Update comments.  Clear the per-cu
2964         pointer.  Handle aging.
2965         (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2966         (age_cached_comp_units, free_one_cached_comp_unit)
2967         (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2968         (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2969         (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2970         (show_dwarf2_cmd): New.
2971         (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2972         and "maint show dwarf2 max-cache-age".
2973         * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2974         externs.
2975         * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2976         global.
2977
2978 2004-09-20  Jeff Johnston  <jjohnstn@redhat.com>
2979
2980         * dwarf2read.c (typename_concat): Change prototype to accept obstack
2981         and dwarf2_cu struct pointer as arguments.  Change function to use
2982         obstack if provided and use dwarf2_cu to determine language-specific
2983         separator.
2984         (partial_die_parent_scope): Change comment to include java.  Use
2985         new version of typename_concat instead of obconcat.
2986         (partial_die_full_name): Use typename_concat.
2987         (read_namespace): Ditto.
2988         (read_enumeration_type): Use typename_concat instead of obconcat.
2989         (new_symbol): Ditto.
2990         (add_partial_symbol): Enhance tests for C++ to also test for Java.
2991         (guess_structure_name): Ditto.
2992         (read_subroutine_type): Ditto.
2993         (read_structure_type): Ditto.
2994         (is_vtable_name): Add Java support.
2995         (determine_class_name): Switch to new typename_concat call.
2996         (determine_prefix): Switch to new typename_concat call.
2997         * jv-exp.y (FuncStart): New pattern.
2998         (MethodInvocation): Add support for simple function calls.  Change
2999         warning message for other forms of inferior call currently not
3000         supported.
3001         * valarith.c (value_subscript): Treat an array with upper-bound
3002         of -1 as unknown size.
3003
3004 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
3005
3006         * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
3007         (lookup_partial_symtab): Use symtab_to_fullname.
3008
3009 2004-09-19  Jim Blandy  <jimb@redhat.com>
3010
3011         * minsyms.c (lookup_minimal_symbol): Doc fix.
3012
3013 2004-09-20  Andrew Cagney  <cagney@gnu.org>
3014
3015         * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
3016         CHILD_RESUME.
3017         * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
3018         * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
3019         KILL_INFERIOR.
3020         * infptrace.c: Update.
3021
3022 2004-09-19  Daniel Jacobowitz  <dan@debian.org>
3023
3024         * symtab.c (output_source_filename): Mark first argument as const.
3025         (sources_info): Use symtab_to_fullname and psymtab_to_fullname
3026         for "info sources" output.
3027
3028 2004-09-20  Mark Kettenis  <kettenis@gnu.org>
3029
3030         * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
3031         <machine/vmparam.h>.
3032         (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
3033         (register_u_addr): Remove prototype.
3034
3035 2004-09-19  Mark Kettenis  <kettenis@gnu.org>
3036
3037         * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
3038         (i386bsd_fetch_inferior_registers): Rename from
3039         fetch_inferior_registers.  Make static.
3040         (i386bsd_store_inferior_registers): Rename from
3041         store_inferior_registers.  Make static.
3042         (i386bsd_target): New function.
3043         * i386bsd-nat.h: New file.
3044         * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
3045         "i386bsd-nat.h".
3046         (i386fbsd_resume): Rename from child_resume.  Make static.
3047         (_initialize_i386fbsd_nat): Construct and add target vector.
3048         * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
3049         (_initialize_i386nbsd_nat): Construct and add target vector.
3050         * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
3051         Remove defines.
3052         * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
3053         and fbsd-nat.o.  Remove inftarg.o and fbsd-proc.o.
3054         * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
3055         inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
3056         (LOADLIBES): New variable.
3057         * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
3058         inf-ptrace.o.  Remove inftarg.o.
3059         * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
3060         inf-ptrace.o. Remove inftarg.o.
3061         * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
3062         inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
3063         (LOADLIBES): New variable.
3064         * Makefile.in (i386bsd_nat_h): New variable.
3065         (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
3066         dependencies.
3067
3068         * sparc64nbsd-tdep.c: Include "objfiles.h".
3069         (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
3070         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
3071         svr4_lp64_fetch_link_map_offsets.
3072         * sparc64obsd-tdep.c: Include "objfiles.h".  Don't include
3073         "nbsd-tdep.h".
3074         (sparc64obsd_init_abi): Set in_solib_call_trampoline and
3075         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
3076         svr4_lp64_fetch_link_map_offsets.
3077         * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
3078         dependencies.
3079
3080         * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
3081         * fbsd-nat.h: New file.
3082         * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
3083         (fbsd_nat_h): New variable.
3084         (fbsd-nat.o): New dependency.
3085
3086         * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
3087         config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
3088
3089         * inf-child.c (inf_child_post_wait): Remove stray whitespace in
3090         comment.
3091
3092 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
3093         
3094         * ada-exp.y (type_int): New function to add layer of abstraction
3095         around references to expression types.
3096         (type_long): Ditto.
3097         (type_long_long): Ditto.
3098         (type_float): Ditto.
3099         (type_double): Ditto.
3100         (type_long_double): Ditto.
3101         (type_char): Ditto.
3102         (type_system_address): Ditto.
3103         (simple_exp): Use type_* functions in place of builtin_* 
3104         variables.
3105         (exp): Ditto.
3106         (write_var_from_name): Ditto.
3107         (write_object_renaming): Ditto.
3108         * ada-lang.c (ada_create_fundamental_type): Remove redundant
3109         declaration.
3110         (build_ada_types): Remove, replacing with...
3111         (ada_language_arch_info): New function to initialize primitive
3112         type vector in language_arch_info.
3113         (ada_array_length): Remove use of builtin_type_ada_int.
3114         (value_pos_atr): Ditto.
3115         (ada_evaluate_subexp): Ditto.
3116         (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3117         builtin_type_ada_long_long, builtin_type_ada_char, 
3118         builtin_type_ada_float, builtin_type_ada_double, 
3119         builtin_type_ada_long_double, builtin_type_ada_natural,
3120         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3121         (ada_builtin_types): Remove.
3122         (ada_language_defn): Remove entries for la_builtin_type_vector and
3123         string_char_type and use ada_language_arch_info.
3124         (_initialize_ada_language): Do type-vector initialization along
3125         the lines of c-lang.c.
3126         (ada_create_fundamental_type): Break up line.
3127         (ada_dump_symtab): Remove unused function.
3128         (enum ada_primitive_types): Define.
3129         * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short, 
3130         builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char, 
3131         builtin_type_ada_float, builtin_type_ada_double, 
3132         builtin_type_ada_long_double, builtin_type_ada_natural,
3133         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3134         * ada-lex.l: Use type_* functions in place of builtin_* variables.
3135         (processInt): Ditto.
3136         (processReal): Ditto.
3137         (name_lookup): Ditto.
3138         * ada-typeprint.c (print_range): Use builtin_type_int, not
3139         builtin_type_ada_int.
3140         
3141 2004-09-18  Mark Kettenis  <kettenis@gnu.org>
3142
3143         * i386-tdep.c (i386_register_name): Rename regno to regnum.
3144
3145         * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3146         * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3147         * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3148         * configure.in: Improve checks for curses library by checking for
3149         mvwaddstr instead of initscr.  Drop HP curses in favour of
3150         standard curses on HP-UX.
3151         * configure: Regenerated.
3152
3153 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
3154
3155         * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3156         ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1): 
3157         Minor formatting changes.
3158         (empty_array): Slight rewrite for formatting.
3159         (emit_char,parse,ada_language_defn,build_ada_types,
3160         ada_is_exception_sym, _initialize_ada_language): Move 
3161         definitions around.
3162         (ada_dump_symtab): Remove unused definition.
3163         (ada_maybe_exception_partial_symbol): Remove unused definition.
3164
3165 2004-09-16  Andrew Cagney  <cagney@gnu.org>
3166
3167         * inf-child.c: Include "gdb_string.h".
3168         (inf_child_core_file_to_sym_file): Delete.
3169         (inf_child_target): Set to_fetch_registers and to_store_registers.
3170         * inf-ptrace.c: Include "gdb_string.h".
3171         * Makefile.in: Update all dependencies.
3172
3173         * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3174         problem.
3175
3176 2004-09-14  Joel Brobecker  <brobecker@gnat.com>
3177
3178         * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3179         call to heuristic_proc_desc. Remove code that became redundant
3180         as a consequence.
3181         (read_next_frame_reg): Remove special case for SP_REGNUM.
3182         (set_reg_offset): Fix small typo.
3183         (reset_saved_regs): New procedure.
3184         (mips32_heuristic_proc_desc): No longer compute a fake
3185         procedure descriptor. Compute the full frame cache instead.
3186         Some minor comment reformatting.
3187
3188 2004-09-14  Andrew Cagney  <cagney@gnu.org>
3189
3190         * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3191         maintainer.
3192
3193         * thread-db.c (thread_db_new_objfile): Assume that there is a
3194         child process.
3195
3196 2004-09-13  Jim Blandy  <jimb@redhat.com>
3197
3198         * valops.c (value_assign): Move 'buffer' to the enclosing block,
3199         so that its storage isn't referenced after its lifetime ends.
3200
3201         * valops.c (value_assign): 'use_buffer' is initialized to zero,
3202         and never assigned to.   Delete it, and the 'if (use_buffer)'
3203         clauses.  Delete 'raw_buffer', since it is now unused.
3204
3205 2004-09-13  Andrew Cagney  <cagney@gnu.org>
3206
3207         * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3208         * configure: Re-generate.
3209         * nlm/Makefile.in (TAGS): Update.
3210         * Makefile.in (TAGS): Update.
3211         * config/vax/nbsd.mt (TM_FILE): Update.
3212         * config/sparc/vxworks.mt (TM_FILE): Update.
3213         * config/sparc/sol2.mt (TM_FILE): Update.
3214         * config/sparc/sol2-64.mt (TM_FILE): Update.
3215         * config/sparc/obsd64.mt (TM_FILE): Update.
3216         * config/sparc/obsd.mt (TM_FILE): Update.
3217         * config/sparc/nbsd64.mt (TM_FILE): Update.
3218         * config/sparc/nbsd.mt (TM_FILE): Update.
3219         * config/sparc/linux64.mt (TM_FILE): Update.
3220         * config/sparc/linux.mt (TM_FILE): Update.
3221         * config/sparc/fbsd.mt (TM_FILE): Update.
3222         * config/sh/wince.mt (TM_FILE): Update.
3223         * config/sh/nbsd.mt (TM_FILE): Update.
3224         * config/sh/linux.mt (TM_FILE): Update.
3225         * config/sh/embed.mt (TM_FILE): Update.
3226         * config/s390/s390.mt (TM_FILE): Update.
3227         * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3228         * config/rs6000/rs6000.mt (TM_FILE): Update.
3229         * config/rs6000/aix4.mt (TM_FILE): Update.
3230         * config/powerpc/vxworks.mt (TM_FILE): Update.
3231         * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3232         * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3233         * config/powerpc/obsd.mt (TM_FILE): Update.
3234         * config/powerpc/nbsd.mt (TM_FILE): Update.
3235         * config/powerpc/linux.mt (TM_FILE): Update.
3236         * config/powerpc/aix.mt (TM_FILE): Update.
3237         * config/pa/obsd.mt (TM_FILE): Update.
3238         * config/pa/linux.mt (TM_FILE): Update.
3239         * config/pa/hppahpux.mt (TM_FILE): Update.
3240         * config/pa/hppa64.mt (TM_FILE): Update.
3241         * config/pa/hppa.mt (TM_FILE): Update.
3242         * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3243         * config/mips/wince.mt (TM_FILE): Update.
3244         * config/mips/vxmips.mt (TM_FILE): Update.
3245         * config/mips/nbsd.mt (TM_FILE): Update.
3246         * config/mips/linux.mt (TM_FILE): Update.
3247         * config/mips/irix6.mt (TM_FILE): Update.
3248         * config/mips/irix5.mt (TM_FILE): Update.
3249         * config/mips/embed.mt (TM_FILE): Update.
3250         * config/m68k/vxworks68.mt (TM_FILE): Update.
3251         * config/m68k/st2000.mt (TM_FILE): Update.
3252         * config/m68k/os68k.mt (TM_FILE): Update.
3253         * config/m68k/obsd.mt (TM_FILE): Update.
3254         * config/m68k/nbsd.mt (TM_FILE): Update.
3255         * config/m68k/monitor.mt (TM_FILE): Update.
3256         * config/m68k/linux.mt (TM_FILE): Update.
3257         * config/m68k/cisco.mt (TM_FILE): Update.
3258         * config/ia64/linux.mt (TM_FILE): Update.
3259         * config/ia64/aix.mt (TM_FILE): Update.
3260         * config/ia64/ia64.mt (TM_FILE): Update.
3261         * config/i386/vxworks.mt (TM_FILE): Update.
3262         * config/i386/obsd64.mt (TM_FILE): Update.
3263         * config/i386/obsd.mt (TM_FILE): Update.
3264         * config/i386/nto.mt (TM_FILE): Update.
3265         * config/i386/nbsd64.mt (TM_FILE): Update.
3266         * config/i386/nbsd.mt (TM_FILE): Update.
3267         * config/i386/linux64.mt (TM_FILE): Update.
3268         * config/i386/linux.mt (TM_FILE): Update.
3269         * config/i386/i386sol2.mt (TM_FILE): Update.
3270         * config/i386/i386lynx.mt (TM_FILE): Update.
3271         * config/i386/fbsd64.mt (TM_FILE): Update.
3272         * config/i386/fbsd.mt (TM_FILE): Update.
3273         * config/i386/cygwin.mt (TM_FILE): Update.
3274         * config/h8300/h8300.mt (TM_FILE): Update.
3275         * config/frv/frv.mt (TM_FILE): Update.
3276         * config/cris/cris.mt (TM_FILE): Update.
3277         * config/arm/wince.mt (TM_FILE): Update.
3278         * config/arm/nbsd.mt (TM_FILE): Update.
3279         * config/arm/linux.mt (TM_FILE): Update.
3280         * config/arm/embed.mt (TM_FILE): Update.
3281         * config/alpha/nbsd.mt (TM_FILE): Update.
3282         * config/alpha/fbsd.mt (TM_FILE): Update.
3283         * config/alpha/alpha.mt (TM_FILE): Update.
3284         * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3285         * config/alpha/alpha-linux.mt (TM_FILE): Update.
3286
3287         Eliminate event_loop_p, always has the value 1.
3288         * defs.h (event_loop_p): Delete macro.
3289         * breakpoint.c (until_break_command): Simplify.
3290         * utils.c (prompt_for_continue): Simplify.
3291         * tracepoint.c (read_actions): Simplify.
3292         * top.c (throw_exception, execute_command, gdb_readline_wrapper) 
3293         (gdb_rl_operate_and_get_next, command_line_input, get_prompt) 
3294         (set_prompt, init_main): Simplify.
3295         (init_signals, disconnect): Delete, unused.
3296         * remote.c (remote_async_resume) 
3297         (extended_remote_async_create_inferior): Simplify.
3298         * mi/mi-interp.c (mi_input): Delete, unused.
3299         (mi_interpreter_resume, mi_command_loop): Simplify.
3300         * interps.c (current_interp_command_loop): Simplify.
3301         * infrun.c (proceed): Simplify.
3302         * infcmd.c (run_command, continue_command, step_1, jump_command)
3303         (until_command, advance_command, finish_command)
3304         (interrupt_target_command): Simplify.
3305         * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3306
3307         * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3308         * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3309         * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3310         * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3311         * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3312         * mips-tdep.c (mips_dump_tdep): Do not print same.
3313
3314 2004-09-12  Andrew Cagney  <cagney@gnu.org>
3315
3316         * valprint.c (print_longest): Use fputs_filtered.  Make "val"
3317         const.
3318         * Makefile.in (valprint.o): Delete explict rule.
3319
3320         * config/m68k/nbsdelf.mh: Add missing trailing newline.  Problem
3321         reported by Dave Anderson.
3322
3323         * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3324
3325         * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3326
3327 2004-09-12  Salvador E. Tropea  <set@users.sf.net>
3328             Andrew Cagney  <cagney@gnu.org>
3329
3330         * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3331         (mi_cmd_data_list_register_values)
3332         (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3333         the register number computation.
3334
3335 2004-09-12  Andrew Cagney  <cagney@gnu.org>
3336
3337         * ppcnbsd-nat.c: Include "inf-ptrace.h".
3338         (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3339         (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3340         (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3341         target.
3342         * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3343         inf-ptrace.o and inf-child.o.
3344         * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3345         * Makefile.in: Update dependencies.
3346         
3347 2004-09-11  Andrew Cagney  <cagney@gnu.org>
3348
3349         * language.c (hex_string, hex_string_custom): Move from here ...
3350         * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3351         (CELLSIZE): Increase to 50.
3352         * language.h (hex_string, hex_string_custom): Move from here ...
3353         * defs.h: ... to here.
3354         * Makefile.in: Update all dependencies.
3355         
3356 2004-09-11  Paul N. Hilfinger  <hilfinger@gnat.com>
3357
3358         * language.c (local_hex_format_custom): Remove.
3359         (local_hex_string): Rename to hex_string, use C format, and move to
3360         utils.c
3361         (local_hex_string_custom): Rename to hex_string_custom and change
3362         interface.  Now uses C format.  Move to utils.c
3363         (local_octal_format_custom): Remove.
3364         (local_decimal_format_custom): Remove.
3365         (unknown_language_defn): Remove language-specific number 
3366         formatting entries.
3367         (auto_language_defn): Ditto.
3368         (local_language_defn): Ditto.
3369         * language.h (struct language_format_info): Delete declaration.
3370         (struct language_defn): Remove language_format_info fields
3371         la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3372         (local_binary_format): Remove macro.
3373         (local_binary_format_prefix): Remove macro.
3374         (local_binary_format_specifier): Remove macro.
3375         (local_binary_format_suffix): Remove macro.
3376         (local_octal_format): Remove macro.
3377         (local_octal_format_prefix): Remove macro.
3378         (local_octal_format_specifier): Remove macro.
3379         (local_octal_format_suffix): Remove macro.
3380         (local_decimal_format): Remove macro.
3381         (local_decimal_format_prefix): Remove macro.
3382         (local_decimal_format_specifier): Remove macro.
3383         (local_decimal_format_suffix): Remove macro.
3384         (local_hex_format): Remove macro.
3385         (local_hex_format_prefix): Remove macro.
3386         (local_hex_format_specifier): Remove macro.
3387         (local_hex_format_suffix): Remove macro.
3388         (local_decimal_format_custom): Remove.
3389         (local_octal_format_custom): Remove.
3390         (local_hex_format_custom): Remove.
3391         (local_hex_string): Rename to hex_string and move to defs.h.
3392         (local_hex_string_custom): Rename to hex_string_custom, change
3393         interface, and move to defs.h.
3394         * utils.c: (int_string): New function.
3395         (hex_string): New function (from language.c).
3396         (hex_string_custom): New function (from language.c).
3397         (octal2str): New function.
3398         (decimal2str): Add width parameter.
3399         (paddr_u): Use new decimal2str interface.
3400         (paddr_d): Ditto.
3401         * defs.h (hex_string): Declare.
3402         (hex_string_custom): Declare.
3403         (int_string): Declare.
3404         * printcmd.c (print_scalar_formatted): Remove localized binary
3405         formatting.
3406         * valprint.c (print_longest): Use int_string.
3407         (print_floating): Use C hex format.
3408         (print_hex_chars): Ditto.
3409         (print_binary_chars): Remove language-specific formatting.
3410         (print_octal_chars): Use C octal format.
3411         (print_decimal_chars): Delocalize format.
3412         (print_decimal): Remove.
3413         * ada-lang.c (ada_language_defn): Remove language-specific number 
3414         formatting entries.
3415         * p-lang.c (pascal_language_defn): Ditto.
3416         * c-lang.c (c_language_defn): Ditto.
3417         (cplus_language_defn): Ditto.
3418         (asm_language_defn): Ditto.
3419         (minimal_language_defn): Ditto.
3420         * f-lang.c (f_language_defn): Ditto.
3421         * jv-lang.c (java_language_defn): Ditto.
3422         * m2-lang.c (m2_language_defn): Ditto.
3423         * scm-lang.c (scm_language_defn): Ditto.
3424         * objc-lang.c (objc_language_defn): Ditto.
3425         * memattr.c (mem_info_command): Use renamed hex_string_custom with
3426         new interface.
3427         * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3428         * ui-out.c (ui_out_field_core_addr): Ditto.
3429         * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3430         * exec.c (print_section_info): Ditto.
3431         * i387-tdep.c (print_i387_status_word): Ditto.
3432         (print_i387_control_word): Ditto.
3433         (i387_print_float_info): Ditto.
3434         * maint.c (maint_print_section_info): Ditto.
3435         * solib.c (info_sharedlibrary_command): Ditto.
3436         * somsolib.c (som_sharedlibrary_info_command): Ditto.
3437         * symtab.c (print_msymbol_info): Ditto.
3438         * tracepoint.c (tracepoints_info): Ditto.
3439         * solib-frv.c (lm_base): Ditto.
3440         (frv_current_sos): Ditto.
3441         (enable_break2): Ditto.
3442         (enable_break): Ditto.
3443         * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3444         (process_one_symbol): Ditto.
3445         * infcmd.c (program_info): Ditto.
3446         * mdebugread.c (parse_partial_symbols): Ditto.
3447         * symfile.c (add_symbol_file_command): Ditto.
3448         * cli/cli-cmds.c (edit_command): Ditto.
3449         (list_command): Ditto.
3450         * infcall.c (call_function_by_hand): Ditto.
3451         * remote-vx.c (vx_run_files_info): Ditto.
3452         (vx_wait): Ditto.
3453         (vx_attach): Ditto.
3454         (vx_detach): Ditto.
3455         (vx_kill): Ditto.
3456         * aix-thread.c (pdc_symbol_addrs): Ditto.
3457         (pdc_read_regs): Ditto.
3458         (pdc_write_regs): Ditto.
3459         (pdc_read_data): Ditto.
3460         (pdc_write_data): Ditto.
3461         * d10v-tdep.c (display_trace): Ditto.
3462         * rs6000-nat.c (find_toc_address): Ditto.
3463         * aix-thread.c: Don't include language.h.
3464         * buildsym.c: Ditto.
3465         * dbxread.c: Ditto.
3466         * mdebugread.c: Ditto.
3467         * rs6000-nat.c: Ditto.
3468         * buildsym.c (make_blockvector): Use renamed hex_string.
3469         
3470 2004-09-10  Jason Molenda  (jmolenda@apple.com)
3471
3472         * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3473         chars after 'if' or 'while' commands in user-defined commands.
3474
3475 2004-09-08  Jim Blandy  <jimb@redhat.com>
3476
3477         Fix bug reported and analyzed by Olivier Crete:
3478         * symfile.c (copy_section_addr_info): New function.
3479         (symbol_file_add_with_addrs_or_offsets): Use it to save the
3480         original set of address arguments, instead of handwritten code
3481         that uses one length to allocate and a different length to
3482         initialize.  Use make_cleanup_free_section_addr_info.
3483         * symfile.h (copy_section_addr_info): New declaration.
3484         * utils.c: #include "symfile.h".
3485         (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3486         New functions.
3487         * defs.h (make_cleanup_free_section_addr_info): New declaration.
3488         * Makefile.in (utils.o): Update dependencies.
3489
3490 2004-09-08  Andrew Cagney  <cagney@gnu.org>
3491
3492         * thread-db.c (keep_thread_db): Delete.
3493         (thread_db_new_objfile, thread_db_create_inferior)
3494         (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3495
3496 2004-09-08  Mark Kettenis  <kettenis@gnu.org>
3497
3498         * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3499         (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3500         (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3501         (i386_frameless_signal_p): Remove prototype.
3502         * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3503         (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3504         I386_SSE_NUM_REGS.
3505         * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3506         instead of FP0_REGNUM.
3507         (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3508         of FP0_REGNUM and FPC_REGNUM.
3509
3510         * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3511         (sunos_solib_create_inferior_hook): Don't call
3512         sunos_relocate_main_executable.
3513
3514         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3515         solib_svr4_fetch_link_map_offsets to
3516         svr4_ilp32_fetch_link_map_offsets.
3517         * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3518         (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3519         svr4_ilp32_fetch_link_map_offsets.
3520         * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3521
3522 2004-09-07  Jim Blandy  <jimb@redhat.com>
3523
3524         * frame.h (frame_register): Doc fix.
3525
3526 2004-09-07  Andrew Cagney  <cagney@gnu.org>
3527
3528         * vx-share/wait.h: Delete #ifdef USG.
3529         * utils.c (request_quit): Ditto.
3530         * tui/tui.c (tui_reset): Ditto.
3531         * remote.c: Ditto.
3532         * remote-sds.c: Ditto.
3533         * remote-rdi.c: Ditto.
3534         * mdebugread.c: Ditto.
3535         * m68klinux-nat.c: Ditto.
3536         * infttrace.c: Ditto.
3537         * infptrace.c: Ditto.
3538         * i386v-nat.c: Ditto.
3539         * exec.c: Ditto.
3540         * dbxread.c: Ditto.
3541         * core-aout.c: Ditto.
3542
3543 2004-09-05  Joel Brobecker  <brobecker@gnat.com>
3544
3545         * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3546         heuristic_proc_desc.
3547         (mips_insn32_frame_cache): Likewise.
3548
3549 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3550
3551         * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3552         left behind by error.
3553
3554 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3555
3556         * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3557         * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3558
3559 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3560
3561         * config/rs6000/xm-aix4.h: Remove this file.
3562         * config/rs6000/aix4.mh (XM_FILE): Delete.
3563
3564 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3565
3566         * config/rs6000/xm-rs6000.h: Remove this file.
3567         * config/rs6000/rs6000.mh (XM_FILE): Remove.
3568
3569 2004-09-03  Andrew Cagney  <cagney@gnu.org>
3570
3571         * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3572         (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3573         only use.
3574
3575         * mips-tdep.c (temp_saved_regs): Delete.
3576         (set_reg_offset): Replace saved_regs parameter with this_cache.
3577         (heuristic_proc_desc, mips16_heuristic_proc_desc)
3578         (mips32_heuristic_proc_desc): Add this_cache parameter.
3579         (mips_insn32_frame_cache, mips_insn16_frame_cache)
3580         (after_prologue): Pass a NULL this_cache.
3581
3582         * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3583         non-kernel trap prologues.
3584
3585         * mips-tdep.c (find_proc_desc): Delete function.
3586         (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3587         simplify.
3588         (mips_insn16_frame_cache): Replace find_proc_desc with code from
3589         mips_insn32_frame_cache.
3590
3591         * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3592         Simplify as NEXT_FRAME is NULL.
3593         (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3594
3595         * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3596         local variable.
3597         (mips_skip_prologue): Update.
3598
3599         * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3600         "cur_frame" parameter.
3601         (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3602         (mips_insn32_frame_cache, find_proc_desc): Update
3603
3604         * config/vax/nm-obsd.h: Delete file.
3605         * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3606         * config/vax/nm-nbsd.h: Delete file.
3607         * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3608         * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3609         * config/sh/nm-nbsd.h: Delete file.
3610         * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3611         * config/rs6000/nm-rs6000ly.h: Delete file.
3612         * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3613         * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3614         * config/powerpc/nm-obsd.h: Delete file.
3615         * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3616         * config/powerpc/nm-nbsd.h: Delete file.
3617         * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3618         * config/pa/nm-obsd.h: Delete file.
3619         * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3620         * config/mips/nm-nbsd.h: Delete file.
3621         * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3622         * config/m88k/nm-obsd.h: Delete file.
3623         * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3624         * config/m68k/nm-nbsd.h: Delete file.
3625         * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3626         * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3627         * config/i386/nm-nbsd.h: Delete file.
3628         * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3629         * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3630         * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3631         * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3632         * config/i386/nm-i386lynx.h: Delete file.
3633         * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3634         * config/arm/nm-nbsd.h: Delete file.
3635         * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3636         * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3637
3638         * config/i386/tm-fbsd.h: Delete file.
3639         * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3640         * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3641
3642         * config/rs6000/tm-rs6000-aix4.h: Delete file.
3643         * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3644         * config/rs6000/aix4.mt (TM_FILE): Set to
3645         config/rs6000/tm-rs6000.h.
3646         * config/powerpc/tm-ppc-aix.h: Delete file.
3647         * config/powerpc/aix.mt (TM_FILE): Set to
3648         config/rs6000/tm-rs6000.h.
3649         * config/m68k/tm-linux.h: Delete file.
3650         * config/m68k/linux.mt (TM_FILE): Set to solib.h
3651         * config/i386/tm-linux64.h: Delete file.
3652         * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3653         * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3654         
3655         * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3656         * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3657         * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3658         * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3659         * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3660         * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3661         * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3662         * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper. 
3663         * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3664
3665         * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3666         gdb_host_cpu.
3667
3668 2004-09-02  Joel Brobecker  <brobecker@gnat.com>
3669
3670         * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3671         Minor reformatting. Some code factoring.
3672
3673 2004-09-02  Andrew Cagney  <cagney@gnu.org>
3674
3675         * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3676         * config/vax/tm-nbsd.h: Delete file.
3677         * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3678         * config/sparc/tm-vxworks.h: Delete file.
3679         * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3680         * config/sparc/tm-nbsd.h: Delete file.
3681         * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3682         * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3683         * config/sparc/tm-linux.h: Delete file.
3684         * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3685         * config/s390/tm-linux.h: Delete file.
3686         * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3687         * config/pa/tm-bsd.h: Delete file.
3688         * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3689         * config/m68k/tm-obsd.h: Delete file.
3690         * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3691         * config/m68k/tm-nbsd.h: Delete file.
3692         * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3693         * config/i386/tm-vxworks.h: Delete file.
3694         * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3695         * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3696         * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3697         * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3698         * config/i386/tm-nbsd.h: Delete file.
3699         * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3700         * config/i386/tm-i386lynx.h: Delete file.
3701         * config/cris/cris.mt (TM_FILE): Set to solib.h.
3702         * config/cris/tm-cris.h: Delete file.
3703
3704         * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3705         * configure: Re-generate.
3706         * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3707         * config/arm/tm-nbsd.h: Delete file.
3708         
3709         * config/powerpc/tm-ppcle-sim.h: Delete.
3710         * config/powerpc/tm-ppcle-eabi.h: Delete.
3711         * config/powerpc/tm-nbsd.h: Delete.
3712         * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3713         * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3714         tm-ppcle-eabi.h.
3715
3716         * config/i386/nto.mh (NAT_FILE): Delete.
3717         * config/i386/nm-nto.h: Delete.
3718
3719         * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3720         * config/m68k/tm-os68k.h: Ditto.
3721         * config/m68k/tm-monitor.h: Ditto.
3722         * config/m68k/tm-cisco.h: Ditto.
3723         * config/m68k/st2000.mt (TM_FILE): Delete.
3724         * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3725         * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3726         * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3727         * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3728
3729         * config/m68k/tm-st2000.h: Delete.
3730         * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3731         * config/sparc/fbsd.mt (TM_FILE): Delete.
3732         * config/sparc/tm-fbsd.h: Delete.
3733
3734         * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3735         * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM) 
3736         (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3737
3738         * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3739         GDB_TM_FILE and GDB_XM_FILE.
3740         * gdbarch.c: Re-generate.       
3741         * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3742         quotes in macro definition.
3743         * configure.in: Re-generate.
3744
3745         * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3746         validating architecture methods.
3747         * gdbarch.c: Re-generate.
3748         
3749         * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3750         and GDB_TM_FILE.  Check for GDB_TM_FILE instead of
3751         GDB_MULTI_ARCH_PARTIAL.
3752         * gdbarch.h: Re-generate.
3753         
3754         * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3755         * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3756         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3757         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3758         * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3759         * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3760         * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3761         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3762         * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3763         * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3764         * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3765         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3766
3767 2004-09-01  Andrew Cagney  <cagney@gnu.org>
3768
3769         * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3770         and main_func_highpc.
3771         (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3772         * objfiles.c (init_entry_point_info, objfile_relocate): Update
3773         * nlmread.c (nlm_symfile_read): Update.
3774
3775 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
3776
3777         * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3778         (mips_insn32_frame_cache): Inline call to find_proc_desc.
3779         (find_proc_desc): Remove dead code.
3780
3781 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
3782
3783         * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3784
3785 2004-09-01  Jeff Johnston  <jjohnstn@redhat.com>
3786
3787         * observer.sh: Add struct so_list declaration.
3788         * Makefile.in: Add dependencies on observer.h for solib.c and
3789         breakpoint.c.
3790         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3791         function.
3792         (_initialize_breakpoint): Register 
3793         disable_breakpoints_in_unloaded_shlib as an observer of the 
3794         "solib unloaded" observation event.
3795         (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3796         call decode_line_1 so unfound breakpoint errors are silent.
3797         * solib.c (update_solib_list): When a solib is discovered to have
3798         been unloaded by the program, notify all observers of the
3799         "solib unloaded" observation event.
3800
3801 2004-09-01  Andrew Cagney  <cagney@gnu.org>
3802
3803         * frame.c: Include "objfiles.h".
3804         (inside_main_func): New function.
3805         (get_prev_frame): Use new inside_main_func.
3806         * Makefile.in (frame.o): Update dependencies.
3807         * defs.h (inside_main_func): Delete declaration.
3808         * blockframe.c (inside_main_func): Delete function.
3809
3810 2004-08-31  Jim Blandy  <jimb@redhat.com>
3811
3812         * dwarf2read.c (is_vtable_name): New function, based on logic from
3813         read_structure_type, but passing the correct length to strncmp,
3814         and using 'sizeof' instead of 'strlen'.
3815         (read_structure_type): Call it.
3816
3817 2004-08-31  Joel Brobecker  <brobecker@gnat.com>
3818
3819         * config/powerpc/aix.mh: Add comment.
3820
3821 2004-08-31  Paul GIlliam  <pgilliam@us.ibm.com>
3822
3823         * MAINTAINERS: Add self to Write-After-Approval.
3824
3825 2004-08-30  Manoj Iyer  <manjo@austin.ibm.com>
3826
3827         * MAINTAINERS: Add self to Write-After-Approval.
3828
3829 2004-08-30  Andrew Cagney  <cagney@gnu.org>
3830
3831         Fix PR breakpoints/1757.
3832         * infrun.c (struct execution_control_state): Replace
3833         remove_breakpoints_on_following_step with
3834         step_after_step_resume_breakpoint.
3835         (init_execution_control_state): Update.
3836         (handle_inferior_event): For signals, when stepping off a
3837         breakpoint, set step_after_step_resume_breakpoint.  When
3838         BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3839         (keep_going): Delete code handling
3840         remove_breakpoints_on_following_step.
3841
3842 2004-08-29  David Lecomber  <david@streamline-computing.com>
3843         
3844         Fix PR gdb/648
3845         * language.h (enum array_ordering): New enum.
3846         * language.h (struct language_defn): New la_array_ordering 
3847         attribute.
3848         * language.c (unknown_language_defn, auto_language_defn)
3849         (local_language_defn): Ditto.
3850         * ada-lang.c (ada_language_defn): Ditto.
3851         * c-lang.c (c_language_defn, cplus_language_defn)
3852         (asm_language_defn, minimal_language_defn): Ditto.
3853         * f-lang.c (f_language_defn): Ditto.
3854         * jv-lang.c (java_language_defn): Ditto.
3855         * m2-lang.c (f_language_defn): Ditto.
3856         * objc-lang.c (objc_language_defn): Ditto.
3857         * p-lang.c (pascal_language_defn): Ditto.
3858         * scm-lang.c (scm_language_defn): Ditto.
3859         * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3860         oriented large to small in type structure.
3861         * dwarf2read.c (read_array_order): New function.
3862         (read_array_type): Use read_array_order to check row/column
3863         major ordering.
3864
3865 2004-08-27  Nathan J. Williams  <nathanw@wasabisystems.com>
3866
3867         * target.c (target_resize_to_sections): Check
3868         current_target.to_sections for an old value when updating.
3869
3870 2004-08-27  Joel Brobecker  <brobecker@gnat.com>
3871
3872         * procfs.c (dbx_link_bpt_addr): New static global variable.
3873         (dbx_link_shadow_contents): New static global variable.
3874         (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3875         (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3876         if we just hit it.
3877         (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3878         Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3879         from run to run.
3880         (procfs_create_inferior): Remove syssgi syscall-exit notifications
3881         after the inferior has been forked.
3882         (remove_dbx_link_breakpoint): New function.
3883         (dbx_link_addr): New function.
3884         (insert_dbx_link_bpt_in_file): New function.
3885         (insert_dbx_link_bpt_in_region): New function.
3886         (insert_dbx_link_breakpoint): New function.
3887         (proc_trace_syscalls_1): New function, extracted from
3888         proc_trace_syscalls.
3889         (proc_trace_syscalls): Replace extract code by call to
3890         proc_trace_syscalls_1.
3891         * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3892         is no longer valid.
3893
3894 2004-08-25  Jim Blandy  <jimb@redhat.com>
3895
3896         * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3897
3898 2004-08-25  Andrew Cagney  <cagney@gnu.org>
3899
3900         * infrun.c (struct execution_control_state): Delete field
3901         "stepping_through_sigtramp".
3902         (init_execution_control_state): Do not set same.
3903         (context_switch): Do not pass same to save_infrun_state and
3904         load_infrun_state.
3905         * gdbthread.h (struct thread_info): Delete field
3906         stepping_through_sigtramp.
3907         (save_infrun_state, load_infrun_state): Delete parameter
3908         stepping_through_sigtramp.
3909         * thread.c (load_infrun_state, save_infrun_state): Update.
3910
3911         * infrun.c: Re-indent.  Move expression operators to the beginning
3912         of the line.  Remove long disabled #if 0 code.
3913
3914 2004-08-24  Andrew Cagney  <cagney@gnu.org>
3915
3916         * doublest.h (floatformat_ieee_quad): Rename
3917         floatformat_ia64_quad.
3918         * doublest.c (floatformat_ieee_quad): Rename
3919         floatformat_ia64_quad.
3920         (_initialize_doublest): Update.
3921
3922 2004-08-24  Jim Blandy  <jimb@redhat.com>
3923
3924         * dwarf2expr.h (struct dwarf_expr_context): New members
3925         'num_pieces' and 'pieces', for returning the result of an
3926         expression that uses DW_OP_piece.
3927         (struct dwarf_expr_piece): New struct type.
3928         * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3929         pieces.
3930         (free_dwarf_expr_context): Free pieces, if any.
3931         (add_piece): New function.
3932         (execute_stack_op): Implement DW_OP_piece.
3933         * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3934         expression is a list of pieces, print an error message.
3935         (dwarf2_loc_desc_needs_frame): If the expression yields
3936         pieces, and any piece is in a register, then we need a frame.
3937
3938         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3939         the stack until we've decided what sort of result the evaluation
3940         has produced.  Use separate variables, with more specific names.
3941
3942 2004-08-23  Richard Earnshaw  <rearnsha@arm.com>
3943
3944         * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3945         (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3946         (arm_netbsd_init_abi_common): Register them.
3947
3948 2004-08-22  Mark Kettenis  <kettenis@gnu.org>
3949
3950         * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3951
3952         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3953         safe_frame_unwind_memory instead of target_read_memory.
3954
3955         * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3956         Reorder includes.
3957         (fetch_register, store_register): Remove prototypes.
3958         (child_resume): Reorganize code and comments such that it is
3959         grouped a bit more logically.
3960         (attach): Explicitly compare errno against 0.
3961         (detach): Likewise.  Use perror_with_name instead of
3962         print_sys_errmsg.
3963         * Makefile.in (infptrace.o): Update dependencies.
3964
3965         * ia64-linux-nat.c: Update copyright year.
3966         (fetch_debug_register, store_debug_register)
3967         (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3968         PTRACE_TYPE_ARG3.
3969         * config/ia64/nm-linux.h: Update copyright year.
3970          (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3971
3972         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3973         from CORE_ADDR to struct frame_info *.  Use
3974         safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3975         (amd64_linux_sigtramp_p): Adjust for changed signature of
3976         and64_linux_sigtramp_start
3977
3978         * gdb_ptrace.h: GNU/Linux.
3979
3980         * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3981         Remove defines.
3982
3983         * infptrace.c: Include "gdb_assert.h".
3984         (PTRACE_XFER_TYPE): Remove define.
3985         (offsetof): Only define if U_REGS_OFFSET isn't defined.
3986         (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3987         Tweak comment.
3988         (fetch_inferior_registers, store_inferior_registers): Remove
3989         redundant culry braces.  Tweak comment.  s/regno/regnum.
3990         * Makefile.in (infptrace.o): Update dependencies.
3991
3992         * configure.in: Change test for return type of ptrace to default
3993         to `long' instead of `int'.
3994         * configure: Regenerate.        
3995
3996 2004-08-21  Mark Kettenis  <kettenis@gnu.org>
3997
3998         * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3999
4000         * configure.in: Check for ttrace function.
4001         * configure, config.in: Regenerate.     
4002
4003         * gdb_ptrace.h: New file.
4004         * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
4005         <sys/ptrace.h>.
4006         (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
4007         (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
4008         (attach): Don't define PT_ATTACH.
4009         (detach): Don't define PT_DETACH.
4010         * Makefile.in (gdb_ptrace_h): New variable.
4011         (infptrace.o): Update dependencies.
4012
4013 2004-08-16  Mark Kettenis  <kettenis@gnu.org>
4014
4015         * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
4016         instead of `int' if not already defined.
4017         (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
4018         PTRACE_TYPE_ARG3.
4019         * infptrace.c (call_ptrace): Revert change that replaced
4020         PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4021
4022 2004-08-15  Mark Kettenis  <kettenis@gnu.org>
4023
4024         * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
4025         Remove defines.
4026
4027         * linux-nat.c (kill_inferior): Add missing third and fourth
4028         arguments to ptrace call.  Don't use PTRACE_ARG3_TYPE.
4029
4030         * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
4031         PTRACE_TYPE_RET.
4032
4033         * proc-why.c (proc_prettyfprint_why): Fix format string.
4034
4035         * solib-osf.c (osf_current_sos): Remove unsused label.
4036
4037         * configure.in: Add <ncurses/ncurses.h> to the list of possible
4038         curses headers.
4039         * configure, config.in: Regenerate.     
4040         * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
4041         <ncurses/ncurses.h>.
4042
4043         * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
4044         * config/nm-nbsd.h: Update copyright year.
4045         (PTRACE_ARG3_TYPE): Remove define.
4046
4047         * sparc-nat.c (fetch_inferior_registers)
4048         (store_inferior_registers, sparc_xfer_wcookie): 
4049         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4050
4051         * alphabsd-nat.c (fetch_inferior_registers):
4052         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4053         PTRACE_TYPE_ARG3.
4054         * amd64bsd-nat.c (fetch_inferior_registers)
4055         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4056         PTRACE_TYPE_ARG3.
4057         * armnbsd-nat.c: Update copyright year.
4058         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
4059         (store_register, store_regs, store_fp_register, store_fp_regs):
4060         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4061         * hppabsd-nat.c (fetch_inferior_registers)
4062         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4063         PTRACE_TYPE_ARG3.
4064         * i386bsd-nat.c (fetch_inferior_registers)
4065         (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
4066         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4067         * m68kbsd-nat.c (fetch_inferior_registers)
4068         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4069         PTRACE_TYPE_ARG3.
4070         * m88kbsd-nat.c (fetch_inferior_registers)
4071         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4072         PTRACE_TYPE_ARG3.
4073         * mipsnbsd-nat.c: Update copyright year.
4074         (fetch_inferior_registers, store_inferior_registers):
4075         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4076         * ns32knbsd-nat.c: Update copyright year.
4077         (fetch_inferior_registers, store_inferior_registers):
4078         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4079         * ppcnbsd-nat.c (fetch_inferior_registers):
4080         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4081         PTRACE_TYPE_ARG3.
4082         * ppcobsd-nat.c (fetch_inferior_registers):
4083         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4084         PTRACE_TYPE_ARG3.
4085         * shnbsd-nat.c: Update copyright year.
4086         (fetch_inferior_registers, store_inferior_registers):
4087         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4088         * vaxbsd-nat.c (fetch_inferior_registers)
4089         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4090         PTRACE_TYPE_ARG3.
4091         
4092         * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4093         PTRACE_TYPE_ARG3.
4094         * infptrace.c (call_ptrace, child_resume, attach, detach)
4095         (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
4096         (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4097         * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
4098         PTRACE_TYPE_ARG3.
4099
4100 2004-08-14  Mark Kettenis  <kettenis@gnu.org>
4101
4102         * defs.h: Remove out-of-date comment.
4103         [!FCLOSE_PROVIDED] (fclose): Remove prototype.
4104         [!GETENV_PROVIDED] (getenv): Remove prototype.
4105
4106         * standalone.c: Remove file.
4107         * Makefile.in (standalone.o): Remove dependency.
4108
4109         * i386-linux-nat.c (dummy_sse_values): Remove function and
4110         prototype.
4111         (i386_linux_dr_get): Fix typo in comment.
4112         (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
4113
4114         * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4115
4116         * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4117         from declaration.
4118         * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4119         from definition.
4120
4121 2004-08-13  Mark Kettenis  <kettenis@gnu.org>
4122
4123         * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4124         parenthesis in definition.
4125         * configure: Regenerated.
4126
4127 2004-08-12  Michael Chastain  <mec.gnu@mindspring.com>
4128
4129         * PROBLEMS: Mention build/1411.
4130
4131 2004-08-09  Robert Millan  <robertmh@gnu.org>
4132
4133         Committed by Nathanael Nerode.
4134         * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4135         * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4136
4137 2004-08-12  Andrew Cagney  <cagney@gnu.org>
4138
4139         * NEWS: Mention fixes in GDB 6.2.1.
4140         * PROBLEMS: Remove mention of mips-irix.
4141
4142 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4143
4144         * config/powerpc/xm-aix.h: Delete.
4145         * config/powerpc/aix.mh (MH_FILE): Remove.
4146         * config/powerpc/aix432.mh (MH_FILE): Remove.
4147
4148 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4149
4150         * config/powerpc/aix.mh: Remove obsolete comment.
4151         * config/powerpc/aix432.mh: Likewise.
4152
4153 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4154
4155         * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4156
4157 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4158
4159         * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4160         this file is now empty.
4161         * config/xm-aix4.h: Remove, this file is no longer included
4162         anywhere.
4163
4164 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4165
4166         * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4167         that file is now empty.
4168         (termdef): Remove prototype, function no longer used.
4169
4170 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4171
4172         * doc/gdbint.texinfo (Host Definition): Remove documentation
4173         for USE_O_NOCTTY, no longer used.
4174         * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4175         * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4176
4177 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
4178
4179         * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4180         * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4181         * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4182
4183 2004-08-11  Mark Kettenis  <kettenis@gnu.org>
4184
4185         * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4186         instead of FIVE_ARG_PTRACE.
4187
4188         * inflow.c (O_NOCTTY): Define to zero if not already defined.
4189         (new_tty): Use O_NOCTTY unconditionally.
4190
4191 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
4192
4193         * procfs.c (procfs_detach): Cleanup.  Print process ID, not LWP
4194         ID.  Use comma in output.  Use gdb_flush on gdb_stdout instead of
4195         fflush on stdout.
4196
4197 2004-08-10  Joel Brobecker  <brobecker@gnat.com>
4198
4199         * xcoff_symfile_finish: Replace last call to xmfree by call
4200         to xfree.
4201
4202 2004-08-10  Andrew Cagney  <cagney@gnu.org>
4203
4204         * main.c (captured_main): Delete call to init_malloc.
4205         * defs.h (init_malloc): Delete declaration.
4206         * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4207         (init_malloc): Delete functions.
4208
4209         * defs.h (xmfree): Delete.
4210         * utils.c (xmfree): Delete function.
4211         (xfree): Inline calls to xmfree and mfree.
4212         * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4213         * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4214         * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4215         * somread.c (som_symfile_finish): Ditto.
4216         * objfiles.c (allocate_objfile, free_objfile): 
4217         * nlmread.c (nlm_symfile_finish): Ditto.
4218         * hpread.c (hpread_symfile_finish): Ditto.
4219         * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4220         * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4221         * coffread.c (coff_symfile_finish): Ditto.
4222
4223         * defs.h (xmcalloc): Delete declaration.
4224         * utils.c (xmcalloc): Delete.
4225         (xcalloc): Inline calls to xmcalloc and mcalloc.
4226         * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4227         xcalloc and xfree.
4228         * symtab.c (create_demangled_names_hash): Ditto.
4229
4230         * defs.h (xmrealloc): Delete.
4231         * utils.c (xmrealloc): Delete.
4232         (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4233         * symmisc.c (extend_psymbol_list): Use xrealloc.
4234         * source.c (find_source_lines): Ditto.
4235         * hpread.c (hpread_lookup_type): Ditto.
4236         * dbxread.c (add_bincl_to_list): Ditto.
4237
4238         * utils.c (xmmalloc): Delete.
4239         (xmalloc): Inline xmmalloc and mmalloc calls.
4240         (msavestring): Use xmalloc.
4241         * defs.h (xmmalloc): Delete declaration.
4242         * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4243         xmmalloc.
4244         * symmisc.c (extend_psymbol_list): Ditto.
4245         * symfile.c (init_psymbol_list): Ditto.
4246         * source.c (find_source_lines): Ditto.
4247         * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4248         * elfread.c (elf_symtab_read): Ditto.
4249         * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4250         * coffread.c (coff_symfile_init): Ditto.
4251
4252 2004-08-10  David Carlton  <carlton@bactrian.org>
4253
4254         * MAINTAINERS: Remove David Carlton from c++ testsuite
4255         maintainers.
4256
4257 2004-08-10  Jerome Guitton  <guitton@gnat.com>
4258
4259         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4260         print a line feed before the prompt.
4261
4262 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
4263
4264         * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4265
4266 2004-08-09  Joel Brobecker  <brobecker@gnat.com>
4267
4268         General cleanup of the AIX xm include file:
4269         * config/xm-aix4.h (fd_set): Remove undefine.
4270         Remove include of <sys/select.h>.
4271         (HAVE_TERMIO): Remove define.
4272         (USG): Likewise.
4273         (NULL): Remove redefine.
4274         (alloca): Remove #pragma.
4275         (vfork): Remove define.
4276         (termdef): Remove.
4277         (SIGWINCH_HANDLER): Remove.
4278         (SIGWINCH_HANDLER_BODY): Remove.
4279
4280 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
4281
4282         * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4283         GDB_OSABI_OPENBSD_ELF.
4284
4285 2004-08-07  Robert Millan  <robertmh@gnu.org>
4286
4287         * bsd-kvm.c: Check for nlist.h before including it.
4288
4289 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
4290
4291         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4292         sigcontext' offset consistency checks for ancient BSD.
4293
4294         * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4295
4296         * configure.in: Check for <sys/types.h>.  Check return and
4297         argument types of ptrace.
4298         * configure, config.in: Regenerate.     
4299
4300 2004-08-09  Jim Blandy  <jimb@redhat.com>
4301
4302         * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4303         rs6000_register_sim_regno): Doc fixes.
4304
4305 2004-08-08  Joel Brobecker  <brobecker@gnat.com>
4306
4307         * mips-tdep.c: Include "floatformat.h".
4308         (n32n64_floatformat_always_valid): New function.
4309         (floatformat_n32n64_long_double_big): New constant.
4310         (mips_gdbarch_init): Set size and format of long double
4311         for N32 and N64 ABIs.
4312         * Makefile.in (mips-tdep.o): Update dependencies.
4313
4314 2004-08-08  Andrew Cagney  <cagney@gnu.org>
4315
4316         * gdbarch.sh: Delete "fmt" and "attrib" fields.  Always use %s to
4317         print.  Improve script's error messages.
4318         * gdbarch.h: Re-generate.
4319
4320         * gdbarch.sh (pformat): New function.
4321         (float_format, double_format, long_double_format): List with bit
4322         members.  Use pformat when printing.
4323         * gdbarch.c, gdbarch.h: Re-generate.
4324         
4325 2004-08-08  Nathan J. Williams  <nathanw@wasabisystems.com>
4326
4327         * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4328         "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4329         (ppcnbsd_supply_pcb): New function.
4330         (_initialize_ppcnbsd_nat): New prototype and function.
4331         * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4332         (LOADLIBES): New variable.
4333         * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4334
4335 2004-08-08  Andrew Cagney  <cagney@gnu.org>
4336
4337         * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4338         (builtin_type_ieee_double, builtin_type_ia64_quad)
4339         (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4340         BE/LE floating-point types.
4341         * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4342         (builtin_type_ieee_double, builtin_type_ia64_quad)
4343         (builtin_type_ia64_spill): Declare.
4344         * doublest.c (_initialize_doublest, floatformat_ieee_single)
4345         (floatformat_ieee_double, floatformat_arm_ext)
4346         (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4347         of LE/BE floatformats.  
4348         * doublest.h: (struct floatformat, floatformat_ieee_single)
4349         (floatformat_ieee_double, floatformat_arm_ext)
4350         (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4351
4352 2004-08-08  Mark Kettenis  <kettenis@gnu.org>
4353
4354         * i386gnu-nat.c (gnu_store_registers): Fix typo.
4355
4356         * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4357         instead of regcache_raw_supply when storing the registers.
4358
4359         * i386gnu-nat.c: Update copyright year.
4360         (gnu_store_registers): Don't use deprecated_registers and
4361         deprecated_registers_valid.  Use regcache_valid_p and
4362         regcache_raw_supply instead.
4363
4364         * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4365         frame_pc_unwind.
4366
4367         * procfs.c (procfs_pid_to_str): Remove redundant and unused
4368         variables.  Incapitalized "process".
4369
4370         * configure.in: Add cursesX to the list of possible curses libs.
4371         Add cursesX.h to the list of possible curses headers. 
4372         * configure, config.in: Regenerate.     
4373
4374 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
4375
4376         * configure.in: Test for struct lwp in <sys/lwp.h>.
4377         * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4378         the offset of l_addr in struct lwp.
4379
4380 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
4381
4382         * bsd-kvm.c: Include "gdbcore.h"
4383         (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4384
4385 2004-08-07  Andrew Cagney  <cagney@gnu.org>
4386
4387         * gdbtypes.c (build_flt, build_complex): New functions.
4388         (gdbtypes_post_init): Use.
4389
4390         * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4391
4392         * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4393         through to builtin_type_uint128.
4394
4395         * c-exp.y: Use builtin_type function to obtain builtin types.
4396
4397         * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4398         builtin_uint128.
4399         * gdbtypes.c (gdbtypes_post_init): Update.
4400         (build_gdbtypes): Move initialization of builtin_type_int0
4401         through to builtin_type_uint128 from here ...
4402         (_initialize_gdbtypes): ... to here.
4403         * d10v-tdep.c (d10v_register_type): Update.
4404
4405         * doublest.c: Update copyright.
4406         (floatformat_from_length): Call error when floatformat is NULL.
4407         (extract_floating_by_length): Remove NULL fmt check.
4408         (store_floating_by_length): Ditto.
4409
4410 2004-08-07  Andrew Cagney  <cagney@gnu.org>
4411
4412         * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4413         that the register is valid.
4414
4415 2004-08-05  Mark Kettenis  <kettenis@chello.nl>
4416
4417         * i386-linux-tdep.c (i386_linux_sigtramp_start)
4418         (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4419         struct frame_info *.  Use safe_frame_unwind_memory instead of
4420         deprecated_read_memory_nobpt.
4421         (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4422         changed signature of i386_linux_sigtramp_start and
4423         i386_linux_rt_sigtramp_start.
4424
4425         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4426         CORE_ADDR to struct frame_info *.  Use safe_frame_unwind_memory
4427         instead of deprecated_read_memory_nobpt.
4428         (i386nbsd_sigtramp_p): Adjust for changed signature of
4429         i386nbsd_sigtramp_offset.
4430
4431         * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4432         safe_frame_unwind_memory instead of target_read_memory.
4433
4434         * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4435         !NO_SYS_FILE.
4436         [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4437         [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4438         (_initialize_kernel_u_addr): Remove prototype and function.
4439         * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4440         !NO_SYS_FILE.
4441         * xcoffread.c: Likewise.
4442
4443 2004-08-06  Mark Kettenis  <kettenis@gnu.org>
4444
4445         * vax-nat.c: New file.
4446         * vaxbsd-nat.c: Tweak comment.
4447         * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4448         vaxnbsd-tdep.c.
4449         (vax-nat.o): New dependency.
4450         * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4451         (vax-*-ultrix2*): Remove.
4452         * config/vax/vax.mh: New file.
4453         * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4454         (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4455         (vax_register_u_addr): New prototype.
4456         (REGISTER_U_ADDR): Define using vax_register_u_addr.
4457         * config/vax/vaxult2.mh: Remove file.
4458         * config/vax/vaxult.mh: Remove file.
4459         * config/vax/vaxbsd.mh: Remove file.
4460         * config/vax/vax.mt (TM_FILE): Remove.
4461         * config/vax/tm-vaxbsd.h: Remove file.
4462
4463 2004-08-06  Joel Brobecker  <brobecker@gnat.com>
4464
4465         * aix-thread.c (get_signaled_thread): New function.
4466         (iter_trap): Delete, no longer used.
4467         (iter_tid): New function.
4468         (pd_update): Find the thread that received the SIGTRAP signal
4469         by first locating the kernel thread, and then finding its
4470         associated thread.
4471
4472 2004-08-06  Ulrich Weigand  <uweigand@de.ibm.com>
4473
4474         * lin-lwp.c (child_wait): Continue inferior after processing
4475         PTRACE_EVENT_CLONE event.
4476
4477 2004-08-05  Nathanael Nerode  <neroden@gcc.gnu.org>
4478
4479         * MAINTAINERS: Add self to Write-After-Approval.
4480
4481 2004-08-05  Jeff Johnston  <jjohnstn@redhat.com>
4482
4483         * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4484         libunwind-xxxx.so" where xxxx is UNW_TARGET.
4485
4486 2004-08-05  Andrew Cagney  <cagney@gnu.org>
4487
4488         * config/xm-sysv4.h: Delete file.
4489         * config/mips/xm-irix5.h: Delete file.
4490         * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4491         * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4492         * config/ia64/xm-aix.h: Delete file.
4493         * config/ia64/aix.mh (XM_FILE): Delete.
4494         * config/pa/xm-hppah.h: Delete file.
4495         * config/pa/hpux11w.mh (XM_FILE): Delete.
4496         * config/pa/hpux11.mh (XM_FILE): Delete.
4497         * config/pa/hpux1020.mh (XM_FILE): Delete.
4498         * config/pa/hppahpux.mh (XM_FILE): Delete.
4499
4500         * config/alpha/xm-alphalinux.h: Delete file.
4501         * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4502         * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4503         * config/alpha/xm-alphaosf.h: Delete file.
4504         * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4505         * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4506         * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4507         * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4508
4509         * config/i386/xm-i386v.h: Delete file.
4510         * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4511         * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4512         * config/i386/xm-i386sco.h: Delete file.
4513         * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4514         * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4515         * config/i386/xm-i386v4.h: Delete file.
4516         * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4517         * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4518         * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4519         * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4520
4521         * config/vax/xm-vax.h: Delete file.
4522         * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4523         * config/vax/xm-vaxult2.h: Delete file.
4524         * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4525         * config/vax/vaxult2.mh (XM_FILE): Delete.
4526         * config/vax/xm-vaxult.h: Delete file.
4527         * config/vax/vaxult.mh (XM_FILE): Delete.
4528         * config/vax/xm-vaxbsd.h: Delete file.
4529         * config/vax/vaxbsd.mh (XM_FILE): Delete.
4530
4531         * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4532         * gdbarch.h, gdbarch.c: Re-generate.
4533         * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4534         * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4535         * frame.h: Delete deprecated_read_fp from comments.
4536         * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4537         * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4538
4539 2004-08-04  Mark Kettenis  <kettenis@gnu.org>
4540
4541         * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4542         trampoline in OpenBSD 3.5-current.
4543
4544         * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4545         SSE registers.
4546
4547         * Makefile.in: Remove embedded page breaks.
4548
4549 2004-08-04  Jim Blandy  <jimb@redhat.com>
4550
4551         * regcache.c (regcache_raw_read): Assert that, after calling
4552         target_fetch_registers, the register we're reading is cached.
4553
4554         * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4555         a call to 'internal_error', with a more helpful error message.
4556         * rs6000-tdep.c (e500_pseudo_register_read,
4557         e500_pseudo_register_write, rs6000_store_return_value): Same.
4558
4559 2004-08-04  Andrew Cagney  <cagney@gnu.org>
4560
4561         * Makefile.in: Update dependencies.
4562
4563 2004-08-04  Jim Blandy  <jimb@redhat.com>
4564
4565         Change the layout of the PowerPC E500 raw register cache to allow
4566         the lower 32-bit halves of the GPRS to be their own raw registers,
4567         not pseudoregisters.
4568         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4569         add ppc_ev0_upper_regnum flag.
4570         * rs6000-tdep.c: #include "reggroups.h".
4571         (spe_register_p): Recognize the ev upper half registers as SPE
4572         registers.
4573         (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4574         registers.
4575         (e500_move_ev_register): New function.
4576         (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4577         vector registers are the pseudo-registers now, formed by splicing
4578         together the gprs and the upper-half registers.
4579         (e500_register_reggroup_p): New function.
4580         (P): Macro deleted.
4581         (P8, A4): New macro.
4582         (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4583         (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4584         macros.
4585         (registers_e500): Rearrange register set so that the raw register
4586         set contains 32-bit GPRs and upper-half registers, and the SPE
4587         vector registers become pseudo-registers.
4588         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4589         it has been deleted.  Initialize ppc_ev0_upper_regnum.  Many other
4590         register numbers are now the same for the E500 as they are for
4591         other PowerPC variants.  Register e500_register_reggroup_p as the
4592         register group function for the E500.
4593         * Makefile.in (rs6000-tdep.o): Update dependencies.
4594
4595         Adapt PPC E500 native support to the new raw regcache layout.
4596         * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4597         (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4598         (fetch_spe_register, store_spe_register): Handle fetching/storing
4599         all the SPE registers at once, if regno == -1.  These now take
4600         over the job of fetch_spe_registers and store_spe_registers.
4601         (fetch_spe_registers, store_spe_registers): Deleted.
4602         (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4603         unconditionally; they're always raw.  Fetch/store SPE upper half
4604         registers, if present, instead of ev registers.
4605         (fetch_register, store_register): Remove sanity checks: gprs are
4606         never pseudo-registers now, so we never need to even mention any
4607         registers that are ever pseudoregisters.
4608
4609         Use a fixed register numbering when communicating with the PowerPC
4610         simulator.
4611         * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4612         * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4613         (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): 
4614         New functions.
4615         (rs6000_gdbarch_init): Register rs6000_register_sim_regno.  Call
4616         init_sim_regno_table.
4617         * Makefile.in (gdb_sim_ppc_h): New variable.
4618         (rs6000-tdep.o): Update dependencies.
4619
4620 2004-08-02  Andrew Cagney  <cagney@gnu.org>
4621
4622         * cris-tdep.c (cris_register_size): Restore function, still used
4623         locally.
4624
4625         * gdbarch.sh (deprecated_target_read_fp)
4626         (deprecated_frame_locals_address, deprecated_frame_args_address)
4627         (deprecated_frame_chain_valid, deprecated_frame_chain)
4628         (deprecated_init_extra_frame_info, deprecated_pop_frame)
4629         (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4630         (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4631         * gdbarch.h, gdbarch.c: Re-generate.
4632         * regcache.c (deprecated_read_fp): Do not call
4633         DEPRECATED_TARGET_READ_FP_P.
4634         * infcmd.c (default_print_registers_info): Do not call
4635         DEPRECATED_DO_REGISTERS_INFO.
4636         * frame-base.c (default_frame_locals_address): Do not call
4637         DEPRECATED_FRAME_LOCALS_ADDRESS.
4638         (default_frame_args_address): Do not call
4639         DEPRECATED_FRAME_ARGS_ADDRESS.
4640
4641         * gdbarch.sh (deprecated_register_raw_size)
4642         (deprecated_register_virtual_size:int): Delete.
4643         * gdbarch.h, gdbarch.c: Re-generate.
4644         * cris-tdep.c (cris_register_size): Delete.
4645         (cris_gdbarch_init): Update.
4646         * alpha-tdep.c (alpha_register_raw_size)
4647         (alpha_register_virtual_size): Delete.
4648         (alpha_gdbarch_init): Update.
4649
4650         * gdbarch.sh (deprecated_register_virtual_type)
4651         (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4652         (deprecated_dummy_write_sp): Delete.
4653         * gdbarch.h, gdbarch.c: Re-generate.
4654
4655         * gdbarch.sh (deprecated_register_bytes): Delete.
4656         * gdbarch.h, gdbarch.c: Re-generate.
4657         * regcache.c (deprecated_register_bytes): New function.
4658         * regcache.h (deprecated_register_bytes): Declare.
4659         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4660         * v850-tdep.c (v850_gdbarch_init): Update.
4661         * sh64-tdep.c (sh64_gdbarch_init): Update.
4662         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4663         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4664         * mcore-tdep.c (mcore_gdbarch_init): Update.
4665         * cris-tdep.c (cris_gdbarch_init): Update.
4666         * arm-tdep.c (arm_gdbarch_init): Update.
4667         * remote.c (init_remote_state): Update.
4668         * remote-vx.c (vx_prepare_to_store): Update.
4669         * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4670         * irix5-nat.c (fetch_core_registers): Update.
4671         * cris-tdep.c (cris_register_bytes_ok): Update.
4672         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4673
4674         * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4675         (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4676         (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4677         (mips_insn16_frame_base_address, mips_insn16_frame_base)
4678         (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4679         (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4680         (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4681         (mips_insn32_frame_base_address, mips_insn32_frame_base)
4682         (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4683         with mips_insn16 and mips_insn32.
4684
4685         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4686         * rs6000-tdep.c (rs6000_push_dummy_call)
4687         (rs6000_extract_return_value): Use register_size.
4688         * xstormy16-tdep.c (xstormy16_get_saved_register) 
4689         (xstormy16_extract_return_value): Ditto.
4690         * valops.c (value_assign): Ditto.
4691         * v850ice.c (v850ice_fetch_registers, v850ice_store_registers): 
4692         * v850-tdep.c (v850_extract_return_value): Ditto.
4693         * tracepoint.c (collect_symbol): Ditto.
4694         * target.c (debug_print_register): Ditto.
4695         * stack.c (frame_info): Ditto.
4696         * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4697         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4698         * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4699         (store_register_using_P): Ditto.
4700         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4701         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4702         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4703         * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4704         * regcache.c (deprecated_read_register_bytes) 
4705         (deprecated_write_register_bytes, read_register) 
4706         (write_register): Ditto.
4707         * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4708         (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4709         * monitor.c (monitor_supply_register, monitor_fetch_register) 
4710         (monitor_store_register): Ditto.
4711         * mn10300-tdep.c (mn10300_pop_frame_regular) 
4712         (mn10300_print_register): Ditto.
4713         * mipsv4-nat.c (fill_fpregset): Ditto.
4714         * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset) 
4715         (mips64_fill_fpregset): Ditto.
4716         * mi/mi-main.c (register_changed_p, get_register)
4717         (mi_cmd_data_write_register_values): Ditto.
4718         * lynx-nat.c (fetch_inferior_registers, store_inferior_registers): 
4719         * irix5-nat.c (fill_gregset, fetch_core_registers): 
4720         * infrun.c (write_inferior_status_register): Ditto.
4721         * infptrace.c (fetch_register, store_register): Ditto.
4722         * infcmd.c (default_print_registers_info): Ditto.
4723         * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4724         * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4725         * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4726         * hpux-thread.c (hpux_thread_fetch_registers)
4727         (hpux_thread_store_registers): Ditto.
4728         * hppah-nat.c (store_inferior_registers, fetch_register): 
4729         * findvar.c (value_from_register): Ditto.
4730         * dve3900-rom.c (fetch_bitmapped_register): 
4731         * cris-tdep.c (cris_gdbarch_init): Ditto.
4732         * alpha-tdep.h: Ditto.
4733         * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4734
4735         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4736         DEPRECATED_REGISTER_RAW_SIZE from comments.
4737         * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4738         use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4739         DEPRECATED_REGISTER_RAW_SIZE.
4740         * findvar.c (value_of_register): Simplify by assuming that the
4741         registers raw and virtual sizes are identical.
4742         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4743         comment.
4744         * arch-utils.c (generic_register_size): Simplify by assuming
4745         register_type.
4746
4747         * regcache.c (legacy_read_register_gen, real_register) 
4748         (legacy_write_register_gen): Delete, not used.
4749
4750         * regcache.c (struct regcache_descr): Delete legacy_p.
4751         (init_legacy_regcache_descr): Delete function.
4752         (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4753         Do not use deprecated register functions.
4754         (regcache_raw_read, deprecated_write_register_gen):
4755         (deprecated_read_register_gen, regcache_raw_write): Delete code
4756         predicated on legacy_p.
4757         (register_size): Delete check against register raw size.
4758
4759         * cris-tdep.c (cris_register_type): Replace
4760         cris_register_virtual_type.
4761         (cris_gdbarch_init): Update, set register_type.
4762
4763         * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4764         * gdbarch.h, gdbarch.c: Re-generate.
4765         * arm-tdep.c    (arm_frameless_function_invocation): Delete.
4766         (arm_gdbarch_init) Do not set frameless function invocation.
4767         * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4768         * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4769         * frv-tdep.c (frv_frameless_function_invocation): Delete.
4770         (frv_gdbarch_init): Do not set frameless function invocation.
4771         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4772         * sh-tdep.c (sh_gdbarch_init): Ditto.
4773         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4774         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4775         * avr-tdep.c (avr_gdbarch_init): Ditto.
4776
4777         * blockframe.c (legacy_frame_chain_valid): Delete function.
4778
4779         * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4780         and pc.  Update comments.
4781         (pc_in_dummy_frame): Delete function.
4782         (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4783         use the "id".
4784         (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4785         call_hi, top and pc, use the id.
4786         (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4787
4788         * dummy-frame.c: Include "gdb_string.h".
4789         (generic_save_call_dummy_addr, generic_push_dummy_frame)
4790         (generic_save_dummy_frame_tos): Delete.
4791         (dummy_frame_push): New function, replaces above.
4792         * dummy-frame.h: Update copyright.
4793         (dummy_frame_push): Declare.
4794         * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4795         (generic_save_call_dummy_addr): Delete declarations.
4796         * infcall.c: Include "dummy-frame.h".
4797         (call_function_by_hand): Add locals caller_regcache,
4798         caller_regcache_cleanup and dummy_id.  Replace push_dummy_frame
4799         with call to frame_save_as_regcache plus cleanup.  Delete calls to
4800         generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4801         Move clear_proceed_status to just before the resume, add call to
4802         dummy_frame_push (discard cleanup).
4803         * Makefile.in (infcall.o): Add $(dummy_frame_h).
4804         (dummy-frame.o): Add $(gdb_string_h).
4805
4806 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4807
4808         * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4809         * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4810         * dummy-frame.c (find_dummy_frame): Delete.
4811         (struct dummy_frame_cache, dummy_frame_sniffer)
4812         (dummy_frame_prev_register, dummy_frame_this_id)
4813         (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4814         frame unwinder using a dummy_frame_cache.
4815
4816 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4817
4818         * frame.h (frame_save_as_regcache): Declare.
4819         * frame.c (frame_save_as_regcache): New function.
4820         (do_frame_read_register): Replace do_frame_unwind_register.
4821         (frame_pop): Use frame_save_as_regcache.
4822         * dummy-frame.c (generic_push_dummy_frame): Use
4823         frame_save_as_regcache.
4824
4825 2004-08-01  Joel Brobecker  <brobecker@gnat.com>
4826
4827         * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4828         file as included until we record the first line in the linetable.
4829
4830 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4831
4832         * frame.h (deprecated_pop_dummy_frame)
4833         (deprecated_read_register_dummy)
4834         (deprecated_generic_find_dummy_frame): Delete.
4835         * dummy-frame.c (deprecated_generic_find_dummy_frame)
4836         (deprecated_read_register_dummy)
4837         (deprecated_find_dummy_frame_regcache)
4838         (discard_innermost_dummy)
4839         (deprecated_pop_dummy_frame): Delete.
4840         (dummy_frame_this_id): Simplify.
4841         (struct dummy_frame): Delete "fp" and "sp".
4842         (find_dummy_frame): Simplify.
4843         (generic_push_dummy_frame): Do not set "fp" or "sp".
4844         (fprint_dummy_frames): Do not print "fp" and "sp"
4845
4846 2004-08-01  Mark Kettenis  <kettenis@gnu.org>
4847
4848         * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4849         (struct i386_insn): New structure.
4850         (i386_match_insn): New function.
4851         (i386_frame_setup_skip_insns): New variable.
4852         (i386_analyze_frame_setup): Change to use i386_match_insn and the
4853         array i386_frame_setup_insns of instructions that should be
4854         skipped inside the frame setup sequence.
4855
4856 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4857
4858         * frame.h (deprecated_frame_xmalloc_with_cleanup)
4859         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4860         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4861         * stack.c (frame_info): Delete references to
4862         DEPRECATED_FRAME_INIT_SAVED_REGS and
4863         deprecated_get_frame_saved_regs.
4864         * frame.c (struct frame_info): Delete saved_regs and extra_info.
4865         (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4866         (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4867         (frame_unwind_register_signed)
4868         (frame_unwind_register_unsigned)
4869         (frame_unwind_unsigned_register): Use register_size.
4870         (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4871         (deprecated_frame_xmalloc_with_cleanup)
4872         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4873         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4874
4875         * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4876         * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4877         * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4878         * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4879
4880         * infcall.c (call_function_by_hand): Do not use
4881         DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4882         DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4883         DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4884         DEPRECATED_STACK_ALIGN.
4885
4886 2004-07-30  Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4887
4888         Committed by Andrew Cagney.
4889         * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4890
4891 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4892
4893         * mips-tdep.c (mips16_frame_cache)
4894         (mips16_frame_this_id, mips16_frame_prev_register)
4895         (mips16_frame_unwind, mips16_frame_sniffer)
4896         (mips16_frame_base_address, mips16_frame_base)
4897         (mips16_frame_base_sniffer, mips32_frame_cache)
4898         (mips32_frame_this_id, mips32_frame_prev_register)
4899         (mips32_frame_unwind, mips32_frame_sniffer)
4900         (mips32_frame_base_address, mips32_frame_base)
4901         (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4902         separate heuristic mips16 and mips32 unwinders.
4903         (mips_stub_frame_cache, mips_stub_frame_this_id)
4904         (mips_stub_frame_prev_register)
4905         (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4906         (mips_stub_frame_base_address, mips_stub_frame_base)
4907         (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4908         (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4909         match true mdebug frames.
4910         (non_heuristic_proc_desc): Add forward declaration.
4911
4912 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4913
4914         * config/mips/tm-irix6.h: Delete file.
4915         * config/mips/tm-irix5.h: Delete file.
4916         * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4917         * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4918
4919         * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4920         * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4921         * config/nm-gnu.h (NO_CORE_OPS): Delete.
4922         * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4923         * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4924         * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4925         * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4926         * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4927         * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4928         * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4929         * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4930         (TARGET_SIGNAL_RAW_VALUES): Delete.
4931         * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4932         Delete.
4933         * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT) 
4934         (TARGET_HW_WATCH_LIMIT): Delete.
4935         * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4936         * minimon.h: Delete file.
4937
4938         * trad-frame.c (trad_frame_get_this_base)
4939         (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4940         functions.
4941         * trad-frame.h (trad_frame_set_this_base)
4942         (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4943
4944 2004-07-31  Andrew Cagney  <cagney@gnu.org>
4945
4946         * trad-frame.c (trad_frame_get_prev_register): Rename
4947         trad_frame_get_prev_register.
4948         * vax-tdep.c (vax_frame_prev_register): Update.
4949         * trad-frame.h: Update.
4950         * trad-frame.c (trad_frame_get_register): Update.
4951         * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4952         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4953         Update.
4954         * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4955         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4956         Update.
4957         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4958         Update.
4959         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4960         Update.
4961         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4962         Update.
4963         * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4964         Update.
4965         * s390-tdep.c (s390_frame_prev_register) 
4966         (s390_stub_frame_prev_register) 
4967         (s390_sigtramp_frame_prev_register): Update.
4968         * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4969         * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4970         * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4971         * m88k-tdep.c (m88k_frame_prev_register) 
4972         * m68hc11-tdep.c (m68hc11_frame_prev_register) 
4973         * m32r-tdep.c (m32r_frame_prev_register): Update.
4974         * hppa-tdep.c (hppa_frame_prev_register_helper) 
4975         * frv-tdep.c (frv_frame_prev_register): Update.
4976         * d10v-tdep.c (d10v_frame_prev_register): Update.
4977         * cris-tdep.c (cris_frame_prev_register): Update.
4978         * avr-tdep.c (avr_frame_prev_register): Update.
4979         * arm-tdep.c (arm_prologue_prev_register) 
4980         (arm_sigtramp_prev_register): Update.
4981
4982 2004-07-31  Andrew Cagney  <cagney@gnu.org>
4983
4984         * frame.h (legacy_saved_regs_unwind)
4985         (legacy_frame_chain_valid, legacy_frame_p)
4986         (enum frame_type): Delete UNKNOWN_FRAME.
4987         * dummy-frame.c (dummy_frame_this_id): Simplify.
4988         * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4989         * frame.c (struct frame_info): Delete the field "type".
4990         (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4991         (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4992         (legacy_saved_regs_unwind, legacy_frame_p)
4993         (frame_type_from_pc): Delete.
4994         (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4995         (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4996
4997 2004-07-31  Mark Kettenis  <kettenis@gnu.org>
4998
4999         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
5000         indentation.
5001
5002         * mips-nat.c: Remove file.
5003         * Makefile.in (ALLDEPFILES): Remove mips-nat.c
5004         (mips-nat.o): Remove dependency.
5005
5006         * infptrace.c: Update copyright year.
5007         (fetch_register): Pass NULL in regcache_raw_supply call instead of
5008         explicitly setting the buffer to all zeroes.
5009
5010         * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
5011         (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
5012
5013 2004-07-30  Andrew Cagney  <cagney@gnu.org>
5014
5015         * GDB 6.2 released from gdb_6_2-branch.
5016
5017 2004-07-30  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
5018
5019         * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
5020
5021         * exec.c (exec_file_attach):
5022         * nto-tdep.c (nto_find_and_open_solib):
5023         * pa64solib.c (pa64_solib_sizeof_symbol_table):
5024         * solib.c (solib_open):
5025         * somsolib.c (som_solib_sizeof_symbol_table):
5026         * source.c (is_regular_file, openp, open_source_file):
5027         * symfile.c (symfile_bfd_open):
5028         * wince.c (upload_to_device): Differentiate between the search for
5029         binary and source files.
5030
5031 2004-07-30  Andrew Cagney  <cagney@gnu.org>
5032
5033         * complaints.c (_initialize_complaints): Pass NULL to
5034         add_setshow_zinteger_cmd for help_doc.
5035         * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
5036
5037 2004-07-30  Andrew Cagney  <cagney@gnu.org>
5038
5039         Fix PR i18n/761.
5040         * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
5041         (.PHONY): Add all-po install-po, uninstall-po, clean-po,
5042         $(PACKAGE).pot and update-po.
5043         (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
5044         (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
5045         (update-po): New rules.
5046         (localedir): Define using autoconf.
5047         (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
5048         (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
5049         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
5050         * configure.in: Generate CATALOGS and LINGUAS from contents of
5051         src/gdb/po/ directory.  Set @localedir@ in Makefile.in.
5052         * configure: Re-generate.
5053         * po/gdbtext: New file
5054         
5055 2004-07-30  Jerome Guitton  <guitton@gnat.com>
5056
5057         * MAINTAINERS: Reorder Write After Approval list in alphabetical
5058         order.
5059
5060 2004-07-30  David Lecomber  <dsl@sources.redhat.com>
5061
5062         * dwarf2read.c (read_file_scope): Set producer if attribute 
5063         present.
5064         (struct dwarf2_cu): Added new member producer.
5065
5066 2004-07-30  Jerome Guitton  <guitton@gnat.com>
5067
5068         * inflow.c (kill_command): release file handles in BFD.
5069         * exec.c (exec_file_attach): Ditto.
5070         * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
5071
5072 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5073
5074         * PROBLEMS (mips-irix): Note that it is broken.
5075
5076 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5077
5078         * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
5079         * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
5080
5081         * config/xm-nbsd.h: Delete file.
5082         * config/arm/xm-nbsd.h: Delete file.
5083         * config/i386/xm-nbsd.h: Delete file.
5084         * config/ns32k/xm-nbsd.h: Delete file.
5085         * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
5086         * config/i386/nbsdelf.mh (XM_FILE): Delete.
5087         * config/i386/nbsdaout.mh (XM_FILE): Delete.
5088         * config/arm/nbsdelf.mh (XM_FILE): Delete.
5089         * config/arm/nbsdaout.mh (XM_FILE): Delete.
5090
5091         * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
5092         * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
5093         * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
5094         * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
5095         * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
5096         * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
5097
5098         * config/powerpc/xm-linux.h: Delete empty file.
5099         * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
5100         * config/powerpc/linux.mh (XM_FILE): Delete.
5101         * config/m68k/xm-linux.h: Delete empty file.
5102         * config/m68k/linux.mh (XM_FILE): Delete.
5103         * config/ia64/xm-linux.h: Delete empty file.
5104         * config/ia64/linux.mh (XM_FILE): Delete.
5105         * config/arm/xm-linux.h: Delete empty file.
5106         * config/arm/linux.mh (XM_FILE): Delete.
5107         
5108         * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5109         * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
5110         * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5111         * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
5112         * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5113         * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
5114         * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5115         * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5116
5117         * config/m68k/xm-m68k.h: Delete file.
5118         * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h".  Update
5119         copyright.
5120         (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5121         * config/pa/xm-linux.h: Delete empty file.
5122         * config/pa/linux.mh (XM_FILE): Delete.
5123         * config/i386/xm-i386.h: Delete empty file.
5124         * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5125         "i386/xm-i386.h".
5126         * config/i386/obsdaout.mh (XM_FILE): Delete.
5127         * config/i386/obsd64.mh (XM_FILE): Delete.
5128         * config/i386/fbsd64.mh (XM_FILE): Delete.
5129         * config/i386/nto.mh (XM_FILE): Delete.
5130         * config/i386/obsd.mh (XM_FILE): Delete.
5131         * config/i386/linux64.mh (XM_FILE): Delete.
5132         * config/i386/linux.mh (XM_FILE): Delete.
5133         * config/i386/i386sol2.mh (XM_FILE): Delete.
5134         * config/i386/i386gnu.mh (XM_FILE): Delete.
5135         * config/i386/fbsd.mh (XM_FILE): Delete.
5136         * config/i386/nbsd64.mh (XM_FILE): Delete.
5137
5138 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5139
5140         * config/pa/xm-linux.h: Do not include "floatformat.h".
5141         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5142         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5143         * config/i386/xm-i386.h: Do not include "floatformat.h".
5144         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) 
5145         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5146         * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5147         (HOST_LONG_DOUBLE_FORMAT): Delete macros.  Use
5148         GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5149         GDB_HOST_LONG_DOUBLE_FORMAT instead.
5150         * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5151         (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5152         * configure, config.in: Regenerate.     
5153         * configure.host (gdb_host_float_format, gdb_host_double_format)
5154         (gdb_host_long_double_format): Set according to the host.
5155         
5156 2004-07-29  Andrew Cagney  <cagney@gnu.org>
5157
5158         * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5159
5160 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5161
5162         * PROBLEMS: Mention threads/1650.
5163         * NEWS: Mention the NPTL fix.
5164
5165 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5166
5167         * cli/cli-decode.c (add_setshow_cmd): Delete function.
5168         (add_setshow_cmd_full): Make static.
5169         * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5170         (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5171         * cli/cli-decode.c (add_setshow_filename_cmd) 
5172         (add_setshow_string_cmd): New functions.
5173         * nto-tdep.c (_initialize_nto_tdep): Update.  Fix parameters.
5174         * mips-tdep.c (_initialize_mips_tdep): Update.
5175         * m32r-rom.c (_initialize_m32r_rom): Update.  Update copyright.
5176         * cli/cli-logging.c (_initialize_cli_logging): Update.
5177         * complaints.c (_initialize_complaints): Update.
5178         * remote.c (_initialize_remote): Update.
5179         
5180 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5181
5182         * cli/cli-decode.c (add_setshow_zinteger_cmd)
5183         (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5184         (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5185         print parameters.  Make string parameters constant.
5186         * command.h: Update.  Update copyright.
5187         * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5188         * observer.c (_initialize_observer): Ditto.
5189         * frame.c (_initialize_frame): Ditto.
5190         * complaints.c (_initialize_complaints): Ditto.
5191         * maint.c (_initialize_maint_cmds): Ditto.
5192         * target.c (initialize_targets): Ditto.
5193         * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5194         * infcall.c (_initialize_infcall): Ditto.
5195         * arm-tdep.c (_initialize_arm_tdep): Ditto.
5196         * m32r-rom.c (_initialize_m32r_rom): Ditto.
5197         * remote-rdi.c (_initialize_remote_rdi): Ditto.
5198         * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5199         * mips-tdep.c (_initialize_mips_tdep): Ditto.
5200
5201 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5202
5203         * gdbtypes.c (lookup_primitive_typename): Delete function.
5204         * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5205         * ada-lex.l: Use language_lookup_primitive_type_by_name.
5206         * gdbtypes.c (lookup_typename): Ditto.
5207         * f-exp.y (yylex): Ditto.
5208         * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5209
5210         * scm-lang.c (c_builtin_types): Delete extern declaration.
5211         (scm_language_defn): Replace
5212         string_char_type and primitive_type_vector with
5213         la_language_arch_info.
5214         * jv-lang.c (java_language_defn): Replace
5215         string_char_type and primitive_type_vector with
5216         la_language_arch_info.
5217         * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5218         c_builtin_types in comment.
5219         * c-lang.h (struct language_arch_info): Declare opaque.
5220         (c_language_arch_info): Declare.
5221         (c_builtin_types): Delete declaration.
5222         * c-lang.c (c_language_arch_info): Set string_char_type to
5223         builtin_char, not builtin_true_char.  Make global.
5224         (c_builtin_types): Delete array.
5225         (asm_language_defn, minimal_language_defn): Replace
5226         string_char_type and primitive_type_vector with
5227         la_language_arch_info.
5228
5229 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5230
5231         * gdbtypes.h (struct builtin_type): Rename true_char to
5232         builtin_true_char.
5233         * gdbtypes.c (gdbtypes_post_init): Update.
5234         * c-lang.c (arch_info): New function.
5235         (enum c_primitive_types): New enum.
5236         (c_language_defn): Instead of string_char_type and
5237         primitive_type_vector set la_language_arch_info.
5238
5239 2004-07-28  Andrew Cagney  <cagney@gnu.org>
5240
5241         * language.h (struct language_arch_info): Fix typo
5242         s/primative/primitive/.
5243         * gdbtypes.c (lookup_primitive_typename): Ditto.
5244         * language.c (language_lookup_primitive_type_by_name)
5245         (unknown_language_arch_info): Ditto.
5246
5247 2004-07-27  Andrew Cagney  <cagney@gnu.org>
5248
5249         * defs.h (enum language): Add nr_languages.
5250         * language.h (struct language_arch_info): Define.
5251         (struct language_defn): Add la_language_arch_info.
5252         (language_lookup_primative_type_by_name): Declare.
5253         (language_string_char_type): Declare.
5254         * language.c (_initialize_language, language_gdbarch_post_init)
5255         (struct language_gdbarch, language_gdbarch_data): Implement
5256         per-architecture language information.
5257         (unknown_language_arch_info, language_string_char_type)
5258         (language_lookup_primative_type_by_name): New functions.
5259         (unknown_language_defn, auto_language_defn)
5260         (local_language_defn): Set la_language_arch_info to
5261         unknown_language_arch_info.
5262         (unknown_builtin_types): Delete.
5263         * gdbtypes.c (lookup_primitive_typename): Use
5264         language_lookup_primative_type_by_name.
5265         (create_string_type): Use language_string_char_type.
5266         * values.c (value_from_string): Use language_string_char_type.
5267         * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5268         * p-lang.c (pascal_language_defn): Ditto.
5269         * m2-lang.c (m2_language_defn): Ditto.
5270         * jv-lang.c (java_language_defn): Ditto.
5271         * objc-lang.c (objc_language_defn): Ditto.
5272         * f-lang.c (f_language_defn): Ditto.
5273         * c-lang.c (c_language_defn, cplus_language_defn) 
5274         (asm_language_defn, minimal_language_defn): Ditto.
5275         
5276 2004-07-27  Andrew Cagney  <cagney@gnu.org>
5277
5278         * gdbtypes.h (struct builtin_type): Declare.
5279         (builtin_type): Declare.
5280         * d10v-tdep.c (d10v_register_type): Use builtin_type.
5281         * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5282         (gdbtypes_post_init): New function.
5283         (builtin_type): New function.
5284
5285 2004-07-27  Kei Sakamoto  <sakamoto.kei@renesas.com>
5286
5287         * remote-m32r-sdi.c: Fix breakpoint bug.
5288         (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5289         recv_char_data, recv_long_data): New functions to replace communication
5290         sequences.
5291
5292 2004-07-26  Michael Chastain  <mec.gnu@mindspring.com>
5293
5294         Document PR threads/1650.
5295         * PROBLEMS (Threads): Document problem with many threads
5296
5297 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5298
5299         * gdb-mi.el: Move from here ...
5300         * mi/gdb-mi.el: ... to here.
5301
5302 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5303
5304         Problem reported by Ashley Pittman <ashley@quadrics.com>.
5305         * main.c (captured_main): When in batch mode always detach.
5306
5307 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5308
5309         * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5310         and h8300 as broken.
5311         * NEWS: END-OF-LIFE frame compatibility module.
5312         * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5313         specific comments.
5314
5315 2004-07-26  Andrew Cagney  <cagney@gnu.org>
5316
5317         * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5318         * xcoffsolib.c (_initialize_xcoffsolib): Update.
5319         * wince.c (_initialize_wince): Update.
5320         * win32-nat.c (_initialize_win32_nat): Update.
5321         * varobj.c (_initialize_varobj): Update.
5322         * valops.c (_initialize_valops): Update.
5323         * utils.c (initialize_utils, initialize_utils): Update.
5324         * tui/tui-win.c (_initialize_tui_win): Update.
5325         * top.c (init_main): Update.
5326         * symfile.c (_initialize_symfile): Update.
5327         * source.c (_initialize_source): Update.
5328         * somsolib.c (_initialize_som_solib): Update.
5329         * solib.c (_initialize_solib): Update.
5330         * solib-frv.c (_initialize_frv_solib): Update.
5331         * serial.c (_initialize_serial): Update.
5332         * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5333         * remote.c (_initialize_remote, _initialize_remote): Update.
5334         * remote-vx.c (_initialize_vx): Update.
5335         * remote-utils.c (_initialize_sr_support): Update.
5336         * remote-sds.c (_initialize_remote_sds): Update.
5337         * remote-mips.c (_initialize_remote_mips): Update.
5338         * remote-e7000.c (_initialize_remote_e7000): Update.
5339         * proc-api.c (_initialize_proc_api): Update.
5340         * printcmd.c: Update.
5341         * parse.c (_initialize_parse): Update.
5342         * pa64solib.c (_initialize_pa64_solib): Update.
5343         * p-valprint.c (_initialize_pascal_valprint): Update.
5344         * monitor.c (_initialize_remote_monitors): Update.
5345         * mips-tdep.c (_initialize_mips_tdep): Update.
5346         * mcore-tdep.c (_initialize_mcore_tdep): Update.
5347         * maint.c (_initialize_maint_cmds): Update.
5348         * lin-lwp.c (_initialize_lin_lwp): Update.
5349         * language.c (_initialize_language): Update.
5350         * kod.c (_initialize_kod): Update.
5351         * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5352         * i386-tdep.c (_initialize_i386_tdep): Update.
5353         * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5354         * gdbarch.sh: Update.
5355         * gdbarch.c: Re-generate.
5356         * gdb-events.sh: Update.
5357         * gdb-events.c: Re-generate.
5358         * frame.c (_initialize_frame): Update.
5359         * exec.c: Update.
5360         * demangle.c (_initialize_demangler): Update.
5361         * dcache.c (_initialize_dcache): Update.
5362         * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5363         * cp-valprint.c (_initialize_cp_valprint): Update.
5364         * corefile.c (_initialize_core): Update.
5365         * command.h: Update.
5366         * cli/cli-decode.h: Update.
5367         * cli/cli-cmds.c (init_cli_cmds): Update.
5368         * charset.c (_initialize_charset): Update.
5369         * breakpoint.c (_initialize_breakpoint): Update.
5370         * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5371         * alpha-tdep.c (_initialize_alpha_tdep): Update.
5372         * aix-thread.c (_initialize_aix_thread): Update.
5373
5374 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
5375
5376         Partial fix for PR backtrace/1718.
5377         * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5378         that GCC migrates into the prolugue.  Don't handle any
5379         instructions that clobber %ebx.
5380
5381 2004-07-23  Andrew Cagney  <cagney@gnu.org>
5382
5383         Use regcache_raw_collect instead of regcache_collect.
5384         * regcache.h (regcache_collect): Delete declaration.
5385         * regcache.c (regcache_colect): Delete function.
5386         * win32-nat.c (do_child_store_inferior_registers): Update.
5387         * sol-thread.c (sol_thread_store_registers): Update.
5388         * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5389         * rs6000-nat.c (store_register): Update.
5390         * remote.c (store_register_using_P, remote_store_registers): Update.
5391         * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5392         * ppc-linux-nat.c (store_altivec_register, store_spe_register) 
5393         (fill_vrregset, store_spe_registers, fill_gregset)
5394         (fill_gregset): Update.
5395         * nto-procfs.c (procfs_store_registers): Update.
5396         * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5397         * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5398         * m68klinux-nat.c (store_register, fill_gregset): Update.
5399         * m68k-tdep.c (fill_gregset): Update.
5400         * infptrace.c (store_register): Update.
5401         * i386-nto-tdep.c (i386nto_regset_fill): Update.
5402         * i386-linux-nat.c (store_register, fill_gregset): Update.
5403         * hppa-linux-nat.c (fill_gregset): Update.
5404         * go32-nat.c (store_register): Update.
5405         * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5406         (store_fp_regs): Update.
5407         * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double) 
5408         (store_nwfpe_extended, store_fpregister, store_fpregs) 
5409         (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5410         * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5411         * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5412         (store_regs_user_thread, store_regs_kernel_thread): Update.
5413
5414 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
5415
5416         * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5417         (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5418         encoding.
5419         (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5420         member of `struct comp_unit'.
5421
5422 2004-07-23  Andrew Cagney  <cagney@gnu.org>
5423
5424         * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5425         DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5426
5427 2004-07-23  Martin Hunt  <hunt@redhat.com>
5428         Kevin Buettner <kevinb@redhat.com>
5429
5430         * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5431         alignment was being added to the offset instead of multiplied.
5432
5433 2004-07-23  Mark Kettenis  <kettenis@gnu.org>
5434
5435         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5436         changed signal trampoline in OpenBSD 3.5-current.
5437
5438         * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5439         <machine/pcb.h> and "bsd-kvm.h".
5440         (sparc64nbsd_supply_pcb): New function.
5441         (_initialize_sparc64nbsd_nat): Renamed from
5442         _initialize_sparcnbsd_nat.  Enable libkvm interface.
5443         * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5444         * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5445         (LOADLIBES): New variable.
5446
5447         * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5448
5449         * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5450
5451 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5452
5453         Use regcache_raw_supply instead of supply_register.
5454         * regcache.h (supply_register): Delete declaration.
5455         * regcache.c (supply_register): Delete function.
5456         * wince.c (do_child_fetch_inferior_registers): Update.
5457         * win32-nat.c (do_child_fetch_inferior_registers) 
5458         (fetch_elf_core_registers): Update.
5459         * v850ice.c (v850ice_fetch_registers): Update.
5460         * thread-db.c (thread_db_store_registers): Update.
5461         * sol-thread.c (sol_thread_store_registers): Update.
5462         * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5463         * rs6000-nat.c (fetch_register): Update.
5464         * rom68k-rom.c (rom68k_supply_one_register): Update.
5465         * remote.c (remote_wait, remote_async_wait): Update.
5466         * remote-st.c (get_hex_regs): Update.
5467         * remote-sim.c (gdbsim_fetch_register): Update.
5468         * remote-sds.c (sds_fetch_registers): Update.
5469         * remote-rdp.c (remote_rdp_fetch_register): Update.
5470         * remote-rdi.c (arm_rdi_fetch_registers): Update.
5471         * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5472         * remote-m32r-sdi.c (m32r_fetch_register): Update.
5473         * remote-hms.c (init_hms_cmds): Update.
5474         * remote-est.c (init_est_cmds): Update.
5475         * remote-e7000.c (get_hex_regs, fetch_regs_from_dump) 
5476         (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5477         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5478         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register) 
5479         (fetch_register, supply_vrregset, supply_vrregset)
5480         (fetch_spe_registers): Update.
5481         * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5482         * monitor.c (monitor_supply_register): Update.
5483         * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5484         * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5485         (mipsnbsd_supply_fpreg): Update.
5486         * mips-nat.c (fetch_inferior_registers)
5487         (fetch_core_registers): Update.
5488         * mips-linux-tdep.c (supply_32bit_reg, supply_gregset) 
5489         (supply_fpregset, mips64_supply_gregset)
5490         (mips64_supply_fpregset): Update.
5491         * m68klinux-nat.c (fetch_register, supply_gregset)
5492         (supply_fpregset): Update.
5493         * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5494         * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5495         * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5496         * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5497         * infptrace.c (fetch_register): Update.
5498         * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5499         * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5500         * i386gnu-nat.c (fetch_fpregs, supply_gregset) 
5501         (gnu_fetch_registers, gnu_store_registers): Update.
5502         * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5503         * i386-linux-nat.c (fetch_register, supply_gregset)
5504         (dummy_sse_values): Update.
5505         * hpux-thread.c (hpux_thread_fetch_registers): Update.
5506         * hppah-nat.c (fetch_register): Update.
5507         * hppa-linux-nat.c (fetch_register, supply_gregset) 
5508         (supply_fpregset): Update.
5509         * go32-nat.c (fetch_register): Update.
5510         * dve3900-rom.c (fetch_bitmapped_register)
5511         (_initialize_r3900_rom): Update.
5512         * cris-tdep.c (supply_gregset): Update.
5513         * abug-rom.c (init_abug_cmds): Update.
5514         * core-aout.c (fetch_core_registers): Update.
5515         * armnbsd-nat.c (supply_gregset, supply_fparegset)
5516         (fetch_register, fetch_fp_register): Update.
5517         * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5518         (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5519         (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5520         * alphanbsd-tdep.c (fetch_core_registers): Update.
5521         * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5522         * alpha-nat.c (fetch_osf_core_registers) 
5523         (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5524         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs) 
5525         (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5526
5527 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5528
5529         * PROBLEMS: Mention breakpoints/1702.
5530         * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5531         that is known to work.
5532
5533 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5534
5535         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5536         * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5537         * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5538         (handle_inferior_event): Wrap call to deprecated
5539         IGNORE_HELPER_CALL in #ifdef.
5540         * config/mips/tm-nbsd.h: Update.
5541
5542 2004-07-20  Jim Blandy  <jimb@redhat.com>
5543
5544         * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5545         bfd_mach_ppc has no segment registers.
5546
5547         Include PowerPC SPR numbers for special-purpose registers.
5548         * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5549         (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5550         new member in initializer.
5551         (S, S4, SN4, S64): New macros for defining special-purpose
5552         registers.
5553         (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5554         registers_403, registers_403GC, registers_505, registers_860,
5555         registers_601, registers_602, registers_603, registers_604,
5556         registers_750, registers_e500): Use them.
5557
5558         * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5559         replace references with expression used to initialize variable.
5560
5561 2004-07-20  Andrew Cagney  <cagney@gnu.org>
5562
5563         * breakpoint.c (deprecated_read_memory_nobpt): Rename
5564         read_memory_nobpt.
5565         * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5566         * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5567         (s390_sigtramp_frame_sniffer): Update.
5568         * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5569         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5570         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) 
5571         (mips32_fetch_instruction): Update.
5572         * mcore-tdep.c (get_insn): Update.
5573         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5574         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5575         * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5576         * i386-linux-tdep.c (i386_linux_sigtramp_start) 
5577         (i386_linux_rt_sigtramp_start): Update.
5578         * i386-linux-nat.c (child_resume): Update.
5579         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5580         * hppa-linux-tdep.c (insns_match_pattern): Update.
5581         * gdbcore.h: Update.
5582         * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5583         * frame.c (safe_frame_unwind_memory): Update.
5584         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5585         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5586         * alpha-tdep.c (alpha_read_insn): Update.
5587
5588 2004-07-20  Andrew Cagney  <cagney@gnu.org>
5589
5590         * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5591         containing both bytes and mask.  Add "frame_type".
5592         * tramp-frame.c (tramp_frame_start): Update.
5593         (tramp_frame_prepend_unwinder): Update.
5594         * mips-linux-tdep.c (mips_linux_o32_sigframe)
5595         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5596         (mips_linux_n64_rt_sigframe): Update.  Make "static const".
5597         * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5598
5599 2004-07-19  Eli Zaretskii  <eliz@gnu.org>
5600
5601         * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5602         bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5603         sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5604         sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5605
5606 2004-07-17  Andrew Cagney  <cagney@gnu.org>
5607
5608         * NEWS, PROBLEMS: Update for 6.2.
5609
5610         * README: Update to 6.2.
5611
5612         * utils.c (xvasprintf): Call xstrvprintf.
5613
5614         * parse.c: Update copyright.
5615         (null_post_parser): Eliminate ARGSUSED.
5616
5617         * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5618         * tui/tui-win.c (tui_get_cmd_list): Ditto.
5619         * symfile-mem.c (_initialize_symfile_mem): Ditto.
5620         
5621         * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5622         * ppc-linux-nat.c: Use "Linux kernel".
5623         * hppa-linux-tdep.c: Use GNU/Linux.
5624         * hppa-linux-nat.c: Use GNU/Linux.
5625         * dwarfread.c: Add [sic] to use of Linux.
5626
5627         * hppa-linux-nat.c: Do not include <string.h>.
5628         (supply_fpregset): Remove "register" attribute.
5629
5630         * solib-frv.c (fetch_loadmap): Use xfree, not free.
5631
5632 2004-07-17  Mark Kettenis  <kettenis@gnu.org>
5633
5634         * configure.in: Define _MSE_INT_H on Solaris 9 too.
5635         * configure, config.in: Regenerated.
5636
5637         * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5638         "bsd-kvm.h".
5639         (vaxbsd_supply_pcb): New function.
5640         (_initialize_vaxbsd_nat): New prototype and function.
5641         * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5642         solib-sunos.o.
5643         (LOADLIBES): New variable.
5644         * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5645         (LOADLIBES): New variable.
5646         * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5647         (LOADLIBES): New variable.
5648         * Makefile.in (vaxbsd-nat.o): Update dependencies.
5649
5650 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5651
5652         * defs.h (event_loop_p): Replace variable declaration with macro,
5653         always 1.
5654         * main.c (captured_main): Delete options "-async" and "-noasync".
5655         (event_loop_p): Delete variable.
5656         * NEWS: Mention that "-async" and "-noasync" were removed.
5657
5658 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5659
5660         * remote-m32r-sdi.c: Re-indent.
5661
5662 2004-07-16  Jim Blandy  <jimb@redhat.com>
5663
5664         * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5665         (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5666         (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5667         missing MPC823 SPRs.
5668         (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5669         incorrect.  (This was corrected in GDB's register name tables on
5670         2004-07-14.)
5671
5672         * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5673         should be "esasrr" ("ESA Save and Restore Register").
5674
5675 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5676
5677         * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5678         calls, no longer applicable.  Update comments and rename parameter
5679         "step_frame" to "return_frame".
5680
5681 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5682
5683         * frame.c (fprint_field): New function.
5684         (fprint_frame_id): Use fprint_field.
5685
5686 2004-07-15  Joel Brobecker  <brobecker@gnat.com>
5687
5688         * ada-lang.c (ada_language_defn): Remove commented out code.
5689
5690 2004-07-15  Jim Blandy  <jimb@redhat.com>
5691
5692         * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5693         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5694
5695 2004-07-14  Jim Blandy  <jimb@redhat.com>
5696
5697         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5698
5699         * ppc-tdep.h (ppc_num_vrs): New enum constant.
5700
5701         * ppc-tdep.h (ppc_num_srs): New enum constant.
5702
5703         * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5704         (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5705         (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5706         (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5707         (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5708         (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5709         (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5710         (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5711         (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5712         (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5713         (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5714         (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5715         (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5716         (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5717         (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5718         (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5719         (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5720         (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5721         (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5722         (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5723         (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5724         (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5725         (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5726         (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5727         (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5728         (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5729         (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5730         (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5731         (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5732         (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5733         (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5734         (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5735         (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5736         (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5737         (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5738         (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5739         (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5740         (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5741         (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5742         special-purpose register numbers.
5743
5744         * rs6000-tdep.c (registers_860): Correct register name.  (No PPC
5745         manual mentions 'md_twb', but many mention 'm_twb', and at that
5746         point in the register list.)
5747
5748 2004-07-14  Andrew Cagney  <cagney@gnu.org>
5749
5750         * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5751         instead of "internal-error".
5752
5753 2004-07-10  Joel Brobecker  <brobecker@gnat.com>
5754
5755         * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5756         that was inserted inside a comment.
5757
5758 2004-07-10  Randolph Chung  <tausq@debian.org>
5759
5760         * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New 
5761         function.
5762         (hppa_hpux_push_dummy_code): New function.
5763         (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5764         Set find_global_pointer method.
5765
5766 2004-07-10  Mark Kettenis  <kettenis@gnu.org>
5767
5768         * NEWS: Mention BSD libkvm interface.
5769
5770 2004-07-10  Michael Snyder  <msnyder@redhat.com>
5771
5772         * symfile.c (generic_load): Comment typo.
5773         * stack.c (get_selected_block): Ditto.
5774         * regcache.c (regcache_cooked_read): Ditto.
5775         * monitor.c (monitor_debug): Ditto.
5776         * mips-tdep.c (mips_read_pc): Ditto.
5777         * i386-linux-nat.c (ps_get_thread_area): Ditto.
5778         * gdb_mbuild.sh: Ditto.
5779         * gdbarch.sh: Ditto.
5780         * gdbarch.h: Ditto.
5781
5782 2004-07-09  Paul N. Hilfinger  <Hilfinger@gnat.com>
5783
5784         * ada-tasks.c: Remove file.
5785         
5786         Remove ARI problems:
5787         
5788         * ada-exp.y (write_var_from_sym): Reformat to put operator at
5789         beginning of line.
5790
5791         * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5792         Add comment.
5793         Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5794         (MIN_OF_SIZE): Rename min_of_size.  Add comment.
5795         (UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
5796         (UMIN_OF_SIZE): Remove.
5797         (max_of_type): New function to replace orphan macro in gdbtypes.h
5798         (min_of_type): Ditto.
5799         (discrete_type_high_bound): Use max_of_type.
5800         (discrete_type_low_bound): Use min_of_type.
5801         (possible_user_operator_p): Move operator to beginning of line.
5802         (ada_is_variant_part): Ditto.
5803         (ensure_lval): Rewrite to avoid deprecated operations.
5804         (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5805         rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5806         (ada_enum_name): Remove assignments in 'if' statements.
5807         (build_ada_types): Add gdbarch parameter.
5808         (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5809         with gdbarch_data_register_post_init.
5810         Use add_setshow_uinteger_cmd rather than add_set_cmd and 
5811         add_show_from_set.
5812
5813         * ada-valprint.c (inspect_it): Remove declaration.
5814         (repeat_count_threshold): Remove declaration.
5815         (ada_print_floating): Remove assignments in 'if' statements.
5816         (print_str): Move operator to beginning of line.
5817         
5818 2004-07-08  Jim Blandy  <jimb@redhat.com>
5819
5820         * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5821
5822 2004-07-08  Bob Rossi  <bob@brasko.net>
5823
5824         * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5825
5826 2004-07-06  Jeff Johnston <jjohnstn@redhat.com>
5827
5828         * language.h (struct_language_defn): Add new function pointer:
5829         la_class_name_from_physname.  Also add new prototype for
5830         language_class_name_from_physname.
5831         * language.c (language_class_name_from_physname): New function.
5832         (unk_lang_class_name): Ditto.
5833         (unknown_language_defn, auto_language_defn): Change
5834         to add unk_lang_class_name function pointer for
5835         la_class_name_from_physname.
5836         (local_language_defn): Ditto.
5837         * dwarf2read.c (guess_structure_name): Change to call
5838         language_class_name_from_physname.
5839         (determine_class_name): Ditto.
5840         * cp-support.c (class_name_from_physname): Renamed.
5841         (cp_class_name_from_physname): New name of function.
5842         * cp-support.h: Ditto.
5843         * c-lang.c (c_language_defn): Change to add NULL
5844         for class_name_from_physname function pointer.
5845         (cplus_language_defn): Change to add cp_class_name_from_physname.
5846         * jv-lang.c (java_class_name_physname): New function.
5847         (java_find_last_component): New static routine.
5848         (java_language_defn): Add java_class_name_from_physname pointer.
5849         * ada-lang.c (ada_language_defn): Change to add NULL
5850         for class_name_from_physname function pointer.
5851         * f-lang.c (f_language_defn): Ditto.
5852         * m2-lang.c (m2_language_defn): Ditto.
5853         * objc-lang.c (objc_language_defn): Ditto.
5854         * p-lang.c (pascal_language_defn): Ditto.
5855         * scm-lang.c (scm_language_defn): Ditto. 
5856
5857 2004-07-06  Andrew Cagney  <cagney@gnu.org>
5858
5859         Patch from Bart Robinson.
5860         * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5861         (O_LARGEFILE): Define to 0, if not defined.
5862
5863 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
5864
5865         * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5866         <machine/pcb.h> and "bsd-kvm.h".
5867         (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5868         (m68kbsd_supply_pcb): New function.
5869         (_initialize_m68kbsd_nat): New prototype and function.
5870         * Makefile.in (m68kbsd-nat.o): Update dependencies.
5871         * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5872         (LOADLIBES): New variable.
5873         * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5874         (LOADLIBES): New variable.
5875
5876         * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5877
5878 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
5879
5880         * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5881         <sys/proc.h>.
5882         (bsd_kvm_cmdlist): New variable.
5883         (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5884         (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5885         command and "kvm proc" command.
5886         * Makefile.in (bsd-kvm.o): Update dependencies.
5887
5888 2004-07-02  Mark Kettenis  <kettenis@gnu.org>
5889
5890         * osabi.c: Update copyright year.
5891         (generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
5892         notes if EI_OSABI is set to ELFOSABI_HPUX.
5893
5894 2004-07-01  Michael Snyder  <msnyder@redhat.com>
5895
5896         * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5897         that seems to have gotten whacked out of line.
5898
5899 2004-07-01  Mark Kettenis  <kettenis@gnu.org>
5900
5901         * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5902         code.
5903
5904 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
5905
5906         * ada-lang.c (decode_packed_array): Minor change to comment.
5907         (ada_value_slice_ptr): New function. 
5908         (ada_value_slice): New function. 
5909         (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5910         test.  Don't know why it is there.
5911         Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5912         to avoid dereferencing huge arrays from which one is slicing.  
5913         (empty_array): Correct to return an array rather than
5914         a subrange value.
5915         * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5916         on empty arrays (let'em use 'FIRST instead).
5917
5918 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
5919
5920         Address complaints from gdb_ari.sh:
5921         
5922         * ada-exp.y: Include gdb_string.h rather than string.h.
5923         (convert_char_literal): Reformat declaration.
5924         * ada-lang.h: Include opaque struct declaration for struct frame_info.
5925         * ada-lex.l: Change use of free to xfree (the macro would do so
5926         anyway, but this is harmless).
5927         Include gdb_string.h rather than string.h.
5928         * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5929         
5930         * ada-lang.c (parse): Remove K&Rism in parameter list.
5931         (is_name_suffix): Correct Linux => GNU/Linux in comment.
5932         
5933 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
5934
5935         * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5936         dead code.
5937
5938 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
5939
5940         * alphabsd-nat.c: Update copyright year.
5941         (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5942
5943 2004-06-29  Joel Brobecker  <brobecker@gnat.com>
5944
5945         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5946         (i386_cygwin_in_solib_call_trampoline): New function.
5947         (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5948         and skip_trampoline_code gdbarch methods.
5949
5950 2004-06-29  Jim Blandy  <jimb@redhat.com>
5951
5952         * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5953         name actually used in the dependency lists.
5954
5955 2004-06-29  Randolph Chung  <tausq@debian.org>
5956
5957         * NEWS (New native configurations): Mention GNU/Linux/hppa.
5958
5959 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
5960
5961         * win32-nat.c (child_pid_to_exec_file): New function.
5962         (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5963         functionality.
5964
5965 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5966
5967         * defs.h (xstrvprintf): Declare.
5968         * utils.c (xstrvprintf): New function.
5969         (internal_vproblem, xstrprintf, xasprintf) 
5970         (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5971         * serial.c (serial_printf): Ditto.
5972         * complaints.c (vcomplaint): Ditto.
5973
5974 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
5975
5976         * infcmd.c (attach_command): Move call to target_terminal_inferior
5977         behind loading symbol table.
5978
5979 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5980
5981         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5982         change - add back extern deprecated_ui_loop_hook declaration.
5983
5984 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5985
5986         * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5987         xstrprintf.
5988         * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5989         (c_value_of_variable): Ditto.
5990         * utils.c (internal_vproblem): Ditto.
5991         * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5992         * remote.c (add_packet_config_cmd): Ditto.
5993         * remote-rdp.c (rdp_set_command_line): Ditto.
5994         * regcache.c (regcache_dump): Ditto.
5995         * frv-tdep.c (new_variant, new_variant): Ditto.
5996         * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5997         (fbsd_find_memory_regions): Ditto.
5998         * breakpoint.c (create_thread_event_breakpoint) 
5999         (create_breakpoints): Ditto.
6000         * aix-thread.c (aix_thread_pid_to_str): Ditto.
6001         * ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.
6002
6003 2004-06-28  Joel Brobecker  <brobecker@gnat.com>
6004
6005         * ada-lang.c: Re-indent file, with some massaging to help indent
6006         a bit when the result is otherwise really too ugly.
6007
6008 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
6009
6010         * frame.h (struct frame_id): Change bit field type of stack_addr_p, 
6011         code_addr_p and special_addr_p to 'unsigned int'.
6012
6013 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
6014
6015         * i386v4-nat.c: Update copyright year and tweak comment.
6016         (regmap): Remove trailing comma.
6017         (supply_gregset): Rename local variable i to regnum.  Call
6018         regcache_raw_supply instead of supply_register.
6019         (fill_gregset): Rename argument regno to regnum.  Call
6020         regcache_raw_collect instead of regcache_collect.
6021
6022 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
6023
6024         * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
6025         and special_addr_p.
6026         (frame_id_build, frame_id_build_special): Update comments.
6027         (frame_id_build_wild): New prototype.
6028         * frame.c (frame_id_build, frame_id_build_special): Fill in new
6029         struct frame_id fields.
6030         (frame_id_build_wild): New function.
6031         (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
6032
6033 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
6034
6035         * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
6036         hppabsd-tdep.c.
6037
6038 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
6039
6040         * ada-lang.c: Minor reformatting to conform to GNU coding standards.
6041
6042 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
6043
6044         * ada-lang.c: Re-indent file.
6045
6046 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
6047
6048         * ada-lang.c (symtab_symbol_info): Remove unused declaration.
6049         (no_symtab_msg): Likewise.
6050
6051 2004-06-27  Andreas Schwab  <schwab@suse.de>
6052
6053         * source.c: Fix whitespace.
6054
6055 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
6056
6057         * configure.in: Include <sys/param.h> for td_pcb test.
6058         * configure: Regenerated.
6059
6060         * i386nbsd-nat.c: New file.
6061         * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
6062         i386obsd-nat.c and i386obsd-tdep.c.
6063         (i386nbsd-nat.o): New dependency.
6064         * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
6065         bsd-kvm.o.
6066         (LOADLIBES): New variable.
6067         * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
6068         bsd-kvm.o.
6069         (LOADLIBES): New variable.
6070
6071         * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
6072         (LOADLIBES): New variable.
6073
6074         * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
6075         fetching from BSD_KVM_PADDR.  Correctly lookup address for
6076         "_thread0".
6077
6078         * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
6079         "bsd-kvm.h".
6080         (amd64fbsd_supply_pcb): New funcion.
6081         (_initialize_amd64fbsd_nat): Enable libkvm interface.
6082
6083 2004-06-27    <david@streamline-computing.com>
6084
6085         Partial fix for PR cli/1056.
6086         * valarith.c: Check for zero in division and remainder 
6087         evaluation.
6088
6089 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
6090
6091         * i387-tdep.c: Remove excessive whitespace.
6092
6093 2004-06-26  Andrew Cagney  <cagney@gnu.org>
6094
6095         * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
6096         * gdb-events.h, gdb-events.c: Re-generate.
6097         * tui/tui-hooks.c (tui_install_hooks): Update.
6098         (tui_remove_hooks): Update.
6099         * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
6100
6101 2004-06-26  Mark Kettenis  <kettenis@gnu.org>
6102
6103         * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
6104         (gregset_t, fpregset_t): Remove typedefs.
6105         (REG_OFFSET): Rename argument.
6106         (amd64bsd_r_reg_offset): Rename from reg_offset.
6107         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6108         Remove functions.
6109         (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
6110         of reg_offset.
6111         * Makefile.in (amd64fbsd-nat.o): Update dependencies.
6112
6113         * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
6114
6115         * vax-tdep.c: Tweak comment.
6116
6117         Add OpenBSD/hppa support.
6118         * NEWS (New native configurations): Mention OpenBSD/hppa.
6119         * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6120         config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6121         files.
6122         * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6123         (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6124         * configure.host: Add hppa*-*-openbsd*.
6125         * configure.tgt: Add hppa*-*-openbsd*.
6126
6127 2004-06-25  Andrew Cagney  <cagney@gnu.org>
6128
6129         * defs.h (deprecated_ui_loop_hook): Deprecated.
6130         * wince.c (child_wait): Update.
6131         * win32-nat.c (child_wait): Update.
6132         * v850ice.c (v850ice_wait): Update.
6133         * top.c (deprecated_ui_loop_hook): Update.
6134         * serial.h: Update.
6135         * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
6136         (do_unix_readchar): Update.
6137         * ser-tcp.c (net_open): Update.
6138         * remote-sim.c (gdb_os_poll_quit): Update.
6139         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6140
6141 2004-06-24  Andrew Cagney  <cagney@gnu.org>
6142
6143         * defs.h (deprecated_pre_add_symbol_hook)
6144         (deprecated_post_add_symbol_hook): Deprecated.
6145         * symfile.c (symbol_file_add_with_addrs_or_offsets) 
6146         (symbol_file_add_with_addrs_or_offsets): Update references.
6147
6148 2004-06-24  Andrew Cagney  <cagney@gnu.org>
6149
6150         * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6151         (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6152         * wince.c (ui_loop_hook): Delete extern declaration.
6153         * win32-nat.c (ui_loop_hook): Delete extern declaration..
6154         * v850ice.c (ui_loop_hook): Delete extern declaration..
6155         * ser-unix.c (ui_loop_hook): Delete extern declaration..
6156         * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6157         * remote-sim.c (ui_loop_hook): Delete extern declaration..
6158         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6159         ui_loop_hook declaration.
6160
6161 2004-06-24  Andrew Cagney  <cagney@gnu.org>
6162
6163         * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6164         entry_func_highpc fields.
6165         * objfiles.c (init_entry_point_info): Do not clear
6166         entry_func_lowpc and entry_func_highpc.
6167         (objfile_relocate): Do not relocate entry_func_lowpc and
6168         entry_func_highpc.
6169         * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6170         entry_func_highpc.
6171         * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6172         entry_func_highpc.
6173         * blockframe.c (legacy_frame_chain_valid): Replace tests against
6174         entry_func_lowpc and entry_func_highpc with call to
6175         inside_entry_func.
6176
6177 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
6178
6179         * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6180         quad-precision floating point arguments in registers.
6181
6182 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
6183
6184         From Michael Mueller <m.mueller99@kay-mueller.de>:
6185         * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6186         account.
6187
6188 2004-06-22  Jeff Johnston  <jjohnstn@redhat.com>
6189
6190         * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6191         to -1.
6192         * breakpoint.c (bpstat_stop_status): Move check for ignoring
6193         untriggered watchpoints to a separate if clause.  Update function
6194         comment regarding STOPPED_BY_WATCHPOINT argument.
6195
6196 2004-06-22  Jim Blandy  <jimb@redhat.com>
6197
6198         * gdbarch.sh: Doc fix.
6199
6200 2004-06-21  Martin Hunt  <hunt@redhat.com>
6201         Kevin Buettner <kevinb@redhat.com>
6202
6203         * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6204         * mips-tdep.h (MIPS_SP_REGNUM): Define.
6205         * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6206         to set_gdbarch_sp_regnum().  Use cooked register number.
6207         (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6208
6209 2004-06-21  Andrew Cagney  <cagney@gnu.org>
6210
6211         * gdbarch.sh: When the macro field is empty, do not generate a
6212         macro definition.  When the macro field is "=", generate the macro
6213         name from the upper-case function name.
6214         (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6215         (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6216         (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6217         (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6218         (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6219         (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6220         (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6221         (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6222         (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6223         (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6224         (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6225         (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6226         (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6227         (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6228         (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6229         (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6230         (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6231         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6232         (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6233         (DEPRECATED_USE_STRUCT_CONVENTION)
6234         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6235         (DEPRECATED_FRAME_INIT_SAVED_REGS)
6236         (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6237         (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6238         (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6239         (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6240         (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6241         (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6242         (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6243         (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6244         (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6245         (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6246         (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6247         (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6248         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6249         (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6250         (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6251         (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6252
6253 2004-06-21  Andrew Cagney  <cagney@gnu.org>
6254
6255         * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6256         macro name, and the function rather than macro value.  Only wrap
6257         macro print statements in #ifdef.  Move format logic to where it
6258         is needed.
6259         * gdbarch.c: Re-generate.
6260         
6261         * gdbarch.sh (read): Delete "print_p" and "description", add
6262         "garbage_at_eol".  Check for non-empty garbage at end-of-line.
6263         Delete references to print_p.
6264         (TARGET_ARCHITECTURE): Delete print predicate.
6265         * gdbarch.c: Re-generate.
6266         
6267         * gdbarch.sh: Check that multi-arch methods do not provide a
6268         macro.
6269         (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6270         (print_registers_info, print_float_info, print_vector_info)
6271         (adjust_breakpoint_address, remote_translate_xfer_address)
6272         (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6273         (address_class_type_flags_to_name, unwind_sp): Remove the macro
6274         name from the multi-arch definition.
6275         
6276 2004-06-20  Andrew Cagney  <cagney@gnu.org>
6277
6278         * gdbarch.sh: Sort by the function, instead of macro name.
6279         * gdbarch.c: Re-generate.
6280         
6281 2004-06-20  Andrew Cagney  <cagney@gnu.org>
6282
6283         * gdbarch.sh: Use the function, instead of macro name in
6284         errors and the log file.
6285         (return_value): Remove stray ":" in spec.
6286
6287         * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6288         * gdbarch.h, gdbarch.c: Re-generate.
6289         * Makefile.in (arch-utils.o): Update dependencies.
6290         * values.c (using_struct_return): Move code calling
6291         USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6292         * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6293         to legacy_return_value, simplify.
6294         * infcmd.c (print_return_value): Move code calling
6295         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6296         to legacy_return_value, simplify.
6297         * infcall.c (call_function_by_hand): Move code calling
6298         EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6299         * arch-utils.c: Update copyright.  Include "gdbcore.h".
6300         (legacy_return_value): New function.
6301         * arch-utils.h: Update copyright.
6302         (legacy_return_value): Declare.
6303         
6304 2004-06-20  Andrew Cagney  <cagney@gnu.org>
6305
6306         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6307         * gdbarch.h, gdbarch.c: Re-generate.
6308         * values.c (using_struct_return): Update call.
6309         * mcore-tdep.c: Update comment.
6310         * infcall.c (call_function_by_hand): Update comment.
6311         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6312         * arch-utils.h (always_use_struct_convention): Update.
6313         * v850-tdep.c (v850_gdbarch_init): Update.
6314         * sh64-tdep.c (sh64_gdbarch_init): Update.
6315         * sh-tdep.c (sh_gdbarch_init): Update.
6316         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6317         * mips-tdep.c (mips_gdbarch_init): Update.
6318         * mcore-tdep.c (mcore_gdbarch_init): Update.
6319         * m32r-tdep.c (m32r_gdbarch_init): Update.
6320         * ia64-tdep.c (ia64_gdbarch_init): Update.
6321         * h8300-tdep.c (h8300_gdbarch_init): Update.
6322         * frv-tdep.c (frv_gdbarch_init): Update.
6323         * cris-tdep.c (cris_gdbarch_init): Update.
6324         * arm-tdep.c (arm_gdbarch_init): Update.
6325         * alpha-tdep.c (alpha_gdbarch_init): Update.
6326
6327 2004-06-18  Michael Chastain  <mec.gnu@mindspring.com>
6328
6329         * PROBLEMS: Add more specific information, and a work-around,
6330         for PR gdb/1458.
6331
6332 2004-06-18  Andrew Cagney  <cagney@gnu.org>
6333
6334         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6335         * gdbarch.h, gdbarch.c: Re-generate.
6336         * ada-lang.c (ada_finish_decode_line_1): Update.
6337         * infrun.c (handle_inferior_event): Update.
6338         * infcall.c (find_function_addr): Update.
6339         * linespec.c (minsym_found): Update.
6340         * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6341         Update.
6342         * blockframe.c (legacy_frameless_look_for_prologue): Update.
6343         * cli/cli-cmds.c (disassemble_command): Update.
6344         * vax-tdep.c (vax_gdbarch_init): Update.
6345
6346 2004-06-18  Mark Kettenis  <kettenis@gnu.org>
6347
6348         * i386-tdep.c (i386_collect_fpregset): Fix comment.
6349
6350 2004-06-17  Andrew Cagney  <cagney@gnu.org>
6351
6352         GDB 6.1.1 released from the GDB 6.1 branch.
6353         * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6354         * PROBLEMS: Ditto.
6355
6356 2004-06-16  Daniel Jacobowitz  <dan@debian.org>
6357
6358         PR gdb/1658
6359         * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6360         operation as a uleb128.  Found by Michael Coulter.
6361
6362 2004-06-16  Paul N. Hilfinger  <Hilfinger@gnat.com>
6363         
6364         * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6365         make it non-static.
6366         * ada-lang.h (task_control_block): declaration moved from ada-task.c
6367         to ada-lang.h; this is needed to be able to implement the kill command
6368         in multi-task mode.
6369         (task_ptid): Ditto.
6370         (task_entry): Ditto.
6371         (task_list): Ditto.
6372         (ada_build_task_list): Ditto.
6373         
6374         * ada-lang.c: Conditionalize routines and data structures related 
6375         to breakpoints, exceptions, completion, and symbol caching on 
6376         GNAT_GDB, since these are not yet used in the submitted public sources.
6377         (ada_main_name): Editorial: Move definition out of exception-related 
6378         code.
6379
6380 2004-06-15  Andrew Cagney  <cagney@gnu.org>
6381
6382         * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6383         deprecated_pc_in_call_dummy.
6384
6385 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
6386
6387         * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6388         bfd_get_section_size_before_reloc or _raw_size.
6389         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6390         * dwarf2read.c (dwarf2_locate_sections): Likewise.
6391         (dwarf2_read_section): Likewise.
6392         * elfread.c (elf_locate_sections): Likewise.
6393         * gcore.c (derive_heap_segment): Likewise.
6394         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6395         * remote-e7000.c (e7000_load): Likewise.
6396         * remote-m32r-sdi.c (m32r_load): Likewise.
6397         * remote-mips.c (mips_load_srec): Likewise.
6398         (pmon_load_fast): Likewise.
6399         * remote.c (compare_sections_command): Likewise.
6400         * symfile.c (add_section_size_callback): Likewise.
6401         (load_section_callback): Likewise.
6402         (pc_in_unmapped_range): Likewise.
6403         (pc_in_mapped_range): Likewise.
6404         (sections_overlap): Likewise.
6405         (list_overlays_command): Likewise.
6406         (simple_overlay_update_1): Likewise.
6407         (simple_overlay_update): Likewise.
6408         * tracepoint.c (remote_set_transparent_ranges): Likewise.
6409         * win32-nat.c (core_section_load_dll_symbols): Likewise.
6410
6411 2004-06-14  Randolph Chung  <tausq@debian.org>
6412
6413         * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6414         * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make 
6415         static.
6416         (hppa_hpux_inferior_created): New function.
6417         (hppa_hpux_init_abi): Register observer.
6418         * symfile.c (hp_cxx_exception_support_initialized)
6419         (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6420         (symbol_file_add_main_1, symbol_file_clear): Likewise.
6421
6422 2004-06-14  Randolph Chung  <tausq@debian.org>
6423
6424         * MAINTAINERS (Write After Approval): Alphabetize my entry
6425         correctly.
6426
6427 2004-06-14  Andrew Cagney  <cagney@gnu.org>
6428
6429         * MAINTAINERS (testsuite): List Michael Chastain as the lead
6430         testsuite maintainer.
6431
6432 2004-06-13  Andrew Cagney  <cagney@gnu.org>
6433
6434         * infcmd.c (print_return_value): Fix logic, allow
6435         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6436
6437         * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6438         defining any macros.
6439         * gdbarch.h: Re-generate.
6440
6441         * gdbarch.sh: Delete "level" attribute.  Only check for a macro
6442         redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6443         * gdbarch.h: Re-generate.
6444
6445         * values.c (generic_use_struct_convention): Don't check gcc_p.
6446
6447         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6448         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6449         * gdbarch.h, gdbarch.c: Regenerate.
6450         * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE) 
6451         (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6452         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6453         deprecated_max_register_raw_size and
6454         deprecated_max_register_virtual_size.
6455         * v850-tdep.c (v850_gdbarch_init): Ditto.
6456         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6457         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6458         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6459         * cris-tdep.c (cris_gdbarch_init): Ditto.
6460
6461         * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6462         * gdbarch.h, gdbarch.c: Re-generate.
6463         * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6464         (m68hc11_use_struct_convention): Delete function.
6465         (m68hc11_extract_struct_value_address): Delete function.
6466         (m68hc11_return_value): New function.
6467         (m68hc11_gdbarch_init): Instead of store_return_value,
6468         extract_return_value, return_value_on_stack,
6469         deprecated_extract_struct_value_address and use_struct_convention,
6470         set return_value.
6471         * values.c (using_struct_return): Do not call
6472         RETURN_VALUE_ON_STACK.
6473         * arch-utils.h (generic_return_value_on_stack_not): Delete
6474         declaration.
6475         * arch-utils.c (generic_return_value_on_stack_not): Delete
6476         function.
6477         
6478 2004-06-12  Andrew Cagney  <cagney@gnu.org>
6479
6480         * values.c (register_value_being_returned): Delete function.
6481         * infcmd.c (legacy_return_value): Delete function.
6482         * infcall.c (call_function_by_hand): Inline
6483         "register_value_being_returned", simplify.
6484         * values.c (using_struct_return): Update comment, refer to
6485         print_return_value instead of register_value_being_returned.
6486         * infcmd.c (print_return_value): Inline calls to
6487         register_value_being_returned and legacy_return_value.  Simplify.
6488
6489 2004-06-11  Randolph Chung  <tausq@debian.org>
6490
6491         * somread.c (som_symtab_read): Exclude gcc local symbols.
6492
6493 2004-06-11  Randolph Chung  <tausq@debian.org>
6494
6495         * infrun.c (handle_inferior_event): Handle the case when a
6496         trampoline ends up in the runtime resolver, and if the trampoline
6497         has no name.  Rearrange the code so that all the trampoline
6498         processing happens before other step-out-of-range handling.
6499
6500 2004-06-11  Martin Hunt  <hunt@redhat.com>
6501
6502         * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6503         has no fpu.
6504
6505 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6506
6507         * blockframe.c (legacy_inside_entry_func): Delete.
6508         (legacy_frame_chain_valid): Inline call to
6509         legacy_inside_entry_func, simplify.
6510
6511 2004-06-10  Bob Rossi  <bob@brasko.net>
6512
6513         * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6514         * dwarf2read.c (partial_die_info): Add dirname field.
6515         (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6516         (read_partial_die): Save away DW_AT_comp_dir.
6517         * defs.h (symtab_to_filename): Removed.
6518         * source.c (find_and_open_source): Added.
6519         (open_source_file): Just calls find_and_open_source.
6520         (symtab_to_filename): Removed.
6521         (symtab_to_fullname, psymtab_to_fullname): Added.
6522         * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6523         * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6524         symtab_to_filename.
6525         * symtab.h (partial_symtab): Add dirname field.
6526         * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6527         (mi_cmd_file_list_exec_source_file): Call new function
6528         symtab_to_fullname to find fullname.
6529         (mi_cmd_file_list_exec_source_files): Added.
6530         * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6531         * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6532
6533 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6534
6535         * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6536         to generic_use_struct_convention, the default value.
6537
6538         * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6539         of abort.
6540
6541         * ns32k-tdep.c (ns32k_push_arguments): New function.
6542         (ns32k_gdbarch_init): Set deprecated_push_arguments.
6543         * infcall.c (call_function_by_hand): Call error instead of
6544         legacy_push_arguments.
6545         * value.h (legacy_push_arguments): Delete declaration.
6546         * valops.c (legacy_push_arguments): Delete function.
6547         (value_push): Delete function.
6548
6549 2004-06-10  Brian Ford  <ford@vss.fsi.com>
6550
6551         * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6552         from corrupting/reinitializing the psymtab.  Support DWARF 2 frame
6553         info.
6554         * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6555
6556 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6557
6558         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6559         * gdbarch.h, gdbarch.c: Re-generate.
6560         * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6561         parameters.
6562         * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6563         * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6564         deprecated_pc_in_call_dummy instead of
6565         DEPRECATED_PC_IN_CALL_DUMMY.
6566         (arm_skip_prologue): Ditto.
6567         * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6568         (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6569         * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6570         (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6571         Ditto.
6572         * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr) 
6573         (sh64_init_extra_frame_info, sh64_get_saved_register) 
6574         (sh64_pop_frame): Ditto.
6575         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6576         * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc) 
6577         (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6578         * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc) 
6579         (h8300_pop_frame): Ditto.
6580         * blockframe.c (legacy_inside_entry_func) 
6581         (legacy_frame_chain_valid): Ditto.
6582         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6583         to deprecated_pc_in_call_dummy.
6584         
6585 2004-06-09  Andrew Cagney  <cagney@gnu.org>
6586
6587         * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6588         provide a default value.
6589         (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6590         * gdbarch.h, gdbarch.c: Re-generate.
6591         * arch-utils.c (generic_convert_register_p): Rename
6592         legacy_convert_register_p
6593         (legacy_register_to_value, legacy_value_to_register): Delete
6594         functions.
6595         * arch-utils.h (generic_convert_register_p): Rename
6596         legacy_convert_register_p.
6597         (legacy_register_to_value, legacy_value_to_register): Delete
6598         declarations.
6599
6600         * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6601         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6602         (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6603         * gdbarch.h, gdbarch.c: Re-generate.
6604         * infcmd.c (default_print_registers_info): Simplify.
6605         * findvar.c (value_of_register): Simplify.
6606         * mi/mi-main.c (get_register): Simplify.
6607         * arch-utils.c (legacy_convert_register_p): Always return 0.
6608         (legacy_register_to_value, legacy_value_to_register): Always call
6609         internal_error.
6610
6611         * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6612         #ifdef CLEAR_INSN_CACHE code.
6613         * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6614         Delete #ifdef CLEAR_DEFERRED_STORES code.
6615
6616         * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6617
6618         * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6619         copyright.
6620         * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6621
6622         * config/mips/mipsv4.mh: Delete file.
6623
6624         * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6625         unreferenced macro.
6626         (hpread_adjust_stack_address): Delete declaration.
6627
6628 2004-06-08  Andrew Cagney  <cagney@gnu.org>
6629
6630         * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6631         (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6632         PTRACE_ATTACH / PTRACE_DETACH available call error.
6633         (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6634         * infttrace.c (update_thread_state_after_attach, attach, detach):
6635         Remove #ifdef wrappers.
6636         * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6637         * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6638         * config/nm-bsd.h (ATTACH_DETACH): Delete.
6639         * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6640         * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6641         * config/nm-linux.h (ATTACH_DETACH): Delete.
6642         * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6643         * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6644         * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6645         * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6646         * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6647
6648 2004-06-08  Corinna Vinschen  <vinschen@redhat.com>
6649
6650         * configure.in: Set $configdir to the right OS specific value.
6651         Use value when setting $tcldir and $tkdir.
6652         * configure: Regenerate.
6653
6654 2004-06-06  Paul Brook  <paul@codesourcery.com>
6655
6656         * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6657         records.
6658
6659 2004-06-08  Paul N. Hilfinger  <Hilfinger@gnat.com>
6660
6661         * ada-lang.c (lookup_symbol_in_language): New function to allow
6662         re-use of another language's symbol lookup code.  (Placed here
6663         temporarily while Ada support is being integrated into the public
6664         tree).  
6665         (restore_language): New auxiliary function for 
6666         lookup_symbol_in_language.
6667         * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6668         temporarily while Ada support is being integrated into the public
6669         tree).
6670         
6671 2004-06-08  Alexandre Oliva  <aoliva@redhat.com>
6672
6673         * Makefile.in (check//%): New.
6674
6675         * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6676         (mn10300_store_return_value): Rewrite.
6677         (mn10300_type_align): New.
6678         (mn10300_use_struct_convention): Rewrite.
6679         (mn10300_return_value): New, using all of the above.
6680         (mn10300_pop_frame_regular): Add saved_regs_size.
6681         (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6682
6683         * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6684         regs if PC is on movm.
6685
6686 2004-06-07  Jim Blandy  <jimb@redhat.com>
6687
6688         Add native Linux support for the PowerPC E500.
6689         * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6690         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6691         all architectures except the E500.
6692         * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6693         #definitions.
6694         (struct gdb_evrregset_t): New type.
6695         (have_ptrace_getsetevrregs): New variable.
6696         (get_spe_registers, read_spliced_spe_reg, fetch_spe_register, 
6697         fetch_spe_registers): New functions.
6698         (fetch_register): Call fetch_spe_register as appropriate.
6699         Assert that we're only passed raw register numbers.
6700         (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6701         Don't fetch gprs if they're pseudoregisters.
6702         (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6703         store_spe_registers): New functions.
6704         (store_register): Call store_spe_register as appropriate.
6705         Assert that we're only passed raw register numbers.
6706         (store_ppc_registers): Call store_spe_registers as appropriate.
6707         Don't store gprs if they're pseudoregisters.
6708         
6709 2004-06-07  Jeff Johnston  <jjohnstn@redhat.com>
6710
6711         * thread-db.c (thread_get_info_callback): Fill in the thread_info
6712         struct if one exists, even if we are dealing with a zombie thread.
6713
6714 2004-06-07  Andrew Cagney  <cagney@gnu.org>
6715
6716         * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6717         * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6718         Rename PC_REQUIRES_RUN_BEFORE_USE.
6719         * breakpoint.c (breakpoint_sals_to_pc): Update.  Wrap reference in
6720         #ifdef.
6721
6722 2004-06-07  Randolph Chung  <tausq@debian.org>
6723
6724         * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6725         unwinding after sp has been saved to the stack but before the end
6726         of the prologue, and after the fp has been modified but before it has
6727         been saved to the stack.
6728         (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): 
6729         Remove superfluous definitions.
6730         (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6731
6732 2004-06-07  Guy Martin  <gmsoft@gentoo.org>
6733
6734         Committed by Randolph Chung.
6735         * hppa-linux-nat.c: Include the correct version of the header file
6736         depending on the kernel version.
6737
6738 2004-06-06  Randolph Chung  <tausq@debian.org>
6739
6740         * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6741         (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6742
6743 2004-06-06  Randolph Chung  <tausq@debian.org>
6744
6745         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) 
6746         (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6747         * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6748         * hppa-tdep.c (hppa_symbol_address): New function definition.
6749         * hppa-tdep.h (hppa_symbol_address): New function declaration.
6750
6751 2004-06-06  Randolph Chung  <tausq@debian.org>
6752
6753         * hppa-tdep.h (struct value): Forward declaration.
6754         (gdbarch_tdep): Define tdep find_global_pointer method.
6755         * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6756         associated with the function we are trying to call, and write it
6757         to the gp register.
6758         (hppa32_convert_from_funct_ptr_addr): New function.
6759         (hppa_find_global_pointer): New function.
6760         (hppa_gdbarch_init): Set default find_global_pointer method; set
6761         convert_from_func_ptr_addr method.
6762         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6763         (hppa_linux_init_abi): Set find_global_pointer method.
6764         * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6765
6766 2004-06-06  Randolph Chung  <tausq@debian.org>
6767
6768         * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6769         to struct value *function.
6770         * gdbarch.c: Regenerate.
6771         * gdbarch.h: Likewise.
6772         * infcall.c (call_function_by_hand): Pass entire function value
6773         to push_dummy_call.
6774
6775         * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6776         (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6777         * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6778         * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6779         * arm-tdep.c (arm_push_dummy_call): Likewise.
6780         * avr-tdep.c (avr_push_dummy_call): Likewise.
6781         * cris-tdep.c (cris_push_dummy_call): Likewise.
6782         * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6783         * frv-tdep.c (frv_push_dummy_call): Likewise.
6784         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6785         * hppa-tdep.c (hppa32_push_dummy_call)
6786         (hppa64_push_dummy_call): Likewise.
6787         * i386-tdep.c (i386_push_dummy_call): Likewise.
6788         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6789         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6790         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6791         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6792         * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6793         * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6794         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6795         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6796         (ppc64_sysv_abi_push_dummy_call): Likewise.
6797         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6798         (ppc64_sysv_abi_push_dummy_call): Likewise.
6799         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6800         * s390-tdep.c (s390_push_dummy_call): Likewise.
6801         * sh-tdep.c (sh_push_dummy_call_fpu)
6802         (sh_push_dummy_call_nofpu): Likewise.
6803         * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6804         * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6805         * vax-tdep.c (vax_push_dummy_call): Likewise.
6806
6807 2004-06-04  Jim Blandy  <jimb@redhat.com>
6808
6809         * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6810         gdbarch argument to register_size.
6811
6812         * rs6000-tdep.c (rs6000_store_return_value): Use
6813         regcache_cooked_write_part instead of
6814         deprecated_write_register_bytes.
6815         (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6816         not gdbarch_deprecated_store_return_value.
6817
6818         * ppc-linux-nat.c (store_register, fetch_register): Remove
6819         incorrect assertions.  Simplify and generalize handling of
6820         transfers whose sizes are not multiples of, or less than, sizeof
6821         (PTRACE_XFER_TYPE).
6822
6823 2004-06-04  Jeff Johnston  <jjohnstn@redhat.com>
6824
6825         * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6826         as a new thread event.
6827         * thread-db.c (thread_get_info_callback): If the thread is a
6828         zombie, return TD_THR_ZOMBIE.
6829         (thread_from_lwp): If thread_get_info_callback returns
6830         TD_THR_ZOMBIE, check if the thread is still on the thread list
6831         and return a -1 ptid if not found.
6832         (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6833         change the status to TARGET_WAITKIND_SPURIOUS.
6834
6835 2004-06-03  Corinna Vinschen  <vinschen@redhat.com>
6836
6837         * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6838         double values in little endian mode.
6839
6840 2004-06-02  Albert Chin-A-Young  <china@thewrittenword.com>
6841
6842         Committed by Andrew Cagney.
6843         * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6844         after last enum constant to avoid error from IBM C
6845         compiler.
6846
6847 2004-06-02  Jim Blandy  <jimb@redhat.com>
6848
6849         * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6850         to 'message', and make it local to the lone block that uses it.
6851
6852         * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6853
6854 2004-06-02  Paul N. Hilfinger  <hilfinger@gnat.com>
6855
6856         * ada-exp.y: Update copyright notice.
6857         Include block.h.
6858         
6859         Replace REGNAME, LAST, INTERNAL_VARIABLE with
6860         SPECIAL_VARIABLE and unify the treatment of these cases.
6861
6862         (write_attribute_call0): Remove.
6863         (write_attribute_call1): Remove.
6864         (write_attribute_calln): Remove.
6865         (save_qualifier): Add missing semicolon.
6866
6867         (simple_exp,exp): Decomment (i.e., reactivate) code that was 
6868         temporarily disabled to allow compilation with FSF head version.
6869
6870         (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and 
6871         use individual operators (OP_*) for all attributes.
6872         (exp syntax): Use write_int.
6873         Handle STRING literals with OP_STRING.
6874         (variable syntax): Add limit parameter to calls to 
6875         write_object_renaming.  
6876
6877         (temp_parse_space): New definition to hold entities that need
6878         only live until the next call to ada_parse.
6879         (string_to_operator): Rename fields of ada_opname_table entries.
6880
6881         (write_var_from_sym): Record block.
6882         (write_var_from_name): Minor reformatting.
6883         Make sure saved name is properly encoded in the case of multiple 
6884         matches, and set its language to Ada.
6885         Update comment.
6886         Modify to indicate unresolved name as symbol in the UNRESOLVED 
6887         namespace, allocated in temp_parse_space.
6888         (write_int): New function.
6889
6890         (write_object_renaming): Add max_depth parameter to limit
6891         chains of object renamings.
6892         Handle case where root of renaming expression is itself a renaming.
6893         Use temp_parse_space for temporary name buffer.
6894         Handle renamings to dereferenced pointers (___XEXA suffices).
6895         
6896         (ada_parse, yyerror, string_to_operator, 
6897         write_var_from_sym, write_var_from_name, write_attribute_call0, 
6898         write_attribute_call1, write_attribute_calln, 
6899         write_object_renaming): Protoize.
6900
6901         (_initialize_ada_exp): New function.
6902         
6903         * ada-lang.c: Update copyright notice.
6904         General terminology change to conform to GNAT compiler usage:
6905         mangle => encode, demangle => decode
6906         Include gdb_obstack.h.
6907         Include gdb_regex.h
6908         Include frame.h
6909         Include hashtab.h
6910         Include completer.h
6911         Include gdb_stat.h
6912         Include block.h
6913         Include infcall.h
6914         
6915         (ADA_RETAIN_DOTS): Make sure this is defined.
6916         (TRUNCATION_TOWARDS_ZERO): Define.
6917         (struct string_vector): Define.
6918         (unresolved_names): Remove definition.
6919         (xnew_string_vector): New function.
6920         (string_vector_append): New function.
6921         (extract_string): Make static.
6922         (ada_unqualified_name): New function.
6923         (add_angle_brackets): New function.
6924         (function_name_from_pc): New function.
6925         (place_on_stack): Rename to ensure_lval.
6926
6927         (ensure_lval): Renamed from place_on_stack.
6928         Make identity on lvals.
6929         Update comment.
6930         (is_nonfunction): New interface.
6931         Only symbols in LOC_CONST class can be enumerals.
6932         (fill_in_ada_prototype): Remove; now independent of language.
6933         (add_defn_to_vec): Add obstack and symtab arguments.
6934         Use obstack to hold collected definitions.
6935         (num_defns_collected): New function.
6936         (defns_collected): New function.
6937         (ada_resolve_subexp): Rename to resolve_subexp.
6938         (resolve_subexp): Renamed from ada_resolve_subexp.
6939         (ada_op_name): Return non-const result.
6940         (ada_decoded_op_name): Renamed from ada_op_name, now used for
6941         other purposes.
6942
6943         (to_fixed_array_type): Add declaration.
6944         (coerce_unspec_val_to_type): Remove offset parameter.
6945         (find_sal_from_funcs_and_line): New interface.
6946         (find_line_in_linetable): Ditto.
6947
6948         (all_sals_for_line): Rename to ada_sals_for_line and make
6949         global.
6950         Add new parameter. When set, do not ask the user to choose the 
6951         instance, but use the first one found instead.
6952         Use given line number in returned sals.
6953         Fix comment. 
6954         Skip the prologue if funfirstline is set.
6955         Correct for memory leak when 0 lines found.
6956
6957         (value_pos_atr): Use pos_atr.
6958         (pos_atr): New function.
6959         (standard_lookup): Add block parameter.
6960
6961         (makeTimeStart): Remove declaration and uses.
6962         (makeTimeStop): Remove declaration and uses.
6963
6964         (ada_completer_word_break_characters): Allow for VMS.
6965         (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6966         (raise_sym_name): New constant.
6967         (raise_unhandled_sym_name): New constant.
6968         (raise_assert_sym_name): New constant.
6969         (process_raise_exception_name): New constant.
6970         (longest_exception_template): New constant.
6971         (warning_limit): New variable to limit warnings during expression
6972         evaluation.
6973         (warnings_issued): New variable to keep track of warnings issued.
6974         (known_runtime_file_name_patterns): New constant.
6975         (known_auxiliary_function_name_patterns): New constant.
6976         (symbol_list_obstack): New variable.
6977         
6978         (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6979         ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6980         lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6981         find_sal_from_funcs_and_line, ada_breakpoint_rewrite, 
6982         ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field, 
6983         ada_variant_discrim_name, field_alignment, dynamic_template_type,
6984         ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type): 
6985         Replace use of deprecated STREQ and STREQN macros by calls to strncmp 
6986         and strcmp. 
6987
6988         (ada_get_field_index): New function.
6989         (lim_warning): New function.
6990         (ada_translate_error_message): New function.
6991         (MAX_OF_SIZE): New function.
6992         (MIN_OF_SIZE): New function.
6993         (UMAX_OF_SIZE): New function.
6994         (UMIN_OF_SIZE): New function.
6995         (discrete_type_high_bound): New function.
6996         (discrete_type_low_bound): New function.
6997         (base_type): New function.
6998         (do_command): Remove.
6999         
7000         (ada_update_initial_language): Use language_ada, not language_unknown.
7001         (ada_encode): Renamed from ada_mangle.
7002         Obey ADA_RETAIN_DOTS.
7003         (ada_decode): Renamed from ada_demangle.
7004         Update coding conventions.
7005         (decoded_names_store): New hash table.
7006         (ada_decode_symbol): New function.
7007         (ada_la_decode): New function.
7008         
7009         (modify_general_field): Correct computations of offset and bit 
7010         position.
7011         (desc_base_type): Handle ref types, too.
7012         (ada_is_direct_array_type): New function.
7013
7014         (ada_is_simple_array): Rename to ada_is_simple_array_type.
7015         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7016         (ada_is_bogus_array_descriptor,ada_type_of_array,
7017         ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
7018         ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed 
7019         ada_is_array_descriptor_type.
7020         
7021         (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
7022         (ada_is_packed_array_type): Handle pointers or 
7023         references to packed arrays as well.
7024         (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
7025         (decode_packed_array_type): Search for the packed array type 
7026         symbol in the currently selected block and associated 
7027         superblocks too.
7028         Use lookup_symbol again.
7029
7030         (decode_packed_array): Handle pointers and references.
7031         Update call to coerce_unspec_val_to_type.
7032         (decode_packed_array_type,value_subscript_packed): Limit warnings.
7033         (ada_value_primitive_packed_val): Improve comment.
7034         
7035         (ada_index_type): Substitute int type for "undefined".
7036         (ada_index_type,ada_array_bound_from_type,ada_array_bound,
7037         ada_array_langth, ada_is_string_type): Use renamed 
7038         ada_is_simple_array_type.
7039         (empty_array): New function.
7040
7041         (ada_resolve):  Rename to resolve.
7042         (resolve): Make static.
7043         Call renamed resolve_subexp.
7044         Update comment.
7045         (ada_resolve_subexp): Rename to resolve_subexp.
7046         (resolve_subexp): Update comment.
7047         Decomment disabled code.
7048         Add LOC_COMPUTED* cases.
7049         Modify to use temporary struct symbols (marked as being in 
7050         UNDEF_NAMESPACE) to indicate unresolved names, instead of 
7051         OP_UNRESOLVED_VALUE.
7052         Remove OP_ATTRIBUTE; use individual opcodes for attributes.     
7053         Add OP_STRING case.
7054         Remove OP_ARRAY.
7055         Use SYMBOL_PRINT_NAME instead of ada_demangle.
7056         Use new ada_lookup_symbol_list interface.
7057         Use new ada_resolve_function interface.
7058         Remove OP_TYPE case.
7059
7060         (ada_args_match): Idiot proof against null actuals.
7061         Use intermediate variables to clarify.
7062         (ada_resolve_function): Update comment and interface.
7063         (mangled_ordered_before): Rename to encoded_ordered_before and
7064         update comment.
7065         (sort_choices): Update comment and interface.
7066         Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
7067         (user_select_syms): New interface.
7068         Use new sort_choices interface.
7069         Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
7070         (possible_user_operator_p): Idiot-proof against null values.
7071         (ada_simple_renamed_entity): Don't make cleanup; rely on 
7072         caller to free result string.
7073         Remove const from return type.
7074         (make_array_descriptor): Rename uses of place_on_stack to 
7075         ensure_lval.
7076         Make sure that arrays are on stack.
7077         
7078         (HASH_SIZE): Define.
7079         (struct cache_entry): Define.
7080         (cache_space): Define.
7081         (cache): Define.
7082         (clear_ada_sym_cache): New function.
7083         (find_entry): New function.
7084         (lookup_cached_symbol): New function.
7085         (defn_vector_size): Define.
7086         (cache_symbol): New function.
7087         (defn_symbols): Remove.
7088         
7089         (standard_lookup): Use lookup_symbol_in_language to get effect of
7090         C lookup.
7091         Cache results.
7092         
7093         (symbol_completion_match): New function.
7094         (symbol_completion_add): New function.
7095         (ada_make_symbol_completion_list): New function.
7096
7097         (ada_lookup_partial_symbol,ada_lookup_simple_minsym, 
7098         add_symbols_from_enclosing_procs,remove_extra_symbols): Replace 
7099         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME. 
7100         (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
7101         
7102         (ada_lookup_simple_minsym): New function.
7103         (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
7104
7105         (add_symbols_from_enclosing_procs): New interface.
7106         Conditionalize more helpfully.
7107         Don't bother if program isn't running.
7108         Use new interface to get_frame_block.
7109         Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
7110         
7111         (remove_extra_symbols): New interface.
7112         (xget_renaming_scope): New function.
7113         (is_package_name): New function.
7114         (renaming_is_visible): New function.
7115         (remove_out_of_scope_renamings): New function.
7116
7117         (ada_lookup_symbol_list): New interface.
7118         Properly reinitialize the symbol list obstack.
7119         Don't call add_symbols_from_enclosing_procs if we start from a
7120         static or global block.
7121         Use new interfaces to ada_add_block_symbols, add_defn_to_vec, 
7122         add_symbols_from_enclosing_procs.
7123         Add symtab data to cached entries.
7124         Handle symbols prefixed with
7125         "standard__" specially; strip prefix and don't look in local symbols.
7126         Do not include out of scope renaming symbols in list of 
7127         symbols returned.
7128         Add const to block parameter.
7129         Move check for non-local, non-global symbols earlier.  
7130         Remove timing stuff.
7131         (ada_lookup_symbol): New interface.
7132         Find symtab as well.
7133         (ada_lookup_symbol_nonlocal): New function.
7134
7135         (is_name_suffix): Enhance suffix detection to recognize
7136         an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7137         (is_dot_digits_suffix): New function.
7138         (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7139         
7140         (ada_add_block_symbols): New interface.  Use obstack to return results
7141         in a vector of struct ada_symbol_infos.  Add symtab argument.
7142         Use new interface to add_defn_to_vec.
7143         Remove calls to fill_in_ada_prototype.
7144         Use BLOCK_BUCKETS, BLOCK_BUCKET.
7145         
7146         (ada_finish_decode_line_1): Add const qualification to local to fix
7147         warning.
7148         Start looking in static block for functions to avoid attempts 
7149         to search frame chain for up-level variables.
7150         Adapt to new ada_sals_for_line interface.
7151         Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7152         Handle quoting of the function name inside the spec string.
7153         Skip prologue when funfirstline is set and update the 
7154         function documentation to that effect.
7155
7156         (debug_print_lines, debug_print_block, debug_print_blocks, 
7157         debug_print_symtab): Remove.
7158
7159         (ada_main_name): New function.  
7160         (ada_exception_breakpoint_type): New function.
7161         (is_known_support_routine): New function.
7162         (ada_find_printable_frame): Renamed from find_printable_frame and made
7163         global.
7164         Remove level parameter.
7165         Use new interface to select_frame.
7166
7167         (begin_command): Remove.
7168         (ada_adjust_exception_stop): New function.
7169         (ada_print_exception_stop): New function.
7170         (exception_name_from_cond): New function.
7171         (ada_report_exception_break): Replace disabled code with 
7172         conditionalization on GNAT_GDB.
7173         Get the exception name from the condition string.
7174         Remove and move functionality into new functions 
7175         ada_print_exception_breakpoint_task and 
7176         ada_print_exception_breakpoint_nontask.
7177         (error_breakpoint_runtime_sym_not_found): New function.
7178         (is_runtime_sym_defined): New function.
7179         (ada_breakpoint_rewrite): Uncomment suppressed code.
7180         Use symbolic error-message and runtime-symbol names.
7181         Surround runtime symbol names in quotes.
7182         Allow non-specific breakpoints on exceptions and assertions before
7183         program starts.
7184         
7185         (ada_is_tagged_type): Add parameter.
7186         (ada_is_tag_type): New function.
7187         (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7188         (ada_variant_discrim_type): Ditto.
7189         (value_tag_from_contents_and_address): New function.
7190         (type_from_tag): New function.
7191         (struct tag_args): New structure used to communicate with
7192         ada_tag_name_1.
7193         (ada_tag_name_1): New function.
7194         (ada_tag_name): New function.
7195
7196         (ada_scan_number): Update comment.
7197         (find_struct_field): New function.
7198         (ada_search_struct_field): Make static.
7199         (ada_value_struct_elt): New version that returns references when
7200         given pointers or references to structs.
7201         (ada_lookup_struct_elt_type): Add 'refok' parameter.
7202         (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7203         interface.
7204         (ada_value_ind): Use new ada_to_fixed_value interface.
7205         (ada_coerce_ref): Ditto.
7206         (field_offset): Remove.
7207
7208         (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7209         (ada_find_renaming_symbol): New function.
7210         (ada_prefer_type): Prefer named types over unnamed ones.
7211         (variant_field_index): New function.
7212         (contains_variant_part): Removed: subsumed by variant_field_index.
7213         (ada_template_to_fixed_record_type): New function, mostly from
7214         template_to_fixed_record_type.
7215         (template_to_fixed_record_type): 
7216         Do not scan the type fields beyond the last one; prevents a 
7217         potential SEGV.
7218         Handle case where variant field is listed BEFORE discriminant it 
7219         depends on.
7220         Fix calculation of record length when bit length is 
7221         not evenly divisible by char length.
7222         Move code to ada_template_to_fixed_record_type and call it.
7223
7224         (template_to_static_fixed_type): Revise comment.  
7225         Modify to work on ordinary record types as well as templates, 
7226         so as to handle fields that use ___XVE or ___XVU encodings. 
7227         (to_record_with_fixed_variant_part): Fill out comment.
7228         Initialize C++ stuff in right type.
7229         Allow case where DVAL is null.
7230         Handle case where variant field is not last.
7231         Fix typo concerning record length.
7232         (to_fixed_record_type): Decomment disabled code.
7233         (to_fixed_record_type): Use variant_field_index instead of 
7234         contains_variant_part.
7235         (to_fixed_variant_branch_type): Ditto.
7236         (to_fixed_array_type): Decomment disabled code.
7237         (ada_to_fixed_type): Convert tagged types to the specific type.
7238         Deactivate the size-check for array types in order to avoid 
7239         some false size alarms.
7240         (to_static_fixed_type): Decomment disabled code.
7241         Modify to call template_to_static_fixed_type
7242         on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7243         (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7244         Remove valaddr argument, as it is never really used.
7245         (ada_to_fixed_value): Change interface to act on single struct value*
7246         operand.
7247         (adjust_pc_past_prologue): New function.
7248         (ada_attribute_name): Modify to take enum exp_opcode argument.
7249                 
7250         (ada_enum_name): Recognize new homonym-distinguishing convention.
7251         Adjust local variable's type to remove compiler warning.
7252         Fix a small problem in the part that unqualifies the enumeration name.
7253         (ada_value_binop): New function.
7254         (ada_value_equal): New function.
7255
7256         (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7257         Don't give error message when not doing normal evaluation 
7258         and a tagged type doesn't seem to contain a structure member.
7259         Give error message for packed arrays.
7260         For indexing arrays, handle pointers to packed arrays correctly.
7261         Handle case of 'first and 'last attributes of bare integral type 
7262         without encoded subtype info.  
7263         Remove some unnecessary casts.
7264         Fix uninitialized value of type in computing 'first, 'last, or 'length
7265         of array object.  
7266         Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7267         Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7268         calls.
7269         Attributes are now exp_opcode values.
7270         Correct treatment of 'modulus.
7271         Better error message for taking 'length of wrong kind of type; 
7272         improve comment.
7273         Change EVAL_NORMAL to noside for consistency.
7274         Use ada_value_binop for DIV, MOD, REM.
7275         Make special case out of array of length 0, since an argument 
7276         of 0 upsets some platforms' malloc.
7277         Use OP_STRING instead of OP_ARRAY.
7278         For slice, add check that we have an array type before extracting 
7279         a slice out of it.  Avoids a SEGV.
7280         When evaluating an array slice, if the array type is a reference to 
7281         an aligner type, then replace the aligner type by the actual type.
7282         Decomment disabled code.
7283         Remove some dead code.
7284         Use temporary struct symbols (marked as being in UNDEF_NAMESPACE) 
7285         to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7286         Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE, 
7287         and UNOP_MBR to UNOP_IN_RANGE.
7288         If an array type has a parallel ___XVE type, then use it.
7289         Turn arrays into pointers for lvalue arrays.
7290         Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7291         bounds error and handle 0-length slices.
7292         Use lim_warning.
7293         When selecting fields, apply ada_to_fixed_value (because the fields 
7294         might have ___XVU or ___XVE encodings even if not dynamic.)
7295         Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7296         (ada_is_system_address_type): New function.
7297
7298         (get_var_value): Use new interface to ada_lookup_symbol_list.
7299         (get_int_var_value): New interface.
7300         (to_fixed_range_type): Allow unknown bound, with warning.
7301         (ada_is_modular_type): Decomment disabled code.
7302         (ADA_OPERATORS): New definition.
7303         (ada_operator_length): New function.
7304         (ada_expr_op_name): New function.
7305         (ada_forward_operator_length): New function.
7306         (ada_dump_subexp_body): New function.
7307         (ada_print_subexp): New function.
7308         (ada_exp_descriptor): New constant.
7309         (ada_op_print_tab): Add 'size.  Remove FIXMEs.
7310         (ada_language_defn): Add ada_exp_descriptor entry.
7311         Change ada_parse => parse.
7312         Add post-parser entry.
7313         Use ada-specific non-local symbol lookup.
7314         Don't use C-style arrays. 
7315         String lower-bound is 1.
7316         Decomment disabled code.        
7317         (parse): New function.
7318         New fields ada_translate_error_message, ada_lookup_symbol, 
7319         ada_lookup_minimal_symbol.
7320         
7321         * ada-lang.h: Update copyright dates.
7322         Replace the mangle/demangle terminology throughout by the
7323         more appropriate encode/decode one. 
7324         Include breakpoint.h.
7325         Forward declare struct partial_symbol, struct block.
7326         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7327         (EXTRACT_ADDRESS): Remove.
7328         (EXTRACT_INT): Remove.
7329         (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7330         (MAX_ENCLOSING_FRAME_LEVELS): Define.
7331         (MAX_RENAMING_CHAIN_LENGTH): Define.
7332         (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7333
7334         (enum task_states): Remove.
7335         ada_task_states: Remove.
7336         (fat_string): Remove.
7337         (struct entry_call): Remove.
7338         (struct task_fields): Remove.
7339         (struct task_entry): Remove.
7340
7341         (struct ada_symbol_info): Define.
7342         (enum ada_attribute): Remove.
7343         (enum ada_operator): Define.
7344         
7345         (ada_get_field_index): Declare.
7346         (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7347         (ada_is_simple_array): Rename to ada_is_simple_array_type.
7348         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7349         (ada_lookup_symbol_list): New interface.
7350         (ada_decode_symbol): Declare.
7351         (ada_decode): Declare.
7352         (ada_lookup_symbol): New interface.
7353         (ada_update_initial_language): Declare.
7354         (ada_lookup_simple_minsym): Declare.
7355         (user_select_syms): New interface.
7356         (ada_sals_for_line): Declare.
7357         (ada_is_tagged_type): New interface.
7358         (ada_tag_name): Declare.
7359         (ada_lookup_struct_elt_type): Remove declaration.
7360         (ada_search_struct_field): Remove declaration.
7361         (ada_attribute_name): New interface.
7362         (ada_is_system_address_type): Declare.
7363         (ada_to_fixed_value): Remove declaration.
7364         (ada_template_to_fixed_record_type_1): Declare.
7365         (get_int_var_value): New interface.
7366         (ada_find_any_symbol): Declare.
7367         (ada_find_renaming_symbol): Declare.
7368         (ada_mangle): Rename to ada_encode.
7369         (ada_simple_renamed_entity): Remove const.
7370         (ada_main_name): Declare.
7371         (get_current_task): Rename to ada_get_current_task.
7372         (get_entry_number): Remove declaration.
7373         (ada_report_exception_break): Remove declaration.
7374         (ada_print_exception_breakpoint_nontask): Declare.
7375         (ada_print_exception_breakpoint_task): Declare.
7376         (ada_find_printable_frame): Declare.
7377
7378         * ada-lex.l: Update copyright notices.
7379         Use xmalloc and xfree instead of malloc and free.
7380         Use new interface to name_lookup.
7381         Use new interface to 
7382         ada_mangle=>ada_encode.
7383         Redo handling of '$...' variable to parallel current treatment 
7384         in c-exp.y.  
7385         (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7386         digit_to_int, strtoulst, processInt, processReal, processId, 
7387         block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7388         yywrap): Protoize.
7389         
7390         (processInt): Use cast to remove harmless warning.
7391         (processReal): Modify to get rid of compiler warning on scan formats.
7392
7393         (processId): Replace xmalloc with obstack_alloc for name and remove
7394         call to ada_name_string_cleanup.
7395         Remove obsolete disabled code.
7396         (name_lookup): Ditto. 
7397         New interface.
7398         Use obsavestring on temp_parse_space instead of savestring 
7399         on name, and remove call to ada_name_string_cleanup.  
7400         Free string returned from ada_simple_renamed_entity.
7401         Use new interface to ada_lookup_symbol_list.
7402         Decomment disabled code.
7403         Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables, 
7404         not types.
7405         When a type name lookup succeeds as a result of 
7406         lookup_primitive_typename, check for regular type entry that has not 
7407         yet been read in.
7408         Limit length of chain of renamed symbols we are willing to follow.  
7409         Do not break names beginning with "standard__" into segments.  
7410         (block_lookup): Use new interface to ada_lookup_symbol_list.
7411         
7412         * ada-typeprint.c: Update copyright notice.
7413         (demangled_type_name): Rename to decoded_type_name.
7414         (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7415         (print_range_bound):  Correct handling of negative
7416         bounds that make the index type looked unsigned under STABS.  
7417         (print_dynamic_range_bound): Use new interface to get_int_var_value.
7418         (print_range_type_named):  Use the builtin int type if no type 
7419         corresponding to the given type name could be found.
7420         (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7421         Add some bullet-proofing.
7422         (print_variant_clauses): Allow for variant branches with ___XVU 
7423         encodings that are not dynamic fields.  
7424         Use new interface to ada_is_tagged_type.
7425         (print_record_type): Allow for fields with ___XVE encodings that 
7426         are not dynamic fields. 
7427         Use new interface to ada_is_tagged_type.
7428         (ada_print_type): ada_is_array_descriptor => 
7429         ada_is_array_descriptor_type.
7430
7431         * ada-valprint.c: Update copyright notice.
7432         Include gdb_string.h
7433         Include infcall.h
7434         (ui_memcpy): New function.
7435         (ada_print_floating): New function.
7436         (ada_print_str): Order arguments correctly.
7437         Correct handling of empty arrays and arrays of 0-length items. 
7438         ada_is_array_descriptor => ada_is_array_descriptor_type 
7439         Print values of type System.Address in hexadecimal format.
7440         Use ada_print_floating to print floating-point numbers in Ada format.
7441         Print class tag values with type names.  
7442         No longer print the address of reference values. Avoids 
7443         a potential confusion.  
7444         (ada_value_print): Stop printing the object type for reference
7445         values, but preserve that behavior for access types. Avoids
7446         a potential confusion.
7447         Simplify one conditional expression, as the first part is now
7448         necessarily true.
7449         ada_is_array_descriptor => ada_is_array_descriptor_type 
7450         Add check for arrays for null records, and print them by hand.
7451         
7452 2004-06-01  Jim Blandy  <jimb@redhat.com>
7453
7454         * ppc-tdep.h: Delete unused 'regoff' member.
7455         * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7456
7457 2004-06-01  Michael Chastain  <mec.gnu@mindspring.com>
7458
7459         Fix PR symtab/1661.
7460         * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7461         (hpread_read_struct_type): Likewise.
7462
7463 2004-06-01  Andrew Cagney  <cagney@gnu.org>
7464
7465         * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7466         instead of xasprintf.
7467         * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) 
7468         (mi_cmd_thread_select, mi_cmd_thread_list_ids) 
7469         (mi_cmd_data_list_register_names) 
7470         (mi_cmd_data_list_changed_registers) 
7471         (mi_cmd_data_list_register_values) 
7472         (get_register, mi_cmd_data_write_register_values) 
7473         (mi_cmd_data_write_register_values) 
7474         (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) 
7475         (mi_cmd_target_download, mi_cmd_target_select) 
7476         (mi_cmd_data_read_memory, mi_cmd_data_write_memory) 
7477         (mi_execute_cli_command, mi_execute_async_cli_command) 
7478         (mi_execute_async_cli_command): Ditto.
7479         * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7480         * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7481
7482         * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7483         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7484         error_last_message instead of mi_error_last_message.
7485         * mi/mi-main.c (mi_error_last_message): Delete function.
7486
7487         * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7488         "invalid number of columns" error.  Delete redundant "out of
7489         memory" check.
7490
7491 2004-05-31  Mark Kettenis  <kettenis@gnu.org>
7492
7493         * i386bsd-nat.c: Don't include <sys/procfs.h>.
7494         (gregset_t, fpregset_t): Remove typedefs.
7495         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7496         (REG_OFFSET): Rename argument.
7497         (i386bsd_r_reg_offset): Rename from reg_offset.
7498         (REG_ADDR): Remove macro.
7499         (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7500         functions.
7501         (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7502         (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7503         instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
7504         instead of supply_gregset.
7505         (store_inferior_registers): Use `struct reg' and `struct fpreg'
7506         instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
7507         instead of fill_gregset.
7508         (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7509
7510         * i386bsd-nat.c: Don't include "gregset.h".
7511         (supply_gregset, fill_gregset): Make static.
7512         (supply_fpregset, fill_fpregset): Remove.
7513         * Makefile.in (i386bsd-nat.o): Update dependencies.
7514
7515 2004-05-30  Mark Kettenis  <kettenis@gnu.org>
7516
7517         * fbsd-proc.c: Include "regcache.h", "regset.h" and
7518         "gdb_assert.h".  Con't include "gregset.h".
7519         (fbsd_make_corefile_notes): Use regset-based core file support
7520         instead off fill_gregset and fill_fpregset.
7521         * Makefile.in (fbsd-proc.o): Update dependencies.
7522
7523         * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7524         instructions.
7525         (m88k_frame_prev_register): Simplify code a bit.
7526
7527         * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7528         (amd64_collect_fpregset): New function.
7529         (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7530
7531         * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7532
7533         * i386-tdep.c (i386_supply_gregset): Adjust comment.
7534         (i386_collect_gregset): New function.
7535         (i386_supply_fpregset): Adjust comment.
7536         (i386_collect_fpregset): New function.
7537         (i386_regset_from_core_section): Use i386_collect_gregset and
7538         i386_collect_fpregset.
7539
7540         * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7541         handle VALUEP being null.
7542
7543         * regset.h (collect_regset_ftype): Unconstify fourth argument.
7544
7545 2004-05-29  Mark Kettenis  <kettenis@gnu.org>
7546
7547         * MAINTAINERS: Undelete m88k.  Add myself as maintainer.
7548
7549         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7550         assembler in OpenBSD 3.5-current.
7551         (amd64obsd_sigcontext_addr): Likewise.
7552
7553 2004-05-28  Jim Blandy  <jimb@redhat.com>
7554
7555         * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7556         register set, so our regcache isn't declared "legacy" and our E500
7557         pseudoregister read and write functions aren't ignored.
7558         (rs6000_register_byte, rs6000_register_raw_size,
7559         rs6000_register_virtual_type, rs6000_register_convertible,
7560         rs6000_register_convert_to_virtual,
7561         rs6000_register_convert_to_raw): Deleted.
7562         (rs6000_register_type, rs6000_convert_register_p,
7563         rs6000_register_to_value, rs6000_value_to_register): New
7564         functions.
7565         (rs6000_gdbarch_init): Don't register
7566         gdbarch_deprecated_register_size,
7567         gdbarch_deprecated_register_bytes,
7568         gdbarch_deprecated_register_byte,
7569         gdbarch_deprecated_register_raw_size,
7570         gdbarch_deprecated_register_virtual_type,
7571         gdbarch_deprecated_register_convertible,
7572         gdbarch_deprecated_register_convert_to_virtual, or
7573         gdbarch_deprecated_register_convert_to_raw methods.  Instead,
7574         register gdbarch_register_type, gdbarch_convert_register_p,
7575         gdbarch_register_to_value, and gdbarch_value_to_register methods.
7576
7577 2004-05-26  Jim Blandy  <jimb@redhat.com>
7578
7579         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7580         (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7581         functions, updated to match the register numberings used in GCC.
7582         (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7583         rs6000_dwarf2_reg_to_regnum as register number conversions
7584         functions for STABS and Dwarf2.
7585
7586 2004-05-26  Randolph Chung  <tausq@debian.org>
7587
7588         * infttrace.h (target_waitkind): Forward declare type instead of pulling
7589         in header file.
7590
7591 2004-05-25  Joel Brobecker  <brobecker@gnat.com>
7592
7593         * NEWS: Document new "start" command.
7594
7595 2004-05-25  Randolph Chung  <tausq@debian.org>
7596
7597         * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7598         hppa-linux.
7599
7600 2004-05-25  Randolph Chung  <tausq@debian.org>
7601
7602         * hppa-hpux-tdep.c (offsetof): Define.
7603         (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7604         (hppa32_hpux_frame_base_before_sigtramp)
7605         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7606         (hppa64_hpux_frame_saved_pc_in_sigtramp)
7607         (hppa64_hpux_frame_base_before_sigtramp)
7608         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused 
7609         functions.
7610         (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7611         (hppa_hpux_sigtramp_frame_unwind_cache)
7612         (hppa_hpux_sigtramp_frame_this_id)
7613         (hppa_hpux_sigtramp_frame_prev_register)
7614         (hppa_hpux_sigtramp_frame_unwind)
7615         (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7616         (hppa_hpux_init_abi): Register sigtramp unwinder.
7617         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7618
7619 2004-05-25  Randolph Chung  <tausq@debian.org>
7620
7621         * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7622         and multiple stack unwinds.
7623         (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7624
7625 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7626
7627         * symfile.h (symbol_file_add_from_memory): Delete declaration.
7628         * symfile-mem.h: Delete file.
7629         * symfile-mem.c: Do not include "symfile-mem.h".
7630         (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7631         "struct bfd_section".  When an error do not bother returning NULL.
7632         (add_symbol_file_from_memory_command): Use "struct bfd" and
7633         "struct bfd_section".
7634         * Makefile.in (symfile_mem_h): Delete.
7635         (symfile-mem.o): Update dependencies.
7636
7637 2004-05-25  Nick Roberts  <nickrob@gnu.org>
7638
7639         * gdb-mi.el: New file.
7640
7641 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7642
7643         * inftarg.c: Include "observer.h".
7644         (child_attach, child_create_inferior): Notify inferior_created.
7645         * corelow.c: Include "observer.h".
7646         (core_open): Notify inferior_created.
7647         * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7648
7649 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7650
7651         * target.h (struct target_ops): Add from_tty to
7652         to_create_inferior.
7653         (target_create_inferior, find_default_create_inferior): Update.
7654         * infcmd.c (run_command): Update.
7655         * wince.c (child_create_inferior): Update.
7656         * win32-nat.c (child_create_inferior): Update.
7657         * uw-thread.c (uw_thread_create_inferior): Update.
7658         * thread-db.c (thread_db_create_inferior): Update.
7659         * target.c (debug_to_create_inferior) 
7660         (find_default_create_inferior): Update.
7661         (maybe_kill_then_create_inferior): Update.
7662         * sol-thread.c (sol_thread_create_inferior): Update.
7663         * remote.c (extended_remote_async_create_inferior) 
7664         (extended_remote_create_inferior): Update.
7665         * remote-vx.c (vx_create_inferior): Update.
7666         * remote-st.c (st2000_create_inferior): Update.
7667         * remote-sim.c (gdbsim_create_inferior): Update.
7668         * remote-sds.c (sds_create_inferior): Update.
7669         * remote-rdp.c (remote_rdp_create_inferior): Update.
7670         * remote-rdi.c (arm_rdi_create_inferior): Update.
7671         * remote-m32r-sdi.c (m32r_create_inferior): Update.
7672         * remote-e7000.c (e7000_create_inferior): Update.
7673         * procfs.c (procfs_create_inferior): Update.
7674         * ocd.c (ocd_create_inferior): Update.
7675         * ocd.h (ocd_create_inferior): Update.
7676         * nto-procfs.c (procfs_create_inferior): Update.
7677         * monitor.c (monitor_create_inferior): Update.
7678         * lin-lwp.c (lin_lwp_create_inferior): Update.
7679         * inftarg.c (child_create_inferior): Update.
7680         * hpux-thread.c (hpux_thread_create_inferior): Update.
7681         * gnu-nat.c (gnu_create_inferior): Update.
7682
7683 2004-05-25  Andrew Cagney  <cagney@gnu.com>
7684
7685         * MAINTAINERS: Update e-mail address.
7686
7687 2004-05-24  Randolph Chung  <tausq@debian.org>
7688
7689         * thread.c (info_threads_command, thread_apply_all_command)
7690         (thread_apply_command, thread_command, do_captured_thread_select):
7691         Remove HPUXHPPA-specific code.
7692
7693 2004-05-24  Randolph Chung  <tausq@debian.org>
7694
7695         * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7696         unused symbols.
7697         * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7698         references.
7699
7700 2004-05-24  Joel Brobecker  <brobecker@gnat.com>
7701
7702         * infcmd.c (kill_if_already_running): New function, extracted
7703         from run_command().
7704         (run_command): Replace extracted code by call to
7705         kill_if_already_running().
7706         (start_command): New function.
7707         (_initialize_infcmd): Add "start" command.
7708
7709 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
7710
7711         Add OpenBSD/m88k support.
7712         * NEWS (New native configurations): Mention OpenBSD/m88k.
7713         * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7714         config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7715         * Makefile.in (m88k_tdep_h): New variable.
7716         (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7717         (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7718         * configure.host: Add m88*-*-openbsd*.
7719         * configure.tgt: Add m88*-*-openbsd*.
7720
7721 2004-05-24  Jim Blandy  <jimb@redhat.com>
7722
7723         * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7724         to approve changes.
7725
7726 2004-05-24  Kevin Buettner  <kevinb@redhat.com>
7727
7728         * symtab.c (fixup_section): Search section table when lookup by
7729         name fails.
7730
7731 2004-05-24  Randolph Chung  <tausq@debian.org>
7732
7733         * hppa-tdep.c: Fix handling of 8-byte structures; they should not 
7734         be "small_struct".
7735
7736 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
7737
7738         * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7739         register number in regcache_raw_collect call.
7740         (m68kbsd_collect_fpregset): Likewise.
7741         * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7742
7743         * regset.h (struct regset): Add back `regset' member.
7744
7745 2004-05-23  Mark Kettenis  <kettenis@gnu.org>
7746
7747         * configure.in: Check for td_pcb in `struct thread'.
7748         * configure, config.in: Regenerated.
7749
7750         * dpx2-nat.c: Remove file.
7751         * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7752         (dpx2-nat.o): Remove dependencies.
7753
7754         * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7755         <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7756         (amd64obsd_supply_pcb): New function.
7757         (_initialize_amd64obsd_nat): Enable libkvm interface.
7758         * Makefile.in (amd64obsd-nat.o): Update dependencies.
7759         * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7760         (LOADLIBES): New variable.
7761
7762         * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7763         <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7764         (sparc32nbsd_supply_pcb): New function.
7765         (_initialize_sparcnbsd_nat): Enable libkvm interface.
7766         * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7767         * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7768         (LOADLIBES): New variable.
7769
7770 2004-05-22  Mark Kettenis  <kettenis@gnu.org>
7771
7772         * bsd-kvm.c, bsd-kvm.h: New files.
7773         * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7774         "bsd-kvm.h".
7775         (i386fbsd_supply_pcb): New function.
7776         * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7777         (i386fbsd-nat.o): Update dependencies.
7778         (bsd_kvm_h): New variable.
7779         (bsd-kvm.o): New dependency.
7780         * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7781         (LOADLIBES): New variable.
7782
7783         * regset.c: Tweak comment.
7784         (regset_alloc): Remove descr argument.  Use GDBARCH_OBSTACK_ZALLOC
7785         macro.
7786         * regset.h: Update copyright year.
7787         (struct regset): Remove `descr' member, add `gdbarch' member.
7788         (regset_alloc): Adjust prototype and comment.
7789         * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7790         (i386_supply_fpregset): Likewise.
7791         (i386_regset_from_core_section): Update call to regset_alloc.
7792         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7793         REGSET->arch.
7794         (i386obsd_aout_regset_from_core_section): Update call to
7795         regset_alloc.
7796         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7797         REGSET->arch.
7798         (i386nbsd_aout_regset_from_core_section): Update call to
7799         regset_alloc.
7800         * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7801         REGSET->arch.
7802         (amd64_regset_from_core_section): Update call to regset_alloc.
7803         * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7804         REGSET->arch.
7805         (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7806         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7807         &sparc32nbsd_gregset in sparc32_supply_gregset call.
7808         (sparc32nbsd_init_abi): Update call to regset_alloc.
7809         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7810         &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7811         (sparc64obsd_init_abi): Update call to regset_alloc.
7812         * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7813         &sparc64nbsd_gregset in sparc64_supply_gregset call.
7814         (sparc64nbsd_init_abi): Update call to regset_alloc.
7815         * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7816         &sparc64fbsd_gregset in sparc64_supply_gregset call.
7817         (sparc64fbsd_init_abi): Update call to regset_alloc.
7818
7819 2004-05-22  Jim Blandy  <jimb@redhat.com>
7820
7821         * ppc-tdep.h (spe_register_p): New declaration.
7822         (struct gdbarch_tdep): New members: ppc_acc_regnum and
7823         ppc_spefscr_regnum.
7824         * rs6000-tdep.c (spe_register_p): New function.
7825         (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7826         spefscr.
7827         (rs6000_gdbarch_init): Initialize the new members of the tdep
7828         structure.
7829
7830 2004-05-21  Jim Blandy  <jimb@redhat.com>
7831
7832         * ppc-linux-nat.c (fetch_register): Move code back to be next
7833         to the comment that describes it.  (Moved code, instead of
7834         comment, for symmetry with store_register.)
7835
7836         Allocate regset structures in the gdbarch's obstack, not using
7837         xmalloc.
7838         * regset.c (regset_alloc): Renamed from regset_xmalloc.
7839         Add 'arch' argument.  Allocate the regset on arch's obstack, not
7840         using xmalloc.
7841         * regset.h (regset_alloc): Update declaration.
7842         * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7843         gdbarch argument.
7844         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7845         * i386-tdep.c (i386_regset_from_core_section): Same.
7846         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7847         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7848         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7849         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7850         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7851         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7852
7853 2004-05-21  Joel Brobecker  <brobecker@gnat.com>
7854
7855         * config/djgpp/fnchange.lst: Undo previous change, was useless.
7856
7857 2004-05-21  Jim Blandy  <jimb@redhat.com>
7858
7859         * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7860         cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
7861
7862 2004-05-20  Jim Blandy  <jimb@redhat.com>
7863
7864         * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7865
7866 2004-05-20  Mark Kettenis  <kettenis@gnu.org>
7867
7868         * regset.h: Make prototype const-correct.
7869         * regset.c (regset_xmalloc): Make const-correct.
7870
7871 2004-05-20  Paul N. Hilfinger  <hilfinger@gnat.com>
7872
7873         * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7874         (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7875         (symbol_search_name): Declare.
7876         
7877         * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7878         (iter_name_next_hashed): Ditto.
7879         (iter_name_next_linear): Ditto.
7880         (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7881
7882         * symtab.c (lookup_partial_symbol): Assume symbols ordered by 
7883         search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7884         (symbol_search_name): New function.
7885         
7886         * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7887         
7888         * minsyms.c (build_minimal_symbol_hash_tables): Change
7889         test for adding to demangled hash table to check for difference
7890         between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7891         
7892 2004-05-19  Jim Blandy  <jimb@redhat.com>
7893
7894         Use a constructor function to create regset structures.
7895         * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7896         (struct regset): Use supply_regset_ftype.  Add new
7897         'collect_regset' member.
7898         (regset_xmalloc): New declaration.
7899         * regset.c: New file.
7900         * am64-tdep.c (amd64_regset_from_core_section): Use
7901         regset_xmalloc to construct regset structures.
7902         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7903         * i386-tdep.c (i386_regset_from_core_section): Same.
7904         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7905         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7906         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7907         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7908         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7909         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7910         * Makefile.in (COMMON_OBS): Add regset.o.
7911         (regset.o): New rule.
7912
7913 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
7914
7915         * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7916         and pthread_cond_wait.c.
7917
7918 2004-05-18  Jim Blandy  <jimb@redhat.com>
7919
7920         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7921         before the mach-specific switch, and then let the individual cases
7922         override the defaults, rather than leaving them uninitialized
7923         until the switch and then setting them in each case.
7924
7925 2004-05-18  Randolph Chung  <tausq@debian.org>
7926
7927         * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7928         millicode functions.
7929
7930 2004-05-18  Randolph Chung  <tausq@debian.org>
7931
7932         * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7933         references to dld_flags_buffer consistent.
7934
7935 2004-05-18  Randolph Chung  <tausq@debian.org>
7936
7937         * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7938         it for unwinding the stack.
7939
7940 2004-05-18  Randolph Chung  <tausq@debian.org>
7941
7942         * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7943         Undefine these so we can overide them using gdbarch.
7944
7945 2004-05-18  Randolph Chung <tausq@debian.org>
7946
7947         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7948         handling for 64-bit HPUX (elf).
7949
7950 2004-05-18  Daniel Jacobowitz  <dan@debian.org>
7951
7952         * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7953         constants.
7954         * amd64-tdep.c (amd64_skip_prologue): Likewise.
7955         * ia64-tdep.c (examine_prologue): Likewise.
7956         * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7957         * v850-tdep.c (v850_fix_call_dummy): Likewise.
7958
7959 2004-05-18  Mark Kettenis  <kettenis@gnu.org>
7960
7961         * vax-tdep.c (vax_return_value): Implement
7962         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7963
7964 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
7965
7966         * vax-tdep.c (vax_return_value): Fix typo.
7967
7968 2004-05-17  Andrew Cagney  <cagney@redhat.com>
7969
7970         * MAINTAINERS: Mark Salter was also responsible for
7971         testsuite/config/
7972
7973         * NEWS: Mention signal fixes.
7974
7975 2004-05-17  Randolph Chung  <tausq@debian.org>
7976
7977         * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7978         check to see if we are unwinding an export stub.  Export stubs clobber
7979         the %rp in the call path and stores the original rp in a stack slot.
7980
7981 2004-05-17  Jim Blandy  <jimb@redhat.com>
7982
7983         * MAINTAINERS: Update address for J.T. Conklin.
7984
7985 2004-05-17  Randolph Chung  <tausq@debian.org>
7986
7987         * hppa-tdep.c: Remove superfluous #include's.
7988         * Makefile.in (hppa-tdep.o): Update dependencies.
7989
7990 2004-05-17  Randolph Chung  <tausq@debian.org>
7991
7992         * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7993         (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7994         (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7995         (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7996         (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7997         Remove static function declarations.
7998
7999 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
8000
8001         * alphabsd-nat.c: Update copyright year.
8002         (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
8003
8004         * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
8005         and M68K_A2_REGNUM.
8006
8007         * m68k-tdep.c (m68k_svr4_return_value): Implement
8008         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8009
8010 2004-05-16  Mark Kettenis  <kettenis@gnu.org>
8011
8012         * sol-thread.c Update copyright year.  Fix various coding
8013         standards violations.  Tweak a few comments.
8014         (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
8015         Delete prototypes.
8016
8017 2004-05-15  Randolph Chung  <tausq@debian.org>
8018
8019         * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
8020         as pointer instead of array reference since HPUX compiler does
8021         not accept unsized array arguments.
8022         * somsolib.c (dld_flags_buffer): Use constant array size.
8023
8024 2004-05-15  Mark Kettenis  <kettenis@gnu.org>
8025
8026         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
8027         offset with decimal offset.
8028         (amd64obsd_sigcontext_addr): Return correct address for entire
8029         signal trampoline.
8030
8031         * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
8032         instead of get_frame_base.
8033
8034         * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
8035         (fill_gregset): Use regcache_raw_collect.
8036
8037         * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
8038         ppcobsd-tdep.c.
8039
8040         * config/sparc/tm-nbsd64.h: Remove file.
8041         * config/tm-sunos.h: Remove file.
8042
8043 2004-05-15  Joel Brobecker  <brobecker@gnat.com>
8044
8045         * rs6000-tdep.c (store_param_on_stack_p): New function,
8046         an improved version of some code extracted from skip_prologue().
8047         (skip_prologue): Use store_param_on_stack_p() to detect
8048         instructions saving a parameter on the stack. Detect when r0
8049         is used to save a parameter.
8050         Do not mark "li rx, SIMM" instructions as part of the prologue,
8051         unless the following instruction is also part of the prologue.
8052
8053 2004-05-14  Andrew Cagney  <cagney@redhat.com>
8054
8055         * infrun.c (handle_inferior_event): Simplify
8056         STEP_OVER_UNDEBUGGABLE.
8057
8058         * infrun.c (handle_step_into_function): Delete function.
8059         (handle_inferior_event): Inline calls to
8060         handle_step_into_function.
8061
8062 2004-05-14  Jerome Guitton  <guitton@gnat.com>
8063
8064         * rs6000-nat.c: Fix a comment.
8065
8066 2004-05-12  David Anderson <davea@sgi.com>
8067
8068         Committed by Jim Blandy <jimb@redhat.com>:
8069         * regcache.c (struct regcache_descr): fix comment spelling.
8070
8071 2004-05-13  J. Brobecker  <brobecker@gnat.com>
8072
8073         * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
8074         Fixes a link link failure.
8075
8076 2004-05-13  J. Brobecker  <brobecker@gnat.com>
8077
8078         * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
8079         error that was causing the build to fail.
8080
8081 2004-05-13  J. Brobecker  <brobecker@gnat.com>
8082
8083         * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
8084         * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
8085
8086 2004-05-13  Andrew Cagney  <cagney@redhat.com>
8087
8088         * infrun.c (handle_inferior_event): Check for
8089         STEP_OVER_UNDEBUGGABLE after signal trampolines and function
8090         calls.  Update comments.
8091
8092 2004-05-13  Jim Blandy  <jimb@redhat.com>
8093
8094         * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
8095         (fetch_regs_user_thread, fetch_regs_kernel_thread)
8096         (store_regs_user_thread, store_regs_kernel_thread): Use
8097         ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
8098         * ppc-linux-nat.c (fill_gregset): Same.
8099         * ppc-linux-tdep.c (ppc_linux_supply_gregset) 
8100         (ppc_linux_sigtramp_cache): Same.
8101         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg) 
8102         (ppcnbsd_sigtramp_cache_init): Same.
8103         * rs6000-nat.c (fetch_core_registers): Same.
8104         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 
8105         (rs6000_frame_cache): Same.
8106
8107         * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
8108         (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
8109         of assuming that the gprs are numbered starting with zero.
8110         * ppc-linux-nat.c (fill_gregset): Same.
8111         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
8112         * ppcnbsd-nat.c (getregs_supplies): Same.
8113         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
8114         * rs6000-nat.c (fetch_core_registers): Same.
8115         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8116
8117 2004-05-07  Michael Snyder  <msnyder@redhat.com>
8118
8119         * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8120         LOC_COMPUTED_ARG, and LOC_INDIRECT.
8121
8122 2004-05-13  Andrew Cagney  <cagney@redhat.com>
8123
8124         * infrun.c (handle_inferior_event): Use frame_unwind_id.
8125
8126 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
8127
8128         * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8129         base_address for shared libraries.
8130
8131 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
8132
8133         * MAINTAINERS (write after approval): Add myself.       
8134
8135 2004-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
8136
8137         * breakpoint.c (bpstat_stop_status): Add new argument
8138         STOPPED_BY_WATCHPOINT.  Use it instead of testing
8139         target_stopped_data_address agaist 0 to check whether
8140         or not we stopped due to a hardware watchpoint.
8141         * breakpoint.h (bpstat_stop_status): Adapt prototype.
8142         * infrun.c (handle_inferior_event): Call bpstat_stop_status
8143         with new argument.
8144
8145 2004-05-12  Jim Blandy  <jimb@redhat.com>
8146
8147         * configure.in: When checking whether we should use the -bbigtoc
8148         option, don't forget to restore the original value of LDFLAGS.
8149         * configure: Regenerated.
8150
8151 2004-05-12  Andrew Cagney  <cagney@redhat.com>
8152
8153         * thread.c (load_infrun_state): Delete step_sp.
8154         * infrun.c (context_switch): Ditto.
8155         * inferior.h (step_sp): Ditto.
8156         * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8157         * gdbthread.h (struct thread_info, save_infrun_state)
8158         (restore_infrun_state): Ditto.
8159
8160 2004-05-12  Ulrich Weigand  <uweigand@de.ibm.com>
8161
8162         * MAINTAINERS (write after approval): Add myself.
8163
8164 2004-05-12  Andrew Cagney  <cagney@redhat.com>
8165
8166         * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8167         eliminate reference to step_sp.
8168         (struct execution_control_state, init_execution_control_state)
8169         (handle_inferior_event, keep_going): Delete update_step_sp and
8170         step_sp.
8171         * infcmd.c (step_sp): Note that variable is unused.
8172
8173 2004-05-11  Andrew Cagney  <cagney@redhat.com>
8174
8175         * infrun.c (step_over_function): Delete function.
8176         (handle_step_into_function): Use insert_step_resume_breakpoint.
8177         (insert_step_resume_breakpoint): Fix assertion.
8178
8179 2004-05-11  Nick Roberts  <nickrob@gnu.org>
8180
8181         * utils.c (defaulted_query): Just use the normal query input type
8182         when printing the annotations.
8183
8184 2004-05-11  Andrew Cagney  <cagney@redhat.com>
8185
8186         * infrun.c (handle_inferior_event): Simplify code handling
8187         step-into or return-from a signal trampoline.
8188
8189 2004-05-11  Andrew Cagney  <cagney@redhat.com>
8190
8191         * ppcnbsd-tdep.c: Include "gdb_assert.h".
8192         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8193
8194 2004-05-10  Jim Blandy  <jimb@redhat.com>
8195
8196         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8197         with a call to internal_error.
8198
8199         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8200         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8201         processor variant lacks those registers.
8202         (ppc_floating_point_unit_p): Change description to make it clear
8203         that this returns info about the ISA, not the ABI.
8204         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8205         return true or false by checking tdep->ppc_fp0_regnum and
8206         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
8207         arch/mach switching done in rs6000_gdbarch_init; it's better to
8208         keep that logic there, and just check the results here.
8209         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8210         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8211         floating-point registers.
8212         (ppc_supply_fpregset, ppc_collect_fpregset)
8213         (rs6000_push_dummy_call, rs6000_extract_return_value)
8214         (rs6000_store_return_value): Assert that we have floating-point
8215         registers.
8216         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8217         (rs6000_frame_cache): Don't note the locations at which
8218         floating-point registers were saved if we have no fprs.
8219         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8220         registers.
8221         (fetch_regs_user_thread, fetch_regs_kernel_thread)
8222         (store_regs_user_thread, store_regs_kernel_thread): Only call
8223         supply_fprs / fill_fprs if we actually have floating-point
8224         registers.
8225         (special_register_p): Check ppc_fpscr_regnum before matching
8226         against it.
8227         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8228         supply / collect fpscr if we don't have it.
8229         * ppc-bdm.c: #include "gdb_assert.h".
8230         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8231         have floating-point registers, since I can't test this code on
8232         FP-free systems to adapt it.
8233         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8234         fpscr and floating point register numbers if they don't exist.
8235         (fetch_register): Assert that we have floating-point registers
8236         before we reach the code that handles them.
8237         (store_register): Same.  And use tdep instead of calling
8238         gdbarch_tdep again.
8239         (fill_fpregset): Don't try to collect FP registers and fpscr if we
8240         don't have them.
8241         (ppc_linux_sigtramp_cache): Don't record the saved locations of
8242         fprs and fpscr if we don't have them.
8243         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8244         don't have them.
8245         * ppcnbsd-nat.c: #include "gdb_assert.h".
8246         (getfpregs_supplies): Assert that we have floating-point registers.
8247         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8248         * ppcobsd-tdep.c: #include "gdb_assert.h".
8249         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8250         have floating-point registers.
8251         * rs6000-nat.c (regmap): Don't match against the fpscr and
8252         floating point register numbers if they don't exist.
8253         (fetch_inferior_registers, store_inferior_registers,
8254         fetch_core_registers): Only fetch / store / supply the
8255         floating-point registers and the fpscr if we have them.
8256         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8257         (ppcobsd-tdep.o): Update dependencies.
8258         
8259 2004-05-10  Andrew Cagney  <cagney@redhat.com>
8260
8261         * infrun.c (through_sigtramp_breakpoint): Delete variable.
8262         (context_switch): Do not switch through_sigtramp_breakpoint.
8263         * gdbthread.h (save_infrun_state, load_infrun_state)
8264         (struct thread_info): Delete through_sigtramp_breakpoint parameter
8265         and structure member.
8266         * thread.c (load_infrun_state, save_infrun_state): Update.
8267
8268 2004-05-10  Mark Kettenis  <kettenis@gnu.org>
8269
8270         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8271
8272 2004-05-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
8273
8274         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
8275         throughout.
8276         * aclocal.m4: Regenerate.
8277
8278 2004-05-10  Nathan J. Williams  <nathanw@wasabisystems.com>
8279
8280         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8281
8282 2004-05-10  Andrew Cagney  <cagney@redhat.com>
8283
8284         * infrun.c (check_sigtramp2): Delete function.
8285         (handle_inferior_event): When single stepping, and taking a
8286         signal, set a breakpoint at the signal return address.  Delete
8287         redundant calls to check_sigtramp2.
8288         (insert_step_resume_breakpoint): New function.
8289         (through_sigtramp_breakpoint, handle_inferior_event)
8290         (follow_exec, wait_for_inferior, fetch_inferior_event)
8291         (currently_stepping, keep_going): Delete most uses of
8292         through_sigtramp_breakpoint, not that it should be deleted.
8293         (delete_breakpoint_current_contents): Delete function.
8294
8295 2004-05-10  Randolph Chung  <tausq@debian.org>
8296
8297         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8298         target.
8299         * config/pa/tm-linux.h: New file.
8300
8301 2004-05-10  Daniel Jacobowitz  <drow@mvista.com>
8302
8303         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8304         of prefixes.  Don't print the prefix twice in the CLI.
8305
8306 2004-05-10  Jim Blandy  <jimb@redhat.com>
8307
8308         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8309         collect all the gprs.
8310
8311         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8312         loop collecting gprs.
8313
8314 2004-05-09  Andrew Cagney  <cagney@redhat.com>
8315
8316         * remote-vx.c (net_step): Delete step-range code.
8317         * remote.c (remote_resume, init_all_packet_configs)
8318         (set_remote_protocol_E_packet_cmd)
8319         (show_remote_protocol_E_packet_cmd)
8320         (remote_protocol_E, show_remote_cmd, _initialize_remote)
8321         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8322         (show_remote_protocol_e_packet_cmd): Ditto.
8323
8324 2004-05-09  Mark Kettenis  <kettenis@gnu.org>
8325
8326         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8327
8328         * hppa-tdep.h: Update copyright year.
8329         (struct trad_frame_saved_reg): Add opaque declaration.
8330
8331         * amd64-tdep.c (amd64_return_value): Implement
8332         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8333
8334         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8335         (m68k_value_to_register): New functions.
8336         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8337         value_to_register.
8338
8339         * defs.h (enum return_value_convention): Add
8340         RETURN_VALUE_ABI_RETURNS_ADDRESS and
8341         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8342         * infcmd.c (legacy_return_value): New function.
8343         (print_return_value): Rwerite to implement
8344         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8345         * values.c (using_struct_return): Check for inequality to
8346         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8347         RETURN_VALUE_STRUCT_CONVENTION.
8348         * i386-tdep.c (i386_return_value): Implement
8349         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8350
8351         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
8352         include "symtab.h", "opcode/vax.h" and "inferior.h".
8353         (vax_skip_prologue): Replace calls to read_memory_integer by calls
8354         to read_memory_unsigned_integer.
8355         (vax_gdbarch_init): Reorder.
8356         (_initialize_vax_tdep): Spell out prototype.
8357         * Makefile.in (vax-tdep.o): Update dependencies.
8358
8359 2004-05-08  Andrew Cagney  <cagney@redhat.com>
8360
8361         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8362         * target.c (target_detach, target_disconnect): Ditto.
8363
8364         * infcall.c (call_function_by_hand): When no
8365         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8366         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8367         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8368         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8369         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8370         
8371         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8372         * gdbarch.h, gdbarch.c: Re-generate.
8373         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8374         deprecated_fix_call_dummy.
8375         * v850-tdep.c (v850_gdbarch_init): Ditto.
8376         * infcall.c (call_function_by_hand): Do not call
8377         DEPRECATED_FIX_CALL_DUMMY.
8378
8379         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8380         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8381         * gdbarch.h, gdbarch.c: Re-generate.
8382         * arm-linux-tdep.c (arm_linux_call_dummy_words)
8383         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8384         deprecated_sizeof_call_dummy_words.
8385         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8386         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8387         * v850-tdep.c (v850_gdbarch_init): Ditto.
8388         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8389         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8390         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8391         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8392         * arch-utils.h (legacy_call_dummy_words)
8393         (legacy_sizeof_call_dummy_words): Delete declarations.
8394         * arch-utils.c (legacy_call_dummy_words)
8395         (legacy_sizeof_call_dummy_words): Delete variables.
8396
8397         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8398         * gdbarch.h, gdbarch.c: Re-generate.
8399         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8400         * infcall.c (call_function_by_hand): Eliminate call to
8401         DEPRECATED_PUSH_DUMMY_FRAME.
8402         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8403         push_dummy_frame.
8404         (ns32k_push_dummy_frame): Delete function.
8405
8406         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8407         deprecated_call_dummy_breakpoint_offset or
8408         deprecated_call_dummy_start_offset.
8409         * dummy-frame.c, arm-tdep.c: Update comments.
8410         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8411         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8412         * gdbarch.h, gdbarch.c: Re-generate.
8413         
8414         * infcall.c (legacy_push_dummy_code): Delete function.
8415         (push_dummy_code): Delete call.
8416
8417         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8418         * gdbarch.h, gdbarch.c: Re-generate.
8419         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8420         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8421         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8422         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8423
8424         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8425         (struct frame_info): Delete opaque declaration.
8426         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8427         * frame.c (get_frame_type): Delete call.
8428
8429         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8430         pc_in_call_dummy.
8431         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8432         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8433
8434 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
8435
8436         * alphanbsd-tdep.c: Include "gdb_string.h".
8437         * armnbsd-tdep.c: Update copyright year.
8438         Include "gdb_string.h".
8439         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8440         dependencies.
8441
8442         * delta68-nat.c: Remove file.
8443         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8444         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8445         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8446         (delta68-nat.o): Remove dependency.
8447
8448         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8449         function.
8450         (m68k_gdbarch_init): Don't set
8451         deprecated_frameless_function_invocation.
8452
8453 2004-05-07  Randolph Chung  <tausq@debian.org>
8454
8455         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
8456         read_memory_nobpt for code reading when doing frame unwinding.
8457         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8458
8459 2004-05-07  Randolph Chung  <tausq@debian.org>
8460
8461         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8462         instead of sp, handle sigaltstack case.
8463         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
8464         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8465         signal handler and not that of the caller.
8466         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8467         hppa_linux_sigtramp_find_sigcontext.
8468
8469 2004-05-07  Randolph Chung  <tausq@debian.org>
8470
8471         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8472         hppa-linux-nat.c.
8473         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8474         * hppa-linux-nat.c (fetch_register, store_register): Define.
8475         (fetch_inferior_registers, store_inferior_registers): Define.
8476         (supply_gregset): Add comment and clean up some unneeded code.
8477         (fill_gregset): Add comment and fix so that it saves registers in
8478         the right place in the gregset.
8479         (fill_fpregset): Fix buffer overrun problem.
8480         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8481
8482 2004-05-07  Randolph Chung  <tausq@debian.org>
8483
8484         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
8485         do common handling of the pcoqt register.
8486         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8487         to use helper function.
8488         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8489         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8490         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8491         generic fallback unwinder when all else fails.
8492         (hppa_gdbarch_init): Add fallback sniffer.
8493         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8494         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8495         to use helper function.
8496
8497 2004-05-08  Joel Brobecker  <brobecker@gnat.com>
8498
8499         * config/djgpp/fnchange.lst: Add translation rules for
8500         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8501
8502 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
8503
8504         * frame.c (get_prev_frame_1): Work around GCC bug.
8505         * frame.h: Add comment about GCC bug.
8506
8507 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8508
8509         * observer.c: Include "commands.h" and "gdbcmd.h".
8510         (observer_debug, _initialize_observer): Add the
8511         command "set/show debug observer".
8512         * observer.sh: When observer debugging, log notify calls.
8513         * Makefile.in (observer.o): Update dependencies.
8514
8515 2004-05-07  Jason Molenda  (jmolenda@apple.com)
8516
8517         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8518
8519 2004-05-07  Jim Blandy  <jimb@redhat.com>
8520
8521         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8522         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8523         to recognize gpr regnums, instead of assuming that
8524         tdep->ppc_fp0_regnum marks the end of the general-purpose
8525         registers.
8526
8527         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8528         the given architecture has floating-point registers. 
8529
8530 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8531
8532         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8533         macro defined to 1.
8534         * gdbarch.h, gdbarch.c: Re-generate.
8535         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8536         deprecated_use_generic_dummy_frames.
8537
8538 2004-05-07  Brian Ford  <ford@vss.fsi.com>
8539
8540         * NEWS: Mention Cygwin DWARF 2 support.
8541
8542 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8543
8544         * objfiles.h (struct entry_info): Delete unused fields
8545         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8546         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8547         * mipsread.c (mipscoff_symfile_read): Update.
8548         * mdebugread.c (parse_partial_symbols): Update.
8549         * dwarfread.c (read_file_scope): Update.
8550         * dwarf2read.c (read_file_scope): Update.
8551         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8552         * coffread.c (complete_symtab): Update.
8553
8554 2004-05-07  Mark Kettenis  <kettenis@gnu.org>
8555
8556         * infcall.c (_initialize_infcall): Fix typo.
8557
8558 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8559
8560         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8561         * command.h (add_setshow_zinteger_cmd): Declare.
8562
8563 2004-05-06  Randolph Chung  <tausq@debian.org>
8564
8565         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8566         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8567         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8568         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8569         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8570         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8571         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
8572         definitions ...
8573         * hppa-tdep.h: ... to here, with HPPA_ prefix.
8574         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8575         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8576         (hppa64_hpux_frame_find_saved_regs_in_sig)
8577         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8578         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8579         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8580         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8581         (hppa_linux_sigtramp_frame_prev_register): Likewise.
8582         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8583         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8584         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8585         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8586         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8587         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8588         (hppa32_register_type, hppa_cannot_store_register)
8589         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8590         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8591         * hpread.c (hpread_process_one_debug_symbol): Likewise.
8592         * pa64solib.c (pa64_solib_have_load_event)
8593         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8594         (pa64_solib_unloaded_library_pathname): Likewise.
8595         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8596         (som_solib_library_pathname): Likewise.
8597
8598 2004-05-05  Jim Ingham  <jingham@apple.com>
8599         
8600         * breakpoint.c (create_breakpoints): Copy the ignore count and
8601         thread id over from the pended breakpoint to the actual
8602         breakpoint.
8603         
8604 2004-05-05  Andrew Cagney  <cagney@redhat.com>
8605
8606         * gdbarch.sh (PARM_BOUNDARY): Delete.
8607         gdbarch.h, gdbarch.c: Re-generate.
8608         * valops.c (PARM_BOUNDARY): Delete macro.
8609         (value_push): Delete PARM_BOUNDARY code.
8610         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8611
8612 2004-05-04  Jim Blandy  <jimb@redhat.com>
8613
8614         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8615         Don't assume that the gprs, fprs, and UISA sprs are
8616         contiguous, start at register number zero, and end with fpscr.
8617         Instead, use the numbers from the tdep structure.
8618
8619         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8620         should no longer be used in code specific to the RS6000 and its
8621         derivatives.
8622         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8623         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8624         tdep->ppc_fp0_regnum.
8625         (ppc_supply_fpregset, ppc_collect_fpregset)
8626         (rs6000_push_dummy_call, rs6000_extract_return_value)
8627         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8628         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8629         FP0_REGNUM. 
8630         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8631         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8632         Same.
8633         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8634         bdm_ppc_store_registers): Same.
8635         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
8636         (store_register, fill_fpregset): Same.
8637         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
8638         (ppc_linux_supply_fpregset): Same.
8639         * ppcnbsd-nat.c (getfpregs_supplies): Same.
8640         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8641         Same.
8642         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8643         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8644         ppc64_sysv_abi_return_value): Same.
8645         * rs6000-nat.c (regmap, fetch_inferior_registers) 
8646         (store_inferior_registers, fetch_core_registers): Same.
8647
8648 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8649
8650         * m68knbsd-nat.c: Remove file.
8651         * m68knbsd-tdep.c: Remove file.
8652         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8653         dependencies.
8654         * configure.host: Add m68k-*-netbsdelf*.
8655         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8656         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8657         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
8658         (XM_FILE): Remove.
8659         * config/m68k/nbsdelf.mh: New file.
8660         * config/m68k/nbsd.mt: New file.
8661         * config/m68k/nbsdaout.mt: Remove file.
8662         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8663         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
8664         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8665         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8666         (use_struct_convention): Remove prototype.
8667         (USE_STRUCT_CONVENTION): Remove define.
8668         * config/m68k/xm-nbsd.h: Remove file.
8669
8670 2004-05-04  Michael Snyder  <msnyder@redhat.com>
8671
8672         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
8673         reg_struct_return method (as gcc usually does for cross targets).
8674
8675 2004-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8676
8677         Committed by Andrew Cagney.
8678         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8679         alignment padding when accessing ucontext struct members.
8680
8681 2004-05-04  Jim Blandy  <jimb@redhat.com>
8682
8683         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8684         'ppc_gplast_regnum' member.
8685         (ppc_num_gprs): New enum constant.
8686         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8687         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8688         * rs6000-nat.c (regmap, fetch_inferior_registers,
8689         store_inferior_registers): Same.
8690         * rs6000-tdep.c (e500_pseudo_register_read)
8691         (e500_pseudo_register_write): Same.
8692         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8693
8694         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8695         * ppc-tdep.h (ppc_num_fprs): New enum constant.
8696         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8697         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8698         FPLAST_REGNUM.
8699         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8700         Same.
8701         * ppc-linux-nat.c (ppc_register_u_addr): Same.
8702         * rs6000-nat.c (regmap, fetch_inferior_registers) 
8703         (store_inferior_registers): Same.
8704
8705         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8706         with FPLAST_REGNUM.
8707
8708 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
8709
8710         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8711         failure detected by recent versions of GCC.
8712         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8713         to be consistent with the usage in dwarf2_create_include_psymtab.
8714
8715 2004-05-03  Michael Snyder  <msnyder@redhat.com>
8716
8717         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8718         (heuristic_proc_start): Whitespace cleanup.
8719
8720 2004-05-04  Mark Kettenis  <kettenis@gnu.org>
8721
8722         * sun3-nat.c: Remove file.
8723         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8724         dependencies.
8725         (ALLDEPFILES): Remove sun3-nat.c.
8726         (sun3-nat.o): Remove dependencies.
8727
8728         * i386-interix-nat.c, i386-interix-tdep.c,
8729         config/i386/nm-interix.h, config/i386/interix.mh,
8730         config/i386/interix.mt: Remove files.
8731         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8732         dependencies.
8733
8734 2004-05-03  Mark Kettenis  <kettenis@gnu.org>
8735
8736         * m68k-tdep.h (struct gdbarch_tdep): Add member
8737         struct_value_regnum.
8738         (m68k_svr4_init_abi): New prototype.
8739         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
8740         different calling conventions.
8741         (m68k_extract_return_value): Remove code dealing with single-field
8742         structs.
8743         (m68k_store_return_value): Remove code dealing with single-field
8744         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
8745         (m68k_extract_struct_value_address): Remove function.
8746         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8747         (m68k_reg_struct_return_p, m68k_return_value)
8748         (m68k_svr4_return_value): New functions.
8749         (m68k_use_struct_convention): Remove function.
8750         (m68k_push_dummy_call): Use new struct_value_regnum member of
8751         `struct gdbarch_tdep' instead of hardcoded register number to
8752         store STRUCT_ADDR.
8753         (m68k_svr4_init_abi): New function.
8754         (m68k_gdbarch_init): Don't set extract_return_value,
8755         store_return_values, deprecated_extract_struct_value_address and
8756         use_struct_convention.  Set return_value instead.  Initialize new
8757         struct_value_regnum member of `struct gdbarch_tdep'.
8758         * m68klinux-tdep.c: Update copyright year.
8759         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8760         (m68k_linux_extract_struct_value_address): Remove function.
8761         (m68k_linux_init_abi): Don't set extract_return_value,
8762         store_return_values, deprecated_extract_struct_value_address and
8763         use_struct_convention.  Call m68k_svr4_init_abi but override the
8764         new struct_value_regnum member of `struct gdbarch_tdep'.
8765         * Makefile.in (m68k-tdep.o): Update dependencies.
8766
8767 2004-05-03  J. Brobecker  <brobecker@gnat.com>
8768
8769         * dwarf2read.c (line_header): Add new included_p field in
8770         field file_names.
8771         (partial_die_info): New field has_stmt_list. New field line_offset.
8772         (dwarf2_create_include_psymtab): New function.
8773         (dwarf2_build_include_psymtabs): New function.
8774         (add_file_name): Add forward declaration. Initialize new field.
8775         (dwarf_decode_lines): Add new parameter. Enhance this procedure
8776         to be able to determine the list of files included by the
8777         given unit, and build their associated psymtabs.
8778         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8779         files as well.
8780         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8781         (read_file_scope): Update call to dwarf_decode_lines.
8782         (read_partial_die): Handle DW_AT_stmt_list attributes.
8783
8784 2004-05-02  Michael Chastain  <mec.gnu@mindspring.com>
8785
8786         Unfix PR gdb/1626.
8787         * configure.in: Revert special case for osf5.*.
8788         * configure: Regenerate.
8789
8790 2004-05-02  Jim Blandy  <jimb@redhat.com>
8791
8792         Move the symbol-file-from-memory functions into their own file.
8793         * symfile-mem.c, symfile-mem.h: New files.
8794         * symfile.c (symbol_file_add_from_bfd): New function.
8795         (symbol_file_add): Call symbol_file_add_from_bfd.
8796         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8797         Moved to symfile-mem.c.
8798         (_initialize_symfile): Move definition of
8799         add-symbol-file-from-memory command to symfile-mem.c.
8800         * symfile.h (symbol_file_add_from_bfd): New declaration.
8801         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8802         * config/powerpc/linux.mt (TDEPFILES): Same.
8803         * Makefile.in (SFILES): Add symfile-mem.c.
8804         (symfile_mem_h): New variable.
8805         (HFILES_NO_SRCDIR): Add symfile-mem.h.
8806         (symfile-mem.o): New rule.
8807
8808 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8809
8810         * breakpoint.c (insert_bp_location): Use get_frame_id, and
8811         frame_find_by_id instead of frame_relative_level.
8812         (do_enable_breakpoint): Ditto.
8813         * thread.c: Update copyright.
8814         (info_threads_command): Ditto, simplify.
8815
8816         * frame.c (deprecated_generic_get_saved_register): Delete
8817         function, moved to "xstormy16-tdep.c".
8818         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8819         deprecated_generic_get_saved_register from "frame.c".
8820         (xstormy16_frame_saved_register): Call
8821         xstormy16_get_saved_register.
8822         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8823         static.
8824         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8825         * frame.h (deprecated_generic_get_saved_register): Delete.
8826
8827 2004-05-01  Michael Chastain  <mec.gnu@mindspring.com>
8828
8829         * dwarfread.c: Update documentation on the state of dwarf-1.
8830
8831 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8832
8833         * stack.c (select_frame_command): Delete call to
8834         frame_relative_level.
8835         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8836         Delete #if0 code.
8837         (frame_info): Do not print FRAMELESS.
8838         (print_block_frame_labels): Replace DEPRECATED_STREQ.
8839         (catch_info): Delete #if0 code.
8840
8841         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8842         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8843         of frame_relative_level.
8844         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8845         to SENTINEL_FRAME.
8846         * frame.h (enum frame_type): Add SENTINEL_FRAME.
8847         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8848         frame_relative_level.
8849
8850         * frame.h (deprecated_set_frame_type): Delete declaration.
8851         * frame.c (deprecated_set_frame_type): Delete function, update
8852         comments.
8853
8854         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8855         * gdbarch.h, gdbarch.c: Re-generate.
8856         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8857         (shnbsd_pc_in_sigtramp): Delete.
8858         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8859         pc_in_sigtramp.
8860         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8861         pc_in_sigtramp.
8862         * frame.h: Update comments.
8863         * ppc-linux-tdep.c: Update comments.
8864         * breakpoint.c (bpstat_what): Update comments.
8865
8866         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8867         m68klinux-tdep.o's dependencies, were previously added to
8868         m68klinux-nat.o.
8869
8870         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8871         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8872         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8873         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8874         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8875
8876         * Makefile.in (m68klinux-nat.o): Update dependencies.
8877         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8878         (m68k_linux_sigtramp_frame_cache)
8879         (m68k_linux_sigtramp_frame_this_id)
8880         (m68k_linux_sigtramp_frame_prev_register)
8881         (m68k_linux_sigtramp_frame_unwind)
8882         (m68k_linux_sigtramp_frame_sniffer)
8883         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8884         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8885         names, use trad-frame.h.
8886         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8887         (struct m68k_sigtramp_info): Delete.
8888         * m68k-tdep.c (m68k_sigtramp_frame_cache)
8889         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8890         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8891         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8892         "m68klinux-tdep.c".
8893
8894         * infrun.c (check_sigtramp2): Delete check for
8895         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8896
8897 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8898
8899         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8900
8901 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8902
8903         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8904         (frv_linux_sigtramp_frame_cache)
8905         (frv_linux_sigtramp_frame_this_id)
8906         (frv_linux_sigtramp_frame_prev_register)
8907         (frv_linux_sigtramp_frame_unwind)
8908         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8909         include "linux" in function and variable names, directly call
8910         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8911         the latest trad-frame code.
8912         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8913         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8914         * Makefile.in (frv-linux-tdep.o): Update dependencies.
8915         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8916         * frv-tdep.c (frv_sigtramp_frame_cache)
8917         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8918         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8919         frv-linux-tdep.c.
8920         (frv_gdbarch_init): Do not append a sigtramp sniffer.
8921         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8922         (frv_set_sigcontext_reg_addr): Delete function.
8923
8924         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8925         (DEPRECATED_SIGTRAMP_END): Delete.
8926         * gdbarch.h, gdbarch.c: Re-generate.
8927         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8928         * config/vax/tm-vaxbsd.h: Update copyright.
8929         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8930         (DEPRECATED_IN_SIGTRAMP): Define.
8931         * config/m68k/tm-nbsd.h: Update copyright.
8932         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8933         (DEPRECATED_IN_SIGTRAMP): Define.
8934
8935 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8936
8937         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8938         encondings.  Fixes PR gdb/1628.
8939
8940         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8941         DW_CFA_restore state without a matching DW_CFA_remember_state
8942         instead of aborting.  Fixes PR backtrace/1589.
8943
8944 2004-04-30  Joel Brobecker  <brobecker@gnat.com>
8945
8946         * MAINTAINERS: Add self as AIX maintainer.
8947         Update my e-mail address in write-after-approval section.
8948
8949 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8950
8951         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8952         (legacy_get_prev_frame): Ditto.
8953
8954         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8955         (mips_gdbarch_init): Do not set pc_in_sigtramp.
8956         * mipsread.c (sigtramp_address): Delete extern variable.
8957         (mipscoff_new_init): Delete reference.
8958         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8959         (fixup_sigtramp): Delete function.
8960         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8961         (fixup_sigtramp): Delete declarations.
8962
8963         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8964         deprecated_pc_in_sigtramp.
8965         (ppcnbsd_pc_in_sigtramp): Delete function.
8966
8967 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8968
8969         * config/m68k/nm-nbsd.h: Tweak comments.
8970         * config/m68k/nm-nbsdaout.h: Likewise.
8971
8972 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8973
8974         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8975         legacy_pc_in_sigtramp.
8976         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8977
8978 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8979
8980         Add OpenBSD/m68k support.
8981         * NEWS (New native configurations): Mention OpenBSD/m68k.
8982         * m68kbsd-tdep.c: New file.
8983         * m68kbsd-nat.c: New file.
8984         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8985         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8986         * configure.host: Add m68k-*-openbsd.
8987         * configure.tgt: Add m68k-*-openbsd.
8988         * config/m68k/tm-obsd.h: New file.
8989         * config/m68k/obsd.mt: New file.
8990         * config/m68k/obsd.mh: New file.
8991         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8992         m68kbsd-tdep.c.
8993
8994 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8995
8996         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8997         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8998
8999 2004-04-30  Mark Kettenis  <kettenis@gnu.org>
9000
9001         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
9002         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
9003
9004 2004-04-30  Brian Ford  <ford@vss.fsi.com>
9005
9006         Revert 2004-04-16 change.
9007         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
9008         (i386_coff_init_abi): Remove.
9009         * i386-tdep.h (i386_coff_init_abi): Remove.
9010         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
9011
9012 2004-04-30  Andrew Cagney  <cagney@redhat.com>
9013
9014         * blockframe.c (find_pc_partial_function): Delete use of
9015         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
9016         DEPRECATED_SIGTRAMP_END.
9017
9018         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
9019         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
9020         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
9021         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
9022         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
9023
9024         * defs.h (deprecated_inside_entry_file): Delete declaration.
9025         * blockframe.c (deprecated_inside_entry_file): Delete function.
9026         (legacy_frame_chain_valid): Delete call.
9027         * sh64-tdep.c (sh64_frame_chain): Delete call.
9028         * objfiles.h: Update comments.
9029         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
9030         call.
9031         * frame.c (get_prev_frame): Delete call, update comments.
9032
9033 2004-04-30  Brian Ford  <ford@vss.fsi.com>
9034
9035         * MAINTAINERS (Write After Approval): Add myself.
9036
9037 2004-04-30  Andrew Cagney  <cagney@redhat.com>
9038
9039         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
9040         * gdbarch.h, gdbarch.c: Re-generate.
9041         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
9042         code.
9043
9044 2004-04-30  Andrew Cagney  <cagney@redhat.com>
9045
9046         * gdb-events.sh (selected_thread_changed)
9047         (selected_frame_level_changed, target_changed): Delete.
9048         * gdb-events.h, gdb-events.c: Re-generate.
9049         * valops.c (value_assign): Update.
9050         * stack.c (select_frame_command, up_silently_base)
9051         (down_silently_base): Update.
9052
9053 2004-04-29  Andrew Cagney  <cagney@redhat.com>
9054
9055         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
9056         registers correctly.
9057         (print_gp_register_row, mips32_heuristic_proc_desc)
9058         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
9059         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
9060         references to mips_isa_regsize.
9061
9062 2004-04-29  Andrew Cagney  <cagney@redhat.com>
9063
9064         * mips-tdep.c (struct gdbarch_tdep): Delete
9065         mips_fp_register_double.
9066         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
9067         mips_abi_regsize.
9068         (mips_gdbarch_init): Do not set mips_fp_register_double.
9069         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
9070
9071 2004-04-29  Joel Brobecker  <brobecker@gnat.com>
9072
9073         Committed by Andrew Cagney.
9074         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
9075         function calls.
9076
9077 2004-04-29  Andrew Cagney  <cagney@redhat.com>
9078
9079         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
9080         gdbarch, use mips_abi, update callers.
9081         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
9082         mips_abi_regsize, update callers.
9083         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
9084         mips_default_abi_regsize.
9085         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
9086         mips_default_abi_regsize.
9087
9088 2004-04-29  Andrew Cagney  <cagney@redhat.com>
9089
9090         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
9091         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
9092         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
9093         mips_default_abi_regsize.
9094         (mips_isa_regsize): Rename mips_regisze.
9095         * mipsnbsd-tdep.c: Update.
9096         * mips-linux-tdep.c: Update.
9097         * irix5-nat.c: Update.
9098         * mips-tdep.h (mips_isa_regsize): Update.
9099
9100         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
9101         Delete all disabled code.
9102         * gdb-events.h, gdb-events.c: Re-generate.
9103         
9104 2004-04-19  Jerome Guitton  <guitton@gnat.com>
9105             Mark Kettenis  <kettenis@gnu.org>
9106
9107         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
9108         the function begins with a branch instruction.
9109
9110 2004-04-29  Mark Kettenis  <kettenis@gnu.org>
9111
9112         * i386-tdep.c: Fix spelling mistakes.
9113
9114 2004-04-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9115             Andrew Cagney  <cagney@redhat.com>
9116
9117         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9118         <sys/proc.h>.
9119         * acconfig.h: Provide default _KMEMUSER value.
9120         * config.in, configure: Re-generate.
9121         * NEWS: Mention fix.
9122
9123 2004-04-24  Randolph Chung  <tausq@debian.org>
9124
9125         * configure.host (hppa*-*-linux*): New target.
9126         * configure.tgt (hppa*-*-linux*): Likewise.
9127         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9128         gdbarch_init_osabi() call earlier so that osabi-specific frame
9129         unwinders can be registered first.
9130         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9131         hppa-linux-nat.c.
9132         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9133         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9134         * config/pa/linux.mh: New file.
9135         * config/pa/linux.mt: New file.
9136         * config/pa/nm-linux.h: New file.
9137         * config/pa/xm-linux.h: New file.
9138         * hppa-linux-nat.c: New file.
9139         * hppa-linux-tdep.c: New file.
9140
9141 2004-04-28  Randolph Chung  <tausq@debian.org>
9142
9143         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9144         return values.
9145         (hppa32_push_dummy_call): Fix small struct and floating point argument 
9146         passing, and make sure the stack frame is properly aligned.
9147
9148 2004-04-28  Andrew Cagney  <cagney@redhat.com>
9149
9150         * stack.c (print_stack_frame): Fix description.
9151
9152         * NEWS: Mention gdb/gdbserver/configure execute permission
9153         changed.  PR server/519.
9154
9155 2004-04-28  Andrew Cagney  <cagney@redhat.com>
9156
9157         * stack.c (print_stack_frame_stub): Delete declaration.
9158         (struct print_stack_frame_args, print_stack_frame)
9159         (print_frame_info, print_frame): Replace "source" with print what.
9160         Replace "print" with "print_level".  Replace "args" with
9161         "print_args".
9162         * frame.h (show_and_print_stack_frame, print_stack_frame)
9163         (print_frame_info): Update declarations.
9164         * stack.c (select_and_print_frame, frame_command)
9165         (current_frame_command, up_command, down_command): Update calls -
9166         use get_selected_frame, pass "enum print_what" for source, do not
9167         call frame_relative_level.
9168         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9169         * remote-rdp.c (remote_rdp_open): Ditto.
9170         * remote-mips.c (common_open): Ditto.
9171         * remote-e7000.c (e7000_start_remote): Ditto.
9172         * ocd.c (ocd_start_remote): Ditto.
9173         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9174         * infrun.c (normal_stop): Ditto.
9175         * inflow.c (kill_command): Ditto.
9176         * infcmd.c (finish_command): Ditto.
9177         * corelow.c (core_open): Ditto.
9178         * tracepoint.c (finish_tfind_command): Ditto.
9179         * thread.c (info_threads_command, info_threads_command) 
9180         (restore_current_thread, do_captured_thread_select): Ditto.
9181         * ada-tasks.c (task_command): Ditto.
9182
9183 2004-04-26  Orjan Friberg <orjanf@axis.com>
9184
9185         * frame.c: Include "observer.h".
9186         (frame_observer_target_changed): New function.
9187         (_initialize_frame): Attach target_changed observer.
9188         * regcache.c: Include "observer.h".
9189         (regcache_observer_target_changed): New function.
9190         (_initialize_regcache): Attach target_changed observer.
9191         * valops.c: Include "observer.h".
9192         (value_assign): Notify target_changed event when modifying register.
9193         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9194
9195 2004-04-26  Orjan Friberg <orjanf@axis.com>
9196
9197         From Paul Koning <pkoning@equallogic.com>:
9198         * breakpoint.c (free_valchain): New function.
9199         (insert_bp_location, delete_breakpoint): Use free_valchain.
9200         (remove_breakpoint): Do not remove the valchain.
9201         (bpstat_stop_status): If not stopped by watchpoint, skip
9202         watchpoints when generating stop status list.
9203         * infrun.c (handle_inferior_event): Make
9204         stepped_after_stopped_by_watchpoint a global variable.
9205         * remote.c (remote_stopped_data_address): Return watch data
9206         address rather than zero if stepped_after_stopped_by_watchpoint is
9207         set.
9208
9209 2004-04-25  Michael Chastain  <mec.gnu@mindspring.com>
9210
9211         Fix PR gdb/1626.
9212         * configure.in: Check for curses after termcap.
9213         On osf5.*, do not check for ncurses.
9214         * configure: Regenerate.
9215
9216 2004-04-25  Mark Kettenis  <kettenis@gnu.org>
9217
9218         * ppcobsd-nat.c: Include "ppc-tdep.h".
9219         * Makefile.in (ppcobsd-nat.o): Update dependencies.
9220
9221         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9222         Fixes PR tdep/1623 and PR tdep/1624.
9223
9224 2004-04-24  Michael Chastain  <mec.gnu@mindspring.com>
9225
9226         * xmodem.h, xmodem.c: Remove files.
9227         * Makefile.in: Remove references to xmodem.h, xmodem.c.
9228
9229 2004-04-23  Randolph Chung  <tausq@debian.org>
9230
9231         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9232         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9233         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9234         for handling stackless frames.
9235         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
9236
9237 2004-04-23  Randolph Chung  <tausq@debian.org>
9238
9239         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9240         starts at a pc before the frame is created.
9241
9242 2004-04-23  Joel Brobecker  <brobecker@gnat.com>
9243
9244         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9245
9246 2004-04-23  Jerome Guitton  <guitton@gnat.com>
9247
9248         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9249         use convert_typed_floating to get the appropriate format.
9250
9251 2004-04-22  Randolph Chung  <tausq@debian.org>
9252
9253         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9254         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9255         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9256         (hppa_sign_extend): Add prototype.
9257         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9258         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9259         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
9260         hppa targets will also use these functions.
9261         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9262         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9263         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9264         (hppa_gdbarch_init): Remove gdbarch setting of 
9265         skip_trampoline_code, in_solib_call_trampoline and
9266         in_solib_return_trampoline.
9267         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9268         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9269         hppa_in_solib_call_trampoline.
9270         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9271         Moved from hppa-tdep.c.
9272         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
9273         in_solib_call_trampoline and in_solib_return_trampoline.
9274
9275 2004-04-22  Randolph Chung  <tausq@debian.org>
9276
9277         * hppa-tdep.c (hppa_debug): New variable.
9278         (find_unwind_entry, hppa_frame_cache): Add debug output.
9279         (_initialize_hppa_tdep): Add command to set debug flag.
9280
9281 2004-04-22  Andrew Cagney  <cagney@redhat.com>
9282
9283         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
9284         "trad-frame.h".
9285         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9286         signal trampoline unwinder.
9287         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9288
9289 2004-04-22  Mark Kettenis  <kettenis@gnu.org>
9290
9291         Add OpenBSD/powerpc support.
9292         * NEWS (New native configurations): Mention OpenBSD/powerpc.
9293         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9294         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9295         (ppc_collect_fpregset): New prototypes.
9296         * ppcobsd-nat.c: New file.
9297         * ppcobsd-tdep.c: New file.
9298         * ppcobsd-tdep.h: New file.
9299         * rs6000-tdep.c: Include "regset.h".
9300         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9301         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9302         New functions.
9303         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9304         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9305         (rs6000-tdep.o): Update dependencies.
9306         * configure.host: Add powerpc-*-openbsd.
9307         * configure.tgt: Add powerpc-*-openbsd.
9308         * config/powerpc/obsd.mh: New file.
9309         * config/powerpc/nm-obsd.h: New file.
9310         * config/powerpc/obsd.mt: New file.
9311
9312 2004-04-22  Andrew Cagney  <cagney@redhat.com>
9313
9314         * frame.h (show_frame_info): Delete declaration.
9315
9316         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9317         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9318         * m32r-tdep.c (m32r_frame_this_id): Ditto.
9319         * frv-tdep.c (frv_frame_this_id): Ditto.
9320         * avr-tdep.c (avr_frame_this_id): Ditto.
9321
9322 2004-04-22  Elena Zannoni  <ezannoni@redhat.com>
9323
9324         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9325
9326 2004-04-22  Jim Blandy  <jimb@redhat.com>
9327
9328         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9329         register number zero.
9330
9331 2004-04-21  Michael Snyder  <msnyder@redhat.com>
9332
9333         * mips-tdep.c (heuristic_proc_start): 
9334         Warning() already prefixes "Warning: ".
9335
9336 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9337
9338         * annotate.h (deprecated_annotate_starting_hook)
9339         (deprecated_annotate_stopped_hook)
9340         (deprecated_annotate_exited_hook)
9341         (deprecated_annotate_signal_hook)
9342         (deprecated_annotate_signalled_hook): Deprecate.
9343         * tracepoint.h (deprecated_create_tracepoint_hook)
9344         (deprecated_delete_tracepoint_hook)
9345         (deprecated_modify_tracepoint_hook)
9346         (deprecated_trace_find_hook)
9347         (deprecated_trace_start_stop_hook): Deprecate.
9348         * target.h (deprecated_target_new_objfile_hook): Deprecate.
9349         * remote.h (deprecated_target_resume_hook)
9350         (deprecated_target_wait_loop_hook): Deprecate.
9351         * gdbcore.h (deprecated_exec_file_display_hook)
9352         (deprecated_file_changed_hook): Deprecate.
9353         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9354         * defs.h (deprecated_modify_breakpoint_hook)
9355         (deprecated_command_loop_hook, deprecated_show_load_progress)
9356         (deprecated_print_frame_info_listing_hook)
9357         (deprecated_query_hook, deprecated_warning_hook)
9358         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9359         (deprecated_delete_breakpoint_hook)
9360         (deprecated_interactive_hook, deprecated_registers_changed_hook)
9361         (deprecated_readline_begin_hook, deprecated_readline_hook)
9362         (deprecated_readline_end_hook, deprecated_register_changed_hook)
9363         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9364         (deprecated_context_hook, deprecated_target_wait_hook)
9365         (deprecated_attach_hook, deprecated_detach_hook)
9366         (deprecated_call_command_hook, deprecated_set_hook)
9367         (deprecated_error_hook, deprecated_error_begin_hook)
9368         (deprecated_ui_load_progress_hook): Deprecate.
9369         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9370         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9371         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9372         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9373         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9374         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9375         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9376         * annotate.c, aix-thread.c: Update.
9377
9378 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9379
9380         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9381         * vaxnbsd-tdep.c: Include "gdb_string.h".
9382
9383         * symfile.c (symbol_file_add_from_memory): #if 0 function.
9384         (add_symbol_file_from_memory_command): #if 0 function body, call
9385         error instead.
9386
9387 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9388
9389         * gdbcore.h: Update copyright.
9390         (deprecated_add_core_fns): Rename add_core_fns.
9391         * win32-nat.c (_initialize_core_win32): Update.
9392         * sun3-nat.c (_initialize_core_sun3): Update.
9393         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9394         * rs6000-nat.c (_initialize_core_rs6000): Update.
9395         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9396         * nto-tdep.c (_initialize_nto_tdep): Update.
9397         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9398         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9399         * mips-nat.c (_initialize_core_mips): Update.
9400         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9401         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9402         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9403         * lynx-nat.c (_initialize_core_lynx): Update.
9404         * irix5-nat.c (_initialize_core_irix5): Update.
9405         * i386-interix-nat.c (_initialize_core_interix): Update.
9406         * cris-tdep.c (_initialize_cris_tdep): Update.
9407         * corelow.c (deprecated_add_core_fns): Update.
9408         * core-regset.c (_initialize_core_regset): Update.
9409         * core-aout.c (_initialize_core_aout): Update.
9410         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9411         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9412         * alpha-nat.c (_initialize_core_alpha): Update.
9413
9414 2004-04-21  Jim Blandy  <jimb@redhat.com>
9415
9416         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9417
9418 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
9419
9420         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9421         Delete.
9422         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
9423         (read_attribute_value): Update calls to dwarf_alloc_block.
9424         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9425         dwarf2_tmp_obstack.
9426         (psymtab_to_symtab_1): Likewise.  Clean up using
9427         free_stack_comp_unit.
9428         (add_to_cu_func_list): Use the comp_unit_obstack.
9429
9430 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
9431
9432         * dwarf2read.c (dwarf2_flag_true_p): New function.
9433         (die_is_declaration): Use the function above. Add some comments.
9434
9435 2004-04-19  Mark Kettenis  <kettenis@gnu.org>
9436
9437         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9438         architecture when registering sparcnbsd_core_osabi_sniffer.
9439         Adjust comment.
9440
9441 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
9442
9443         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9444         return value.
9445
9446         Based on a patch from Brian Ford <ford@vss.fsi.com>:
9447         * i386-tdep.c: Correct register numbering scheme comments
9448         throughout.
9449         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9450         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9451         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9452         (i386_gdb_arch_init): Likewise.
9453
9454         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9455         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9456         ppcnbsd-tdep.o.
9457
9458         * m68k-tdep.h: Tweak comments.
9459         * m68k-tdep.c: Tweak comment.
9460
9461 2004-04-17  Randolph Chung  <tausq@debian.org>
9462
9463         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9464         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9465         (hppa_hpux_som_init_abi): Set is_elf to 0.
9466         (hppa_hpux_elf_init_abi): Set is_elf to 1.
9467         * hppa-tdep.c (low_text_segment_address): Remove global.
9468         (record_text_segment_lowaddr): Pass in low address as parameter. Use
9469         section offset to calculate segment address.
9470         (internalize_unwinds): Define low_text_segment_address as local and
9471         pass to record_text_segment_lowaddr for ELF targets.
9472         (hppa_gdbarch_init): Zero fill tdep structure.
9473         (hppa_dump_tdep): Print tdep structure.
9474         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9475
9476 2004-04-17  Randolph Chung  <tausq@debian.org>
9477
9478         * hppa-tdep.c (hppa_pseudo_register_read): Define.
9479         (hppa_gdbarch_init): Set pseudo_register_read.
9480         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9481         * regcache.c (supply_register): Remove check for
9482         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9483
9484 2004-04-17  Randolph Chung  <tausq@debian.org>
9485
9486         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9487         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9488         (hpread_adjust_stack_address): Move to hpread.c.
9489         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9490         obj_private_struct): Move from tm-hppa.h.
9491         * hpread.c (hppa-tdep.h): Include.
9492         (hpread_adjust_stack_address): Move from hppa-tdep.c.
9493         (hpread_read_function_type, hpread_read_doc_function_type)
9494         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
9495         directly.
9496         * pa64solib.c (hppa-tdep.h): Include.
9497         * somsolib.c (hppa-tdep.h): Include.
9498         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9499         inferior_status): Remove unused forward declarations.
9500         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9501         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
9502         obj_private_struct): Move to hppa-tdep.h.
9503         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9504
9505 2004-04-17  Randolph Chung  <tausq@debian.org>
9506
9507         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9508         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9509         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9510         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9511         Remove forward declaration and make static.
9512         (hppa_reg_struct_has_addr): Remove.
9513
9514 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9515
9516         * observer.sh: Move comments in sed command to first column.
9517
9518 2004-04-16  Jason Molenda  (jmolenda@apple.com)
9519
9520         * frame.c: Minor typeo corrections in comments.
9521
9522 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9523
9524         * observer.c (observer_test_first_notification_function): Update
9525         function profile.
9526         (observer_test_second_notification_function): Likewise.
9527         (observer_test_third_notification_function): Likewise.
9528
9529 2004-04-16  Mark Kettenis  <kettenis@gnu.org>
9530
9531         From Brian Ford <ford@vss.fsi.com>:
9532         * i386-tdep.c (i386_coff_init_abi): New function.
9533         * i386-tdep.h (i386_coff_init_abi): New prototype.      
9534         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
9535         register number translation functions for DWARF and DWARF 2.
9536
9537 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9538
9539         * dwarf2read.c: Back out my previous change, it was incorrect.
9540
9541 2004-04-16  Daniel Jacobowitz  <drow@mvista.com>
9542
9543         * dwarf2read.c: Include "hashtab.h".
9544         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9545         has_namespace_info.
9546         (struct partial_die_info): Add comments.  Use bitfields to reduce
9547         memory footprint.  Add scope, scope_set, has_specification,
9548         spec_offset, die_parent, die_child, and die_sibling.
9549         (peek_die_abbrev): Add prototype.
9550         (partial_read_comp_unit_head): New function, broken out from
9551         dwarf2_build_psymtabs_hard.
9552         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9553         Use partial_read_comp_unit_head.  Initialize the CU and
9554         comp_unit_obstack.  Update calls to read_partial_die and
9555         scan_partial_symbols.  Use free_stack_comp_unit and
9556         load_partial_dies.
9557         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
9558         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
9559         Update calls to helper functions.  Remove NAMESPACE argument.
9560         Update comments.
9561         (partial_die_parent_scope, partial_die_full_name): New functions.
9562         (add_partial_symbol): Remove namespace argument.  Update call to
9563         pdi_needs_namespace.  Use partial_die_full_name.  Handle
9564         DW_TAG_namespace.  Check has_namespace_info flag.
9565         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
9566         tag.  Handle namespaces.
9567         (add_partial_namespace, add_partial_enumeration): Simplify.
9568         (guess_structure_name): New function, derived from
9569         add_partial_structure.
9570         (add_partial_structure): Remove.
9571         (determine_class_name): Update comment.
9572         (dwarf2_read_abbrevs): Set has_namespace_info flag.
9573         (is_type_tag_for_partial, load_partial_dies): New functions.
9574         (read_partial_die): Pass abbrev and abbrev_len as arguments.
9575         Record specifications instead of following them immediately.
9576         (find_partial_die_in_comp_unit, find_partial_die)
9577         (fixup_partial_die, free_stack_comp_unit)
9578         (hashtab_obstack_allocate, dummy_obstack_deallocate)
9579         (partial_die_hash, partial_die_eq): New functions.
9580         * Makefile.in (hashtab_h): Define.
9581         (dwarf2read.o): Update dependencies.
9582         (observer_inc, observer_h): Move to the correct section.
9583
9584 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
9585
9586         * dwarf2read.c (dwarf2_attribute_true_p): New function.
9587         (die_is_declaration): Use the function above. Add comment.
9588
9589 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
9590
9591         * dwarf2read.c (read_structure_scope): Identify stub types
9592         using die_is_declaration() only.
9593
9594 2004-04-15  Roland McGrath  <roland@redhat.com>
9595
9596         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9597         argument instead of NAME.
9598         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9599         in call to symbol_file_add_with_addrs_or_offsets.
9600         (build_addr_info): New function, helper for ...
9601         (symbol_file_add_from_memory): New function.
9602         (add_symbol_file_from_memory_command): New function using that.
9603         (_initialize_symfile): Register it for add-symbol-file-from-memory.
9604         (pre_add_symbol_hook): Add const to argument type.
9605         * symfile.h (symbol_file_add_from_memory): Declare it.
9606
9607 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
9608
9609         * NEWS (New native configurations): Mention OpenBSD/vax.
9610         * configure.host: Add vax-*-openbsd*.
9611         * config/vax/obsd.mh: New file.
9612         * config/vax/nm-obsd.h: New file.
9613
9614         * vax-tdep.c: Include "regset.h".
9615         (vax_supply_gregset): New function.
9616         (vax_gregset): New variable.
9617         (vax_regset_from_core_section): New function.
9618         (vax_gdbarch_init): Set regset_from_core_section.
9619         * Makefile.in (vax-tdep.o): Update dependencies.
9620
9621 2004-04-15  Andrew Cagney  <cagney@redhat.com>
9622
9623         * observer.c (normal_stop_subject, observer_notify_normal_stop)
9624         (observer_normal_stop_notification_stub)
9625         (observer_attach_normal_stop, observer_detach_normal_stop):
9626         Delete, replaced by #include "observer.inc".
9627         * infrun.c (normal_stop): Pass "stop_bpstat" to
9628         observer_notify_normal_stop.
9629         * Makefile.in (observer_inc): Define.
9630         (observer.o): Update dependencies.
9631         (observer.h, observer.inc): New rules.
9632         * observer.h: Delete file.
9633         * observer.sh: New file.
9634
9635 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
9636
9637         * vax-tdep.c (vax_frame_cache): Fix typo.
9638
9639 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
9640
9641         * NEWS (New native configurations): Mention NetBSD/vax.
9642         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9643         * config/vax/nbsdelf.mh: New file.
9644         * config/vax/nbsdaout.mh: New file.
9645         * config/vax/nm-nbsd.h: New file.
9646         * config/vax/nm-nbsdaout.h: New file.
9647
9648         * vaxnbsd-tdep.c: New file.
9649         * Makefile.in (vaxnbsd-tdep.o): New dependency.
9650         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9651         * config/vax/nbsd.mt: New file.
9652         * config/vax/tm-nbsd.h: New file.
9653
9654         * Makefile.in (vaxbsd-nat.o): New dependency.
9655
9656         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9657         * vax-tdep.c (vax_store_arguments): Remove struct_return and
9658         struct_addr arguments.  Don't push return value address.
9659         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9660         arguments to vax_store_arguments.  Store return value address in
9661         R1.
9662         (vax_store_struct_return, vax_extract_return_value)
9663         (vax_store_return_value): Remove functions.
9664         (vax_return_value): New function.
9665         (vax_gdbarch_init): Set return value.  Don't set
9666         deprecated_store_struct_return, deprecated_extract_struct_return
9667         and deprecated_store_return_value.
9668
9669 2004-04-14  Andreas Schwab  <schwab@suse.de>
9670
9671         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9672         value buffer.
9673         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9674
9675 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
9676
9677         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9678         (vax_unwind_dummy_id): New functions.
9679         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9680         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9681         variables.
9682         (vax_fix_call_dummy): Remove function.
9683         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9684         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9685         call_dummy_location, deprecated_call_dummy_words,
9686         deprecated_sizeof_call_dummy_words,
9687         deprecated_call_dummy_breakpoint_offset,
9688         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9689         and deprecated_dummy_write_sp.
9690
9691 2004-04-13  David Carlton  <carlton@kealia.com>
9692
9693         * MAINTAINERS: Move myself to "paper trail" section.
9694
9695 2004-04-12  Mark Kettenis  <kettenis@gnu.org>
9696
9697         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9698         "trad-frame.h".
9699         (vax_frame_init_saved_regs): Remove function.
9700         (vax_sigtramp_saved_pc): Remove function.
9701         (vax_frame_saved_pc): Remove function.
9702         (vax_frame_args_address): Remove function.
9703         (vax_frame_num_args): Rewrite.
9704         (vax_frame_chain): Remove function.
9705         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9706         VAX_FP_REGNUM.
9707         (vax_pop_frame): Likewise.
9708         (vax_saved_pc_after_call): Remove function.
9709         (struct vax_frame_cache): New structure.
9710         (vax_frame_cache): New function.
9711         (vax_frame_this_id): New function.
9712         (vax_frame_prev_register): New function.
9713         (vax_frame_unwind): New variable.
9714         (vax_frame_sniffer): New function.
9715         (vax_frame_base_address): New function.
9716         (vax_frame_args_address): New function.
9717         (vax_frame_base): New variable.
9718         (vax_unwind_pc): New function.
9719         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9720         deprecated_fp_regnum, deprecated_saved_pc_after_call,
9721         deprecated_frame_chain, deprecated_frame_saved_pc,
9722         deprecated_frame_args_address and
9723         deprecated_frame_init_saved_regs.
9724         * Makefile.in (vax-tdep.o): Update dependencies.
9725
9726         * vaxbsd-nat.c: New file.
9727
9728         * vax-tdep.h: Update copyright year.  Adjust comments.
9729         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9730         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9731         (vax_regnum): New enum.  Replacing...
9732         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9733         (VAX_PS_REGNUM): ... these removed macros.
9734         * vax-tdep.c (vax_register_name): Remove prototype.
9735         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
9736         (vax_register_byte, vax_register_raw_size,
9737         vax_register_virtual_size, vax_register_virtual_type): Remove
9738         functions.
9739         (vax_register_type): New function.
9740         (vax_breakpoint_from_pc): Reorganize.
9741         (vax_gdbarch_init): Set register_type.  Don't set
9742         deprecated_register_size, deprecated_register_bytes,
9743         deprecated_register_byte, deprecated_register_raw_size,
9744         deprecated_max_register_raw_size,
9745         deprecated_register_virtual_size,
9746         deprecated_max_register_virtual_size and
9747         deprecated_register_virtual_type.  Add comment on stack direction.
9748
9749 2004-04-11  Mark Kettenis  <kettenis@gnu.org>
9750
9751         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9752         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9753         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9754
9755 2004-04-10  Randolph Chung  <tausq@debian.org>
9756
9757         * MAINTAINERS (write after approval): Add myself.
9758
9759 2004-04-07  Randolph Chung  <tausq@debian.org>
9760
9761         * hppa-tdep.c (hppa_inner_than): Remove.
9762         (is_pa_2): Remove unused static variable.
9763         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9764
9765 2004-03-10  Paul N. Hilfinger  <Hilfinger@gnat.com>
9766
9767         * language.h (language_defn): Add new la_post_parser field.
9768         * parser-defs.h (null_post_parser): New declaration (default for
9769         la_post_parser).
9770
9771         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9772         insert call to that function.
9773         (parse_exp_in_context): New function, including code formerly in
9774         parse_exp_1.  Calls language-dependent post-parser after
9775         prefixification.
9776         (parse_expression_in_context): New exported function.
9777         (null_post_parser): New definition.
9778         * expression.h (parse_expression_in_context): Add declaration.
9779
9780         * p-lang.c (pascal_language_defn): Add trivial post-parser.
9781         * c-lang.c (c_language_defn): Ditto.
9782         (cplus_language_defn): Ditto.
9783         (asm_language_defn): Ditto.
9784         (minimal_language_defn): Ditto.
9785         * f-lang.c (f_language_defn): Ditto.
9786         * jv-lang.c (java_language_defn): Ditto.
9787         * language.c (unknown_language_defn): Ditto.
9788         (auto_language_defn): Ditto.
9789         (local_language_defn): Ditto.
9790         * m2-lang.c (m2_language_defn): Ditto.
9791         * scm-lang.c (scm_language_defn): Ditto.
9792         * obj-lang.c (objc_language_defn): Ditto.
9793
9794 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
9795
9796         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9797         (amd64nbsd_mcontext_addr): New function.
9798         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9799         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
9800         with amd64nbsd_r_reg_offset, instead of building it on the fly.
9801
9802         * corelow.c (core_xfer_partial): Fix coding standards violation.
9803         Add support for TARGET_OBJECT_WCOOKIE.
9804
9805         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9806         deprecated_pc_in_sigtramp.
9807         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9808         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9809         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9810         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9811         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9812         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9813         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9814
9815         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9816         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9817         Fix typo.
9818
9819         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9820         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9821         (amd64_collect_fxsave): Likewise.
9822
9823         * i386-sol2-tdep.c: Include "gdb_string.h".
9824         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9825         name.
9826         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9827
9828 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
9829
9830         * i386-sol2-tdep.c: Include "solib-svr4.h".
9831         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9832         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9833         * config/i386/tm-i386sol2.h: Include :solib.h".
9834         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9835         solib-svr4.o and solib-legacy.o.
9836         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9837         solib-svr4.o.
9838
9839 2004-04-09  Mark Kettenis  <kettenis@gnu.org>
9840
9841         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9842         whether a register is supplied by PTRACE_GETFPREGS.
9843         (store_inferior_registers): Likewise.
9844         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9845         whether a register is supplied by PT_GETFPREGS.
9846         (store_inferior_registers): Likewise.
9847
9848         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9849         * config/i386/linux64.mt (TDEPFILES): Likewise.
9850
9851         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
9852
9853         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9854         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
9855         the program counter is in the range specified by `struct
9856         gdbarch_tdep'.
9857         * amd64-linux-tdep.c: Include "symtab.h".
9858         (amd64_linux_pc_in_sigtramp): Remove function.
9859         (amd64_linux_sigtramp_p): New function.
9860         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9861         deprecated_pc_in_sigtramp.
9862         * amd64nbsd-tdep.c: Include "symtab.h".
9863         (amd64nbsd_sigtramp_p): New function.
9864         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9865         deprecated_pc_in_sigtramp.
9866         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
9867         few comments.
9868         (amd64obsd_pc_in_sigtramp): Remove function.
9869         (amd64obsd_sigtramp_p): New function.
9870         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9871         deprecated_pc_in_sigtramp.
9872         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9873         (i386bsd_pc_ins_sigtramp): Remove prototype.
9874         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9875         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9876         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
9877         the program counter is in the range specified by `struct
9878         gdbarch_tdep'.
9879         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9880         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9881         (i386_go32_pc_in_sigtramp): Remove function.
9882         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9883         Initialize TDEP->sigtramp_p.
9884         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9885         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
9886         deprecated_pc_in_sigtramp.
9887         * i386-linux-tdep.c: Adjust comments.
9888         (i386_linux_pc_in_sigtramp): Remove function.
9889         (i386_linux_sigtramp_p): New function.
9890         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9891         deprecated_pc_in_sigtramp.
9892         * i386-nto-tdep.c: Update copyright year.
9893         (i386nto_pc_in_sigtramp): Remove function.
9894         (i386nto_sigtramp_p): New function.
9895         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9896         SP_REGNUM.
9897         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9898         deprecated_pc_in_sigtramp.
9899         * i386-sol2-tdep.c: Update copyright year.
9900         (i386_sol2_pc_in_sigtramp): Remove function.
9901         (i386_sol2_sigtramp_p): New function.
9902         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9903         deprecated_pc_in_sigtramp.
9904         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9905         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9906         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9907         deprecated_sigtramp_start and deprecated_sigtramp_end.
9908         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9909         (i386nbsd_pc_in_sigtramp): Remove function.
9910         (i386nbsd_sigtramp_p): New function.
9911         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9912         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
9913         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9914         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9915         (i386obsd_pc_in_sigtramp): Remove function.
9916         (i386obsd_sigtramp_p): New function.
9917         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9918         functions.
9919         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9920         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
9921         TDEP->sigtramp_p.
9922         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9923         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9924         dependencies.
9925
9926         * config/i386/i386aout.mt: Remove file.
9927
9928         * configure.tgt: Remove i[34567]86-*-go32*,
9929         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9930         and i[34567]86-*-isc*.  Set gdb_target to i386 for
9931         i[34567]86-*-netware* and i[34567]86-*-*.
9932         * config/i386/i386.mt: New file.
9933         * config/i386/embed.mt: Remove file.
9934         * config/i386/go32.mt: Remove file.
9935         * config/i386/i386nw.mt: Remove file.
9936         * config/i386/i386v.mt: Remove file.
9937         * config/i386/tm-go32.h: Remove file.
9938
9939         * tui/tui-hooks.c: Include "readline/readline.h" after
9940         "gdb_curses.h" instead of before.
9941         * tui/tui-io.c: Likewise.
9942
9943         * tui/tui.c: Fix typo in comment.
9944
9945         * sparc64-tdep.c (sparc_address_from_register): Remove function.
9946
9947 2004-04-08  Andrew Cagney  <cagney@redhat.com>
9948
9949         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9950         (deprecated_exception_support_initialized): Declare.
9951         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9952         (initialize_hp_cxx_exception_support)
9953         (child_enable_exception_callback): Update.
9954         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9955         (deprecated_exception_support_initialized): Rename
9956         deprecated_exception_catchpoints_are_fragile and
9957         deprecated_exception_support_initialized.
9958         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9959
9960         * symtab.c (deprecated_hp_som_som_object_present): Rename
9961         hp_som_som_object_present.
9962         * symtab.h (deprecated_hp_som_som_object_present): Declare.
9963         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9964         Update.  Delete extern declaration.
9965         * valops.c (hp_som_som_object_present): Ditto.
9966         * parse.c (deprecated_hp_som_som_object_present)
9967         (parse_nested_classes_for_hpacc): Ditto.
9968         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9969         * hppa-hpux-tdep.c (hp_som_som_object_present)
9970         (initialize_hp_cxx_exception_support): Ditto.
9971         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9972         * cp-valprint.c (hp_som_som_object_present)
9973         (cp_print_class_method): Ditto.
9974         * c-typeprint.c (hp_som_som_object_present):
9975         (c_type_print_base): Ditto.
9976         * c-exp.y (hp_som_som_object_present): Ditto.
9977
9978 2004-04-08  Andrew Cagney  <cagney@redhat.com>
9979
9980         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9981         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9982         (frame_unwind_find_by_frame): Re-implement the unwind code so
9983         that it can both prepend and append sniffers.  Replace
9984         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9985         * tramp-frame.c (tramp_frame_append): Use
9986         frame_unwind_prepend_unwinder.
9987         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9988         frame_unwind_register_unwinder.
9989         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9990         tramp_frame_append.
9991         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9992         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9993         (mips_linux_init_abi): Update.
9994
9995 2004-04-08  Kevin Buettner  <kevinb@redhat.com>
9996
9997         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9998         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
9999         file support.
10000
10001 2004-04-07  Kevin Buettner  <kevinb@redhat.com>
10002
10003         * ia64-tdep.c (elf.h): Don't include.
10004         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
10005
10006 2004-04-07  Jason Molenda  (jmolenda@apple.com)
10007
10008         * frame.h: Typeo corrections in comments.
10009
10010 2004-04-07  Jim Blandy  <jimb@redhat.com>
10011
10012         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
10013         %esp and %ebp
10014
10015 2004-04-07  Mark Kettenis  <kettenis@gnu.org>
10016
10017         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
10018         * config/sparc/linux64.mt (TDEPFILES): Likewise.
10019         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10020         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
10021         and solib-legacy.o.
10022         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
10023         solib-svr4.o.
10024         * config/sparc/tm-sol2.h: Update copyright year.  Include
10025         "solib.h".
10026
10027         * sparc-sol2-tdep.c: Update copyright year.  Include
10028         "solib-svr4.h".
10029         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
10030         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
10031         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
10032         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
10033         dependencies.
10034
10035 2004-04-06  Andrew Cagney  <cagney@redhat.com>
10036
10037         * infttrace.c: Include "infttrace.h".
10038         * infttrace.h: Include "target.h".
10039         * Makefile.in (infttrace_h): Update.
10040         (infttrace.o): Update.
10041
10042 2004-04-06  Andrew Cagney  <cagney@redhat.com>
10043
10044         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
10045         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
10046         move extern declarations from here ...
10047         * infttrace.h: ... to here.
10048         * Makefile.in (hppah-nat.o): Update dependencies.
10049
10050         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
10051         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
10052         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
10053         (hppa_breakpoint_from_pc): Delete.
10054
10055         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
10056
10057 2004-04-05  Andrew Cagney  <cagney@redhat.com>
10058
10059         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
10060         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
10061         <sys/file.h>.
10062
10063 2004-04-06  Randolph Chung  <tausq@debian.org>
10064
10065         Committed by Andrew Cagney (mechanical change).
10066         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
10067         exception_catchpoints_are_fragile, find_stub_with_shl_get,
10068         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
10069         child_enable_exception_callback, current_ex_event,
10070         null_symtab_and_line, child_get_current_exception_event,
10071         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
10072         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
10073         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
10074         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
10075         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
10076         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
10077         Move hpux-specific definitions ...
10078         * hppa-hpux-tdep.c: ... to here.
10079
10080 2004-04-05  Andrew Cagney  <cagney@redhat.com>
10081
10082         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
10083         skip_prologue_using_sal.
10084
10085 2004-04-05  Andrew Cagney  <cagney@redhat.com>
10086
10087         * config/i386/tm-i386.h: Delete file.
10088         * config/i386/tm-vxworks.h: Update copyright, do not include
10089         "tm-i386.h".
10090         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
10091         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
10092         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
10093         * config/i386/ncr3000.mt (TM_FILE): Delete.
10094         * config/i386/interix.mt (TM_FILE): Delete.
10095         * config/i386/i386v.mt (TM_FILE): Delete.
10096         * config/i386/i386nw.mt (TM_FILE): Delete.
10097         * config/i386/i386gnu.mt (TM_FILE): Delete.
10098         * config/i386/i386aout.mt (TM_FILE): Delete.
10099         * config/i386/embed.mt (TM_FILE): Delete.
10100
10101 2004-04-05  Kevin Buettner  <kevinb@redhat.com>
10102
10103         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
10104         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
10105         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
10106         (accg7_regnum): New constants.
10107         (last_spr_regnum, last_pseudo_regnum): Update.
10108         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
10109         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
10110         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
10111         for accg registers.
10112         (frv_register_sim_regno): Update spr_map[].
10113
10114 2004-04-04  Andrew Cagney  <cagney@redhat.com>
10115
10116         * config/mips/xm-riscos.h: Delete.
10117         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10118         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10119         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10120         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10121         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10122         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10123         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10124         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10125         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10126         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10127         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10128         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10129         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10130         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10131         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10132         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10133         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10134         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10135         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10136         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10137         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10138         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10139         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10140         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10141         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10142         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10143
10144         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10145         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10146         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10147         * configure.host: Remove m680[01]0-sun-sunos3*,
10148         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10149         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10150         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10151         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10152         mips-*-riscos*.
10153         * NEWS: Mention removed systems.
10154
10155 2004-04-04  Andrew Cagney  <cagney@redhat.com>
10156
10157         GDB 6.1 release created from 6.1 branch.
10158
10159 2004-04-04  Andrew Cagney  <cagney@redhat.com>
10160
10161         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10162         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10163         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10164
10165         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10166         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10167         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10168
10169 2004-04-03  Jim Blandy  <jimb@redhat.com>
10170
10171         * MAINTAINERS: Chris Faylor has changed employers; add him to
10172         "paper trail" section, and update his E-mail address.
10173
10174 2004-04-03  Andrew Cagney  <cagney@redhat.com>
10175
10176         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10177         generic dummy frames.
10178         * dummy-frame.c: Update copyright.
10179         (dummy_frame_sniffer): Delete check for generic dummy frames.
10180
10181         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10182         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10183         (REG_PARM_STACK_SPACE): Delete.
10184         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10185         Inline reference to REG_PARM_STACK_SPACE.
10186
10187         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10188         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10189         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10190         (FRAME_BASE_BEFORE_SIGTRAMP)
10191         (hppa32_hpux_frame_base_before_sigtramp)
10192         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10193         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10194         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10195         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10196         (FRAME_BASE_BEFORE_SIGTRAMP)
10197         (hppa64_hpux_frame_base_before_sigtramp)
10198         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10199
10200 2004-04-03  Andrew Cagney  <cagney@redhat.com>
10201
10202         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10203
10204 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10205
10206         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10207         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10208         * dummy-frame.h: Delete out-of-date comments.
10209         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10210         * gdbarch.h, gdbarch.c: Re-generate.
10211
10212 2004-04-02  Joel Brobecker  <brobecker@gnat.com>
10213
10214         Committed by Andrew Cagney <cagney@redhat.com>.
10215         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10216         into account an instruction saving a register if we have already
10217         seen an earlier instruction saving that same register.
10218
10219 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10220
10221         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10222         * gdbarch.h, gdbarch.c: Re-generate.
10223         * frame.c (legacy_get_prev_frame): Delete references to
10224         DEPRECATED_INIT_FRAME_PC_FIRST.
10225
10226         * infrun.c (pc_in_sigtramp): Delete function.
10227         (check_sigtramp2): Inline call to pc_in_sigtramp, use
10228         get_frame_type.
10229
10230 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10231
10232         * infrun.c (handle_step_into_function): Delete code conditional on
10233         legacy_frame_p.
10234         (handle_inferior_event, step_over_function): Ditto.
10235
10236 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10237
10238         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10239         "previous frame inner to this frame" test.
10240
10241 2004-04-02  Andrew Cagney  <cagney@redhat.com>
10242
10243         * frame.c (safe_frame_unwind_memory): New function.
10244         * frame.h (safe_frame_unwind_memory): Declare.  Update description
10245         of /safe_/ methods.
10246         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10247         "next_frame".  Use safe_frame_unwind_memory.
10248         (tramp_frame_sniffer): Update call to tramp_frame_start.
10249
10250 2004-04-01  Daniel Jacobowitz  <drow@mvista.com>
10251
10252         * dwarf2read.c (dwarf2_objfile_data_key): New.
10253         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10254         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10255         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10256         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10257         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10258         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10259         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10260         Remove variables.
10261         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
10262         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10263         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10264         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10265         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10266         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10267         Remove macros.
10268         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
10269         data.
10270         (dwarf2_locate_sections, dwarf2_build_psymtabs)
10271         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10272         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10273         (read_partial_die, read_full_die, read_indirect_string)
10274         (dwarf_decode_line_header, dwarf_decode_macros)
10275         (dwarf2_symbol_mark_computed): Remove use of removed macros.
10276         Update uses of removed variables.
10277         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
10278         of removed macros.
10279         (_initialize_dwarf2_read): New function.
10280         * symfile.h (dwarf2_has_info): Update prototype.
10281         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10282         * elfread.c (elf_symfile_read): Likewise.
10283
10284 2004-04-01  Jim Blandy  <jimb@redhat.com>
10285
10286         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10287         function for register numbers on all the rs6000-derived targets.
10288         (rs6000_gdbarch_init): Don't register a separate
10289         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
10290         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10291         variants.
10292
10293         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10294         numbering.
10295
10296 2004-04-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
10297
10298         * valarith.c: Update copyright notice.
10299         (value_add): Handle range types.
10300         (value_sub): Ditto.
10301         (value_equal): Ditto.
10302         (value_less): Ditto.
10303         (value_neg): Ditto.
10304         (value_complement): Ditto.
10305         (value_binop): Simplify slightly by using is_integral_type and
10306         eliminiating unnecessary COERCE_ENUMs.
10307
10308 2004-03-31  Andrew Cagney  <cagney@redhat.com>
10309
10310         * frame.h (frame_unwind_id): Declare.
10311         * frame.c (frame_unwind_id): New function.
10312         (get_prev_frame_1): New function.
10313         (frame_debug_got_null_frame): New function.
10314         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
10315         code proper to prev_frame, update description.
10316         * infrun.c (step_over_function): Use frame_unwind_id.
10317
10318 2004-04-31  J. Brobecker  <brobecker@gnat.com>
10319
10320         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10321         (hppa64_push_dummy_call): Likewise.
10322
10323 2004-03-30  Jim Blandy  <jimb@redhat.com>
10324
10325         From Ulrich Weigand:
10326         * utils.c (query): Do not use a va_list variable multiple times.
10327
10328 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
10329
10330         * Makefile.in (linux_nat_h): Update dependencies.
10331         * configure.in: Check for <gnu/libc-version.h>.
10332         * configure: Regenerate.
10333         * config.in: Regenerate.
10334         * linux-nat.h: Include "target.h".  Add waitstatus field to
10335         struct lwp_info.
10336         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10337         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10338         to.
10339         (lin_lwp_handle_extended): New function.  Handle clone events.
10340         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
10341         thread exit events.
10342         (child_wait): Handle clone events.
10343         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10344         * linux-nat.c (linux_enable_event_reporting): Turn on
10345         PTRACE_O_TRACECLONE.
10346         (linux_handle_extended_wait): Handle clone events.
10347         * thread-db.c: Include <gnu/libc-version.h>.
10348         (struct private_thread_info): Add dying flag.
10349         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10350         higher.
10351         (attach_thread): Update comments.  Handle dying threads.
10352         (detach_thread): Set the dying flag.
10353         (check_event): Always call attach_thread.
10354
10355 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
10356
10357         * mips-tdep.c (mips_pdr_data): New.
10358         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10359         (_initialize_mips_tdep): Initialize mips_pdr_data.
10360
10361 2004-03-29  Corinna Vinschen  <vinschen@redhat.com>
10362
10363         * minsyms.c (install_minimal_symbols): Move dropping leading
10364         char from linkage name from here...
10365         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
10366         test for "__gnu_compiled*" symbols.
10367
10368 2004-03-28  Jim Blandy  <jimb@redhat.com>
10369
10370         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10371         registers to temp register r0 and byte stores as prologue
10372         instructions.
10373
10374 2004-03-28  Andrew Cagney  <cagney@redhat.com>
10375
10376         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
10377         arm*-*-*.
10378
10379 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
10380
10381         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10382         and switch the layout to force a display of register window.
10383
10384 2004-02-26  J. Brobecker  <brobecker@gnat.com>
10385
10386         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10387         of the INTEGER class.
10388
10389 2004-03-26  Jim Blandy  <jimb@redhat.com>
10390
10391         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10392         bytes long on PPC GNU/Linux.
10393
10394 2004-03-26  David Carlton  <carlton@kealia.com>
10395
10396         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10397
10398 2004-03-25  Andrew Cagney  <cagney@redhat.com>
10399
10400         * PROBLEMS: Add general section titles, remove references to
10401         specific releases.
10402
10403 2004-03-25  Daniel Jacobowitz  <drow@mvista.com>
10404
10405         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10406         INT_REGISTER_SIZE.
10407         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10408         FP_REGISTER_VIRTUAL_SIZE.
10409         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10410         of DEPRECATED_REGISTER_RAW_SIZE.
10411         (arm_register_type): Add gdbarch argument.
10412         (arm_register_raw_size, arm_register_virtual_size): Delete.
10413         (arm_register_byte, arm_extract_return_value)
10414         (arm_store_return_value, arm_get_longjmp_target): Update references
10415         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10416         (arm_gdbarch_init): Likewise.  Don't set
10417         deprecated_register_raw_size, deprecated_register_virtual_size,
10418         deprecated_max_register_raw_size,
10419         deprecated_max_register_virtual_size, or
10420         deprecated_max_register_virtual_type.  Do set register_type.
10421         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10422         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10423         (FP_REGISTER_VIRTUAL_SIZE): Delete.
10424         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10425         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10426         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10427         INT_REGISTER_SIZE.
10428         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10429         (remote_rdp_store_register): Likewise.
10430
10431 2004-03-24  Daniel Jacobowitz  <drow@mvista.com>
10432
10433         * Makefile.in (mips-linux-tdep.o): Update dependencies.
10434         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10435         to after osabi initialization.
10436         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10437         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10438         functions.
10439         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10440         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10441         variables.
10442         (mips_linux_init_abi): Append signal trampoline unwinders.
10443
10444 2004-03-24  Andrew Cagney  <cagney@redhat.com>
10445
10446         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10447         * tramp-frame.c: Include "gdb_assert.h".
10448         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
10449         correct sizeof.
10450         (tramp_frame_append): Validate the tramp frame's instructions.
10451         * Makefile.in (tramp-frame.o): Update dependencies.
10452
10453 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10454
10455         * trad-frame.h (trad_frame_set_reg_addr): Declare.
10456
10457 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10458
10459         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10460         Nasser as past testsuite/lib/ (and other) maintainers.
10461
10462 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
10463
10464         * infcmd.c (attach_command): Reread symbols if we already have
10465         an exec file.
10466
10467 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10468
10469         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10470
10471 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10472
10473         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10474         * gdbarch.h, gdbarch.c: Re-generate.
10475         * i386obsd-tdep.c (i386obsd_init_abi): Update.
10476         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10477         * i386bsd-tdep.c (i386bsd_init_abi): Update.
10478         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10479         (DEPRECATED_SIGTRAMP_START): Update.
10480         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10481         (DEPRECATED_SIGTRAMP_START): Update.
10482         * blockframe.c (find_pc_sect_partial_function): Update.
10483         * arch-utils.c (legacy_pc_in_sigtramp): Update.
10484
10485 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
10486
10487         * remote.c (remote_open_1): Reopen the exec file and reread symbols
10488         if necessary.
10489
10490 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10491
10492         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10493         predicate, deprecate.
10494         * gdbarch.h, gdbarch.c: Re-generate.
10495         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10496         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10497         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10498         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10499         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10500         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10501         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10502         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10503         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10504         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10505         * blockframe.c (find_pc_partial_function): Update.
10506         * breakpoint.c (bpstat_what): Update.
10507         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10508         * frv-linux-tdep.c (frv_linux_init_abi): Update.
10509         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10510         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10511         * i386-interix-tdep.c (i386_interix_init_abi): Update.
10512         * i386-linux-tdep.c (i386_linux_init_abi): Update.
10513         * i386-nto-tdep.c (i386nto_init_abi): Update.
10514         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10515         * i386-tdep.c (i386_sigtramp_frame_sniffer)
10516         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10517         * i386bsd-tdep.c (i386bsd_init_abi): Update.
10518         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10519         * i386obsd-tdep.c (i386obsd_init_abi): Update.
10520         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10521         * infrun.c (pc_in_sigtramp): Update.
10522         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10523         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10524         * mips-tdep.c (mips_gdbarch_init): Update.
10525         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10526         * ppc-linux-tdep.c: Update comment.
10527         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10528         * shnbsd-tdep.c (shnbsd_init_abi): Update.
10529         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10530         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10531         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10532         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10533         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10534         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10535         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10536         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10537
10538 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10539
10540         * tramp-frame.h, tramp-frame.h: New files.
10541         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10542         Update rules to include "tramp-frame.h" and "tramp-frame.c".
10543
10544         * Makefile.in: Update all dependencies.
10545
10546 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10547
10548         * Makefile.in (trad_frame_h): Add $(frame_h).
10549         * trad-frame.h: Update copyright.  Include "frame.h".
10550         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10551         (trad_frame_set_id, trad_frame_get_id): Declare.
10552         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10553         * trad-frame.c: Update copyright.
10554         (struct trad_frame_cache): Define.
10555         (trad_frame_cache_zalloc): New function.
10556         (trad_frame_set_id, trad_frame_get_id): New functions.
10557         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10558
10559 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10560
10561         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10562         s390_pltstub_unwind_cache.
10563         (s390_stub_frame_unwind_cache): Rename
10564         s390_pltstub_frame_unwind_cache.
10565         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10566         (s390_stub_frame_prev_register): Rename
10567         s390_pltstub_frame_prev_register.
10568         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10569         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10570
10571         From Ulrich Weigand:
10572         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10573         pointer calls like PLT calls.
10574
10575 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
10576
10577         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10578         PC rather than the partial function start address.  Use the start
10579         address to sanity check the found PDR.
10580
10581 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
10582
10583         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10584         linux_handle_extended_wait.
10585
10586 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10587
10588         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10589         function.
10590
10591         * frame.h (generic_pop_current_frame): Delete declaration.
10592         (deprecate_pop_dummy_frame): Deprecate
10593         generic_pop_dummy_frame.
10594         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10595         (generic_pop_current_frame): Delete function.
10596         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10597         generic_pop_current_frame.
10598         * v850-tdep.c (v850_pop_frame): Update.
10599         * mcore-tdep.c (mcore_pop_frame): Update.
10600         * sh64-tdep.c (sh64_pop_frame): Update.
10601         * h8300-tdep.c (h8300_pop_frame): Update.
10602
10603 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10604
10605         * frame.h (deprecated_pc_in_call_dummy): Rename
10606         generic_pc_in_call_dummy.
10607         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10608         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10609         generic_pc_in_call_dummy.
10610         (pc_in_dummy_frame): Make static.
10611         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10612         * gdbarch.h, gdbarch.c: Re-generate.
10613         * dummy-frame.c (dummy_frame_sniffer): Simplify.
10614         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10615         (legacy_get_prev_frame): Ditto.
10616         * inferior.h: Delete reference to generic_pc_in_call_dummy in
10617         comment.
10618
10619 2004-03-21  Andrew Cagney  <cagney@redhat.com>
10620
10621         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10622         declaration and out-of-date comment.
10623         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10624         Delete function.
10625         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10626         deprecated_pc_in_call_dummy.
10627
10628         * infrun.c (handle_inferior_event): For non legacy frames, use the
10629         frame ID and frame type to identify a signal trampoline.  Update
10630         comments.
10631
10632 2004-03-21  Nathan J. Williams  <nathanw@wasabisystems.com>
10633
10634         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10635         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10636
10637 2004-03-21  Andrew Cagney  <cagney@redhat.com>
10638
10639         * frame-unwind.h: Update copyright.
10640         (struct frame_data): Add opaque declaration.
10641         (frame_sniffer_ftype): Declare.
10642         (struct frame_unwind): Add "unwind_data" and "sniffer".
10643         (frame_unwind_register_unwinder): Declare.
10644         (frame_unwind_find_by_frame): Add parameter "this_cache".
10645         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10646         (legacy_get_prev_frame, legacy_get_prev_frame)
10647         (get_frame_type): Pass the prologue_cache to
10648         frame_unwind_find_by_frame.
10649         * frame-unwind.c (struct frame_unwind_table_entry): Add field
10650         "unwinder".
10651         (frame_unwind_register_unwinder): New function.
10652         (frame_unwind_find_by_frame): Handle an unwind sniffer.
10653
10654 2004-03-20  Paul Hilfinger  <hilfingr@nile.gnat.com>
10655
10656         * bcache.c (print_percentage): Use floating point to avoid
10657         incorrect results when portion*100 overflows.
10658
10659 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
10660
10661         * ppc_tdep.h (ppc_linux_frame_saved_pc)
10662         (ppc_linux_init_extra_frame_info)
10663         (ppc_linux_frameless_function_invocation)
10664         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10665         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10666         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10667         (rs6000_frame_chain): Delete declarations.
10668         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10669         (ppc_linux_init_extra_frame_info)
10670         (ppc_linux_frameless_function_invocation)
10671         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10672         (ppc_linux_init_abi): Remove registration of above deleted functions.
10673         * rs6000-tdep.c (rs6000_init_extra_frame_info)
10674         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10675         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10676         (rs6000_pop_frame, rs6000_frameless_function_invocation)
10677         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10678         (rs6000_gdbarch_init): Remove registration of above deleted functions.
10679         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10680         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10681         frame management for all OSABIs.
10682
10683 2004-03-19  Andrew Cagney  <cagney@redhat.com>
10684
10685         Committed by Kevin Buettner <kevinb@redhat.com>.
10686
10687         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10688         Update copyright.
10689         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10690         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10691         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10692         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10693         unwinders.  #ifdef legacy frame code.
10694         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10695         "frame-base.h".
10696         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10697         (struct rs6000_frame_cache, rs6000_frame_cache)
10698         (rs6000_frame_this_id, rs6000_frame_prev_register)
10699         (rs6000_frame_sniffer, rs6000_frame_unwind)
10700         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10701         (rs6000_frame_base): Implement a traditional frame unwinder.
10702         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10703         frame unwinder.
10704
10705 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
10706
10707         * breakpoint.c (adjust_breakpoint_address): Don't adjust
10708         breakpoint address for watchpoints or the catch eventpoints.
10709         Add new paramter ``bptype''.  Adjust all callers.
10710
10711 2004-03-19  Andrew Cagney  <cagney@redhat.com>
10712
10713         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10714
10715         * PROBLEMS: Delete note that ARM does not use frame code, problem
10716         fixed.
10717
10718 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10719
10720         * stack.c (return_command): Delete code wrapped in #ifdef
10721         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10722
10723         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10724
10725 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10726
10727         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10728         DEPRECATED_IN_SIGTRAMP.
10729         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10730         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10731         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10732         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10733         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10734         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10735         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10736         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10737         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10738         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10739
10740 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10741
10742         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
10743         (struct frame_base_table_entry): Define.
10744         (struct frame_base_table): Re-implement as a linked list.
10745         (frame_base_init): Re-implement.
10746         (frame_base_table): Delete function.
10747         (append_predicate): Delete function.
10748         (frame_base_append_sniffer): Update.
10749         (frame_base_set_default): Update.
10750         (frame_base_find_by_frame): Update.
10751         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10752         * Makefile.in (frame-base.o): Update dependencies.
10753
10754 2004-03-17  Andrew Cagney  <cagney@redhat.com>
10755
10756         * frame.c (legacy_get_prev_frame): Pass correct frame to
10757         frame_unwind_find_by_frame.
10758
10759 2004-03-17  David Carlton  <carlton@kealia.com>
10760
10761         * NEWS: Mention C++ nested types and namespaces
10762
10763 2004-03-16  Michael Chastain  <mec.gnu@mindspring.com>
10764
10765         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10766         and "Regressions since gdb 5.3.".  Add known regressions since
10767         gdb 6.0.
10768
10769 2004-03-16  David Carlton  <carlton@kealia.com>
10770
10771         * dwarf2read.c (process_structure_scope): Process children even
10772         when we're a declaration.
10773
10774 2004-03-16  Andrew Cagney  <cagney@redhat.com>
10775
10776         * symtab.h (find_pc_sect_partial_function): Delete declaration.
10777         * blockframe.c (find_pc_partial_function)
10778         (find_pc_sect_partial_function): Merge into a single
10779         find_pc_partial_function.
10780
10781 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
10782
10783         * i386bsd-nat.c: s/regno/regnum/g.
10784         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10785         FP0_REGNUM.
10786         (store_inferior_registers): Likewise.
10787
10788 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
10789
10790         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10791         of i387_fill_fsave.
10792         (store_inferior_registers): Call i387_collect_fsave and
10793         i387_collect_fxsave instead of i387_fill_fsave and
10794         i387_fill_fxsave.
10795
10796 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10797
10798         * Makefile.in (frame-unwind.o): Update dependencies.
10799         * frame-unwind.c: Include "gdb_obstack.h".
10800         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10801         parameter.
10802         (append_predicate): Delete function.
10803         (struct frame_unwind_table_entry): New structure.
10804         (struct frame_unwind_table): Replace "sniffer" with "head" and
10805         "tail".
10806         (frame_unwind_append_sniffer): Update.
10807         (frame_unwind_find_by_frame): Update.
10808         (_initialize_frame_unwind): Registe frame_unwind_init using
10809         gdbarch_data_register_pre_init.
10810
10811 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10812
10813         * i386bsd-nat.c: Update copyright year.
10814         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10815         define unconditionally.
10816
10817 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10818
10819         * i387-tdep.h (i387_collect_fsave): New prototype.
10820         * i387-tdep.c (i387_collect_fsave): New function containing most
10821         of the code from i387_fill_fsave.
10822         (i387_fill_fsave): Call i387_collect_fsave.
10823
10824 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10825
10826         * i386-linux-tdep.c: Update copyright year.
10827         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10828         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10829         svr4_ilp32_link_map_offsets instead of
10830         i386_linux_svr4_fetch_link_map_offsets.
10831
10832 2004-03-15  David Carlton  <carlton@kealia.com>
10833
10834         Fix for PR c++/1553:
10835         * dwarf2read.c (read_structure_type): Determine type name by
10836         calling determine_class_name.
10837         (determine_class_name): New.
10838         (determine_prefix): Look at TYPE_TAG_NAME and call
10839         determine_class_name when appropriate.
10840         (determine_prefix_aux, class_name): Delete.
10841         (read_namespace): Set die->type.
10842
10843 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10844
10845         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10846         unused macro definition.  The definition in target.h (or perhaps
10847         elsewhere) takes precedence.
10848
10849 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10850
10851         * ppc-tdep.h: Update copyright.
10852         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10853         function signatures to match "regsets.h".
10854         * ppc-linux-tdep.c: Include "regset.h".
10855         (ELF_GREGSET_SIZE): Delete.
10856         (right_supply_register): New function.
10857         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10858         using right_supply_register.
10859         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10860         functions.
10861         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10862         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10863         (_initialize_ppc_linux_tdep): Do not register
10864         ppc_linux_regset_core_fns.
10865         (ppc_linux_regset_from_core_section): Replace
10866         fetch_core_registers.
10867         (ppc_linux_regset_core_fns): Delete.
10868         * ppc-linux-nat.c: (right_fill_reg): New function.
10869         (supply_gregset): Update call to ppc_linux_supply_gregset.
10870         (fill_gregset): Clear the register set, use right_fill_reg.
10871         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10872         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10873
10874         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10875         unsigned.
10876
10877 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10878
10879         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10880         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10881         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10882         and register_gdbarch_data.
10883         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10884         (struct gdbarch_data): Replace "init" by "pre_init" and
10885         "post_init".
10886         * gdbarch.h, gdbarch.c: Re-generate.
10887         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10888         with"obstack", use OBSTACK_ZALLOC.
10889         (dwarf2_frame_ops): Delete.
10890         (dwarf2_frame_set_init_reg): Use gdbarch_data.
10891         (dwarf2_frame_init_reg): Use gdbarch_data.
10892         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10893         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10894         (_initialize_svr4_solib): Update.
10895         * user-regs.c (_initialize_user_regs): Update.
10896         * reggroups.c (_initialize_reggroup): Update.
10897         * regcache.c (_initialize_regcache): Update.
10898         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10899         * libunwind-frame.c (_initialize_libunwind_frame): Update.
10900         * gnu-v3-abi.c (init_gnuv3_ops): Update.
10901         * frame-unwind.c (_initialize_frame_unwind): Update.
10902         * frame-base.c (_initialize_frame_base): Update.
10903         * user-regs.c (user_reg_add): Update.
10904         * reggroups.c (reggroup_add): Update.
10905         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10906         * libunwind-frame.c (libunwind_frame_set_descr): Update.
10907         * frame-unwind.c (frame_unwind_append_sniffer): Update.
10908         * frame-base.c (frame_base_table): Update.
10909         * remote.c (_initialize_remote): Update.
10910         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10911
10912 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10913
10914         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10915
10916 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10917
10918         * Makefile.in (frv-linux-tdep.o): Add dependencies.
10919         * frv-linux-tdep.c: New file.
10920         * frv-tdep.c (struct gdbarch_tdep): Add new field
10921         ``sigcontext_reg_addr''.
10922         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10923         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10924         (frv_sigramp_frame_sniffer): New functions.
10925         (frv_sigtramp_frame_unwind): New static global.
10926         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
10927         sniffers.
10928         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10929         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10930
10931 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10932
10933         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10934         but not via a call to error(), when unable to read memory.
10935
10936 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10937
10938         * frv-tdep.c (frv_call_dummy_words): Delete.
10939         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10940
10941 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10942
10943         * infrun.c (handle_step_into_function, step_over_function): Only
10944         update and use STEP_FRAME_ID when the system is using legacy
10945         frames.  Update comments.
10946
10947 2004-03-14  Mark Kettenis  <kettenis@gnu.org>
10948
10949         * amd64-linux-tdep.h: Remove file.
10950         * amd64-linux-tdep.c: Don't include "inferior.h" and
10951         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
10952         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10953         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10954         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10955         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10956         macros.
10957         (user_to_gdb_regmap): Remove variable.
10958         (amd64_linux_gregset_reg_offset): New variable.
10959         (amd64_core_fns): Remove variable.
10960         (fetch_core_registers): Remove function.
10961         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10962         functions.
10963         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10964         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10965         * Makefile.in (amd64_linux_tdep_h): Remove.
10966         (amd64-linux-nat.o): Update dependencies.
10967         (amd64-linux-tdep.o): Update dependencies.
10968
10969         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10970         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10971         functions.
10972         (fetch_inferior_registers, store_inferior_registers): Rewrite.
10973
10974         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10975         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10976
10977 2004-03-14  Daniel Jacobowitz  <drow@mvista.com>
10978
10979         * dwarf2read.c (read_structure_type): Rename from
10980         read_structure_scope.  Don't create a symbol or call process_die.
10981         Return immediately if die->type is set.  Call read_type_die before
10982         dwarf2_add_member_fn.
10983         (process_structure_scope): New function.
10984         (read_enumeration_type, process_enumeration_scope): New functions,
10985         broken out from read_enumeration.  Don't create the enumeration
10986         type if it has already been created.
10987         (read_enumeration): Removed.
10988         (process_die): Call read_structure_type, process_structure_scope,
10989         read_enumeration_type, and process_enumeration_scope.  Just call
10990         new_symbol for base and subrange types.  Add a comment about other
10991         type dies.
10992         (read_type_die): Call read_enumeration_type.
10993         (add_partial_structure, new_symbol): Update comments.
10994
10995 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
10996
10997         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10998
10999 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
11000
11001         * tui/tui-win.h (tui_get_cmd_list): Declare.
11002         * tui/tui-win.c (tui_command): New function.
11003         (tui_get_cmd_list): New function.
11004         (_initialize_tui_win): Moved initialization of tui command in
11005         tui_get_cmd_list.
11006
11007         * tui/tui-data.c (init_content_element): Setup new data members.
11008         (init_win_info): Likewise.
11009         (free_content_elements): Free it.
11010         * tui/tui-data.h (struct tui_data_element): Store the register
11011         content to print.
11012         (struct tui_data_info): Keep the current register group.
11013
11014         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
11015
11016         * tui/tui-regs.h (tui_show_registers): Update prototype.
11017         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
11018         (tui_resize_all): No need to calculate anything for register window.
11019         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
11020         (tui_set_register_element, tui_set_general_regs_content): Remove.
11021         (tui_set_special_regs_content): Remove.
11022         (tui_set_general_and_special_regs_content): Remove.
11023         (tui_set_float_regs_content): Remove.
11024         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
11025         (tui_set_regs_content): Remove.
11026         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
11027         (tui_v_show_registers_command_support): Remove.
11028         (tui_show_registers): Use a reggroup to specify the registers to show.
11029         (tui_show_register_group): New function.
11030         (tui_display_registers_from): Compute the layout of register window
11031         and refresh with new API; be sure to delete old register windows.
11032         (tui_check_register_values): Update to use tui_get_register and
11033         tui_display_data.
11034         (tui_display_register): Just refresh the register window part.
11035         (tui_register_format): Format registers and save in tui_data_element.
11036         (tui_get_register): New to combine tui_reg_value_has_changed and
11037         tui_get_register_raw_value; fix to use the new gdb API.
11038         (tui_show_float_command): Renamed tui_reg_float_command.
11039         (tui_show_general_command): Renamed tui_reg_general_command.
11040         (tui_show_special_command): Renamed tui_reg_system_command.
11041         (_initialize_tui_regs): Remove unused commands.
11042
11043 2004-03-13  Mark Kettenis  <kettenis@gnu.org>
11044
11045         * NEWS (New native configurations): Mention OpenBSD/amd64.
11046
11047         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
11048         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
11049         Remove defines.
11050         * config/i386/nm-fbsd64.h: Likewise.
11051         * config/i386/nm-obsd.h: Likewise.
11052         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
11053         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
11054
11055 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
11056
11057         * frv-tdep.c (set_variant_scratch_registers): New function.
11058         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
11059         New constants.
11060
11061         From Richard Sandiford  <rsandifo@redhat.com>:
11062         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
11063
11064 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
11065
11066         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
11067         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
11068         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
11069         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
11070         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
11071         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
11072         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
11073         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
11074         definitions from frv-tdep.c to frv-tdep.h.
11075
11076 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
11077
11078         Add shared library support for FR-V FDPIC ABI:
11079         * Makefile.in (solib-frv.o): Add dependencies.
11080         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
11081         New functions.
11082         (frv_push_dummy_call): Add support for FDPIC ABI.
11083         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
11084         for FDPIC ABI.
11085         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
11086         (frv_fdpic_find_canonical_descriptor): Declare.
11087         * solib-frv.c: New file.
11088         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
11089         * config/frv/tm-frv.h (solib.h): Include.
11090
11091 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
11092
11093         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
11094         (frv-tdep.o): Update dependencies.
11095         * frv-tdep.h: New file.
11096         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
11097         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
11098         constants.
11099         (struct gdbarch_tdep): Add new member ``frv_abi''.
11100         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
11101         functions.
11102         (new_variant): Set ``frv_abi'' field.
11103         (gdb_arch_init): Detect FDPIC executables.
11104
11105 2004-03-12  Mark Kettenis  <kettenis@gnu.org>
11106
11107         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
11108         wrapper.
11109
11110 2004-03-11  Andrew Cagney  <cagney@redhat.com>
11111
11112         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
11113
11114 2004-03-11  Kevin Buettner  <kevinb@redhat.com>
11115
11116         * solist.h (master_so_list): New function.
11117         * solib.c (master_so_list): Likewise.
11118         * solib-svr4.c (enable_break): Iterate over so_list entries
11119         obtained from master list instead of entries obtained directly
11120         via svr4_current_sos().
11121
11122 2004-03-10  Ben Elliston  <bje@gnu.org>
11123
11124         * MAINTAINERS: Update my mail address.
11125
11126 2004-03-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
11127
11128         * remote-m32r-sdi.c: Support hardware watchpoint.
11129
11130 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11131
11132         * user-regs.c: Update copyright years.
11133         (struct user_regs): Rename to gdb_user_regs.
11134         (append_user_reg, builtin_user_regs, user_regs_init)
11135         (user_reg_add, user_reg_map_name_to_regnum)
11136         (usernum_to_user_reg): Update.
11137
11138 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11139
11140         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11141         (skip_children): New functions.
11142         (locate_pdi_sibling): Call skip_children.
11143
11144 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11145
11146         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11147         * gdbtypes.c (check_typedef): Update comments.
11148
11149 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11150
11151         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11152         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11153         pointer.  Update comment about comp_unit_head.
11154         (struct abbrev_info): Shorten two int flags.
11155         (dwarf_alloc_abbrev): Take a CU argument.
11156         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11157         each time through the loop.  Update cleanup argument.
11158         (psymtab_to_symtab_1): Update cleanup call.
11159         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11160         abbrev_obstack.
11161         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11162         Just call obstack_free and clear the pointer.
11163
11164 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11165
11166         * infrun.c (handle_inferior_event): Remove short-circuit code for
11167         events in a different thread.
11168
11169 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11170
11171         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11172         print the whole transfer.
11173         (initialize_targets): Update description of "set debug target".
11174
11175 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
11176
11177         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11178
11179 2004-03-08  Nathan J. Williams  <nathanw@wasabisystems.com>
11180
11181         * MAINTAINERS (write after approval): Add myself.
11182
11183 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
11184
11185         * sh-tdep.c (sh_print_registers_info): Use for loop.
11186         Don't skip multiple registers when a float register is encountered.
11187
11188 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
11189
11190         Fix PR tdep/1291.
11191         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11192         to official SH documentation.
11193
11194 2004-03-07  Andrew Cagney  <cagney@redhat.com>
11195
11196         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11197         unused function.
11198
11199 2004-03-07  Daniel Jacobowitz  <drow@mvista.com>
11200
11201         * arm-tdep.c (thumb_get_next_pc): Handle BX.
11202         (arm_get_next_pc): Handle BX and BLX.
11203
11204 2004-03-07  Andrew Cagney  <cagney@redhat.com>
11205
11206         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11207         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11208         HPPA_SP_REGNUM.
11209         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11210         (hppa_target_read_fp): Delete.
11211         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11212         register_virtual_size, max_register_raw_size,
11213         max_register_virtual_size, register_byte, register_size,
11214         target_read_fp, fp_regnum, and register_bytes.  Set register_type
11215         instead of register_virtual_type.
11216         (hppa32_register_type, hppa64_register_type): Replace
11217         hppa32_register_virtual_type and hppa64_register_virtual_type.
11218         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11219         (HPPA_FP_REGNUM): Define.
11220
11221         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11222
11223         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11224         (pa_do_registers_info): Delete.
11225         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11226         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11227         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11228
11229         * infcall.c (legacy_push_dummy_code): Delete #ifdef
11230         GDB_TARGET_IS_HPPA code.
11231         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11232         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11233         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11234         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11235         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11236         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11237         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11238         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11239         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11240         (hppa_frameless_function_invocation, hppa64_store_return_value)
11241         (hppa_store_struct_return, hppa64_extract_return_value)
11242         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11243         (hppa32_call_dummy_length, hppa64_call_dummy_length)
11244         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11245         (find_proc_framesize, deposit_21, restore_pc_queue)
11246         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11247         (rp_saved, pc_in_linker_stub): Delete.
11248
11249         Unconditionally enable 64-bit frame and ABI code.
11250         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11251         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11252         push_dummy_frame, fix_call_dummy, push_arguments,
11253         call_dummy_location, extract_return_value, use_struct_convention,
11254         store_return_value, store_struct_return, saved_pc_after_call,
11255         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11256         frame_chain, frame_chain_valid, frameless_function_invocation,
11257         frame_saved_pc, and pop_frame.
11258
11259         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11260         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11261         (hppa_gdbarch_init): Do not set PC_REGNUM.
11262
11263 2004-03-06  Mark Kettenis  <kettenis@gnu.org>
11264
11265         * config/alpha/tm-fbsd.h: Remove file.
11266         * config/alpha/fbsd.mt: Tweak comment.
11267         (TM_FILE): Set to tm-alpha.h.
11268
11269 2004-03-05  Andrew Cagney  <cagney@redhat.com>
11270
11271         * infrun.c (step_over_function): When non-legacy code, and no
11272         step_frame_id, use the unwinder to get the caller's frame ID.
11273
11274 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
11275
11276         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11277         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11278         bfd_arch_unknown.  Adjust comment.
11279
11280         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
11281         * i386obsd-tdep.c: Correct spelling in comment.
11282         * i386nbsd-tdep.c: Correct spelling in comment.
11283         * sparc-tdep.c: Correct spelling in comments.
11284
11285 2004-03-05  David Carlton  <carlton@kealia.com>
11286
11287         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11288         bug.
11289
11290 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
11291
11292         * sparc-tdep.c: Fix typo in comment.
11293
11294 2004-03-04  J. Brobecker  <brobecker@gnat.com>
11295
11296         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11297
11298 2004-03-04  Daniel Jacobowitz  <drow@mvista.com>
11299
11300         * dwarf2read.c: Add comment describing memory lifetimes.
11301         (struct dwarf2_pinfo): Update comment.
11302         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11303         (read_enumeration, new_symbol): Don't use obsavestring.
11304
11305 2004-03-04  Mark Kettenis  <kettenis@gnu.org>
11306
11307         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11308         instead of amd64_fill_fxsave.
11309         * amd64bsd-nat.c (store_inferior_registers): Likewise.
11310         * amd64fbsd-nat.c (fill_fpregset): Likewise.
11311
11312         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11313         Reorganize code a bit.
11314
11315 2004-03-04  Orjan Friberg  <orjanf@axis.com>
11316
11317         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11318         when the frame pointer is pushed.  Don't set the frame pointer's
11319         address on the stack unless it's actually located there.
11320         Set the SRP's address on the stack correctly when the PC is still in
11321         the prologue.
11322         (cris_return_value): New function.
11323         (cris_gdbarch_init): Clear deprecated store_return_value,
11324         extract_return_value.
11325
11326 2004-03-02  Jim Blandy  <jimb@redhat.com>
11327
11328         * stabsread.c (reg_value_complaint): The maximum register number
11329         is one less than the number of registers.
11330
11331 2004-03-02  Andrew Cagney  <cagney@redhat.com>
11332
11333         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11334         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
11335         trailing comma and redundant assignment of I386_ST0_REGNUM.
11336         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11337         32-bit segment registers.
11338
11339 2004-03-01  Andrew Cagney  <cagney@redhat.com>
11340
11341         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11342         use frame_relative_level and get_next_frame.
11343
11344 2004-02-29  Andrew Cagney  <cagney@redhat.com>
11345
11346         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11347         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11348         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11349         Delete macro.
11350
11351 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
11352
11353         * inflow.c (terminal_inferior): Don't give up the terminal if we
11354         previously couldn't get the inferior's terminal state.
11355
11356 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
11357
11358         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11359         PC_REGNUM.
11360
11361 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11362
11363         * NEWS: Refer to GDB 6.1.
11364         * README: Refer to GDB 6.1.
11365         * PROBLEMS: Refer to GDB 6.1.
11366
11367 2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
11368
11369         * thread-db.c (disable_thread_signals): Remove unused function.
11370
11371 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11372
11373         * amd64-nat.c: Include "gdb_string.h".
11374         (amd64_collect_native_gregset): Zero-extend the 32-bit
11375         general-purpose registers and %eip.
11376
11377         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11378         * amd64-tdep.c (amd64_collect_fxsave): New function.
11379         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11380
11381         * i387-tdep.h: Update copyright year.
11382         (i387_collect_fxsave): New prototype.
11383         * i387-tdep.c: Update copyright year.
11384         (i387_collect_fxsave): New function containing most of the code
11385         from i387_fill_fxsave.
11386         (i387_fill_fxsave): Call i387_collect_fxsave.
11387
11388 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11389
11390         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11391         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
11392
11393 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11394
11395         * amd64-tdep.c (amd64_frame_cache): Fix comment.
11396
11397 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11398
11399         * utils.c: Use "", instead of <>, to include readline.
11400         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11401         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11402         * source.c, solib.c, exec.c, event-top.c: Ditto.
11403         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11404         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11405         * Makefile.in: Update all dependencies.
11406         (readline_tilde_h, readline_history_h): Define.
11407         (readline_headers): Delete.
11408
11409 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11410
11411         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11412         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11413         "config/i386/tm-lx64.h".
11414
11415         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11416         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
11417         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11418
11419 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11420
11421         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11422
11423         * breakpoint.c (_initialize_breakpoint): Use
11424         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
11425         Add help to show command.
11426
11427 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11428
11429         * i386-nat.c: Reformat to be closer to coding standards.
11430         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11431         `retval'.  Make variables `align' and `size' local to while-loop.
11432         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11433         (_initialize_i386_nat): New prototype.
11434
11435         * tui/tui.c: Include <readline/readline.h> instead of
11436         "readline/readline.h".  Include it after <term.h> and
11437         "gdb_curses.h".
11438
11439 2004-02-27  Andrew Cagney  <cagney@redhat.com>
11440
11441         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11442         the new frame unwind code.
11443         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11444         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11445         PCOQ_HEAD_REGNUM.
11446
11447         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11448         "return_value" and "push_dummy_call".
11449         (hppa32_use_struct_convention): Delete unused function.
11450         (hppa32_store_return_value): Delete unused function.
11451         (hppa32_extract_return_value): Delete unused function.
11452         (hppa32_stack_align): Delete function.
11453
11454 2004-02-27  Eli Zaretskii  <eliz@elta.co.il>
11455
11456         * coffread.c (enter_linenos): Don't let rawptr reference memory
11457         outside linetab[]'s limits.
11458
11459 2004-02-27  Andrew Cagney  <cagney@redhat.com>
11460
11461         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11462         inferior stack space - the stack needs to grow upwards.
11463         (hppa32_frame_align): New function.
11464         (hppa64_frame_align): Replace hppa_frame_align.
11465         (hppa_gdbarch_init): Update.
11466
11467 2004-02-26  Orjan Friberg  <orjanf@axis.com>
11468
11469         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11470         (dwarf2-frame.h): Include.
11471         (enum cris_regnums): New enum CRIS_FP_REGNUM.
11472         Remove static variables related to ABI setting.
11473         (struct gdbarch_tdep): Remove cris_abi member.
11474         (struct frame_extra_info): Remove.
11475         (cris_unwind_cache, stack_item): New structs.
11476         (cris_frame_unwind, cris_frame_base): New variables.
11477         (push_stack_item, pop_stack_item)
11478         (cris_frame_unwind_cache, cris_frame_this_id)
11479         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11480         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11481         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11482         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11483         (cris_reg_struct_has_addr): New functions.
11484         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11485         (cris_frame_saved_pc, cris_saved_pc_after_call,
11486         (cris_store_struct_return, cris_frameless_function_invocation)
11487         (cris_pop_frame, cris_skip_prologue_main)
11488         (cris_abi_original_store_return_value)
11489         (cris_abi_v2_store_return_value)
11490         (cris_abi_original_extract_return_value)
11491         (cris_abi_v2_extract_return_value)
11492         (cris_abi_original_reg_struct_has_addr)
11493         (cris_abi_v2_reg_struct_has_addr)
11494         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11495         (cris_push_return_address, cris_abi_update): Remove.
11496         (_initialize_cris_tdep): Remove ABI command.
11497         (cris_dump_tdep): Ditto.
11498         (cris_gdbarch_init): Remove ABI command.
11499         Set store_return_value, extract_return_value, push_dummy_code,
11500         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11501         frame_unwind_append_sniffer, frame_base_set_default.
11502         Clear deprecated init_frame_pc, push_arguments, store_return_value,
11503         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11504         sizeof_call_dummy_words, get_saved_register, push_return_address,
11505         pop_frame, store_struct_return, frame_init_saved_regs,
11506         init_extra_frame_info, frameless_function_invocation, frame_chain,
11507         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11508         dummy_write_sp.
11509
11510 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
11511
11512         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11513         * valprint.c (print_hex_chars): Change from static to external.
11514         (print_char_chars): New function.
11515         * printcmd.c (print_scalar_formatted): For integer and enum types
11516         that are longer than LONGEST, perform processing via appropriate
11517         print_*_chars routines.
11518
11519 2004-02-26  Andrew Cagney  <cagney@redhat.com>
11520
11521         * Makefile.in: Update dependencies.
11522         Changes from Ulrich Weigand,
11523         * s390-tdep.c: Include "dwarf2-frame.h".
11524         (s390_dwarf2_frame_init_reg): New function.
11525         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11526         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
11527
11528 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
11529
11530         * breakpoint.c (pending_break_support): New setting variable.
11531         (break_command_1): Account for pending_break_support setting
11532         when creating pending breakpoints.
11533         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11534         (_initialize_breakpoint): Add "set breakpoint pending" and
11535         "show breakpoint pending" commands.
11536
11537 2004-02-26  Andrew Cagney  <cagney@redhat.com>
11538
11539         Fix PR i18n/1570.
11540         * charset.c (backslashable, backslashed, represented): Remove 'e'
11541         from list of escaped characters, not part of ISO-C.
11542
11543 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11544
11545         From Peter Schauer <schauer@pdf.de>:
11546         * tui/tui.c: Move system header includes after local includes.
11547         Fixes a build failure on solaris systems.
11548
11549 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11550
11551         * configure.in: Refine the previous change.
11552         * configure: Regenerate.
11553
11554 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
11555
11556         * amd64-tdep.h: Renamed from x86-64-tdep.h.
11557         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
11558         "amd64-tdep.h" instead of "x86-64-tdep.h".
11559         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11560         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11561         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
11562         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11563         and "x86-64-tdep.c".
11564         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
11565         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11566         and "x86-64-tdep.c".
11567         * amd64bsd-nat.c: Update copyright year.
11568         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11569         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11570         "x86-64-tdep.h".
11571         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11572         "x86-64-tdep.h".
11573         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11574         "x86-64-tdep.h".
11575         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11576         "x86-64-tdep.h".
11577         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11578         "x86-64-tdep.h".
11579         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11580         "x86-64-tdep.h".
11581         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11582         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11583         * Makefile.in (amd64_linux_tdep_h): Renamed from
11584         x86_64_linux_tdep_h.
11585         (amd64_tdep_h): Renamed from x86_64_tdep_h.
11586         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11587         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11588         (amd64obsd-tdep.o): Update dependencies.
11589         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11590         dependencies.
11591         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11592         dependencies.
11593         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11594         amd64-linux-nat.c amd64-linux-tdep.c.
11595         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11596         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11597         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11598         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11599         amd64-tdep.o and amd64-linux-tdep.o.
11600         (TM_FILE): Set to tm-linux64.h.
11601         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11602         (NAT_FILE): Set to nm-linux64.h.
11603         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11604         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11605         amd64-tdep.o.
11606         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11607         amd64-tdep.o.
11608         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11609         amd64-tdep.o.
11610
11611 2004-02-25  Roland McGrath  <roland@redhat.com>
11612
11613         * remote.c (remote_protocol_qPart_auxv): New variable.
11614         (init_all_packet_configs): Initialize it.
11615         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11616         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11617         (show_remote_cmd): Call it.
11618         (_initialize_remote): Initialize commands.
11619         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11620         service TARGET_OBJECT_AUXV requests.
11621
11622 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11623
11624         * configure.in: Make sure that the wborder function is available.
11625         Otherwise, search for it in the cur_colr library.
11626         * configure: Regenerate.
11627
11628 2004-02-25  Andrew Cagney  <cagney@redhat.com>
11629
11630         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11631
11632 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
11633
11634         * config/i386/tm-x86-64linux.h: Tweak comments.
11635
11636 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
11637
11638         * MAINTAINERS: Add self to write-after-approval list.
11639
11640 2004-02-25  Andrew Cagney  <cagney@redhat.com>
11641
11642         PR cli/1566.  Problem found, and fix suggested by David Allan.
11643         * cli/cli-script.c (execute_control_command): Unconditionally
11644         install a cleanup.  Default "ret" to "invalid_control".  Use
11645         "break" instead of "return" to escape from the switch.
11646
11647 2004-02-24  J. Brobecker  <brobecker@gnat.com>
11648
11649         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11650         with the lines macro defined in term.h on AiX.
11651         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11652         a collision with the label_width macro defined in term.h on AiX.
11653
11654 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
11655
11656         Committed by Kevin Buettner <kevinb@redhat.com>.
11657
11658         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11659         * ia64-tdep.c (ia64_write_pc): Make it a global function.
11660         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11661         instead of ia64_write_pc().
11662         * ia64-linux-tdep.c (regcache.h): Include.
11663         (ia64_linux_write_pc): New function.
11664
11665 2004-02-23  Roland McGrath  <roland@redhat.com>
11666
11667         * auxv.c (info_auxv_command): Fix typos in error messages.
11668
11669 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
11670
11671         * x86-64-tdep.h: Tweak comment.
11672         (enum amd64_regnum): New.
11673         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11674         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11675         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11676         (X86_64_XMM1_REGNUM): Removed.
11677         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11678         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11679         prototypes for renamed functions.
11680         * x86-64-tdep.c: Fix typo.
11681         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11682         register numbers.
11683         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11684         Use constants from `enum amd64_regnum' for register numbers.
11685         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11686         (amd64_analyze_prologue, amd64_frame_cache,
11687         amd64_sigtramp_frame_cache): Use constants from `enum
11688         amd64_regnum' for register numbers.
11689         (amd64_supply_fpregset): Adjust for renamed functions.
11690         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
11691         `enum amd64_regnum' for register numbers.
11692         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11693         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11694         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11695         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11696         (amd64_linux_fill_gregset): Adjust for renamed macros.
11697         (fetch_core_registers): Adjust for renamed functions.
11698         (amd64_linux_init_abi): Adjust for renamed functions.
11699         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11700         renamed functions.
11701         * amd64-nat.c: Adjust for renamed macros.
11702         * amd64bsd-nat.c (fetch_inferior_registers)
11703         (store_inferior_registers): Use constants from `enum amd64_regnum'
11704         for register numbers.  Adjust for renamed variables.
11705         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11706         renamed variables.
11707         (_initialize_amd64fbsd_nat): Use constants from `enum
11708         amd64_regnum' for register numbers.
11709         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11710         `enum amd64_regnum' for register numbers.
11711         (amd64fbsd_init_abi): Adjust for renamed functions.
11712         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11713         `enum amd64_regnum' for register numbers.
11714         (amd64nbsd_init_abi): Adjust for renamed functions.
11715         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11716         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11717         `enum amd64_regnum' for register numbers.
11718         (amd64obsd_init_abi): Adjust for renamed functions.
11719         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11720
11721 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11722
11723         * breakpoint.c (print_one_breakpoint): Do not output spaces
11724         after printing <PENDING> for a pending breakpoint.
11725
11726 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11727
11728         * printcmd.c (print_scalar_formatted): Initialize val_long
11729         to remove compiler warning message.
11730
11731 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11732
11733         * defs.h (nquery, yquery): New prototypes.
11734         * breakpoint.c (break_command_1): Use new nquery interface.
11735         * utils.c (defaulted_query, nquery, yquery): New functions.
11736
11737 2004-02-23  Andrew Cagney  <cagney@redhat.com>
11738
11739         * hppa-tdep.c (hppa_frame_align): New function.
11740         (hppa32_push_dummy_call): New function.
11741         (hppa64_push_dummy_call): New function.
11742         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11743         disabled.
11744
11745         * infcall.c (legacy_push_dummy_code): Don't call deprecated
11746         FIX_CALL_DUMMY when push_dummy_call is available.
11747         (call_function_by_hand, push_dummy_code): Ditto.
11748
11749 2004-02-22  Andrew Cagney  <cagney@redhat.com>
11750
11751         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11752         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11753         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11754         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11755         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11756         call_dummy_location to ON_STACK.
11757
11758 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
11759
11760         * x86-64-linux-tdep.c: Tweak comment.
11761         (amd64_linux_supply_gregset): Renamed from
11762         x86_64_linux_supply_gresget.
11763         (amd64_linux_fill_gregset): Renamed from
11764         x86_64_linux_fill_gregset.
11765         (fetch_core_registers): Adjust for renamed functions.
11766         (amd64_core_fns): Renamed from x86_64_core_fns.
11767         (amd64_linux_sigtramp_start): Renamed from
11768         x86_64_linux_sigtramp_start.
11769         (amd64_linux_pc_in_sigtramp): Renamed from
11770         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
11771         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11772         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11773         (amd64_linux_sigcontext_addr): Renamed from
11774         x86_64_linux_sigcontext_addr.
11775         (amd64_linux_sc_reg_offset): Renamed from
11776         x86_64_linux_sc_reg_offset.
11777         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11778         Adjust for renamed functions and variables.
11779         (_initialize_amd64_linux_tdep): Renamed from
11780         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
11781         variables.
11782         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
11783         Adjust for renamed functions.
11784
11785         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11786         from x86_64_linux_gregset64_reg_offset.
11787         (amd64_linux_gregset32_reg_offset): Rename from
11788         x86_64_linux_gregset64_reg_offset.
11789         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11790         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11791         (amd64_linux_dr_set_control): Renamed from
11792         x86_64_linux_dr_set_control.  Adjust for renamed functions.
11793         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11794         Adjust for renamed functions.
11795         (amd64_linux_dr_reset_addr): Renamed from
11796         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11797         (amd64_linux_dr_get_status): Renamed from
11798         x86_64_linux_dr_get_status.  Adjust for renamed functions.
11799         (_initialize_amd64_linux_nat): Renamed from
11800         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
11801         functions.
11802         * config/i386/nm-x86-64linux.h: Update copyright year.
11803         Adjust for renamed functions.
11804
11805         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11806         amd64fbsd_sigtramp_start.
11807         (amd64fbsd_sigtramp_end_addr): Renamed from
11808         amd64fbsd_sigtramp_end.
11809         (amd64fbsd_init_abi): Adjust for renamed variables.
11810         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11811         variables.
11812         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11813         amd64fbsd_sigtramp_start.
11814         (amd64fbsd_sigtramp_end_addr): Renamed from
11815         amd64fbsd_sigtramp_end.
11816
11817 2004-02-22  Andrew Cagney  <cagney@redhat.com>
11818
11819         * hppa-tdep.c (hppa32_return_value): New function.
11820         (hppa64_return_value): New function.
11821         (hppa_gdbarch_init): Set return_value; keep disabled.
11822
11823         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11824         struct-return and inferior function call methods.
11825
11826         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11827         "frame-base.h".
11828         (struct hppa_frame_cache): Define.
11829         (hppa_frame_cache, hppa_frame_this_id): New functions.
11830         (hppa_frame_prev_register): New function.
11831         (hppa_frame_unwind, hppa_frame_base): New variables.
11832         (hppa_frame_unwind_sniffer): New function.
11833         (hppa_frame_base_address, hppa_unwind_pc): New function.
11834         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11835         sniffer, and frame base sniffer; keep disabled.
11836         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11837         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11838
11839         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11840         to predicates for "seriously old code".
11841
11842         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11843         runtime if(0).
11844
11845         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11846         unsigned.
11847         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11848
11849         * config/pa/tm-hppa.h: Update copyright.
11850         (DEPRECATED_INIT_FRAME_PC): Delete macro.
11851         (deprecated_init_frame_pc_default): Delete declaration.
11852         (hppa_frame_init_saved_regs): Delete declaration.
11853         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11854         * hppa-tdep.c: Include "arch-utils.h".
11855         (hppa_gdbarch_init): Set deprecated init_frame_pc
11856         and deprecated frame_init_saved_regs.
11857         (hppa_frame_init_saved_regs): Make static.
11858
11859 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
11860
11861         Remove old 386BSD support.
11862         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11863         * configure.host: Remove i[34567]86-*-bsd*.
11864         * configure.tgt: Remove i[34567]86-*-bsd*.
11865         * i386b-nat.c: Removed.
11866         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11867         (i386b-nat.o): Remove dependencies.
11868
11869         * config/i386/i386bsd.mh: Removed.
11870         * config/i386/i386bsd.mt: Removed.
11871         * config/i386/nm-i386bsd.h: Removed.
11872         * config/i386/tm-i386bsd.h: Removed.
11873         * config/i386/xm-i386bsd.h: Removed.
11874
11875         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11876
11877         * amd64fbsd-tdep.c: Include "solib-svr4.h".
11878         (amd64fbsd_init_abi): Set link map offsets.
11879         * amd64nbsd-tdep.c: Include "slib-svr4.h".
11880         (amd64nbsd_init_abi): Set link map offsets.
11881         * amd64obsd-tdep.c: Include "solib-svr4.h".
11882         (amd64obsd_init_abi): Set link map offsets.
11883         * i386fbsd-tdep.c: Include "solib-svr4.h".
11884         (i386fbsd_init_abi): Set link map offsets.
11885         * i386nbsd-tdep.c: Include "solib-svr4.h".
11886         (i386nbsdelf_init_abi): Set link map offsets.
11887         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11888         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11889         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11890         solib-legacy.o and core-aout.o. Reformat.
11891         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11892         solib-svr4.o, solib-legacy.o.  Reformat.
11893         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
11894         * config/i386/nbsdelf.mh: Reformat.
11895         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11896         solib-svr4.o, solib-legacy.o and corelow.o.
11897         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11898         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11899         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
11900         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11901         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11902         (TM_FILE): Set to tm-fbsd.h.
11903         * config/i386/nbsd.mt (TDEPFILES): Reformat.
11904         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11905         solib-svr4.o.
11906         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11907         solib-svr4.o.
11908         (TM_FILE): Set to nm-nbsd.h.
11909         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
11910         Simplify shared library support.  Don't include "elf/common.h".
11911         (SVR4_SHARED_LIBS): Don't define.
11912         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
11913         "solib.h".
11914         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11915         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
11916         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
11917         Don't include "i386/tm-i386.h".  Include "solib.h".
11918         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
11919         Don't include "i386/tm-i386.h".
11920         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
11921         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
11922         Include "i386/xm-i386.h".
11923         (HOST_LONG_DOUBLE_FORMAT): Remove.
11924
11925         Fix OpenBSD/i386 sigtramp recognition.
11926         * i386-tdep.h: Update copyright year.
11927         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11928         (i386bsd_sigtramp_end): New prototypes.
11929         (i386fbsd_sigtramp_start_addr): Renamed from
11930         i386fbsd_sigtramp_start.
11931         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11932         (i386obsd_sigtramp_start_addr): Renamed from
11933         i386obsd_sigtramp_start.
11934         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11935         * i386bsd-tdep.c: Update copyright year.
11936         (i386bsd_pc_in_sigtramp): Make public.
11937         * i386fbsd-nat.c: Update copyright year.
11938         (_initialize_i386fbsd_nat): Adjust for renamed variables.
11939         * i386fbsd-tdep.c: Update copyright year.
11940         (i386fbsd_sigtramp_start_addr): Renamed from
11941         i386fbsd_sigtramp_start.
11942         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11943         (i386fbsdaout_init_abi): Adjust for renamed variables.
11944         * i386obsd-nat.c: Update copyright year.
11945         (_initialize_i386obsd_nat): Adjust for renamed variables.
11946         * i386obsd-tdep.c: Include "target.h".
11947         (i386obsd_page_size): New variable.
11948         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11949         (i386obsd_sigtramp_end): New functions.
11950         (i386obsd_sigtramp_start_addr): Renamed from
11951         i386obsd_sigtramp_start.
11952         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11953         (i386obsd_init_abi): Adjust for renamed variables.  Set
11954         pc_in_sigtramp, sigtramp_start and sigtramp_end.
11955         * Makefile.in (i386obsd-tdep.o): Update dependencies.
11956
11957         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11958         trampoline change in OpenBSD kernel.
11959
11960         * amd64-nat.c: Update copyright year.
11961         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11962         architecture from REGCACHE.
11963
11964         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11965         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11966
11967 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
11968
11969         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11970         i[34567]86-*-openbsd3.[0-3].
11971         * config/i386/obsdaout.mh: New file.
11972
11973         * config/i386/obsd.mh (MH_FLAGS): Remove.
11974
11975         Fix PR build/1549.
11976         * i386obsd-tdep.c: Update copyright years.  Include
11977         "solib-svr4.h".
11978         (i386obsd_init_abi): Don't set regset_from_core_section here.
11979         (i386obsd_aout_init_abi): New function.  Set
11980         regset_from_core_section here.
11981         (i386obsd_elf_init_abi): New function.
11982         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11983         * Makefile.in (i386obsd-tdep.o): Update dependecies.
11984         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11985         (TM_FILE): Set to tm-nbsd.h.
11986
11987         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11988         solib-sunos.o.
11989
11990         * solib-svr4.h: Update copyright year.
11991         (svr4_ilp32_fetch_link_map_offsets)
11992         (svr4_lp64_fetch_link_map_offsets): New prototype.
11993         * solib-svr4.c: Update copyright year.
11994         (svr4_ilp32_fetch_link_map_offsets)
11995         (svr4_lp64_fetch_link_map_offsets): New function.
11996
11997 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
11998
11999         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
12000         to the partial symbol table.
12001
12002 2004-02-20  J. brobecker  <brobecker@gnat.com>
12003
12004         * PROBLEMS: Add description of problem documented under gdb/1560.
12005
12006 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
12007
12008         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
12009         comments.
12010         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
12011         functions.
12012         (amd64obsd_init_abi): Reorder initializations.  Use
12013         amd64obsd_r_reg_offset to initialize the general-purpose register
12014         set details.  Set regset_from_core_section.
12015         (_initialize_amd64obsd_tdep): Rename from
12016         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
12017         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
12018         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
12019
12020         * NEWS (New native configurations): Mention OpenBSD/alpha.
12021         * configure.tgt: Add alpha*-*-openbsd*.
12022         * configure.host: Add alpha*-*-openbsd*.
12023         * alphanbsd-tdep.c: Update copyright year.
12024         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
12025
12026 2004-02-20  Andrew Cagney  <cagney@redhat.com>
12027
12028         Fix PR tdep/1372.
12029         * configure.tgt: Delete target "none-*-*".
12030         * configure.host: Delete host "none-*-*".
12031         * config/none/none.mh: Delete file.
12032         * config/none/none.mt: Delete file.
12033         * config/none/xm-none.h: Delete file.
12034         * config/none/tm-none.h: Delete file.
12035         * config/none/nm-none.h: Delete file.
12036
12037 2004-02-19  Fred Fish  <fnf@redhat.com>
12038
12039         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
12040         cache->uses_fp prior to setting it.
12041
12042 2004-02-19  Fred Fish  <fnf@redhat.com>
12043
12044         Fix for PR breakpoint/1558.
12045         * sh-tdep.c (IS_JSR): New macro.
12046         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
12047
12048 2004-02-19  Jim Blandy  <jimb@redhat.com>
12049
12050         * findvar.c (value_from_register): Doc fix.
12051
12052 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
12053
12054         * printcmd.c (print_scalar_formatted): Do not check for sizeof
12055         type being greater than sizeof of host's LONGEST.  Always use
12056         unpack_long() unless format 'f' chosen.
12057
12058 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
12059
12060         Committed by Elena Zannoni  <ezannoni@redhat.com>
12061
12062         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
12063         contains a symbol wich is the best, non-exact match for the given
12064         pc.  Update comments.
12065
12066 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
12067
12068         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
12069         macro, which was part of the now removed Mach 3 port.
12070         * utils.c (request_quit): Ditto.
12071
12072 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
12073
12074         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
12075         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
12076
12077 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12078
12079         Committed by Mark Kettenis  <kettenis@gnu.org>.
12080
12081         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
12082         Define.
12083
12084 2004-02-18  Andrew Cagney  <cagney@redhat.com>
12085
12086         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
12087         CONFIG_INSTALL and CONFIG_UNINSTALL.
12088         * configure: Re-generate.
12089         * interps.h (INTERP_TUI): Define.
12090         * Makefile.in: Update dependencies.
12091         (TUI): New macro.
12092         (tui-main.o): Specify dependencies.
12093         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
12094         * tui/tui-main.c: New file.
12095
12096 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
12097
12098         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
12099         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
12100         dependencies.
12101         * configure.host: Add x86_64-*-openbsd*.
12102         * configure.tgt: Add x86_64-*-openbsd*.
12103         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
12104
12105         * tui/tui.c: Don't include <malloc.h>.
12106
12107         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
12108         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
12109         amd64nbsd-tdep.c.
12110
12111         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
12112         static.  Remove extraneous whitespace.
12113         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
12114         static.
12115
12116 2004-02-17  Jim Blandy  <jimb@redhat.com>
12117
12118         * findvar.c (value_from_register): Doc fix.
12119
12120 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12121
12122         Committed by Jim Blandy  <jimb@redhat.com>.
12123
12124         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12125         CORE_ADDR as type for selectors.  Correct types for GNU run time
12126         message lookup function to use double indirection.
12127         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12128         * objc-lang.h (lookup_child_selector): Adapt prototype.
12129
12130         * s390-nat.c (SUBOFF): New macro.
12131         (supply_gregset, fill_gregset): Use it to handle debugging
12132         of 32-bit exectuables running under a 64-bit kernel.
12133         * s390-tdep.c: Include "solib-svr4.h".
12134         (s390_svr4_fetch_link_map_offset): New function.
12135         (s390x_svr_fetch_link_map_offset): Likewise.
12136         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12137         * Makefile.in (s390-tdep.o): Update dependencies.
12138
12139         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12140         "frame-unwind.h".
12141         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
12142         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12143         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12144         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12145         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12146         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12147         S390_SIGNAL_FRAMESIZE,
12148         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12149         (struct frame_extra_info): Remove.
12150         (s390_memset_extra_info): Remove.
12151         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12152         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12153         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12154         (is_rse): Renamed to ...
12155         (is_rsy): ... this.  Support long displacements.
12156         (is_rxe): Renamed to ...
12157         (is_rxy): ... this.  Support long displacements.
12158         (compute_x_addr): Support long displacements.
12159         (struct s390_prologue_data): New data type.
12160         (s390_on_stack): Change API to use struct s390_prologue_data.
12161         (s390_store): Reimplement.
12162         (s390_load): New function.
12163         (s390_get_signal_frame_info): Remove.
12164         (s390_get_frame_info): Remove, replace by ...
12165         (s390_analyze_prolog): ... this new function.
12166         (s390_check_function_end): Remove.
12167         (s390_function_start): Remove.
12168         (s390_frameless_function_invokation): Remove.
12169         (s390_is_sigreturn): Remove.
12170         (s390_init_frame_pc_first): Remove.
12171         (s390_init_frame_extra_info): Remove.
12172         (s390_frame_init_saved_regs): Remove.
12173         (s390_frame_saved_pc_nofix): Remove.
12174         (s390_frame_saved_pc): Remove.
12175         (s390_frame_chain): Remove.
12176         (s390_fp_regnum, s390_read_fp): Remove.
12177         (s390_pop_frame_regular, s390_pop_frame): Remove.
12178         (s390_saved_pc_after_call): Remove.
12179         (s390_skip_prologue): Reimplement.
12180         (s390_in_function_epilogue_p): Support long displacements.
12181         (struct s390_unwind_cache): New data structure.
12182         (s390_frame_unwind_cache): New function.
12183         (s390_prologue_frame_unwind_cache): Likewise.
12184         (s390_backchain_frame_unwind_cache): Likewise.
12185         (s390_frame_this_id, s390_frame_prev_register): Likewise.
12186         (s390_frame_unwind): Define.
12187         (s390_frame_sniffer): New function.
12188         (struct s390_pltstub_unwind_cache): New data structure.
12189         (s390_pltstub_frame_unwind_cache): New function.
12190         (s390_pltstub_frame_this_id): Likewise.
12191         (s390_pltstub_frame_prev_register): Likewise.
12192         (s390_pltstub_frame_unwind): Define.
12193         (s390_pltstub_frame_sniffer): New function.
12194         (struct s390_sigtramp_unwind_cache): New data structure.
12195         (s390_sigtramp_frame_unwind_cache): New function.
12196         (s390_sigtramp_frame_this_id): Likewise.
12197         (s390_sigtramp_frame_prev_register): Likewise.
12198         (s390_sigtramp_frame_unwind): Define.
12199         (s390_sigtramp_frame_sniffer): New function.
12200         (s390_frame_base_address, s390_local_base_address): New functions.
12201         (s390_frame_base): Define.
12202         (s390_unwind_pc, s390_unwind_sp): New function.
12203         (s390_push_dummy_call): Use new frame base location.
12204         (s390_unwind_dummy_id): Likewise.
12205         (s390_gdbarch_init): Remove calls to:
12206         set_gdbarch_frameless_function_invocation,
12207         set_gdbarch_deprecated_init_frame_pc,
12208         set_gdbarch_deprecated_frame_chain,
12209         set_gdbarch_deprecated_frame_init_saved_regs,
12210         set_gdbarch_deprecated_pop_frame,
12211         set_gdbarch_deprecated_init_extra_frame_info,
12212         set_gdbarch_deprecated_init_frame_pc_first,
12213         set_gdbarch_deprecated_target_read_fp,
12214         set_gdbarch_deprecated_frame_saved_pc,
12215         set_gdbarch_deprecated_saved_pc_after_call,
12216         set_gdbarch_deprecated_fp_regnum.
12217         Add calls to:
12218         set_gdbarch_in_solib_call_trampoline,
12219         frame_unwind_append_sniffer,
12220         frame_base_set_default,
12221         set_gdbarch_unwind_pc,
12222         set_gdbarch_unwind_sp.
12223         * Makefile.in (s390-tdep.o): Update dependencies.
12224
12225         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12226         (S390_STACK_FRAME_OVERHEAD): Remove.
12227         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12228         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12229         (s390_promote_integer_argument): Remove.
12230         (s390_cannot_extract_struct_value_address): Remove.
12231         (s390_use_struct_convention, s390_store_struct_return): Remove.
12232         (s390_extract_return_value, s390_store_return_value): Remove.
12233         (s390_return_value_convention, s390_return_value): New functions.
12234         (is_float_singleton): Handle typedefs.
12235         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12236         Remove, replace by ...
12237         (s390_function_arg_pass_by_reference, s390_function_arg_float,
12238         s390_function_arg_integer): ... these new functions.
12239         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12240         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12241         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12242         Fill in tdep->abi.
12243         Remove calls to:
12244         set_gdbarch_deprecated_store_struct_return,
12245         set_gdbarch_deprecated_extract_return_value,
12246         set_gdbarch_deprecated_store_return_value,
12247         set_gdbarch_use_struct_convention,
12248         set_gdbarch_extract_struct_value_address,
12249         set_gdbarch_deprecated_pc_in_call_dummy,
12250         set_gdbarch_deprecated_push_arguments,
12251         set_gdbarch_deprecated_save_dummy_frame_tos,
12252         set_gdbarch_deprecated_push_return_address,
12253         set_gdbarch_deprecated_sizeof_call_dummy_words,
12254         set_gdbarch_deprecated_call_dummy_words,
12255         set_gdbarch_deprecated_dummy_write_sp.
12256         Add calls to:
12257         set_gdbarch_push_dummy_call,
12258         set_gdbarch_unwind_dummy_id,
12259         set_gdbarch_return_value.
12260
12261         * config/s390/nm-linux.h: Update comments.
12262         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12263         (STOPPED_BY_WATCHPOINT): Redefine.
12264         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12265         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12266         (s390_stopped_by_watchpoint): Likewise.
12267         (watch_area_cnt): Remove.
12268         * s390-nat.c: Update comments.
12269         (watch_area): Remove typedef.
12270         Global replace watch_area by struct watch_area.
12271         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12272         (s390_stopped_by_watchpoint): Remove pid argument,
12273         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
12274         (s390_fix_watch_points): Remove pid argument,
12275         use s390_inferior_tid.  Recompute area spanned by watchpoints.
12276         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12277         argument.  Reimplement.
12278
12279         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
12280         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12281         (FETCH_INFERIOR_REGISTERS): Define.
12282         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12283         core-regset.o.
12284         * config/s390/s390x.mt: Remove.
12285         * config/s390/tm-s390.h: Remove.
12286         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12287         (TARGET_ELF64): Remove.
12288         (SKIP_TRAMPOLINE_CODE): Do not undefine.
12289         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12290         s390*-*-* case; always set gdb_target to s390.
12291         * regformats/reg-s390.dat: Remove control registers.
12292         * regformats/reg-s390x.dat: Likewise.
12293         * s390-tdep.h: New file.
12294         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12295         Include "inferior.h" and "s390-tdep.h".
12296         Remove private definition of offsetof.
12297         (s390_register_u_addr): Remove.
12298         (regmap_gregset, regmap_fpregset): Define.
12299         (supply_gregset, fill_gregset): Reimplement.
12300         (supply_fpregset, fill_fpregset): Likewise.
12301         (s390_inferior_tid): New function.
12302         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12303         (fetch_inferior_registers, store_inferior_registers): Likewise.
12304         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
12305         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
12306         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12307         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12308         (struct gdbarch_tdep): Define.
12309         (struct s390_register_info): Define.
12310         (s390_register_info): New variable.
12311         (s390_register_name): Reimplement.
12312         (s390_register_type): New function.
12313         (s390_register_raw_size, s390x_register_raw_size): Remove.
12314         (s390_cannot_fetch_register): Remove.
12315         (s390_register_byte): Remove.
12316         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12317         (s390_dwarf_regmap): New variable.
12318         (s390_dwarf_reg_to_regnum): New function.
12319         (s390_stab_reg_to_regnum): Remove.
12320         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12321         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12322         (s390_convert_register_p): Likewise.
12323         (s390_register_to_value, s390_value_to_register): Likewise.
12324         (s390_register_reggroup_p): Likewise.
12325         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12326         s390_gregset, s390x_gregset, s390_fpregset): New variables.
12327         (s390_supply_regset, s390_regset_from_core_section): New functions.
12328         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12329         (S390_FPR_SIZE): Likewise.
12330         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
12331         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12332         (S390_NUM_GPRS): Move here from tm-s390.h.
12333         (S390_NUM_FPRS): Likewise.
12334         (s390_in_function_epilogue_p): New function.
12335         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12336         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12337         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12338         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12339         Replace S390_FP_REGNUM by S390_SP_REGNUM.
12340         Remove calls to:
12341         set_gdbarch_deprecated_max_register_raw_size,
12342         set_gdbarch_deprecated_max_register_virtual_size,
12343         set_gdbarch_deprecated_register_byte,
12344         set_gdbarch_cannot_fetch_register,
12345         set_gdbarch_cannot_store_register,
12346         set_gdbarch_deprecated_register_size,
12347         set_gdbarch_deprecated_register_raw_size,
12348         set_gdbarch_deprecated_register_virtual_size,
12349         set_gdbarch_deprecated_register_virtual_type,
12350         set_gdbarch_deprecated_register_bytes.
12351         Add calls to:
12352         set_gdbarch_num_pseudo_regs,
12353         set_gdbarch_register_type,
12354         set_gdbarch_convert_register_p,
12355         set_gdbarch_register_to_value,
12356         set_gdbarch_value_to_register,
12357         set_gdbarch_register_reggroup_p,
12358         set_gdbarch_regset_from_core_section,
12359         set_gdbarch_pseudo_register_read,
12360         set_gdbarch_pseudo_register_write,
12361         set_gdbarch_in_function_epilogue_p.
12362         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12363         (s390_tdep_h): New variable.
12364
12365 2004-02-17  Jim Blandy  <jimb@redhat.com>
12366
12367         * findvar.c (value_from_register): If the type has no length, just
12368         return an acceptable value --- don't report an internal error.
12369
12370         * stabsread.c (read_type): If we find any type numbers that are
12371         forward references, complain if the references aren't resolved by
12372         the time we're finished reading.
12373         (cleanup_undefined_types): Make error message more appropriate for
12374         a complaint.
12375
12376 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
12377
12378         * Makefile.in (defs_h): Remove dependency on progress_h.
12379         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12380         progress.h.
12381         * main.c (captured_main): Delete use of START_PROGRESS and
12382         END_PROGRESS.
12383
12384 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
12385
12386         * objfiles.c (terminate_minimal_symbol_table): Add back
12387         initialization of MSYMBOL_TYPE.
12388
12389 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
12390
12391         Committed by Andrew Cagney.
12392         * Makefile.in (ia64_tdep_h): New macro.
12393         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12394         (ia64-tdep.o): Likewise.
12395         * ia64-tdep.h: New file.
12396         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
12397         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12398         (ia64_aix_sigcontext_register_address): Likewise.
12399         (ia64_linux_getunwind_table): Delete declaration.
12400         * ia64-linux-tdep.c: Likewise.
12401
12402 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
12403
12404         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12405         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12406         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12407
12408 2004-02-17  Andrew Cagney  <cagney@redhat.com>
12409
12410         * symtab.c (skip_prologue_using_sal): New function.
12411         * symtab.h (skip_prologue_using_sal): Declare.
12412         * frv-tdep.c: Include "symtab.h".
12413         (skip_prologue_using_sal): Delete function.
12414         * mips-tdep.c (skip_prologue_using_sal): Delete function.
12415         * rs6000-tdep.c (refine_prologue_limit): Mention
12416         skip_prologue_using_sal.
12417         * ia64-tdep.c (refine_prologue_limit): Ditto.
12418         * Makefile.in: Update dependencies.
12419
12420 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12421
12422         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12423         START_INFERIOR_TRAPS_EXPECTED.
12424         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12425         START_INFERIOR_TRAPS_EXPECTED.
12426         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12427         Delete macro.
12428         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12429         macro, moved to "nm-osf.h".  Update copyright.
12430         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12431         update copyright.
12432
12433         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12434         and function replacing FRAMELESS_FUNCTION_INVOCATION.
12435         * blockframe.c (legacy_frameless_look_for_prologue): Rename
12436         frameless_look_for_prologue.
12437         * frame.h (legacy_frameless_look_for_prologue): Rename
12438         frameless_look_for_prologue.
12439         * gdbarch.h, gdbarch.c: Re-generate.
12440         * sh64-tdep.c (sh64_gdbarch_init): Update.
12441         * sh-tdep.c (sh_gdbarch_init): Update.
12442         * s390-tdep.c (s390_gdbarch_init): Update.
12443         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12444         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12445         * m68k-tdep.c (m68k_gdbarch_init): Update.
12446         (delta68_frame_args_address): Update.
12447         * m32r-tdep.c (m32r_gdbarch_init): Update.
12448         * hppa-tdep.c (hppa_gdbarch_init): Update.
12449         * h8300-tdep.c (h8300_gdbarch_init): Update.
12450         * frv-tdep.c (frv_gdbarch_init): Update.
12451         (frv_frameless_function_invocation): Update.
12452         * cris-tdep.c (cris_gdbarch_init): Update.
12453         (cris_frameless_function_invocation): Update.
12454         * avr-tdep.c (avr_gdbarch_init): Update.
12455         * arm-tdep.c (arm_gdbarch_init): Update.
12456         * stack.c (frame_info): Update, call predicate.
12457         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12458         * frame.c (legacy_get_prev_frame): Update, call predicate..
12459         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12460         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12461         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12462         invocation.
12463         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12464         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12465         * vax-tdep.c (vax_gdbarch_init): Ditto.
12466
12467         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12468         function.
12469
12470 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
12471
12472         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12473         initializations.
12474
12475 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12476
12477         * tui/tui-windata.c: Include "gdb_string.h".
12478         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12479         * tui/tui-layout.c, tui/tui-command.c: Ditto.
12480         * Makefile.in: Update dependencies.
12481
12482 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
12483
12484         * Makefile.in (infrun.o): Add $(gdb_assert_h).
12485         * infrun.c: Include "gdb_assert.h".
12486         (singlestep_ptid, saved_singlestep_ptid)
12487         (stepping_past_singlestep_breakpoint): New variables.
12488         (resume): Set singlestep_ptid.  Check for singlestep thread
12489         hop.
12490         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12491         (handle_inferior_event): Handle singlestep thread hop.
12492
12493 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12494
12495         * dwarf2-frame.c (dwarf2_frame_ops): New function.
12496         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12497         (dwarf2_frame_init_reg): Ditto.
12498
12499         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
12500         suggested by Joshua Neuheisel
12501
12502         * configure.in: Always check for curses, including pdcurses.
12503         Warn, instead of error, when no curses are found.  Enable TUI when
12504         curses is available.
12505         * configure: Re-generate.
12506
12507 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
12508
12509         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12510         sh_sh4_register_convert_to_virtual.
12511         (sh_register_convert_to_raw): Rename from
12512         sh_sh4_register_convert_to_raw.
12513         (sh_pseudo_register_read): Accomodate above name change.
12514         (sh_pseudo_register_write): Ditto.
12515
12516 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
12517
12518         * sh-tdep.c (sh_generic_register_name): Remove.
12519         (sh_gdbarch_init): Use sh_sh_register_name in default case.
12520
12521 2004-02-15  Andrew Cagney  <cagney@redhat.com>
12522
12523         * configure.in (build_warnings): Add -Wunused-function.
12524         * configure: Re-generate.
12525
12526         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12527         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12528
12529         * procfs.c (procfs_init_inferior): Assume that
12530         START_INFERIOR_TRAPS_EXPECTED is defined.
12531         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12532         * config/ns32k/tm-nbsd.h: Delete file,
12533         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12534
12535         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12536         * config/vax/tm-vax.h: Delete file.
12537
12538         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12539         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12540         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12541         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12542         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12543         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12544         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12545
12546 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
12547
12548         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12549         * dwarf2-frame.c (dwarf2_frame_data): New variable.
12550         (struct dwarf2_frame_ops): New.
12551         (dwarf2_frame_default_init_reg): New function, based on
12552         dwarf2_frame_init_reg.
12553         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12554         (dwarf2_frame_init_reg): Call architecture-specific function.
12555         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12556         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12557         instead of dwarf2_frame_data.
12558         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12559         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12560
12561 2004-02-15  Andrew Cagney  <cagney@redhat.com>
12562
12563         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12564         register_gdbarch_swap.
12565         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12566         * f-lang.c (_initialize_f_language): Update, use
12567         DEPRECATED_REGISTER_GDBARCH_SWAP.
12568         * remote.c (_initialize_remote): Ditto.
12569         * regcache.c (_initialize_regcache): Ditto.
12570         * parse.c (_initialize_parse): Ditto.
12571         * infrun.c (_initialize_infrun): Ditto.
12572         * mi/mi-main.c (_initialize_mi_main): Ditto.
12573         * gdbtypes.c (_initialize_gdbtypes): Ditto.
12574
12575         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12576         poking .cacheable directly.
12577         * symfile.c (symfile_bfd_open): Ditto.
12578
12579         * Makefile.in: Update all dependencies.
12580
12581         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12582         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
12583         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
12584         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12585         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12586
12587 2004-02-14  Andrew Cagney  <cagney@redhat.com>
12588
12589         * arch-utils.c (legacy_convert_register_p): Check
12590         DEPRECATED_REGISTER_CONVERTIBLE_P.
12591         * findvar.c (value_of_register): Ditto.
12592
12593         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12594         * gdbarch.h, gdbarch.c: Re-generate.
12595         * arch-utils.c (deprecated_register_convertible_not): Delete.
12596         * arch-utils.h (deprecated_register_convertible_not): Delete.
12597         * mi/mi-main.c (get_register): Update.  Update copyright.
12598         * infcmd.c (default_print_registers_info): Update.
12599
12600         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12601         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12602         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12603         * gdbarch.h, gdbarch.c: Re-generate.
12604         * frame.c (deprecated_get_next_frame_hack): Delete function.
12605         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12606         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12607         Update.
12608         * infcall.c (call_function_by_hand): Update.
12609
12610 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
12611
12612         * symfile.c (init_entry_point_info, entry_point_address): Move
12613         from here...
12614         * objfiles.c (init_entry_point_info, entry_point_address):..to
12615         here.
12616         * symfile.h (init_entry_point_info, entry_point_address): Remove
12617         prototypes.
12618         * objfiles.h (init_entry_point_info, entry_point_address):Add
12619         prototypes.
12620         * cris-tdep.c: Remove include of symfile.h. Add include of
12621         objfiles.h.
12622         * infcall.c: Ditto.
12623         * mcore-tdep.c: Ditto.
12624         * mn10300-tdep.c: Ditto.
12625         * sh64-tdep.c: Ditto.
12626         * v850-tdep.c: Ditto.
12627         * arm-tdep.c: Remove include of symfile.h.
12628         * blockframe.c: Ditto.
12629         * coffread.c: Ditto.
12630         * dbxread.c: Ditto.
12631         * dwarf2read.c: Ditto.
12632         * dwarfread.c: Ditto.
12633         * frv-tdep.c: Ditto.
12634         * ia64-tdep.c: Ditto.
12635         * mdebugread.c: Ditto.
12636         * mipsread.c: Ditto.
12637         * rs6000-tdep.c: Ditto.
12638         * s390-tdep.c: Ditto.
12639         * sh-tdep.c: Ditto.
12640         * xstormy16-tdep.c: Ditto.
12641         * gdbarch.sh: Remove include of symfile.h.
12642         * gdbarch.c: Regenerate.
12643         * solib-irix.c (enable_break): Use entry_point_address().
12644         Add comment about include file.
12645         * xcoffread.c: Add comment about include file.
12646         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12647         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12648         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12649         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12650         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12651
12652 2004-02-13  Andrew Cagney  <cagney@redhat.com>
12653
12654         * corelow.c (core_xfer_partial): Use "struct bfd_section".
12655         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12656         copyright.
12657         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12658
12659 2004-02-12  Fred Fish  <fnf@redhat.com>
12660
12661         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12662          set_gdbarch_store_return_value.
12663
12664 2004-02-12  Andrew Cagney  <cagney@redhat.com>
12665
12666         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12667         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12668         (interrupt_query): Ditto.
12669         (ofunc): Delete unused variable.
12670         * cris-tdep.c (cris_abi): Delete unused function.
12671         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12672         (cris_get_wide_opcode, cris_get_short_size): Ditto.
12673         (cris_get_asr_quick_shift_steps): Ditto.
12674         (cris_skip_prologue_frameless_p): Ditto.
12675         * arm-tdep.c (arm_push_return_address): Delete unused function.
12676         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12677         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12678         * s390-tdep.c (s390_function_start): Delete unused function.
12679
12680 2004-02-12  Andrew Cagney  <cagney@redhat.com>
12681
12682         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12683         gdbarch.h, gdbarch.c: Re-generate.
12684         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12685         to generic_prologue_frameless_p.
12686         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12687         * arch-utils.c (generic_prologue_frameless_p): Delete function.
12688
12689 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
12690
12691         * mips-linux-tdep.c: Include "frame.h".
12692         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12693         (mips_linux_skip_resolver): New functions.
12694         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12695         and set_gdbarch_in_solib_call_trampoline.
12696         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12697         to after set_gdbarch_in_solib_return_trampoline.  Only set the
12698         solib hooks to mips16 functions if the OS ABI is unknown.
12699         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12700         including "config/tm-linux.h".
12701         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12702         * Makefile.in (mips-linux-tdep.o): Update.
12703
12704 2004-02-11  David Carlton  <carlton@kealia.com>
12705
12706         * linespec.c (decode_compound): Only look for a class symbol when
12707         considering all but the rightmost component.
12708
12709 2004-02-11  Andrew Cagney  <cagney@redhat.com>
12710
12711         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12712         abi code are are separatly grouped.
12713
12714 2004-02-11  Andrew Cagney  <cagney@redhat.com>
12715
12716         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12717         * gdbarch.h, gdbarch.c: Re-generate.
12718         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12719         * v850-tdep.c (v850_gdbarch_init): Update.
12720         * sh64-tdep.c (sh64_gdbarch_init): Update.
12721         * sh-tdep.c (sh_gdbarch_init): Update.
12722         * s390-tdep.c (s390_gdbarch_init): Update.
12723         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12724         * mips-tdep.c (mips_gdbarch_init): Update.
12725         * mcore-tdep.c (mcore_gdbarch_init): Update.
12726         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12727         * m32r-tdep.c (m32r_gdbarch_init): Update.
12728         * ia64-tdep.c (ia64_gdbarch_init): Update.
12729         * hppa-tdep.c (hppa_gdbarch_init): Update.
12730         * h8300-tdep.c (h8300_gdbarch_init): Update.
12731         * frv-tdep.c (frv_gdbarch_init): Update.
12732         * d10v-tdep.c (d10v_gdbarch_init): Update.
12733         * cris-tdep.c (cris_gdbarch_init): Update.
12734         * avr-tdep.c (avr_gdbarch_init): Update.
12735         * arm-tdep.c (arm_gdbarch_init): Update.
12736         * alpha-tdep.c (alpha_gdbarch_init): Update.
12737
12738 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
12739
12740         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12741         comma.
12742         (sh_sh4al_dsp_register_name): Ditto.
12743
12744 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12745
12746         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12747         (mips_init_frame_pc_first): Delete function.
12748         (mips_frame_saved_pc): Delete function.
12749         (mips_frame_chain): Delete function.
12750         (mips_init_extra_frame_info): Delete function.
12751         (mips_xfer_register): Delete unused variable "reg".
12752         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12753         (mips_n32n64_return_value): Delete unused variable "reg".
12754         (mips_n32n64_return_value): Delete unused variable "pos".
12755         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12756         (mips_o32_return_value): Delete unused variable "pos".
12757         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12758         (mips_print_fp_register): Delete unused variable "namelen"
12759         (mips_print_fp_register): Delete unused variable "flt2"
12760         (get_frame_pointer): Delete function.
12761         (cached_proc_desc): Delete static variable.
12762         (mips_pop_frame): Delete function.
12763         (mips_find_saved_regs): Delete function.
12764         (mips_get_saved_register): Delete function.
12765         (mips_saved_pc_after_call): Delete function.
12766         (SIGFRAME_BASE): Delete macro.
12767         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12768         (SIGFRAME_PC_OFF): Delete macro.
12769         (SIGFRAME_REGSAVE_OFF): Delete macro.
12770         (mips_dump_tdep): Do not print deleted macro definitions.
12771
12772 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12773
12774         * Makefile.in (SFILES): Remove explictly listed tui files.
12775         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12776
12777 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
12778
12779         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12780         to use paddr functions to format ia64 addresses and long values.
12781         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12782         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12783         (get_kernel_table, ia64_find_proc_info_x): Ditto.
12784         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12785         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12786
12787 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12788
12789         * defs.h: Do not include "tui.h".
12790         * gdb_curses.h: New file.
12791         * tui/tui-hooks.h: New file.
12792         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12793         (tui_install_hooks, tui_remove_hooks): Delete declarations.
12794         (tui_initialize_io): Delete declaration.
12795         (tui_initialize_readline: Delete redundant declaration.
12796         (struct tui_point): Delete definition.
12797         * tui/tui-data.h (struct tui_point): Define.
12798         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12799         * utils.c: Include "tui/tui.h".
12800         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12801         * printcmd.c [TUI]: Include "tui/tui.h".
12802         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12803         * tui/tui-command.c: Include "gdb_curses.h".
12804         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12805         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12806         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12807         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12808         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12809         * Makefile.in: Update all dependencies.
12810         (tui_hooks_h, gdb_curses_h): Define.
12811         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12812
12813 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
12814
12815         * objfiles.h (struct objfile): Remove unused fields auxf1 and
12816         auxf2. Add comments about some other rarely used fields.
12817
12818 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12819
12820         * Makefile.in (init.c): Fix script removing duplicates. Problem
12821         reported by Peter Schauer.
12822
12823 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
12824
12825         * bcache.c (bcache_xmalloc): Use obstack_init instead of
12826         obstack_specify_allocation.
12827         * objfiles.c (allocate_objfile): Ditto.
12828         * solib-sunos.c (solib_add_common_symbols)
12829         (allocate_rt_common_objfile): Ditto.
12830         * symfile.c (reread_symbols): Ditto.
12831         * gdb_obstack.h: Add comment.
12832
12833 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
12834
12835         * linespec.c (decode_line_1, locate_first_half)
12836         (decode_compound, lookup_prefix_sym): Update comments. Delete old
12837         commented out code.
12838
12839 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
12840
12841         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12842         obstack_free.
12843
12844 2004-02-09  Andrew Cagney  <cagney@redhat.com>
12845
12846         * blockframe.c (find_pc_partial_function): If find_pc_overlay
12847         fails, try find_pc_section.  Fix PR c++/1267.
12848         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12849         instead of find_pc_mapped_section.
12850         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12851         not default to the section containing PC.  Fix PR symtab/1519.
12852
12853 2004-02-09  Andrew Cagney  <cagney@redhat.com>
12854
12855         * Makefile.in (mips-tdep.o): Update dependencies.
12856         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12857         "trad-frame.h".
12858         (mips_unwind_pc): Return the pseudo PC register.
12859         (mips_unwind_dummy_id): New function.
12860         (mips16_fetch_instruction): New function.
12861         (mips32_fetch_instruction): New function.
12862         (struct mips_frame_cache): Define.
12863         (mips_mdebug_frame_cache): New function.
12864         (mips_mdebug_frame_this_id): New function.
12865         (mips_mdebug_frame_prev_register): New function.
12866         (mips_mdebug_frame_unwind): Define.
12867         (mips_mdebug_frame_sniffer): New function.
12868         (mips_mdebug_frame_base_address): New function.
12869         (mips_mdebug_frame_base): Define.
12870         (mips_mdebug_frame_base_sniffer): New function.
12871         (mips_gdbarch_init): Append unwind and base sniffers.  Set
12872         unwind_dummy_id.
12873
12874 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12875
12876         * frame.c: Print both the register number and name.
12877
12878         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
12879         and a sed into a single sed.  Make .c and .o patterns more robust.
12880         (OBS): Delete.
12881         (INIT_FILES): Replace OBS with COMMON_OBS.
12882         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12883
12884 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
12885
12886         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12887         the PT_WCOOKIE request.
12888
12889 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12890
12891         * mips-tdep.c (mips_unwind_pc): New function.
12892         (mips_gdbarch_init): Set mips_unwind_pc.
12893
12894         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12895         (get_frame_id): Allow the UNKNOWN_FRAME.
12896         (frame_register_unwind, get_frame_type): Ditto.
12897
12898         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12899         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
12900         unwind_dummy_id indicates a legacy frame.
12901
12902         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12903         * configure: Re-generate.
12904
12905         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12906         methods.
12907
12908 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12909
12910         * configure.in (CONFIG_ALL): Set to Makefile target, and not
12911         makefile macro.
12912         * configure: Re-generate.
12913         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12914         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12915         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12916         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12917         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12918         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12919         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12920         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12921         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12922         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12923
12924 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12925
12926         * Makefile.in: Update all dependencies.
12927
12928         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12929         * configure: Re-generate.
12930         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12931         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12932         (COMMON_OBS): Add "main.o" and "annotate.o".
12933         (ANNOTATE_OBS): Delete.
12934         (OBS): Remove ANNOTATE_OBS.
12935         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12936         CONFIG_INITS.
12937         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12938         against CONFIG_OBS and "main.o".
12939         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12940         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12941
12942         * tui/tui-command.c: Include "gdb_string.h", delete register
12943         attribute, use ISO-C function signatures.
12944         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12945         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12946         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12947         * tui/tui.c: Ditto.
12948
12949         * tui/tui-command.c: Change variable and function names to lower
12950         case.
12951         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12952         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12953         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12954         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12955         * tui/tui-winsource.c, tui/tui.c: Ditto.
12956
12957 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
12958
12959         * buildsym.c (free_pending_blocks, finish_block)
12960         (record_pending_block, make_blockvector, end_symtab): Replace
12961         symbol_obstack with objfile_obstack.
12962         * coffread.c (process_coff_symbol, coff_read_struct_type)
12963         (coff_read_enum_type): Ditto.
12964         * cp-namespace.c (initialize_namespace_symtab)
12965         (check_one_possible_namespace_symbol): Ditto.
12966         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12967         (dwarf2_symbol_mark_computed): Ditto.
12968         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12969         * elfread.c (elf_symtab_read): Ditto.
12970         * hpread.c (hpread_symfile_init, hpread_symfile_init)
12971         (hpread_read_enum_type, hpread_read_function_type)
12972         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12973         Ditto.
12974         * jv-lang.c (get_java_class_symtab, add_class_symbol)
12975         (java_link_class_type): Ditto.
12976         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12977         (new_symbol): Ditto.
12978         * minsyms.c (install_minimal_symbols): Ditto.
12979         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12980         (terminate_minimal_symbol_table): Replace symbol_obstack with
12981         objfile_obstack.
12982         (free_objfile): Remove freeing of symbol_obstack.
12983         * objfiles.h: Remove symbol_obstack field.
12984         * pa64solib.c (add_to_solist): Replace symbol_obstack with
12985         objfile_obstack.
12986         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12987         symbol_obstack.
12988         (solib_add_common_symbols): Replace symbol_obstack with
12989         objfile_obstack.
12990         * somsolib.c (som_solib_add): Ditto.
12991         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12992         (common_block_start, common_block_end): Ditto.
12993         * symfile.c (reread_symbols): Remove freeing and init of
12994         symbol_obstack.
12995         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12996         * symfile.h: Update comment.
12997         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12998         stats printing.
12999         * symtab.c (symbol_set_names): Replace symbol_obstack with
13000         objfile_obstack.
13001         * symtab.h (struct general_symbol_info, struct minimal_symbol):
13002         Update comments.
13003         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
13004         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
13005         objfile_obstack.
13006
13007 2004-02-07  Andrew Cagney  <cagney@redhat.com>
13008
13009         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
13010         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
13011         fields and variables.
13012         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
13013         (m_beInvisible): Delete macro.
13014         * tui/tui-data.h: Fix case case fields and variables.
13015         (m_genWinPtrIsNull): Delete macro.
13016         (tui_win_list): Rename winList.
13017         (TUI_SRC_WIN): Rename srcWin.
13018         (TUI_DISASM_WIN): Rename disassemWin.
13019         (TUI_DATA_WIN): Rename dataWin.
13020         (TUI_CMD_WIN): Rename cmdWin.
13021         (m_genWinPtrNotNull): Delete macro.
13022         (m_winPtrIsNull): Delete macro.
13023         (m_winPtrNotNull): Delete macro.
13024         (tui_win_is_source_type): Replace m_winIsSourceType
13025         (tui_win_is_auxillary): Replace m_winIsAuzillary.
13026         (tui_win_has_locator): Replace m_hasLocator.
13027         (tui_set_win_highlight): Replace m_setWinHighlightOn and
13028         m_setWinHighlightOff.
13029         * tui/tui-data.c: Update references.
13030         (tui_win_is_source_type, tui_set_win_highlight): New functions.
13031         (tui_win_has_locator, tui_win_is_auxillary): New functions.
13032         * tui/tui-command.c, tui/tui-disasm.c: Update references.
13033         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
13034         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
13035         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13036         * tui/tui-winsource.c, tui/tui.c: Ditto.
13037
13038 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
13039
13040         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
13041         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
13042         StackGhost.
13043
13044         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
13045         variable `i6' to `i7'.
13046         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13047
13048 2004-02-07  Andrew Cagney  <cagney@redhat.com>
13049
13050         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
13051         (TuiPoint, TuiPointPtr): Ditto.
13052         (TuiStatus, TuiStatusPtr): Ditto.
13053         (TuiWinType, TuiWinTypePtr): Ditto.
13054         (struct tui_point): Rename _TuiPoint.
13055         (tui_get_low_disassembly_address): Rename
13056         tuiGetLowDisassemblyAddress.
13057         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
13058         (tuiFree): Delete declaration.
13059         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
13060         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
13061         * tui/tui.c (tuiFree): Delete function.
13062         * cli/cli-cmds.c (disassemble_command): Update references.
13063         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
13064         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
13065         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
13066         * tui/tui-winsource.c: Ditto.
13067
13068 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
13069
13070         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
13071         coffstab_build_psymtabs, elfstab_build_psymtabs)
13072         (stabsect_build_psymtabs): Replace psymbol_obstack with
13073         objfile_obstack.
13074         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
13075         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
13076         Ditto.
13077         * dwarfread.c (scan_compilation_units): Ditto.
13078         * elfread.c (elfstab_offset_sections): Ditto.
13079         * hppa-tdep.c (read_unwind_info): Ditto.
13080         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
13081         (hpread_end_psymtab): Ditto.
13082         * mdebugread.c (mdebug_build_psymtabs, add_pending)
13083         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
13084         Ditto.
13085         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
13086         * objfiles.c (add_to_objfile_sections)
13087         (build_objfile_section_table): Ditto.
13088         (allocate_objfile): Remove init of psymbol_obstack.
13089         (free_objfile): Remove freeing of psymbol_obstack.
13090         * objfiles.h (struct objfile): Remove field
13091         psymbol_obstack. Update comments.
13092         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
13093         psymbol_obstack with objfile_obstack.
13094         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13095         psymbol_obstack.
13096         * somread.c (som_symfile_offsets, init_import_symbols)
13097         (init_export_symbols): Replace psymbol_obstack with
13098         objfile_obstack.
13099         * somsolib.c (som_solib_add_solib_objfile): Ditto.
13100         * symfile.c (default_symfile_offsets, syms_from_objfile)
13101         (reread_symbols): Remove freeing and init of psymbol_obstack.
13102         (cashier_psymtab): Update comment.
13103         * symmisc.c (print_objfile_statistics): Don't report stats for
13104         psymbol obstack.
13105         * symtab.h (struct general_symbol_info, struct partial_symtab):
13106         Update comments.
13107         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
13108         (xcoff_symfile_offsets): Replace psymbol_obstack with
13109         objfile_obstack.
13110
13111 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
13112
13113         * objfiles.h (struct objfile): Add objfile_obstack field.
13114         Remove type_obstack field.
13115
13116         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13117         read_structure_scope read_enumeration, new_symbol): Replace
13118         type_obstack with objfile_obstack.
13119         * dwarfread.c (struct_type, enum_type): Ditto.
13120         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13121         (lookup_fundamental_type): Ditto.
13122         * gdbtypes.h (TYPE_ALLOC): Ditto.
13123         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13124         (hpread_read_doc_function_type, hpread_read_struct_type)
13125         (fix_static_member_physnames, hpread_read_array_type)
13126         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13127         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13128         (java_link_class_type): Ditto.
13129         * mdebugread.c (parse_type): Ditto.
13130         * objfiles.c (allocate_objfile, free_objfile): Ditto.
13131         * solib-sunos.c (solib_add_common_symbols): Ditto.
13132         * stabsread.c (define_symbol, read_type, read_member_functions,
13133         read_cpp_abbrev, read_one_struct_field): Ditto.
13134         * symfile.c (reread_symbols): Ditto.
13135         * symmisc.c (print_objfile_statistics): Ditto.
13136
13137 2004-02-07  Andrew Cagney  <cagney@redhat.com>
13138
13139         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13140         (tui_exec_info_content): Rename TuiExecInfoContent.
13141         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13142         (TuiWinInfo, TuiWinInfoPtr): Ditto.
13143         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13144         (TuiList, TuiListPtr): Ditto.
13145         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13146         (TuiDataType, TuiDataTypePtr): Ditto.
13147         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13148         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13149         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13150         (TuiSourceElement, TuiSourceElementPtr): Ditto.
13151         (TuiDataElement, TuiDataElementPtr): Ditto.
13152         (TuiWinElement, TuiWinElementPtr): Ditto.
13153         (TuiDataInfo, TuiDataInfoPtr): Ditto.
13154         (TuiCommandElement, TuiCommandElementPtr): Ditto.
13155         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13156         (TuiWhichElement, TuiWhichElementPtr): Ditto.
13157         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13158         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13159         * tui/tui-command.c, tui/tui-data.c: Update references.
13160         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13161         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13162         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13163         * tui/tui-winsource.c, tui/tui.c: Ditto.
13164
13165 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
13166
13167         * dwarf2-frame.h: Update copyright.
13168         (enum dwarf2_frame_reg_rule): New.
13169         (struct dwarf2_frame_state_reg): New.
13170         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13171         * dwarf2-frame.c: Update copyright.
13172         (enum dwarf2_reg_rule): Remove.
13173         (struct dwarf2_frame_state): Remove defenition of `struct
13174         dwarf2_frame_state_reg'.
13175         (read_reg): Call get_frame_arch to get the architecture instead of
13176         using CURRENT_GDBARCH.
13177         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13178         DWARF2_FRAME_.
13179         (dwarf2_frame_init_reg): New function.
13180         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13181         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
13182         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
13183         tags with DWARF2_FRAME_.
13184         (dwarf2_frame_prev_register): Call get_frame_arch to get the
13185         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
13186         dwarf2_reg_rule' tags with DWARF2_FRAME_.
13187
13188 2004-02-06  Andrew Cagney  <cagney@redhat.com>
13189
13190         * tui/tui-data.h (struct tui_list): Rename _TuiList.
13191         (enum tui_data_type): Rename _TuiDataType.
13192         (struct tui_layout_def): Rename _TuiLayoutDef.
13193         (struct tui_source_element): Rename _TuiSourceElement.
13194         (struct tui_data_element): Rename _TuiDataElement.
13195         (struct tui_command_element): Rename _TuiCommandElement.
13196         (struct tui_locator_element): Rename _TuiLocatorElement.
13197         (union tui_which_element): Define.
13198         (struct tui_win_element): Rename _TuiWinElement.
13199         (struct tui_data_info): Rename _TuiDataInfo.
13200         (struct tui_source_info): Rename _TuiSourceInfo.
13201         (struct tui_command_info): Rename _TuiCommandInfo.
13202         (tui_initialize_static_data): Rename initializeStaticData.
13203         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13204         (tui_alloc_win_info): Rename allocWinInfo.
13205         (tui_init_generic_part): Rename initGenericPart.
13206         (tui_init_win_info): Rename initWinInfo.
13207         (tui_alloc_content): Rename allocContent.
13208         (tui_add_content_elements): Rename addContentElements.
13209         (tui_init_content_element): Rename initContentElement.
13210         (tui_free_window): Rename freeWindow.
13211         (tui_free_win_content): Rename freeWinContent.
13212         (tui_free_data_content): Rename freeDataContent.
13213         (tui_free_all_source_wins_content): Rename
13214         freeAllSourceWinsContent.
13215         (tui_del_window): Rename tuiDelWindow.
13216         (tui_del_data_windows): Rename tuiDelDataWindows.
13217         (tui_partial_win_by_name): Rename partialWinByName.
13218         (tui_win_name): Rename winName.
13219         (tui_current_layout): Rename currentLayout.
13220         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13221         (tui_term_height): Rename termHeight.
13222         (tui_set_term_height_to): Rename setTermHeightTo.
13223         (tui_term_width): Rename termWidth.
13224         (tui_set_term_width_to): Rename setTermWidthTo.
13225         (tui_set_gen_win_origin): Rename setGenWinOrigin.
13226         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13227         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13228         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13229         (tui_source_windows): Rename sourceWindows.
13230         (tui_clear_source_windows): Rename clearSourceWindows.
13231         (tui_clear_source_windows_detail): Rename
13232         clearSourceWindowsDetail.
13233         (tui_clear_win_detail): Rename clearWinDetail.
13234         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13235         (tui_default_tab_len): Rename tuiDefaultTabLen.
13236         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13237         (tui_win_with_focus): Rename tuiWinWithFocus.
13238         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13239         (tui_layout_def): Rename tuiLayoutDef.
13240         (tui_win_resized): Rename tuiWinResized.
13241         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13242         (tui_next_win): Rename tuiNextWin.
13243         (tui_prev_win): Rename tuiPrevWin.
13244         (tui_add_to_source_windows): Rename addToSourceWindows.
13245         * tui/tui-winsource.c, tui/tui-win.c: Update references.
13246         * tui/tui-layout.c, tui/tui-source.c: Ditto.
13247         * tui/tui-stack.c, tui/tui-io.c: Ditto.
13248         * tui/tui.c, tui/tui-data.c: Ditto.
13249         * tui/tui-interp.c, tui/tui-data.c: Ditto.
13250         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13251
13252         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
13253         (struct symtab): Declare.
13254         (tui_set_source_content): Rename tuiSetSourceContent.
13255         (tui_show_symtab_source): Rename tuiShowSource.
13256         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13257         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13258         * tui/tui-source.c: Update copyright.  Update references.
13259         * tui/tui-win.c, tui/tui-winsource.c: Update references.
13260         * tui/tui-stack.c: Update references.
13261
13262         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
13263         (struct tui_win_info): Declare.
13264         (tui_scroll_forward): Rename tuiScrollForward.
13265         (tui_scroll_backward): Rename tuiScrollBackward.
13266         (tui_scroll_left): Rename tuiScrollLeft.
13267         (tui_scroll_right): Rename tuiScrollRight.
13268         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13269         (tui_resize_all): Rename tuiResizeAll.
13270         (tui_refresh_all_win): Rename tuiRefreshAll.
13271         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13272         * tui/tui-layout.c, * tui/tui-io.c: Update references.
13273         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13274         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13275
13276         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
13277         (tui_erase_data_content): Rename tuiEraseDataContent.
13278         (tui_display_all_data): Rename tuiDisplayAllData.
13279         (tui_check_data_values): Rename tuiCheckDataValues.
13280         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13281         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13282         (tui_first_data_element_no_in_line): Rename
13283         tuiFirstDataElementNoInLine.
13284         (tui_delete_data_content_windows): Rename
13285         tuiDeleteDataContentWindows.
13286         (tui_refresh_data_win): Rename tuiRefreshDataWin.
13287         (tui_display_data_from): Rename tuiDisplayDataFrom.
13288         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13289         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13290         * tui/tui-win.c, tui/tui-regs.c: Update references.
13291         * tui/tui-layout.c, tui/tui.c: Update references.
13292
13293         * tui/tui-wingeneral.h: Update copyright.
13294         (m_allBeVisible): Delete macro.
13295         (m_allBeInvisible): Delete macro.
13296         (struct tui_gen_win_info): Declare.
13297         (struct tui_win_info): Declare.
13298         (tui_unhighlight_win): Rename unhighlightWin.
13299         (tui_make_visible, tui_make_invisible): Replace makeVisible.
13300         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13301         (tui_make_window): Rename makeWindow.
13302         (tui_copy_win): Rename copyWin.
13303         (tui_box_win): Rename boxWin.
13304         (tui_highlight_win): Rename highlightWin.
13305         (tui_check_and_display_highlight_if_needed): Rename
13306         checkAndDisplayHighlightIfNeeded.
13307         (tui_refresh_all): Rename refreshAll.
13308         (tui_delete_win): Rename tuiDelwin.
13309         (tui_refresh_win): Rename tuiRefreshWin.
13310         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13311         (tui_make_visible, tui_make_invisible): New functions.
13312         (tui_make_all_visible, tui_make_all_invisible): New functions.
13313         (make_all_visible): Rename makeAllVisible.
13314         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13315         * tui/tui-data.c, tui/tui-winsource.c: Update references.
13316         * tui/tui-windata.c, tui/tui-win.c: Update references.
13317         * tui/tui-regs.c, tui/tui-layout.c: Update references.
13318         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13319
13320 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
13321
13322         * proc-api.c (write_with_trace): Initialize local variable to
13323         silence compiler warning.
13324
13325 2004-02-06  Andrew Cagney  <cagney@redhat.com>
13326
13327         * tui/tui-source.h: Do not include "defs.h".
13328         (struct tui_win_info): Declare.
13329         (tui_set_source_content_nil): Declare.
13330         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13331         (union tui_line_or_address): Rename _TuiLineOrAddress.
13332         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
13333         (tui_update_source_window): Rename tuiUpdateSourceWindow.
13334         (tui_update_source_window_as_is): Rename
13335         tuiUpdateSourceWindowAsIs.
13336         (tui_update_source_windows_with_addr): Rename
13337         tuiUpdateSourceWindowsWithAddr.
13338         (tui_update_source_windows_with_line): Rename
13339         tuiUpdateSourceWindowsWithLine.
13340         (tui_clear_source_content): Rename tuiClearSourceContent.
13341         (tui_erase_source_content): Rename tuiEraseSourceContent.
13342         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13343         (tui_show_source_content): Rename tuiShowSourceContent.
13344         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13345         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13346         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13347         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13348         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13349         (tui_update_exec_info): Rename tuiUpdateExecInfo.
13350         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13351         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13352         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13353         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13354         (struct tui_win_info): Declare.
13355         * tui/tui-stack.c: Update references.
13356         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13357         * tui/tui-win.c, tui/tui-source.c: Ditto.
13358         * tui/tui.c, tui/tui-disasm.c: Ditto.
13359
13360 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
13361
13362         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13363         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
13364
13365 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
13366
13367         * infrun.c (handle_inferior_event): Allow for breakpoint
13368         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13369         and SIGEMT.  Update comments.
13370         * NEWS (Revised SPARC target): Mention support for non-executable
13371         stack.
13372
13373 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
13374
13375         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13376         * inftarg.c: Update copyright year.
13377         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13378         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13379         (sparc_xfer_wcookie): New function.
13380         * sparc-tdep.c (sparc_fetch_wcookie): New function.
13381         * Makefile.in (sparc-nat.o): Update dependencies.
13382         * config/sparc/nm-nbsd.h: Include "target.h".
13383         (NATIVE_XFER_WCOOKIE): New define.
13384         (sparc_xfer_wcookie): New prototype.
13385
13386 2004-02-04  Andrew Cagney  <cagney@redhat.com>
13387
13388         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13389         SYSCALL_TRAP function.
13390         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13391
13392 2004-02-04  Andrew Cagney  <cagney@redhat.com>
13393             Daniel Jacobowitz  <drow@mvista.com>
13394
13395         * objfiles.h: Delete comments refering to inside_entry_func and
13396         DEPRECATED_FRAME_CHAIN_VALID.
13397         * defs.h (inside_entry_func): Update prototype..
13398         * blockframe.c (inside_entry_func): Rename to
13399         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
13400         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13401
13402 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
13403
13404         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
13405         outside of #ifdef SOLIB_ADD region.
13406         (do_restore_lang_radix_cleanup): Ditto.
13407         (resolve_pending_breakpoint): Ditto.
13408
13409 2004-02-03  Andrew Cagney  <cagney@redhat.com>
13410
13411         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13412         (process_note_abi_tag_sections): Delete unused function.
13413         (ia64_read_fp): Delete unused function.
13414         (gdbarch_extract_struct_value_address): Delete declaration.
13415
13416 2004-02-02  Andrew Cagney  <cagney@redhat.com>
13417
13418         * vax-tdep.c (vax_frame_chain): Delete call to
13419         deprecated_inside_entry_file.
13420         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13421
13422 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
13423
13424         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13425         column that's "empty" or "same value" when eliminating REG_RA
13426         rules.
13427
13428 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
13429
13430         * NEWS: Add information about new pending breakpoint support.
13431
13432 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
13433
13434         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13435         and pending fields for pending breakpoint support.
13436         * breakpoint.c (breakpoint_enabled): Add check for not pending.
13437         (condition_command): Only parse condition if not a pending
13438         breakpoint.
13439         (print_one_breakpoint): Add support for pending breakpoints.
13440         (describe_other_breakpoints): Add checks to verify we are not
13441         dealing with pending breakpoints.
13442         (check_duplicates): Don't check pending breakpoints.
13443         (set_raw_breakpoint): Initialize pending flag.
13444         (do_restore_lang_radix_cleanup): New cleanup routine.
13445         (resolve_pending_breakpoint): New function.
13446         (re_enable_breakpoints_in_shlibs): Try and resolve any
13447         pending breakpoints via resolve_pending_breakpoint.
13448         (mention): Add pending breakpoint support.
13449         (parse_breakpoint_sals): Add new parameter to pass to
13450         decode_line_1 to indicate silent errors when files or functions
13451         are not found.  Change all callers.
13452         (do_captured_parse_breakpoint): New function.
13453         (break_command_1): Change prototype to return an rc value and to
13454         take an optional pending breakpoint pointer.  Support creating
13455         a pending breakpoint if a "not found" form of error occurs when
13456         parsing the breakpoint.  Also support resolving an existing pending
13457         breakpoint and be silent if the resolution fails.
13458         (create_breakpoints): Change prototype to take pending breakpoint
13459         pointer.  When resolving a pending breakpoint, use the new pointer
13460         to provide a conditional or commands added by the end-user.
13461         (delete_breakpoint): Add appropriate check for pending.
13462         (breakpoint_re_set_one): Ditto.
13463         (do_enable_breakpoint): Ditto.
13464
13465 2004-02-02  David Carlton  <carlton@kealia.com>
13466
13467         * valops.c (enum oload_classification): New.
13468         (find_overload_match): Break implementation into separate
13469         functions; delete #if 0'd code; look for symbols within
13470         namespaces.
13471         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13472         (find_oload_champ,oload_method_static,classify_oload_match): New.
13473         * cp-support.h: Add declaration for cp_func_name; update
13474         declaration for make_symbol_overload_list.
13475         * cp-support.c (cp_func_name): New.
13476         (overload_list_add_symbol): Fix comment, use
13477         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13478         (make_symbol_overload_list): Take a function name and a namespace
13479         instead of a symbol; change implementation.
13480         (make_symbol_overload_list_using): New.
13481         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13482
13483 2004-02-02  Fred Fish  <fnf@redhat.com>
13484
13485         * main.c (gdb_stdtarg): Move definition to group with other
13486         gdb_stdtarg definitions and update copyright years.
13487         * remote-sim.c (gdb_os_write_stderr): Write output to
13488         gdb_stdtargerr stream instead of gdb_stdtarg stream.
13489         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13490         gdb_stderr stream and update copyright years.
13491
13492 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13493
13494         * Makefile.in (mips-linux-nat.o): Update dependencies.
13495         * mips-linux-nat.c: Include mips-tdep.h.
13496
13497 2004-02-01  Roland McGrath  <roland@redhat.com>
13498
13499         * sol-thread.c (sol_thread_xfer_partial): New function.
13500         (init_sol_thread_ops): Use that for to_xfer_partial hook.
13501         (init_sol_core_ops): Likewise.
13502
13503         * procfs.c (procfs_xfer_partial): New function.
13504         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13505         * Makefile.in (procfs.o): Add $(auxv_h) dep.
13506
13507         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13508         procfs_xfer_auxv function.
13509
13510         * procfs.c (procfs_make_note_section): If we can read
13511         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13512         * linux-proc.c (linux_make_note_section): Likewise.
13513
13514         * auxv.h: New file.
13515         * auxv.c: New file.
13516         * Makefile.in (auxv_h): New variable.
13517         (COMMON_OBS): Add auxv.o here.
13518         (auxv.o): New target.
13519
13520         * corelow.c (core_xfer_partial): New function.
13521         (init_core_ops): Use it for core_ops.to_xfer_partial.
13522
13523         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13524         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13525         macro if that is defined.
13526
13527 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13528
13529         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13530         and check the specified thread for each breakpoint.
13531         * breakpoint.h (bpstat_stop_status): Update prototype.
13532         * infrun.c (handle_inferior_event): Update calls to
13533         bpstat_stop_status.
13534
13535 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13536
13537         * Makefile.in (cli-cmds.o): Add $(readline_h).
13538
13539 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13540
13541         * cli/cli-cmds.c: Include readline.h.
13542         (complete_command): Pass the start of the last word to
13543         complete_line.
13544
13545 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13546
13547         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13548         argument, and change first argument to a CORE_ADDR.
13549         * breakpoint.h (bpstat_stop_status): Update prototype.
13550         * infrun.c (adjust_pc_after_break): Add a new comment.
13551         (handle_inferior_event): Update calls to bpstat_stop_status.
13552
13553 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13554
13555         * breakpoint.h: Update copyright years.
13556
13557 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13558
13559         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13560         (bpstat_stop_status): Don't decrement PC.
13561         * breakpoint.h (software_breakpoint_inserted_here_p): Add
13562         prototype.
13563         * infrun.c (adjust_pc_after_break): New function.
13564         (handle_inferior_event): Call it, early.  Remove later references
13565         to DECR_PC_AFTER_BREAK.
13566         (normal_stop): Add commentary.
13567
13568 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13569
13570         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13571         2004-01-27 double-free fix.
13572
13573 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
13574
13575         * sparc-tdep.c (sparc_fetch_wcookie): New function.
13576         (sparc32_frame_prev_register): Handle StackGhost.
13577         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13578
13579 2004-01-29  Roland McGrath  <roland@redhat.com>
13580
13581         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13582         * configure: Regenerated.
13583
13584         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13585         * Makefile.in (procfs.o): Add dep.
13586
13587 2004-01-28  Andrew Cagney  <cagney@redhat.com>
13588
13589         * tui/tui-stack.h: Update copyright.
13590         (struct frame_info): Add opaque declaration.
13591         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13592         (tui_show_locator_content): Rename tuiShowLocatorContent.
13593         (tui_show_frame_info): Rename tuiShowFrameInfo.
13594         * tui/tui-stack.c: Update copyright.  Update references.
13595         * tui/tui-winsource.c: Update references.
13596         * tui/tui-win.c: Update references.
13597         * tui/tui-layout.c: Update references.
13598         * tui/tui-hooks.c: Update copyright, update references.
13599         * tui/tui.c: Update copyright, update references.
13600         * tui/tui-disasm.c: Update references.
13601
13602 2004-01-28  David Carlton  <carlton@kealia.com>
13603
13604         * dwarf2read.c (add_partial_structure): Use demangled name if
13605         namespace equals "".
13606
13607 2004-01-27  Jim Blandy  <jimb@redhat.com>
13608
13609         Clean up misapplied patch:
13610         * dwarf2read.c (determine_prefix): Change one of the two forward
13611         declarations for 'determine_prefix_aux' to a declaration for this.
13612         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
13613         argument to 'die_specification'.
13614
13615         * dwarf2read.c (read_func_scope): Re-indent comment.
13616
13617 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
13618
13619         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13620         b->exp to NULL after freeing so that error during re-parsing or
13621         evaluation of expressions associated with breakpoint don't
13622         eventually lead to re-freeing of storage.
13623         Committed by Andrew Cagney.
13624
13625 2004-01-27  Andrew Cagney  <cagney@redhat.com>
13626
13627         * source.c (ambiguous_line_spec): Delete undefined declaration.
13628         * m32r-rom.c (m32r_set_board_address): Delete unused function.
13629         (m32r_set_server_address, m32r_set_download_path): Ditto.
13630         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13631
13632 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
13633
13634         * dwarf2read.c: Update calls to changed and renamed functions, and
13635         references to moved variables.
13636
13637         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13638         language, language_defn, list_in_scope, and ftypes members.
13639         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13640         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13641         (baseaddr): Remove globals.
13642
13643         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
13644         (set_cu_language, die_is_declaration, die_specification)
13645         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13646         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13647         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13648         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13649
13650         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
13651         cu.list_in_scope.  Don't initialize cu_header_offset.
13652         (add_partial_symbol): Add local baseaddr.
13653         (psymtab_to_symtab_1): Add local baseaddr.  Use
13654         objfile->section_offsets for consistency.  Don't initialize
13655         cu_header_offset; do initialize cu.header.offset and
13656         cu.list_in_scope.
13657         (read_file_scope, read_func_scope, read_lexical_block_scope)
13658         (dwarf_decode_lines, new_symbol): Add local baseaddr.
13659
13660 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
13661
13662         * PROBLEMS: Add gdb/1516.
13663
13664 2003-12-29  Robert Millan  <robertmh@gnu.org>
13665
13666         Patch committed by Andrw Cagney.
13667         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13668         * configure.tgt: Match knetbsd*-gnu.
13669
13670 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13671
13672         * breakpoint.c (catch_command_1): Delete #ifdef code.
13673         (catch_fork_command_1): Delete #ifdef wrapper.
13674         (catch_exec_command_1): Ditto.
13675         (catch_load_command_1): Ditto.
13676         (catch_unload_command_1): Ditto.
13677
13678         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13679         (catch_breakpoint): Delete #if0ed function.
13680         (disable_catch_breakpoint): Ditto.
13681         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13682         (disable_catch, enable_catch, delete_catch): Ditto.
13683
13684 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13685
13686         * remote.c (echo_check, quit_flag): Delete variables.
13687         (cisco_kernel_mode): Delete variable.
13688         (minitelnet_return, tty_input, escape_count): Delete variables.
13689         (remote_cisco_mode): Delete variable.
13690         (remote_cisco_open, remote_cisco_close): Delete function.
13691         (remote_cisco_mourn, remote_cisco_wait): Delete function.
13692         (init_remote_cisco_ops): Delete function.
13693         (_initialize_remote): Do not install "remote cisco" code.
13694         (read_frame): Delete cisco specific code.
13695         (remote_info_process): Delete function.
13696         (remote_wait): Delete cisco specific code.
13697         (remote_cisco_section_offsets): Delete function.
13698         (remote_cisco_objfile_relocate): Delete function.
13699         (remote_async_wait): Delete cisco specific code.
13700         (minitelnet, readtty, readsocket): Delete function.
13701
13702 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13703
13704         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
13705         comments mentioning extract_returned_value_address.
13706         * infcmd.c (print_return_value): Update.  Add comments on
13707         extract_returned_value_address.
13708         * stack.c (return_command): Add comments on
13709         extract_returned_value_address.
13710         * values.c: Update comment.
13711         * m32r-tdep.c: Update comment.
13712         * sparc-tdep.c: Update comment.
13713         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13714         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13715         * sh64-tdep.c (sh64_gdbarch_init): Update.
13716         * sh-tdep.c (sh_gdbarch_init): Update.
13717         * s390-tdep.c (s390_gdbarch_init): Update.
13718         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13719         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13720         * m68k-tdep.c (m68k_gdbarch_init): Update.
13721         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13722         * m32r-tdep.c (m32r_gdbarch_init): Update.
13723         * ia64-tdep.c (ia64_gdbarch_init): Update.
13724         * h8300-tdep.c (h8300_gdbarch_init): Update.
13725         * frv-tdep.c (frv_gdbarch_init): Update.
13726         * arm-tdep.c (arm_gdbarch_init): Update.
13727         * alpha-tdep.c (alpha_gdbarch_init): Update.
13728
13729 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13730
13731         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13732         SYMBOL_LOCATION_FUNCS
13733         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13734         "struct symbol_ops".
13735         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13736         type to "struct symbol_ops".
13737         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13738         (struct symbol): Replace ".aux_value.loc.funcs" and
13739         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13740         (SYMBOL_OBJFILE): Delete macro.
13741         (SYMBOL_LOCATION_FUNCS): Delete macro.
13742         (SYMBOL_LOCATION_BATON): Update.
13743         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13744         intead of SYMBOL_LOCATION_FUNCS.
13745         * ax-gdb.c (gen_var_ref): Ditto.
13746         * printcmd.c (address_info): Ditto.
13747         * findvar.c (read_var_value): Ditto.
13748         (symbol_read_needs_frame): Ditto.
13749
13750 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13751
13752         * dwarf2read.c (read_func_scope): Document frame-base hack.
13753
13754 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13755
13756         * infcmd.c (print_return_value): Plug memory leak; delete
13757         ui_stream object.  Rename argument `structure_return' to
13758         `struct_return'.
13759
13760 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13761
13762         * infcmd.c (print_return_value): Wrap long lines.
13763         (finish_command_continuation, finish_command): Remove unused
13764         variable `funcaddr'.  Fix some coding-standards problems.
13765
13766         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13767         SECT_SIZE is large enough, not whether it's exactly the right size.
13768         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13769         TDEP->fpregset to zero.
13770
13771         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13772         floating-point registers for traditional NetBSD core files.
13773         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13774         TDEP->sizeof_fpregset here.
13775
13776 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13777
13778         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13779         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13780         function with code split out from
13781         sparc32nbsd_sigcontext_frame_cache.
13782         (sparc32nbsd_sigcontext_frame_cache): Use
13783         sparc32nbsd_sigcontext_saved_regs.
13784         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13785         OpenBSD.
13786         * sparcobsd-tdep.c: New file.
13787         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13788         (sparcobsd-tdep.o): New dependency.
13789         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13790         * config/sparc/obsd.mt: New file.
13791
13792         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13793         TDEP->fpregset to be initialized to enable core file register
13794         sets.
13795
13796 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
13797
13798         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13799         Add opaque declarations.
13800         (sparc64nbsd_sigcontext_saved_regs): New prototype.
13801         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13802         function with code split out from
13803         sparc64nbsd_sigcontext_frame_cache.
13804         (sparc64nbsd_sigcontext_frame_cache): Use
13805         sparc64nbsd_sigcontext_saved_regs.
13806         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13807         OpenBSD.
13808         * sparc64obsd-tdep.c: New file.
13809         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13810         (sparc64obsd-tdep.o): New dependency.
13811         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13812         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13813         * config/sparc/obsd64.mt: New file.
13814
13815         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13816         read the instruction at PC.
13817
13818         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13819         value of GDB_OSABI_DEFAULT.
13820         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13821         instead of GDB_OSABI_NETBSD_AOUT.
13822
13823 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
13824
13825         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13826         copyright.
13827
13828 2004-01-23  Andrew Cagney  <cagney@redhat.com>
13829
13830         * printcmd.c (display_command): Replace tui_set_display call with
13831         tui_set_layout_for_display_command.
13832         * tui/tui.h (enum tui_win_type): Define.
13833         (tui_set_layout): Delete declaration.
13834         (tui_set_layout_for_display_command): Rename set_tui_layout.
13835         * tui/tui-data.h (enum tui_layout_type): Define.
13836         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
13837         "tui.h".
13838         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13839         (tui_default_win_height): Rename tuiDefaultWinHeight.
13840         (tui_default_win_viewport_height): Rename
13841         tuiDefaultWinViewportHeight.
13842         (tui_set_layout): RenametuiSetLayout.
13843         * tui/tui-layout.c: Update references.
13844         * tui/tui.c: Update references.
13845         * tui/tui-disasm.c: Update references.
13846
13847 2004-01-23  David Carlton  <carlton@kealia.com>
13848
13849         Partial workaround for PR c++/1511:
13850         * cp-namespace.c: Include frame.h.
13851         (cp_lookup_transparent_type): New
13852         (cp_lookup_transparent_type_loop): New.
13853         * cp-support.h: Declare cp_lookup_transparent_type.
13854         * symtab.c (basic_lookup_transparent_type): Renamed from
13855         lookup_transparent_type.
13856         (lookup_transparent_type): Replace old body by a call to
13857         current_language->la_lookup_transparent_type.
13858         * symtab.h: Update copyright.  Declare
13859         basic_lookup_transparent_type.
13860         * language.h: Update copyright.
13861         (struct language_defn): Add la_lookup_transparent_type.
13862         * language.c: Update copyright.
13863         (unknown_language_defn): Add basic_lookup_transparent_type.
13864         (auto_language_defn): Add basic_lookup_transparent_type.
13865         (local_language_defn): Add basic_lookup_transparent_type.
13866         * ada-lang.c: Update copyright.
13867         (ada_language_defn): Add basic_lookup_transparent_type.
13868         * c-lang.c: Update copyright.
13869         (c_language_defn): Add basic_lookup_transparent_type.
13870         (cplus_language_defn): Add basic_lookup_transparent_type.
13871         (asm_language_defn): Add basic_lookup_transparent_type.
13872         (minimal_language_defn): Add basic_lookup_transparent_type.
13873         * f-lang.c: Update copyright.
13874         (f_language_defn): Add basic_lookup_transparent_type.
13875         * jv-lang.c: Update copyright.
13876         (java_language_defn): Add basic_lookup_transparent_type.
13877         * m2-lang.c: Update copyright.
13878         (m2_language_defn): Add basic_lookup_transparent_type.
13879         * objc-lang.c: Update copyright.
13880         (objc_language_defn): Add basic_lookup_transparent_type.
13881         * p-lang.c: Update copyright.
13882         (p_language_defn): Add basic_lookup_transparent_type.
13883         * scm-lang.c: Update copyright.
13884         (scm_language_defn): Add basic_lookup_transparent_type.
13885         * Makefile.in (cp-namespace.o): Depend on frame.h.
13886
13887 2004-01-23  David Carlton  <carlton@kealia.com>
13888
13889         Patch for PR c++/1520:
13890         * dwarf2read.c (read_func_scope): Set processing_current_prefix
13891         properly if we have a specification die.
13892         (determine_prefix_aux): Rename from determine_prefix.
13893         (determine_prefix): Like the old determine_prefix, but never
13894         returns NULL.
13895
13896 2004-01-23  Theodore A. Roth  <troth@openavr.org>
13897
13898         * avr-tdep.c: Update copyright.
13899         (avr_iaddr_p): Delete unused function.
13900         (avr_saddr_p): Delete unused function.
13901
13902 2004-01-23  David Carlton  <carlton@kealia.com>
13903
13904         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13905         Fix for PR symtab/1534.
13906
13907 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
13908
13909         * NEWS (New native configurations): Mention OpenBSD/sparc and
13910         OpenBSD/sparc64.
13911         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13912         * configure.host: Likewise.
13913         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13914         handler for OpenBSD.
13915         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13916
13917 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
13918
13919         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13920         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13921
13922         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13923         * cli/cli-cmds.c (shell_escape): Likewise.
13924
13925         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13926         OpenBSD .note.openbsd.ident sections.
13927
13928 2004-01-22  David Carlton  <carlton@kealia.com>
13929
13930         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13931         get_scope_pc_bounds.
13932         (read_file_scope): Ditto.
13933         (get_scope_pc_bounds): New function, produced by extracting code
13934         from the above two functions, consolidating it, and adding support
13935         for DW_TAG_namespace.
13936
13937 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
13938
13939         * osabi.c (MAX_NOTESZ): New define.
13940         (check_note): New function.
13941         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13942         check_note.
13943
13944 2004-01-21  Roland McGrath  <roland@redhat.com>
13945
13946         * MAINTAINERS (write after approval): Add myself.
13947
13948 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
13949
13950         * utils.c (init_page_info): Move declarations of `rows' and
13951         `cols' before the __GO32__-specific code.  Move the closing brace
13952         outside the #ifdef __GO32__..#endif block.
13953         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13954
13955 2004-01-21  Paul Brook  <paul@codesourcery.com>
13956
13957         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13958         BPSTAT_WHAT_CHECK_SHLIBS.
13959
13960 2004-01-21  Paul Brook  <paul@codesourcery.com>
13961
13962         * MAINTAINERS: Add myself to write-after-approval.
13963
13964 2004-01-20  Andrew Cagney  <cagney@redhat.com>
13965
13966         * ax-gdb.c (print_axs_value): Delete unused function.
13967         * jv-lang.c (java_lookup_type): Delete unused function.
13968         * cli/cli-dump.c (dump_filetype): Delete unused function.
13969         * remote-mips.c (remote_mips_insert_hw_breakpoint)
13970         (remote_mips_remove_hw_breakpoint): Delete unused functions.
13971         (mips_getstring): Delete unused function.
13972         (pmon_insert_breakpoint): Delete #if0ed function.
13973         (PMON_MAX_BP): Delete #if0ed MACRO.
13974         (mips_pmon_bp_info): Delete #if0ed variable.
13975         (pmon_remove_breakpoint): Delete #if0ed function.
13976         * monitor.c (monitor_write_even_block): Delete unused function.
13977         (monitor_write_memory_block): Delete #if0ed code.
13978         * dink32-rom.c (dink32_load): Delete unused function.
13979         (_initialize_dink32_rom): Delete #if0ed code.
13980         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13981
13982         * tui/tui-command.c: Update references.
13983         * tui/tui-io.c: Update references.
13984         * tui/tui-command.h: Update copyright.
13985         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13986
13987         * source.c (ambiguous_line_spec): Delete never-defined function.
13988         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13989         * gdbtypes.c (add_name, add_mangled_type): Ditto.
13990         * cli/cli-cmds.c (validate_comname): Ditto.
13991
13992         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
13993         "tui-data.h".
13994         (tui_set_disassem_content): Rename tuiSetDisassemContent.
13995         (tui_show_disassem): Rename tuiShowDisassem.
13996         (tui_show_disassem_and_update_source): Rename
13997         tuiVerticalDisassemScroll.
13998         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13999         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
14000         * tui/tui.h: Update copyright.
14001         (enum tui_status): Define.
14002         * tui/tui-data.h (enum tui_scroll_direction): Define.
14003         * tui/tui-disasm.c: Update copyright.  Update references.
14004         * tui/tui-winsource.c:  Update copyright.  Update references.
14005         * tui/tui-win.c: Update references.
14006         * tui/tui-layout.c: Update references.
14007
14008 2004-01-20  Andrew Cagney  <cagney@redhat.com>
14009
14010         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
14011         sym2 to start of block.
14012
14013 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
14014
14015         * MAINTAINERS: Delete mmalloc.
14016         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
14017         * NEWS: Mention removal of --with-malloc.
14018         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
14019         * config.in: Regenerate.
14020         * configure: Regenerate.
14021         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
14022         USE_MMALLOC, MMCHECK_FORCE.
14023         * gdbinit.in: Remove mmalloc.
14024         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
14025         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
14026         * config/i386/go32.mh: Likewise.
14027         * config/i386/interix.mh: Likewise.
14028         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
14029
14030 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
14031
14032         * linespec.c (decode_variable, symtab_from_filename):  Call
14033         error_silent with error message instead of throwing an exception
14034         directly.
14035         * defs.h (error_silent, error_output_message): Add prototypes.
14036         (catch_exceptions_with_msg): Ditto.
14037         * utils.c (error_silent, error_output_message): New functions.
14038         * top.c (catch_exceptions_with_msg): New function.
14039
14040 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
14041
14042         * mi/mi-cmds.h (enum print_values): Add definition.
14043
14044         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
14045         type and value for simple data types and just the name and type
14046         for complex ones, if required.
14047
14048         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
14049         children, if required.
14050
14051 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
14052
14053         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
14054         unused declarations.
14055
14056 2004-01-19  Andrew Cagney  <cagney@redhat.com>
14057
14058         * top.h (mapped_symbol_files): Delete declaration.
14059         * main.c (captured_main): Delete option "m" and "mapped".
14060         * objfiles.c (mapped_symbol_files): Delete variable.
14061         * symfile.c (symbol_file_command): Delete mmap code.
14062         (symbol_file_add_with_addrs_or_offsets): Ditto.
14063         (add_symbol_file_command, reread_separate_symbols): Ditto.
14064         * objfiles.h (OBJF_MAPPED): Delete.
14065         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
14066         (free_objfile) [USE_MMALLOC]: Ditto.
14067         (open_existing_mapped_file): Delete function.
14068         (open_mapped_file): Delete function.
14069         (map_to_file): Delete function.
14070
14071 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
14072
14073         * infrun.c (step_into_function): Account for possible breakpoint
14074         adjustment when computing ``stop_func_start''.
14075
14076 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
14077
14078         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
14079         the region size against the size of a pointer, not the size of
14080         a register as given by DEPRECATED_REGISTER_SIZE.
14081
14082 2004-01-19  Andrew Cagney  <cagney@redhat.com>
14083
14084         * tui/tui-regs.h: Include "tui-data.h".
14085         (tuiFirstRegElementNoInLine): Delete declaration.
14086         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
14087         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
14088         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
14089         (tui_calculate_regs_column_count): Rename
14090         tuiCalculateRegsColumnCount.
14091         (tui_check_register_values): Rename tuiCheckRegisterValues.
14092         (tui_show_registers): Rename tuiShowRegisters.
14093         (tui_display_registers_from_line): Rename
14094         tuiDisplayRegistersFromLine.
14095         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
14096         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
14097         (tui_first_reg_element_no_inline): Rename
14098         tuiFirstRegElementNoInLine.
14099         * tui/tui-data.h: Update copyright.
14100         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
14101         * tui/tui-windata.c: Update copyright, update references.
14102         * tui/tui-regs.c: Update copyright, update references.
14103         * tui/tui-win.c: Update copyright, update references.
14104         * tui/tui-layout.c: Update copyright, update references.
14105
14106 2004-01-18  Andrew Cagney  <cagney@redhat.com>
14107
14108         * tui/tui-io.c: Update copyright.
14109         (key_is_end_sequence, key_is_backspace): New functions.
14110         (key_is_command_char, key_is_start_sequence): New function.
14111         (tui_getc): Update references.
14112         * tui/tui-io.h: Update copyright.
14113         (m_tuiStartNewLine): Delete macro.
14114         (m_isBackspace, m_isDeleteChar): Delete macros.
14115         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14116         (m_isNextPage, m_isPrevPage): Delete macros.
14117         (m_isLeftArrow, m_isRightArrow): Delete macros.
14118         (m_isXdbStyleCommandChar): Delete macro.
14119         (key_is_start_sequence): Declare, replace m_isStartSequence.
14120         (key_is_end_sequence): Declare, replace m_isEndSequence.
14121         (key_is_backspace): Declare ,replace m_isBackspace.
14122         (key_is_command_char): Declare, replace m_isCommandChar.
14123         * tui/tui-command.c: Update copyright.
14124         (tuiDispatchCtrlChar): Update references.
14125
14126         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14127         tuiSourceWin.h.
14128
14129         * tui/tui-command.c: Rename tui/tuiCommand.c.
14130         * tui/tui-command.h: Rename tui/tuiCommand.h.
14131         * tui/tui-data.c: Rename tui/tuiData.c.
14132         * tui/tui-data.h: Rename tui/tuiData.h.
14133         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14134         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14135         * tui/tui-io.c: Rename tui/tuiIO.c.
14136         * tui/tui-io.h: Rename tui/tuiIO.h.
14137         * tui/tui-layout.c: Rename tui/tuiLayout.c.
14138         * tui/tui-layout.h: Rename tui/tuiLayout.h.
14139         * tui/tui-regs.c: Rename tui/tuiRegs.c.
14140         * tui/tui-regs.h: Rename tui/tuiRegs.h.
14141         * tui/tui-source.c: Rename tui/tuiSource.c.
14142         * tui/tui-source.h: Rename tui/tuiSource.h.
14143         * tui/tui-stack.c: Rename tui/tuiStack.c.
14144         * tui/tui-stack.h: Rename tui/tuiStack.h.
14145         * tui/tui-win.c: Rename tui/tuiWin.c.
14146         * tui/tui-win.h: Rename tui/tuiWin.h.
14147         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14148         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14149         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14150         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14151         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14152         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14153         * tui/tui-file.c: Update includes.
14154         * tui/tui-hooks.c: Update includes.
14155         * tui/tui-interp.c: Update includes.
14156         * tui/tui.c: Update includes.
14157         * Makefile.in: Update all tui/ dependencies.
14158         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14159
14160         * Makefile.in: Update copyright.  Update dependencies.
14161
14162         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14163         problem.
14164
14165 2004-01-18  Andrew Cagney  <cagney@redhat.com>
14166
14167         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14168         instead of register_gdbarch_init.
14169
14170         * remote-sds.c (tohex): Delete unused function.  Update copyright.
14171         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14172         * v850-tdep.c (v850_register_virtual_size): Ditto.
14173         * target.c (normal_target_post_startup_inferior): Ditto.
14174         * source.c (ambiguous_line_spec): Ditto.
14175         * remote.c (adapt_remote_get_threadinfo): Ditto.
14176         * mi/mi-out.c (out_field_fmt): Ditto.
14177         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14178         (output_control_change_notification): Ditto.
14179         * m68k-tdep.c (m68k_register_byte): Ditto.
14180         (m68k_remote_breakpoint_from_pc): Ditto.
14181         * ui-out.c (init_ui_out_state): Delete unused declaration.
14182         * stabsread.c (search_value): Ditto.
14183         * mi/mi-cmd-env.c (env_cli_command): Ditto.
14184         * maint.c (print_section_table): Ditto.
14185         * infrun.c (set_follow_fork_mode_command): Ditto.
14186
14187 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
14188
14189         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14190         DW_CFA_def_cfa_exporession.  Add support for
14191         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14192         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
14193
14194 2004-01-18  Andrew Cagney  <cagney@redhat.com>
14195
14196         * ocd.c: Update copyright.
14197         (bdm_read_register_command): Delete unused function.
14198         (_initialize_remote_ocd): Delete commented out reference.
14199         (get_quoted_char, reset_packet): Delete #if0ed function.
14200         (output_packet, put_quoted_char): Delete #if0ed function.
14201         (stu_put_packet, stu_get_packet): Delete #if0ed function.
14202         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14203         (BDM_BREAKPOINT): Delete #if0ed macro.
14204         (remote_timeout): Delete #if0ed variable.
14205
14206 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
14207
14208         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14209         (core-sol2.o): Remove dependency.
14210         * core-sol2.c: Remove file.
14211
14212 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14213
14214         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14215         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14216         enums.
14217
14218 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14219
14220         * remote.c: Update copyright years.
14221
14222 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14223
14224         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14225
14226 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14227
14228         * mdebugread.c: Update copyright.
14229         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14230         (parse_type, parse_procedure): Ditto.
14231         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14232
14233         * cris-tdep.c (cris_store_struct_return): Put back accidently
14234         deleted function.
14235
14236         * gdbarch.sh: Update copyright year.
14237         * gdbarch.h, gdbarch.c: Re-generate.
14238
14239 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14240
14241         Suggested by George Anzinger.
14242         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14243         correct stack offset.  Include unknown opcode numbers in the error
14244         message.
14245
14246 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14247
14248         * x86-64-tdep.c (x86_64_init_abi): No need to clear
14249         extract_struct_value_address, i386 does not set it.
14250         * sparc64-tdep.c (sparc64_init_abi): Do not set
14251         extract_struct_value_address, never called.
14252         (sparc64_extract_struct_value_address): Delete function.
14253         * m68hc11-tdep.c: Update copyright.
14254         (m68hc11_gdbarch_init): Delete redundant assignment of
14255         extract_struct_value_address.
14256         * i386-tdep.c: Update copyright.
14257         (i386_gdbarch_init): Do not set extract_struct_value_address,
14258         never called.
14259         (i386_extract_struct_value_address): Delete function.
14260         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14261         extract_struct_value_address, never called.
14262         (sparc32_extract_struct_value_address): #if 0 function.  Add
14263         comments explaining its future.
14264
14265 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14266
14267         * arm-tdep.c (arm_write_pc): New function.
14268         (arm_gdbarch_init): Call set_gdbarch_write_pc.
14269
14270 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14271
14272         * breakpoint.c (must_shift_inst_regs): Delete.
14273         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14274         and SHIFT_INST_REGS.
14275         * infcmd.c (step_1, step_1_continuation): Delete references to
14276         SHIFT_INST_REGS.
14277         * infrun.c (keep_going): Likewise.
14278         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14279         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14280
14281 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14282
14283         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14284         * gdbarch.h, gdbarch.c: Re-generate.
14285         * infcmd.c (print_return_value): Delete reference to
14286         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14287
14288         * cris-tdep.c (cris_gdbarch_init): Do not set
14289         deprecated_extract_struct_value_address.
14290
14291         * xstormy16-tdep.c: Update copyright.
14292         (xstormy16_extract_struct_value_address): Update to current
14293         extract struct value address interface.
14294         (xstormy16_gdbarch_init): Set extract_struct_value_address.
14295         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14296         current extract struct value address interface.
14297         (sh64_gdbarch_init): Set extract_struct_value_address.
14298
14299         * cris-tdep.c: Update copyright.
14300         (cris_extract_struct_value_address): Delete function.
14301         (struct_return_address): Delete variable.
14302         (cris_store_struct_return): Do not set struct_return_address.
14303
14304         * mcore-tdep.c: Update copyright.
14305         (mcore_extract_struct_value_address): Delete function.  Update
14306         comments.
14307         (mcore_gdbarch_init): Update.
14308         * mn10300-tdep.c: Update copyright.
14309         (mn10300_extract_struct_value_address): Delete function.
14310         (mn10300_gdbarch_init): Update.
14311         * v850-tdep.c: Update copyright.
14312         (v850_extract_struct_value_address): Delete.
14313         (v850_gdbarch_init): Update.
14314         * ns32k-tdep.c: Update copyright.
14315         (ns32k_extract_struct_value_address): Delete.
14316         (ns32k_gdbarch_init): Update.
14317         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14318         (hppa_gdbarch_init): Update.
14319         * vax-tdep.c: Update copyright.
14320         (vax_extract_struct_value_address): Delete.
14321         (vax_gdbarch_init): Update.
14322
14323         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14324         * gdbarch.h, gdbarch.c: Re-generate.
14325         * procfs.c (procfs_fetch_registers): Delete reference to
14326         DEPRECATED_NPC_REGNUM.
14327         (procfs_store_registers): Ditto.
14328         * regcache.c (generic_target_write_pc): Simplify.
14329         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
14330
14331         * core-sol2.c (fetch_core_registers): Replace
14332         DEPRECATED_NPC_REGNUM with equivalent tdep value.
14333
14334         * hppa-tdep.c: Update copyright year.
14335         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14336         NPC_REGNUM.
14337         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14338
14339         * mips-tdep.c (mips_write_pc): New function.
14340         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14341         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14342         (mips_find_saved_regs, mips_software_single_step: Ditto.
14343         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14344         mips_init_extra_frame_info, mips_pop_frame): Ditto.
14345
14346 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14347
14348         * mips-tdep.c: Re-indent.  Group functions by ABI.
14349
14350 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14351
14352         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14353         * gdbarch.c: Re-generate.
14354         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14355         DECR_PC_AFTER_BREAK to zero.
14356         * vax-tdep.c (vax_gdbarch_init): Ditto.
14357         * v850-tdep.c (v850_gdbarch_init): Ditto.
14358         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14359         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14360         * sh-tdep.c (sh_gdbarch_init): Ditto.
14361         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14362         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14363         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14364         * mips-tdep.c (mips_gdbarch_init): Ditto.
14365         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14366         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14367         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14368         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14369         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14370         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14371         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14372         * frv-tdep.c (frv_gdbarch_init): Ditto.
14373         * cris-tdep.c (cris_gdbarch_init): Ditto.
14374         * avr-tdep.c (avr_gdbarch_init): Ditto.
14375         * arm-tdep.c (arm_gdbarch_init): Ditto.
14376         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14377
14378 2004-01-17  J. Brobecker  <brobecker@gnat.com>
14379
14380         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14381         Delete, no longer used.
14382         (read_subrange_type): New function, mostly extracted from
14383         read_array_type().
14384         (read_array_type): Replace extracted code by call to
14385         read_subrange_type().
14386         (dwarf2_get_attr_constant_value): New function.
14387         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14388         (add_partial_symbol): Likewise.
14389         (process_die): Likewise.
14390         (new_symbol): Likewise.
14391         (read_type_die): Likewise.
14392
14393 2004-01-16  Andrew Cagney  <cagney@redhat.com>
14394
14395         * symfile.c: Update copyright year.
14396         (compare_symbols): Delete unused function.
14397         * stabsread.c: Update copyright year.
14398         (lrs_general_complaint): Delete unused function.
14399         (ref_search_value): Ditto.
14400         (get_substring): Delete declaration.
14401         * sh64-tdep.c: Update copyright year.
14402         (sh64_get_gdb_regnum): Delete unused function.
14403         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14404         Delete unused function.
14405
14406 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
14407
14408         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14409         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14410
14411 2004-01-16  Andrew Cagney  <cagney@redhat.com>
14412
14413         Changes from Peter Schauer.
14414         * rs6000-tdep.c: Update copyright year.
14415         (rs6000_push_dummy_call): Update the stack pointer before
14416         accessing the corresponding stack region.
14417         * rs6000-nat.c: Update copyright year.
14418         (set_host_arch): Set "info.abfd" to "exec_bfd".
14419
14420 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
14421
14422         * blockframe.c: Update copyright year.
14423         (inside_entry_func): Don't treat a zero PC specially.
14424
14425 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
14426
14427         * gcore.c (gcore_copy_callback): Use paddr_d to print size
14428         variable.
14429         (gcore_create_callback): Ditto.  Skip any memory segment that has
14430         no permissions set.
14431
14432 2004-01-14  David Carlton  <carlton@kealia.com>
14433
14434         Change symbols for C++ nested types to contain the fully qualified
14435         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
14436         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14437         c++/895.
14438         * c-exp.y (qualified_type): Handle types nested within classes.
14439         * cp-namespace.c: Update comments.
14440         (cp_set_block_scope): Delete #if 0.
14441         (cp_lookup_nested_type): Handle types nested within classes.
14442         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14443         when appropriate.
14444         (add_partial_symbol): Add the name of the enclosing namespace to
14445         types.
14446         (pdi_needs_namespace): New.
14447         (add_partial_namespace): Tweak comment.
14448         (add_partial_structure): New.
14449         (psymtab_to_symtab_1): Initialize processing_current_prefix
14450         here...
14451         (process_die): instead of here.
14452         (read_structure_scope): Try to figure out the name of the class or
14453         namespace that the structure might be defined within.
14454         (read_enumeration): Generate fully-qualified names, if possible.
14455         (read_namespace): Don't set name to NULL.
14456         (die_specification): New.
14457         (new_symbol): Generate fully-qualified names for types.
14458         (read_type_die): Determine appropriate prefix.
14459         (determine_prefix): New.
14460         (typename_concat): New.
14461         (class_name): New.
14462         * valops.c (value_aggregate_elt): Pass NOSIDE to
14463         value_struct_elt_for_reference.
14464         (value_struct_elt_for_reference): Make static, add NOSIDE
14465         parameter, call value_maybe_namespace_elt as a last resort.
14466         (value_namespace_elt): Break out code into
14467         value_maybe_namespace_elt.
14468         (value_maybe_namespace_elt): New.
14469
14470 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14471
14472         * mips-tdep.c (mips_convert_register_p): Handle both raw and
14473         cooked floating-point registers.
14474         (mips_gdbarch_init): Set convert_register_p, register_to_value,
14475         and value_to_register.
14476
14477 2004-01-13  Andrew Cagney  <cagney@redhat.com>
14478
14479         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14480         * gdbarch.c: Re-generate.
14481         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14482         FUNCTION_START_OFFSET.
14483         * v850-tdep.c (v850_gdbarch_init): Ditto.
14484         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14485         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14486         * sh-tdep.c (sh_gdbarch_init): Ditto.
14487         * s390-tdep.c (s390_gdbarch_init): Ditto.
14488         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14489         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14490         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14491         * mips-tdep.c (mips_gdbarch_init): Ditto.
14492         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14493         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14494         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14495         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14496         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14497         * i386-tdep.c (i386_gdbarch_init): Ditto.
14498         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14499         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14500         * frv-tdep.c (frv_gdbarch_init): Ditto.
14501         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14502         * cris-tdep.c (cris_gdbarch_init): Ditto.
14503         * avr-tdep.c (avr_gdbarch_init): Ditto.
14504         * arm-tdep.c (arm_gdbarch_init): Ditto.
14505         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14506
14507 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
14508
14509         * infrun.c (follow_fork_mode_ask): Remove.
14510         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14511         (follow_fork): Simplify and remove internal error for
14512         follow_fork_mode_ask.
14513         (_initialize_infrun): Update "set follow-fork-mode" help text.
14514
14515 2004-01-13  Andrew Cagney  <cagney@redhat.com>
14516
14517         * configure.in: Update copyright year.
14518         (build_warnings): Add -Wunused-label.
14519         * configure: Re-generate.
14520
14521 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14522
14523         * exec.h (exec_ops): Make "extern".
14524
14525         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14526         the function is void.
14527         (mips_pseudo_register_write): Ditto.
14528
14529 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14530
14531         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14532         call.  Never defined.
14533         * sparc-tdep.h (struct frame_info): Add opaque declaration.
14534         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14535         (struct sparc_gregset, struct regcache): Ditto.
14536         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
14537
14538 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14539
14540         * mi/ChangeLog: Delete file.  Renamed to ...
14541         * mi/ChangeLog-1999-2003: New file.
14542         * tui/ChangeLog: Delete file.  Renamed to ...
14543         * tui/ChangeLog-1998-2003: New file.
14544
14545 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
14546
14547         * sparc64nbsd-tdep.c: Include "regset.h".
14548         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14549         Remove variables.
14550         (fetch_core_registers): Remove function.
14551         (sparc64nbsd_core_fns): Remove variable.
14552         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14553         functions.
14554         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14555         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14556         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14557
14558         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14559         sparc_extract_struct_value_address.
14560         (sparc32_gdbarch_init): Set extract_struct_value_address.
14561         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14562         function.
14563         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
14564         return_value_on_stack.
14565
14566         * NEWS: Mention that %cs and %ss have been added to the AMD64
14567         configurations
14568
14569         * frame.c: Update copyright year.
14570         (get_prev_frame): Improve comment.
14571
14572         * sparc64fbsd-tdep.c: Include "regset.h".
14573         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14574         Remove variables.
14575         (fetch_core_registers): Remove function.
14576         (sparc64fbsd_core_fns): Remove variable.
14577         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14578         functions.
14579         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14580         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14581         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14582
14583         * sparcnbsd-tdep.c: Include "regset.h".
14584         (fetch_core_registers): Remove function.
14585         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14586         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14587         functions.
14588         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14589         TDEP->fpregset.
14590         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14591
14592         * sparc-tdep.h (struct regset): Provide opaque declaration.
14593         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14594         fpregset and sizeof_fpregset members.
14595         * sparc-tdep.c (struct regset): Provide opaque declaration.
14596         (sparc_regset_from_core_section): New function.
14597         (sparc32_gdbarch_init): Initialize TDEP->gregset,
14598         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14599         Set regset_from_core_section when appropriate.
14600
14601 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
14602
14603         * x86-64-tdep.c (amd64_non_pod_p): New function.
14604         (amd64_classify_aggregate): Return class memory for non-POD
14605         C++ structure types.
14606
14607         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14608         argument.  Use it to reserve a register if necessary.
14609         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14610         amd64_push_arguments.
14611
14612         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14613
14614         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
14615         register numbers in comments.
14616         * x86-64-tdep.h: Update copyright year.
14617         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14618         Adjust for addition of %cs and %ss.
14619         * amd64fbsd-nat.c: Update copyright year.
14620         (reg_offset): Add register offsets for %cs and %ss.
14621         * amd64fbsd-tdep.c: Update copyright year.
14622         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14623         (amd64fbsd_sc_reg_offset): Likewise.
14624         * x86-64-linux-nat.c: Update copyright year.
14625         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14626         and %ss.
14627         * amd64nbsd-nat.c: Update copyright year.
14628         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14629         * amd64nbsd-tdep.c: Update copyright year.
14630         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14631         * x86-64-linux-tdep.c: Update copyright year.
14632         (user_to_gdb_regmap): Add mapping for %cs and %ss.
14633         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14634         * regformats/reg-x86-64.dat: Add %cs and %ss.
14635
14636         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
14637         variables to prevent long lines.  Update comments to reflect
14638         reality.
14639
14640 2004-01-09  David Carlton  <carlton@kealia.com>
14641
14642         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
14643         * dwarf2read.c (read_namespace): Pull out name-generating code
14644         into namespace_name. Rename previous_namespace to previous_prefix
14645         and processing_current_namespace to processing_current_prefix..
14646         (namespace_name): New function.
14647         (add_partial_symbol): Substitute uses of pdi->name with
14648         actual_name.
14649         * cp-support.h: Rename processing_current_namespace to
14650         processing_current_prefix.
14651         Update copyright year.
14652         * cp-namespace.c: Rename processing_current_namespace to
14653         processing_current_prefix.
14654         Update copyright year.
14655
14656 2004-01-09  Andrew Cagney  <cagney@redhat.com>
14657
14658         * jv-valprint.c, ser-unix.c: Add missing copyright years.
14659
14660 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
14661
14662         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14663         complaining.
14664         (process_one_symbol): Deal with N_PATCH stabs.
14665
14666 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
14667
14668         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14669         ifdeffed code.
14670         Update copyright year.
14671
14672 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
14673
14674         * config/pa/tm-hppa.h: Update extern declarations for
14675         hppa32_hpux_frame_saved_pc_in_sigtramp,
14676         hppa32_hpux_frame_base_before_sigtramp, and
14677         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14678
14679 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
14680
14681         * config/pa/tm-hppah.h: Update copyright years.
14682
14683 2004-01-08  Andrew Cagney  <cagney@redhat.com>
14684
14685         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14686         (mips_o32_reg_struct_has_addr): Delete function.
14687         (mips_gdbarch_init): Update.
14688         (mips_extract_struct_value_address): Delete function.
14689
14690 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
14691
14692         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14693         reality.
14694
14695 2004-01-07  Andrew Cagney  <cagney@redhat.com>
14696
14697         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14698         architecture's elf flags (when available).
14699
14700         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14701         FPU to the start, check the MIPS FPU when looking for an old
14702         architecture.
14703         (set_mipsfpu_single_command): Update the architecture.
14704         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14705
14706         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14707         (mips_mask_address_p): Add "tdep" parameter.
14708         (show_mask_address, mips_addr_bits_remove): Update.
14709         (mips_dump_tdep): Update.
14710         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14711         (MIPS_STACK_ARGSIZE): Delete macro.
14712         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14713         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14714         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14715         (mips_dump_tdep): Update.
14716         (MIPS_SAVED_REGSIZE): Delete macro.
14717         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14718         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14719         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14720         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14721         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14722         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14723         (mips_pop_frame, return_value_location): Update.
14724         (mips_n32n64_return_value, mips_dump_tdep): Update.
14725
14726         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14727         MIPS ABI.
14728
14729         * mips-tdep.c: Update copyright.
14730         (mips_gdbarch_init): Merge two code blocks handling the register
14731         name and number layout.
14732
14733 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
14734
14735         * tracepoint.c (validate_actionline): Fix segv at EOF
14736
14737 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
14738
14739         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14740         properly for static fields.
14741
14742 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
14743             Jason Molenda  <jmolenda@apple.com>
14744
14745         * disasm.c: Update copyright to include 2004.
14746         (do_mixed_source_and_assembly): For uiout asm list
14747         and tuple cleanups, initialize to null_cleanup instead of
14748         NULL and do so prior to loop.  Only reset when we close off
14749         the tuple/list.  Move check for whether to close off the
14750         asm tuple/list to after dump_insns call where it will be run
14751         on each loop iteration.
14752
14753 2004-01-05  Andrew Cagney  <cagney@redhat.com>
14754
14755         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14756         should be a switch case and not a label.
14757         * mips-tdep.c (mips32_next_pc): Delete unused labels
14758         "greater_equal_branch" and "less_zero_branch".
14759         * jv-valprint.c (java_print_value_fields): Delete unused label
14760         "flush_it".
14761
14762         * target.c (unpush_target): Only close a target that is in the
14763         target stack.
14764
14765 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
14766
14767         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14768         address from [sp + 64] instead of %o2.
14769
14770         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
14771         fixes PR backtrace/1476.
14772
14773 2004-01-05  Andrew Cagney  <cagney@redhat.com>
14774
14775         * libunwind-frame.h (struct frame_id): Add opaque declaration,
14776         move to start of file.
14777         * i386-tdep.h (struct regcache): Add opaque declaration.
14778         * config/ia64/nm-linux.h (struct target_ops): Add opaque
14779         declaration.
14780         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14781         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14782         * win32-nat.c (fake_create_process): Use ISO C style definition.
14783         * stabsread.c (define_symbol): Delete #ifndef
14784         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14785         stabs_argument_has_addr call, macro never defined.
14786
14787 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
14788
14789         * op50-rom.c: Delete.
14790         * w89k-rom.c: Delete.
14791         * Makefile.in: Remove references.
14792
14793 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14794
14795         * x86-64-tdep.c: Update copyright year.
14796         (struct amd64_register_info): Rename from x86_64_register_info.
14797         (amd64_register_info): Rename from x86_64_register_info.
14798         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14799         (amd64_register_name): Rename from x86_64_register_name.
14800         (amd64_register_type): Rename from x86_64_register_type.
14801         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14802         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14803         (amd64_dwarf_reg_to_regnum): Rename from
14804         x86_64_dwarf_reg_to_regnum.
14805         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14806         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14807         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14808         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14809         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14810         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14811         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14812         (amd64_frame_cache): Rename from x86_64_frame_cache.
14813         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14814         (amd64_frame_prev_register): Rename from
14815         x86_64_frame_prev_register.
14816         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14817         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14818         (amd64_sigtramp_frame_cache): Rename from
14819         x86_64_sigtramp_frame_cache.
14820         (amd64_sigtramp_frame_prev_register): Rename from
14821         x86_64_sigtramp_frame_prev_register.
14822         (amd64_sigtramp_frame_unwind): Rename from
14823         x86_64_sigtramp_frame_unwind.
14824         (amd64_sigtramp_frame_sniffer): Rename from
14825         x86_64_sigtramp_frame_sniffer.
14826         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14827         (amd64_frame_base): Rename from x86_64_frame_base.
14828         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14829         (amd64_frame_align): Rename from x86_64_frame_align.
14830         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14831         (amd64_regset_from_core_section): Rename from
14832         x86_64_regset_from_core_section.
14833         (x86_64_init_abi): Update comments.
14834
14835 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
14836
14837         * MAINTAINERS (write after approval): Add myself.
14838
14839 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14840
14841         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14842         `float' arguments.
14843
14844 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14845
14846         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14847         such that it mentions a specific version of GCC that exhibits this
14848         bug.
14849
14850 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14851
14852         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14853         structure that has a single `float' member, store it in %f1 in
14854         addition to %f0.
14855
14856         * sparc-sol2-nat.c: Add missing '\'.
14857
14858         * sparc-tdep.c (sparc32_return_value): New function.
14859          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14860         Remove functions.
14861         (sparc32_gdbarch_init): Set return_value, don't set
14862         extract_return_value, store_return_value, use_struct_convention
14863         and return_value_on_stack.
14864
14865         * sparc-sol2-nat.c: Add missing ')'.
14866
14867 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14868
14869         * infrun.c (handle_step_into_function): New function.
14870         (handle_inferior_event): Extract out some code into the new
14871         function above.
14872
14873 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14874
14875         * infrun.c (handle_inferior_event): Move the declaration of
14876         real_stop_pc inside the if blocks where it is used.
14877
14878 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14879
14880         * sparc64-tdep.c (sparc64_16_byte_align_p)
14881         (sparc64_store_floating_fields, sparc64_store_floating_fields):
14882         Use check_typedef to get subtypes of structures and unions.
14883         (sparc64_store_return_value): Fix calculation of the appropriate
14884         offset into VALBUF when storing a structure or union.
14885         (sparc64_return_value): New function.
14886         (sparc64_use_struct_convention): Remove function.
14887         (sparc64_init_abi): Set return_value, don't set
14888         extract_return_value, store_return_value and
14889         use_struct_convention.
14890
14891 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
14892
14893         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14894         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14895         gdb/config/alpha/xm-alphaosf.h,
14896         gdb/config/powerpc/tm-ppcle-eabi.h,
14897         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14898         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14899         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14900         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14901         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14902         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14903         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14904         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14905         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14906         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14907         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14908         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14909         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14910         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14911         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14912         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14913         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14914         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14915         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14916         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14917         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14918         Remove lines for .cvsignore files.
14919
14920 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14921
14922         * infrun.c: Back out the previous change.
14923
14924 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14925
14926         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
14927         sparc-*-sunos4* to the list of REMOVED configurations.
14928
14929         * configure.tgt: Add back sparc-*-vxworks*.
14930         * remote-vxsparc.c: Remove all includes except for "defs.h",
14931         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14932         Include "sparc-tdep.h".
14933         (SPARC_R_G1): New define.
14934         (vxsparc_gregset): New variable.
14935         (ext_format_sparc): Remove extern declaration.
14936         (vx_read_register): Rewrite to use sparc32_supply_gregset and
14937         sparc32_supply_fpregset.
14938         (vx_write_register): Rewrite to use sparc32_collect_gregset,
14939         sparc_collect_rwindow and sparc32_collect_fpregset.
14940         * config/sparc/tm-vxworks.h: New file, based on recently removed
14941         tm-vxsparc.h.
14942         * config/sparc/vxworks.mt: New file, based on recently removed
14943         vxworks.mt.
14944
14945 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14946
14947         * infrun.c (handle_step_into_function): New function.
14948         (handle_inferior_event): Extract out some code into the new
14949         function above.
14950
14951 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
14952
14953         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14954         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14955         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14956         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14957         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14958         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14959         (sparc_nat_h): New variable.
14960         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14961         (tm-sun4os4.h): Remove dependency.
14962         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14963         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14964         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14965         sparc-tdep.o): Update dependencies.
14966         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14967         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14968         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14969         dependencies.
14970         * configure.host: Remove existing sparc-*-lynxos*,
14971         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14972         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14973         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
14974         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14975         triplets.
14976         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14977         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14978         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14979         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
14980         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14981         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14982         sparc64-*-solaris2* and sparc64-*-* triplets.
14983         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
14984         "symtab.h" and "objfiles.h".
14985         (BIAS): Remove define.
14986         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14987         (X_DISP19): Remove macros.
14988         (sparc_fetch_instruction): Remove function.
14989         (struct gdbarch_tdep): Remove definition.
14990         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14991         (sparc_breakpoint_from_pc): Remove function.
14992         (struct sparc64_frame_cache): Remove definition.
14993         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14994         sparc64_unwind_pc): Remove functions.
14995         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14996         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
14997         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
14998         (sparc64_frame_cache): Change return type to `struct
14999         sparc_frame_cache *'.  Simply call sparc_frame_cache.
15000         (sparc64_frame_this_id, sparc64_frame_prev_register,
15001         sparc64_frame_base_address): Use `struct sparc_frame_cache'
15002         instead of `struct sparc64_frame_cache.
15003         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
15004         sparc_analyze_control_transfer, sparc_software_single_step,
15005         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
15006         _initialize_sparc64_tdep): Remove functions.
15007         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
15008         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
15009         macros.
15010         (sparc64_supply_gregset, sparc64_collect_gregset,
15011         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
15012         (sparc64_init_abi): New function.
15013         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
15014         inclusion guard.  Include "sparc-tdep.h".
15015         (BIAS): Define.
15016         (r_tstate_offset, r_fprs_offset): New defines.
15017         (enum sparc_regnum): Remove defenition.
15018         (enum sparc64_regnum): Reformat.
15019         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
15020         (sparc64_init_abi, sparc64_supply_gregset,
15021         sparc64_collect_gregset, sparc64_supply_fpregset,
15022         sparc64_collect_fpregset): New prototypes.
15023         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
15024         Add extern declarations.
15025         (sparc64_sol2_init_abi): New prototype.
15026         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
15027         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
15028         prototypes.
15029         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
15030         "sparnbsd-nat.h".
15031         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
15032         functions.
15033         (_initialize_sparc64fbsd_nat): Remove initialization of
15034         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
15035         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
15036         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
15037         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
15038         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
15039         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
15040         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
15041         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
15042         (sparc64fbsd_r_y_offset): Remove variables.
15043         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
15044         Make static and const.
15045         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
15046         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
15047         functions.
15048         (sparc64fbsd_gregset): New variable.
15049         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
15050         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
15051         and sparc64_supply_fpregset.
15052         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
15053         (sparc64fbsd_sigtramp_frame_this_id)
15054         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
15055         (sparc64fbsd_sigtramp_frame_unwind): New variable.
15056         (sparc64fbsd_sigtramp_frame_sniffer): New function.
15057         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
15058         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
15059         * sparcnbsd-tdep.c: Update copyright year.  Include
15060         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
15061         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
15062         "value.h" and "sparcnbsd-tdep.h".
15063         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
15064         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
15065         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
15066         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
15067         defines.
15068         (sparcnbsd_gregset): New variable.
15069         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
15070         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
15071         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
15072         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
15073         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
15074         variables.
15075         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
15076         (sparc32nbsd_sigcontext_frame_this_id)
15077         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
15078         (sparc32nbsd_sigcontext_frame_unwind): New variable.
15079         (sparc32nbsd_sigtramp_frame_sniffer): New function.
15080         (sparcnbsd_get_longjmp_target_32,
15081         sparcnbsd_get_longjmp_target_64): Remove functions.
15082         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
15083         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
15084         sparcnbsd_init_elf): Remove.
15085         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
15086         (sparcnbsd_elf_init_abi): New functions.
15087         (_initialize_sparcnbsd_tdep): New prototype.
15088         (_initialize_sparnbsd_tdep): Update.
15089         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
15090         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
15091         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
15092         * config/sparc/linux.mh: Update comment.
15093         (XM_FILE, HOST_IPC): Remove variables.
15094         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
15095         sparc-linux-nat.o.
15096         * config/sparc/linux.mt: Update comment.
15097         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
15098         * config/sparc/nbsd.mt: Reformat.
15099         * config/sparc/nbsd64.mh: Update comment.
15100         (NATDEPFILES): Add sparc-nat.o.
15101         * config/sparc/nbsd64.mt: Update comment.
15102         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
15103         (TM_FILE): Set to tm-nbsd.h.
15104         * config/sparc/nbsdelf.mh: Update comment.
15105         (NATDEPFILES): Add sparc-nat.o.
15106         (XM_FILE): Delete.
15107         * config/sparc/nbsdaout.mh: Update comment.
15108         (NATDEPFILES): Add sparc-nat.o
15109         (XM_FILE): Delete.
15110         * config/sparc/nm-linux.h: Update copyright year.  Don't include
15111         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
15112         inclusion.
15113         (KERNEL_U_SIZE): Remove define.
15114         (kernel_u_size): Remove prototype.
15115         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15116         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
15117         "regcache.h".
15118         (CHILD_PREPARE_TO_STORE): Remove define.
15119         * config/sparc/nm-nbsdaout.h: Tweak some comments.
15120         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15121         sparcnbsd-nat.c: Rewrite files.
15122         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15123         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15124         sparcnbsd-tdep.h: Remove files.
15125         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15126         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15127         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15128         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15129         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15130         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15131         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15132         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15133         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15134         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15135         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15136         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15137         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15138         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15139         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15140         * config/sparc/linux64.mh, config/sparc/linux64.mt,
15141         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15142         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15143         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15144
15145 2004-01-02  Andrew Cagney  <cagney@redhat.com>
15146
15147         From 2003-12-18 Kazuhiro Inaoka:
15148         * configure.host: Add m32r-linux target.
15149
15150 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
15151
15152         * top.c (print_gdb_version): Update year to 2004.
15153
15154 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
15155
15156         * MAINTAINERS: Add myself to the write-after-approval category.
15157
15158 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
15159
15160         From Bernardo Innocenti <bernie@develer.com>:
15161         * configure.tgt: Add uClinux target.
15162
15163 2004-01-02  Andrew Cagney  <cagney@redhat.com>
15164
15165         * utils.c (do_my_cleanups): Make static, add forward declaration.
15166         * defs.h (do_my_cleanups): Delete declaration.
15167
15168 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
15169
15170         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15171         bfd/ChangeLog-0203.
15172
15173 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
15174
15175         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
15176         in <machine/reg.h>.
15177         * configure, config.in: Regenerate.
15178
15179 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15180 tui/ChangeLog-1998-2003.
15181 \f
15182 Local Variables:
15183 mode: change-log
15184 left-margin: 8
15185 fill-column: 74
15186 version-control: never
15187 End: